summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-20 10:30:18 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-20 11:51:57 +0000
commitbc0266c4984f94496c0c055c82b94bef9a2625dc (patch)
treed3dc3babcdf42a6b5c013ef652a1c136d777bfe2 /vcl/win
parente854ed8ea85fb48f5a049dfc6a87309ff9c7c2ca (diff)
convert PRINT_CAPABILITIES constants to scoped enum
Change-Id: Ib8750a7acaf038476b0a5307e4a8a0bc3bf16015 Reviewed-on: https://gerrit.libreoffice.org/15824 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/salprn.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index c0705fee03e4..ea180404a3a0 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -1239,20 +1239,20 @@ OUString WinSalInfoPrinter::GetPaperBinName( const ImplJobSetup* pSetupData, sal
return aPaperBinName;
}
-sal_uLong WinSalInfoPrinter::GetCapabilities( const ImplJobSetup* pSetupData, sal_uInt16 nType )
+sal_uLong WinSalInfoPrinter::GetCapabilities( const ImplJobSetup* pSetupData, PrinterCapType nType )
{
DWORD nRet;
switch ( nType )
{
- case PRINTER_CAPABILITIES_SUPPORTDIALOG:
+ case PrinterCapType::SupportDialog:
return TRUE;
- case PRINTER_CAPABILITIES_COPIES:
+ case PrinterCapType::Copies:
nRet = ImplDeviceCaps( this, DC_COPIES, NULL, pSetupData );
if ( nRet && (nRet != GDI_ERROR) )
return nRet;
return 0;
- case PRINTER_CAPABILITIES_COLLATECOPIES:
+ case PrinterCapType::CollateCopies:
nRet = ImplDeviceCaps( this, DC_COLLATE, NULL, pSetupData );
if ( nRet && (nRet != GDI_ERROR) )
{
@@ -1262,20 +1262,20 @@ sal_uLong WinSalInfoPrinter::GetCapabilities( const ImplJobSetup* pSetupData, sa
}
return 0;
- case PRINTER_CAPABILITIES_SETORIENTATION:
+ case PrinterCapType::SetOrientation:
nRet = ImplDeviceCaps( this, DC_ORIENTATION, NULL, pSetupData );
if ( nRet && (nRet != GDI_ERROR) )
return TRUE;
return FALSE;
- case PRINTER_CAPABILITIES_SETPAPERBIN:
+ case PrinterCapType::SetPaperBin:
nRet = ImplDeviceCaps( this, DC_BINS, NULL, pSetupData );
if ( nRet && (nRet != GDI_ERROR) )
return TRUE;
return FALSE;
- case PRINTER_CAPABILITIES_SETPAPERSIZE:
- case PRINTER_CAPABILITIES_SETPAPER:
+ case PrinterCapType::SetPaperSize:
+ case PrinterCapType::SetPaper:
nRet = ImplDeviceCaps( this, DC_PAPERS, NULL, pSetupData );
if ( nRet && (nRet != GDI_ERROR) )
return TRUE;