summaryrefslogtreecommitdiff
path: root/include/vcl/metaactiontypes.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-15 10:03:53 +0200
committerNoel Grandin <noel@peralex.com>2015-05-15 10:05:03 +0200
commitad0c5e6c663642c1e4b212e4e6a38ebfe8c3e0a7 (patch)
tree6176009e3c65a6a1ce392ca4c4a9eccea3c3517c /include/vcl/metaactiontypes.hxx
parentd93915b2aeabbde90b7eb539116b9be49e0d1a5c (diff)
convert META_*_ACTION constants to scoped enum
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
Diffstat (limited to 'include/vcl/metaactiontypes.hxx')
-rw-r--r--include/vcl/metaactiontypes.hxx116
1 files changed, 60 insertions, 56 deletions
diff --git a/include/vcl/metaactiontypes.hxx b/include/vcl/metaactiontypes.hxx
index 63ce8c05e548..8fcdf1a99f0d 100644
--- a/include/vcl/metaactiontypes.hxx
+++ b/include/vcl/metaactiontypes.hxx
@@ -8,11 +8,11 @@
*
* This file incorporates work covered by the following license notice:
*
- * Licensed to the Apache Software Foundation (ASF) under one or more
+ * Licensed to the Apache Software Foundation = ASF, under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
+ * License, Version 2.0 = the "License",; you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
@@ -20,61 +20,65 @@
#ifndef INCLUDED_VCL_METAACTIONTYPES_HXX
#define INCLUDED_VCL_METAACTIONTYPES_HXX
-#define META_NULL_ACTION (0)
-#define META_PIXEL_ACTION (100)
-#define META_POINT_ACTION (101)
-#define META_LINE_ACTION (102)
-#define META_RECT_ACTION (103)
-#define META_ROUNDRECT_ACTION (104)
-#define META_ELLIPSE_ACTION (105)
-#define META_ARC_ACTION (106)
-#define META_PIE_ACTION (107)
-#define META_CHORD_ACTION (108)
-#define META_POLYLINE_ACTION (109)
-#define META_POLYGON_ACTION (110)
-#define META_POLYPOLYGON_ACTION (111)
-#define META_TEXT_ACTION (112)
-#define META_TEXTARRAY_ACTION (113)
-#define META_STRETCHTEXT_ACTION (114)
-#define META_TEXTRECT_ACTION (115)
-#define META_BMP_ACTION (116)
-#define META_BMPSCALE_ACTION (117)
-#define META_BMPSCALEPART_ACTION (118)
-#define META_BMPEX_ACTION (119)
-#define META_BMPEXSCALE_ACTION (120)
-#define META_BMPEXSCALEPART_ACTION (121)
-#define META_MASK_ACTION (122)
-#define META_MASKSCALE_ACTION (123)
-#define META_MASKSCALEPART_ACTION (124)
-#define META_GRADIENT_ACTION (125)
-#define META_HATCH_ACTION (126)
-#define META_WALLPAPER_ACTION (127)
-#define META_CLIPREGION_ACTION (128)
-#define META_ISECTRECTCLIPREGION_ACTION (129)
-#define META_ISECTREGIONCLIPREGION_ACTION (130)
-#define META_MOVECLIPREGION_ACTION (131)
-#define META_LINECOLOR_ACTION (132)
-#define META_FILLCOLOR_ACTION (133)
-#define META_TEXTCOLOR_ACTION (134)
-#define META_TEXTFILLCOLOR_ACTION (135)
-#define META_TEXTALIGN_ACTION (136)
-#define META_MAPMODE_ACTION (137)
-#define META_FONT_ACTION (138)
-#define META_PUSH_ACTION (139)
-#define META_POP_ACTION (140)
-#define META_RASTEROP_ACTION (141)
-#define META_TRANSPARENT_ACTION (142)
-#define META_EPS_ACTION (143)
-#define META_REFPOINT_ACTION (144)
-#define META_TEXTLINECOLOR_ACTION (145)
-#define META_TEXTLINE_ACTION (146)
-#define META_FLOATTRANSPARENT_ACTION (147)
-#define META_GRADIENTEX_ACTION (148)
-#define META_LAYOUTMODE_ACTION (149)
-#define META_TEXTLANGUAGE_ACTION (150)
-#define META_OVERLINECOLOR_ACTION (151)
+enum class MetaActionType
+{
+ NONE = 0,
+ PIXEL = 100,
+ POINT = 101,
+ LINE = 102,
+ RECT = 103,
+ ROUNDRECT = 104,
+ ELLIPSE = 105,
+ ARC = 106,
+ PIE = 107,
+ CHORD = 108,
+ POLYLINE = 109,
+ POLYGON = 110,
+ POLYPOLYGON = 111,
+ TEXT = 112,
+ TEXTARRAY = 113,
+ STRETCHTEXT = 114,
+ TEXTRECT = 115,
+ BMP = 116,
+ BMPSCALE = 117,
+ BMPSCALEPART = 118,
+ BMPEX = 119,
+ BMPEXSCALE = 120,
+ BMPEXSCALEPART = 121,
+ MASK = 122,
+ MASKSCALE = 123,
+ MASKSCALEPART = 124,
+ GRADIENT = 125,
+ HATCH = 126,
+ WALLPAPER = 127,
+ CLIPREGION = 128,
+ ISECTRECTCLIPREGION = 129,
+ ISECTREGIONCLIPREGION = 130,
+ MOVECLIPREGION = 131,
+ LINECOLOR = 132,
+ FILLCOLOR = 133,
+ TEXTCOLOR = 134,
+ TEXTFILLCOLOR = 135,
+ TEXTALIGN = 136,
+ MAPMODE = 137,
+ FONT = 138,
+ PUSH = 139,
+ POP = 140,
+ RASTEROP = 141,
+ TRANSPARENT = 142,
+ EPS = 143,
+ REFPOINT = 144,
+ TEXTLINECOLOR = 145,
+ TEXTLINE = 146,
+ FLOATTRANSPARENT = 147,
+ GRADIENTEX = 148,
+ LAYOUTMODE = 149,
+ TEXTLANGUAGE = 150,
+ OVERLINECOLOR = 151,
-#define META_COMMENT_ACTION (512)
+ COMMENT = 512,
+ LAST = COMMENT
+};
#endif // INCLUDED_VCL_METAACTIONTYPES_HXX