summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-04 12:02:54 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit87ee6c044d79978d2121087f5e1a10f417adf9c7 (patch)
tree5b1747d9d625da42a47c3ff0635f0124de0cd511 /vcl/source
parent04a8ba2084950f998d791edad29739c124c8c4b8 (diff)
convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/jobset.cxx2
-rw-r--r--vcl/source/gdi/print.cxx10
-rw-r--r--vcl/source/window/printdlg.cxx2
3 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index 6424eaacafc3..0fc9a7cecb74 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -52,7 +52,7 @@ struct Impl364JobSetupData
ImplJobSetup::ImplJobSetup()
{
mnSystem = 0;
- meOrientation = ORIENTATION_PORTRAIT;
+ meOrientation = Orientation::Portrait;
meDuplexMode = DUPLEX_UNKNOWN;
mnPaperBin = 0;
mePaperFormat = PAPER_USER;
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index d2c0f87c3834..8b0aa60a055b 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1322,7 +1322,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
rData.SetPaperFormat(
ImplGetPaperFormat( rPaperInfo.getWidth(),
rPaperInfo.getHeight() ));
- rData.SetOrientation( ORIENTATION_PORTRAIT );
+ rData.SetOrientation( Orientation::Portrait );
bFound = true;
break;
}
@@ -1348,7 +1348,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
rData.SetPaperFormat(
ImplGetPaperFormat( rPaperInfo.getWidth(),
rPaperInfo.getHeight() ));
- rData.SetOrientation( ORIENTATION_LANDSCAPE );
+ rData.SetOrientation( Orientation::Landscape );
bFound = true;
break;
}
@@ -1359,7 +1359,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
{
sal_Int64 nBestMatch = SAL_MAX_INT64;
int nBestIndex = 0;
- Orientation eBestOrientation = ORIENTATION_PORTRAIT;
+ Orientation eBestOrientation = Orientation::Portrait;
for( int i = 0; i < nPaperCount; i++ )
{
const PaperInfo& rPaperInfo = GetPaperInfo( i );
@@ -1372,7 +1372,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
{
nBestMatch = nMatch;
nBestIndex = i;
- eBestOrientation = ORIENTATION_PORTRAIT;
+ eBestOrientation = Orientation::Portrait;
}
// check landscape match
@@ -1383,7 +1383,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
{
nBestMatch = nMatch;
nBestIndex = i;
- eBestOrientation = ORIENTATION_LANDSCAPE;
+ eBestOrientation = Orientation::Landscape;
}
}
const PaperInfo& rBestInfo = GetPaperInfo( nBestIndex );
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 258df1778a59..0ddf2f6c4570 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -654,7 +654,7 @@ PrintDialog::PrintDialog( vcl::Window* i_pParent, const std::shared_ptr<PrinterC
// setup sizes for N-Up
Size aNupSize( maPController->getPrinter()->PixelToLogic(
maPController->getPrinter()->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) ) );
- if( maPController->getPrinter()->GetOrientation() == ORIENTATION_LANDSCAPE )
+ if( maPController->getPrinter()->GetOrientation() == Orientation::Landscape )
{
maNupLandscapeSize = aNupSize;
maNupPortraitSize = Size( aNupSize.Height(), aNupSize.Width() );