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 | |
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')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 9 | ||||
-rw-r--r-- | vcl/unx/generic/print/genprnpsp.cxx | 2 |
2 files changed, 3 insertions, 8 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 ) diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index 2fefc7e5e505..25bc3a1a9387 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -1135,7 +1135,7 @@ bool PspSalPrinter::StartJob( const OUString* i_pFileName, const OUString& i_rJo xWriter->NewPage( TenMuToPt( aNewParm.maPageSize.Width() ), TenMuToPt( aNewParm.maPageSize.Height() ), - vcl::PDFWriter::Portrait ); + vcl::PDFWriter::Orientation::Portrait ); xWriter->PlayMetafile( aPageFile, aMtfContext ); } |