diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-04 12:02:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 87ee6c044d79978d2121087f5e1a10f417adf9c7 (patch) | |
tree | 5b1747d9d625da42a47c3ff0635f0124de0cd511 /vcl/win | |
parent | 04a8ba2084950f998d791edad29739c124c8c4b8 (diff) |
convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index 140ecf3a8cd5..3ec4097d067d 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -466,9 +466,9 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS if ( nFlags & JobSetFlags::ORIENTATION ) { if ( CHOOSE_DEVMODE(dmOrientation) == DMORIENT_PORTRAIT ) - pSetupData->SetOrientation( ORIENTATION_PORTRAIT ); + pSetupData->SetOrientation( Orientation::Portrait ); else if ( CHOOSE_DEVMODE(dmOrientation) == DMORIENT_LANDSCAPE ) - pSetupData->SetOrientation( ORIENTATION_LANDSCAPE ); + pSetupData->SetOrientation( Orientation::Landscape ); } // PaperBin @@ -732,7 +732,7 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, const ImplJobSet if ( nFlags & JobSetFlags::ORIENTATION ) { CHOOSE_DEVMODE(dmFields) |= DM_ORIENTATION; - if ( pSetupData->GetOrientation() == ORIENTATION_PORTRAIT ) + if ( pSetupData->GetOrientation() == Orientation::Portrait ) CHOOSE_DEVMODE(dmOrientation) = DMORIENT_PORTRAIT; else CHOOSE_DEVMODE(dmOrientation) = DMORIENT_LANDSCAPE; |