summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 14:28:43 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:34:53 +0200
commit5651f2d9f64c213b4106e2d5a433f4c525d41bbf (patch)
tree2b82422a0d7299fac8261f57527dad3ee3d99883 /include
parentccfa9fa13db230cc66207bc42d528b773c4cf4f6 (diff)
convert HIDDENINFORMATION_ constants into scoped enum
Change-Id: I94136c926fc8fa69ce2ce2b97fa34dc984dbe095
Diffstat (limited to 'include')
-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 40a18f435796..3da1ad309888 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -147,9 +147,17 @@ namespace o3tl
template<> struct typed_flags<SfxLoadedFlags> : is_typed_flags<SfxLoadedFlags, 0x03> {};
}
-#define HIDDENINFORMATION_RECORDEDCHANGES 0x0001
-#define HIDDENINFORMATION_NOTES 0x0002
-#define HIDDENINFORMATION_DOCUMENTVERSIONS 0x0004
+enum class HiddenInformation
+{
+ NONE = 0x0000,
+ RECORDEDCHANGES = 0x0001,
+ NOTES = 0x0002,
+ DOCUMENTVERSIONS = 0x0004
+};
+namespace o3tl
+{
+ template<> struct typed_flags<HiddenInformation> : is_typed_flags<HiddenInformation, 0x07> {};
+}
enum HiddenWarningFact
{
@@ -419,7 +427,7 @@ public:
virtual bool PrepareClose(bool bUI = true);
virtual bool IsInformationLost();
- virtual sal_uInt16 GetHiddenInformationState( sal_uInt16 nStates );
+ virtual HiddenInformation GetHiddenInformationState( HiddenInformation nStates );
sal_Int16 QueryHiddenInformation( HiddenWarningFact eFact, vcl::Window* pParent );
bool IsSecurityOptOpenReadOnly() const;
void SetSecurityOptOpenReadOnly( bool bOpenReadOnly = true );