summaryrefslogtreecommitdiff
path: root/include/vcl/decoview.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-08 15:21:46 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-12 06:14:46 +0000
commit4c665178f49952138835fd318edef8978ac806e3 (patch)
treee9abf7d5c8beb4e4b2333daa44bbae8d4a9f4563 /include/vcl/decoview.hxx
parent3fd5f8919ec2256c70ff26c14cb9f8065c5cb2f1 (diff)
convert SYMBOL_DRAW constants to scoped enum
Change-Id: I1a2200782941b1c7b826fd9fb03193e009cce697 Reviewed-on: https://gerrit.libreoffice.org/15676 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/decoview.hxx')
-rw-r--r--include/vcl/decoview.hxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/vcl/decoview.hxx b/include/vcl/decoview.hxx
index 2de96a5941dd..ef549966d8f1 100644
--- a/include/vcl/decoview.hxx
+++ b/include/vcl/decoview.hxx
@@ -23,6 +23,7 @@
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
#include <rsc/rsc-vcl-shared-types.hxx>
+#include <o3tl/typed_flags_set.hxx>
class Rectangle;
class Point;
@@ -30,8 +31,16 @@ class Color;
class OutputDevice;
// Flags for DrawSymbol()
-#define SYMBOL_DRAW_MONO ((sal_uInt16)0x0001)
-#define SYMBOL_DRAW_DISABLE ((sal_uInt16)0x0002)
+enum class DrawSymbolFlags
+{
+ NONE = 0x0000,
+ Mono = 0x0001,
+ Disable = 0x0002,
+};
+namespace o3tl
+{
+ template<> struct typed_flags<DrawSymbolFlags> : is_typed_flags<DrawSymbolFlags, 0x03> {};
+}
// Flags for DrawFrame()
#define FRAME_DRAW_IN ((sal_uInt16)0x0001)
@@ -77,7 +86,7 @@ public:
DecorationView(OutputDevice* pOutDev);
void DrawSymbol( const Rectangle& rRect, SymbolType eType,
- const Color& rColor, sal_uInt16 nStyle = 0 );
+ const Color& rColor, DrawSymbolFlags nStyle = DrawSymbolFlags::NONE );
void DrawFrame( const Rectangle& rRect,
const Color& rLeftTopColor,
const Color& rRightBottomColor );