summaryrefslogtreecommitdiff
path: root/include/sfx2/shell.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-03-21 20:09:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-22 06:46:10 +0000
commite9c7d259e8ed3144d4226aef7c3de351e4706b79 (patch)
tree155034670744a756c45d122652092871281c82bf /include/sfx2/shell.hxx
parentbdf41d8aeb53a298780f3633a76d71598a695bab (diff)
create SfxDisableFlags enum
Change-Id: Ib59c7886017247977b916a8e140853fb8310582f Reviewed-on: https://gerrit.libreoffice.org/35514 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/shell.hxx')
-rw-r--r--include/sfx2/shell.hxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx
index 9d10117f26cb..d6df8ab36717 100644
--- a/include/sfx2/shell.hxx
+++ b/include/sfx2/shell.hxx
@@ -123,6 +123,16 @@ namespace o3tl
template<> struct typed_flags<SfxShellFeature> : is_typed_flags<SfxShellFeature, 0x3ffd> {};
}
+/* Flags that are being used in the slot definitions for the disable-features */
+enum class SfxDisableFlags {
+ NONE,
+ SwOnProtectedCursor = 0x0001,
+ SwOnMailboxEditor = 0x0002,
+};
+namespace o3tl {
+ template<> struct typed_flags<SfxDisableFlags> : is_typed_flags<SfxDisableFlags, 0x0003> {};
+}
+
typedef void (*SfxExecFunc)(SfxShell *, SfxRequest &rReq);
typedef void (*SfxStateFunc)(SfxShell *, SfxItemSet &rSet);
@@ -453,8 +463,8 @@ public:
void SetHelpId(sal_uIntPtr nId);
sal_uIntPtr GetHelpId() const;
virtual SfxObjectShell* GetObjectShell();
- void SetDisableFlags( sal_uIntPtr nFlags );
- sal_uIntPtr GetDisableFlags() const;
+ void SetDisableFlags( SfxDisableFlags nFlags );
+ SfxDisableFlags GetDisableFlags() const;
virtual SfxItemSet* CreateItemSet( sal_uInt16 nId );
virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet );