summaryrefslogtreecommitdiff
path: root/include/vcl/prntypes.hxx
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 /include/vcl/prntypes.hxx
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 'include/vcl/prntypes.hxx')
-rw-r--r--include/vcl/prntypes.hxx28
1 files changed, 15 insertions, 13 deletions
diff --git a/include/vcl/prntypes.hxx b/include/vcl/prntypes.hxx
index b077117b8ee8..3dfa9ca6b864 100644
--- a/include/vcl/prntypes.hxx
+++ b/include/vcl/prntypes.hxx
@@ -78,19 +78,21 @@ namespace o3tl
// - Printer-Types -
-
-#define PRINTER_CAPABILITIES_SUPPORTDIALOG ((sal_uInt16)1)
-#define PRINTER_CAPABILITIES_COPIES ((sal_uInt16)2)
-#define PRINTER_CAPABILITIES_COLLATECOPIES ((sal_uInt16)3)
-#define PRINTER_CAPABILITIES_SETORIENTATION ((sal_uInt16)4)
-#define PRINTER_CAPABILITIES_SETPAPERBIN ((sal_uInt16)5)
-#define PRINTER_CAPABILITIES_SETPAPERSIZE ((sal_uInt16)6)
-#define PRINTER_CAPABILITIES_SETPAPER ((sal_uInt16)7)
-#define PRINTER_CAPABILITIES_FAX ((sal_uInt16)8)
-#define PRINTER_CAPABILITIES_PDF ((sal_uInt16)9)
-#define PRINTER_CAPABILITIES_EXTERNALDIALOG ((sal_uInt16)10)
-#define PRINTER_CAPABILITIES_SETDUPLEX ((sal_uInt16)11)
-#define PRINTER_CAPABILITIES_USEPULLMODEL ((sal_uInt16)12)
+enum class PrinterCapType
+{
+ SupportDialog = 1,
+ Copies = 2,
+ CollateCopies = 3,
+ SetOrientation = 4,
+ SetPaperBin = 5,
+ SetPaperSize = 6,
+ SetPaper = 7,
+ Fax = 8,
+ PDF = 9,
+ ExternalDialog = 10,
+ SetDuplex = 11,
+ UsePullModel = 12,
+};
#endif // INCLUDED_VCL_PRNTYPES_HXX