diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 16:15:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-09 08:41:12 +0200 |
commit | 502a7662555bfa66ab6be84b7d2d11b049ed7a4e (patch) | |
tree | 1eca2e4c51ee25624a9fe93ead88b75326acbf86 /include | |
parent | 68b35c75588f5702a142c8232d5e805bfe276c72 (diff) |
convert SFX_LOAD constants to scoped enum
Change-Id: If0a2eeeabbb0bea48d2f2f86dc04266812c0ecd2
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/new.hxx | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/include/sfx2/new.hxx b/include/sfx2/new.hxx index aa53d4ce4ae7..48b6dab5cc38 100644 --- a/include/sfx2/new.hxx +++ b/include/sfx2/new.hxx @@ -27,6 +27,7 @@ #include <vcl/edit.hxx> #include <vcl/fixed.hxx> #include <sfx2/basedlgs.hxx> +#include <o3tl/typed_flags_set.hxx> @@ -38,11 +39,19 @@ class SfxObjectShell; #define SFXWB_PREVIEW 0x0003 #define SFXWB_LOAD_TEMPLATE 0x0004 -#define SFX_LOAD_TEXT_STYLES 0x0001 -#define SFX_LOAD_FRAME_STYLES 0x0002 -#define SFX_LOAD_PAGE_STYLES 0x0004 -#define SFX_LOAD_NUM_STYLES 0x0008 -#define SFX_MERGE_STYLES 0x0010 +enum class SfxTemplateFlags +{ + NONE = 0x00, + LOAD_TEXT_STYLES = 0x01, + LOAD_FRAME_STYLES = 0x02, + LOAD_PAGE_STYLES = 0x04, + LOAD_NUM_STYLES = 0x08, + MERGE_STYLES = 0x10, +}; +namespace o3tl +{ + template<> struct typed_flags<SfxTemplateFlags> : is_typed_flags<SfxTemplateFlags, 0x1f> {}; +} #define RET_TEMPLATE_LOAD 100 @@ -65,8 +74,8 @@ public: OUString GetTemplateFileName() const; // load template methods - sal_uInt16 GetTemplateFlags()const; - void SetTemplateFlags(sal_uInt16 nSet); + SfxTemplateFlags GetTemplateFlags() const; + void SetTemplateFlags(SfxTemplateFlags nSet); }; #endif |