diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-20 10:30:18 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-20 11:51:57 +0000 |
commit | bc0266c4984f94496c0c055c82b94bef9a2625dc (patch) | |
tree | d3dc3babcdf42a6b5c013ef652a1c136d777bfe2 /vcl/osx/salprn.cxx | |
parent | e854ed8ea85fb48f5a049dfc6a87309ff9c7c2ca (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/osx/salprn.cxx')
-rw-r--r-- | vcl/osx/salprn.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
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; } |