From 4c665178f49952138835fd318edef8978ac806e3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 May 2015 15:21:46 +0200 Subject: convert SYMBOL_DRAW constants to scoped enum Change-Id: I1a2200782941b1c7b826fd9fb03193e009cce697 Reviewed-on: https://gerrit.libreoffice.org/15676 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/vcl/decoview.hxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'include/vcl/decoview.hxx') 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 #include #include +#include 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 : is_typed_flags {}; +} // 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 ); -- cgit