diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-28 14:14:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:40 +0200 |
commit | a9bfa6547ae2a4721363289f3816568e6a7e6a2d (patch) | |
tree | 36d8dc5b99de1c9416af793cf2ffa3e970438517 /include/toolkit/awt | |
parent | 5d96ccd0ab9d315aea85b4630f85feb29d2aa14a (diff) |
convert INITOUTDEV constants to scoped enum
Change-Id: Ic2443b557620bd269851d64f42107b304f6b4082
Diffstat (limited to 'include/toolkit/awt')
-rw-r--r-- | include/toolkit/awt/vclxgraphics.hxx | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/toolkit/awt/vclxgraphics.hxx b/include/toolkit/awt/vclxgraphics.hxx index 89a568fe6fa9..fdd3d406a52d 100644 --- a/include/toolkit/awt/vclxgraphics.hxx +++ b/include/toolkit/awt/vclxgraphics.hxx @@ -32,16 +32,23 @@ #include <tools/color.hxx> #include <vcl/vclenum.hxx> #include <vcl/vclptr.hxx> +#include <o3tl/typed_flags_set.hxx> class OutputDevice; namespace vcl { class Region; } -#define INITOUTDEV_FONT 0x0001 -#define INITOUTDEV_COLORS 0x0002 -#define INITOUTDEV_RASTEROP 0x0004 -#define INITOUTDEV_CLIPREGION 0x0008 - +enum class InitOutDevFlags +{ + FONT = 0x0001, + COLORS = 0x0002, + RASTEROP = 0x0004, + CLIPREGION = 0x0008, +}; +namespace o3tl +{ + template<> struct typed_flags<InitOutDevFlags> : is_typed_flags<InitOutDevFlags, 0x0f> {}; +} // class VCLXGraphics @@ -72,7 +79,7 @@ public: virtual ~VCLXGraphics(); void Init( OutputDevice* pOutDev ); - void InitOutputDevice( sal_uInt16 nFlags ); + void InitOutputDevice( InitOutDevFlags nFlags ); void SetOutputDevice( OutputDevice* pOutDev ); OutputDevice* GetOutputDevice() const { return mpOutputDevice; } |