diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-05 09:36:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 10:38:51 +0200 |
commit | 3dfbf76e587b7ed7ee40ef2b4c4ef4805df22900 (patch) | |
tree | 27fc2ac80b24c55765c9960038dce6267d487248 /vcl/win | |
parent | 2c39312bae5973eeac408cb5a615db946c01517d (diff) |
convert DuplexMode to scoped enum
Change-Id: Ic6f6e11437e75d17630683196c1b94dc25dd888f
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index 3ec4097d067d..04478467380c 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -707,15 +707,15 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS if( nFlags & JobSetFlags::DUPLEXMODE ) { - DuplexMode eDuplex = DUPLEX_UNKNOWN; + DuplexMode eDuplex = DuplexMode::Unknown; if( (CHOOSE_DEVMODE(dmFields) & DM_DUPLEX) ) { if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_SIMPLEX ) - eDuplex = DUPLEX_OFF; + eDuplex = DuplexMode::Off; else if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_VERTICAL ) - eDuplex = DUPLEX_LONGEDGE; + eDuplex = DuplexMode::LongEdge; else if( CHOOSE_DEVMODE(dmDuplex) == DMDUP_HORIZONTAL ) - eDuplex = DUPLEX_SHORTEDGE; + eDuplex = DuplexMode::ShortEdge; } pSetupData->SetDuplexMode( eDuplex ); } @@ -988,19 +988,19 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, const ImplJobSet { switch( pSetupData->GetDuplexMode() ) { - case DUPLEX_OFF: + case DuplexMode::Off: CHOOSE_DEVMODE(dmFields) |= DM_DUPLEX; CHOOSE_DEVMODE(dmDuplex) = DMDUP_SIMPLEX; break; - case DUPLEX_SHORTEDGE: + case DuplexMode::ShortEdge: CHOOSE_DEVMODE(dmFields) |= DM_DUPLEX; CHOOSE_DEVMODE(dmDuplex) = DMDUP_HORIZONTAL; break; - case DUPLEX_LONGEDGE: + case DuplexMode::LongEdge: CHOOSE_DEVMODE(dmFields) |= DM_DUPLEX; CHOOSE_DEVMODE(dmDuplex) = DMDUP_VERTICAL; break; - case DUPLEX_UNKNOWN: + case DuplexMode::Unknown: break; } } |