diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-09 12:40:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-10 09:48:06 +0200 |
commit | 84482f5193ff0738563b6e91f66fc95fbc145de3 (patch) | |
tree | fb760bc19693a05d3e1cabf32800c83096149cb0 /include/sfx2/dispatch.hxx | |
parent | 33d390640185e33ea432a4979efa6214c7dafd85 (diff) |
convert SfxSlotFilterState to scoped enum
Change-Id: I424a1c71429078f8f83f8f0138c6e12567628ef8
Diffstat (limited to 'include/sfx2/dispatch.hxx')
-rw-r--r-- | include/sfx2/dispatch.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index dc9c5a79ef0b..9307b5e3bd96 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -67,12 +67,12 @@ namespace o3tl template<> struct typed_flags<SfxDispatcherPopFlags> : is_typed_flags<SfxDispatcherPopFlags, 0x07> {}; } -enum SfxSlotFilterState +enum class SfxSlotFilterState { - SFX_SLOT_FILTER_DISABLED, - SFX_SLOT_FILTER_ENABLED, + DISABLED, + ENABLED, // enabled even if ReadOnlyDoc - SFX_SLOT_FILTER_ENABLED_READONLY, + ENABLED_READONLY, }; @@ -168,7 +168,7 @@ public: void Flush(); void Lock( bool bLock ); bool IsLocked( sal_uInt16 nSID = 0 ) const; - void SetSlotFilter( SfxSlotFilterState nEnable = SFX_SLOT_FILTER_DISABLED, + void SetSlotFilter( SfxSlotFilterState nEnable = SfxSlotFilterState::DISABLED, sal_uInt16 nCount = 0, const sal_uInt16 *pSIDs = 0 ); void HideUI( bool bHide = true ); |