From e9c7d259e8ed3144d4226aef7c3de351e4706b79 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Mar 2017 20:09:21 +0200 Subject: create SfxDisableFlags enum Change-Id: Ib59c7886017247977b916a8e140853fb8310582f Reviewed-on: https://gerrit.libreoffice.org/35514 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/shell.hxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/sfx2/shell.hxx') 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 : is_typed_flags {}; } +/* 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 : is_typed_flags {}; +} + 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 ); -- cgit