summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 12:17:41 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:34:52 +0200
commitccfa9fa13db230cc66207bc42d528b773c4cf4f6 (patch)
treeec43614086a60bab2139f83e3b50260fff5216ce /include/sfx2
parentb2bae9b940fc34d2eecd7839e3cba1f41d111e87 (diff)
convert SFX_LOADED_ to scoped enum
Change-Id: I065a07e1bb5f5a7f85429c919830b6b9605206ea
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/objsh.hxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index b92656e7101c..40a18f435796 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -135,9 +135,17 @@ namespace o3tl
#define SFX_TITLE_HISTORY 7
#define SFX_TITLE_MAXLEN 10 // this gives the limits on length
-#define SFX_LOADED_MAINDOCUMENT 1
-#define SFX_LOADED_IMAGES 2
-#define SFX_LOADED_ALL 3
+enum class SfxLoadedFlags
+{
+ NONE = 0,
+ MAINDOCUMENT = 1,
+ IMAGES = 2,
+ ALL = MAINDOCUMENT | IMAGES
+};
+namespace o3tl
+{
+ template<> struct typed_flags<SfxLoadedFlags> : is_typed_flags<SfxLoadedFlags, 0x03> {};
+}
#define HIDDENINFORMATION_RECORDEDCHANGES 0x0001
#define HIDDENINFORMATION_NOTES 0x0002
@@ -438,7 +446,7 @@ public:
void AbortImport();
bool IsAbortingImport() const;
bool IsReloading() const;
- void FinishedLoading( sal_uInt16 nWhich = SFX_LOADED_ALL );
+ void FinishedLoading( SfxLoadedFlags nWhich = SfxLoadedFlags::ALL );
void TemplateDisconnectionAfterLoad();
bool IsLoading() const;
bool IsLoadingFinished() const;