From bc0266c4984f94496c0c055c82b94bef9a2625dc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 May 2015 10:30:18 +0200 Subject: convert PRINT_CAPABILITIES constants to scoped enum Change-Id: Ib8750a7acaf038476b0a5307e4a8a0bc3bf16015 Reviewed-on: https://gerrit.libreoffice.org/15824 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- vcl/osx/salprn.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'vcl/osx/salprn.cxx') diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 4995ae00f5f0..ddb8cc7850d9 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -269,32 +269,32 @@ OUString AquaSalInfoPrinter::GetPaperBinName( const ImplJobSetup*, sal_uLong ) return OUString(); } -sal_uLong AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, sal_uInt16 i_nType ) +sal_uLong AquaSalInfoPrinter::GetCapabilities( const ImplJobSetup*, PrinterCapType i_nType ) { switch( i_nType ) { - case PRINTER_CAPABILITIES_SUPPORTDIALOG: + case PrinterCapType::SupportDialog: return 0; - case PRINTER_CAPABILITIES_COPIES: + case PrinterCapType::Copies: return 0xffff; - case PRINTER_CAPABILITIES_COLLATECOPIES: + case PrinterCapType::CollateCopies: return 0xffff; - case PRINTER_CAPABILITIES_SETORIENTATION: + case PrinterCapType::SetOrientation: return 1; - case PRINTER_CAPABILITIES_SETDUPLEX: + case PrinterCapType::SetDuplex: return 0; - case PRINTER_CAPABILITIES_SETPAPERBIN: + case PrinterCapType::SetPaperBin: return 0; - case PRINTER_CAPABILITIES_SETPAPERSIZE: + case PrinterCapType::SetPaperSize: return 1; - case PRINTER_CAPABILITIES_SETPAPER: + case PrinterCapType::SetPaper: return 1; - case PRINTER_CAPABILITIES_EXTERNALDIALOG: + case PrinterCapType::ExternalDialog: return officecfg::Office::Common::Misc::UseSystemPrintDialog::get() ? 1 : 0; - case PRINTER_CAPABILITIES_PDF: + case PrinterCapType::PDF: return 1; - case PRINTER_CAPABILITIES_USEPULLMODEL: + case PrinterCapType::UsePullModel: return 1; default: break; } -- cgit