diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-08 15:13:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-10 06:04:53 +0000 |
commit | b3b2f2b95070f1a385c51f432a52b9c84470913f (patch) | |
tree | 7d44c43ccbc9bc921acb54876513658c71ce0fda /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | 765ba08d0bfba45f3a33d4cf0a03b1499ab091d5 (diff) |
convert Orientation to scoped enum
and drop unused enumerators
Change-Id: I2f42f0f441cf9ce96338d40382acb6d75ea1e1a0
Reviewed-on: https://gerrit.libreoffice.org/34061
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 8fbf043d8db3..5c3aede359fb 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -1226,13 +1226,8 @@ bool PDFWriterImpl::PDFPage::emit(sal_Int32 nParentObject ) } switch( m_eOrientation ) { - case PDFWriter::Landscape: aLine.append( "/Rotate 90\n" );break; - case PDFWriter::Seascape: aLine.append( "/Rotate -90\n" );break; - case PDFWriter::Portrait: aLine.append( "/Rotate 0\n" );break; - - case PDFWriter::Inherit: - default: - break; + case PDFWriter::Orientation::Portrait: aLine.append( "/Rotate 0\n" );break; + case PDFWriter::Orientation::Inherit: break; } int nAnnots = m_aAnnotations.size(); if( nAnnots > 0 ) |