summaryrefslogtreecommitdiff
path: root/include/sfx2/msg.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-04-30 19:50:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-02 08:18:14 +0200
commita12dfa353122d1865b7c20513865a4632a621a38 (patch)
treed37bb405e7f7783050a26b8fd98b39746cb3e278 /include/sfx2/msg.hxx
parent5eaad8eb1d46b6f85605c5ac210e8b1397b18b22 (diff)
create SfxGroupId based on o3tl::strong_int
Change-Id: Iaccf16f29b6f4b1a2c712d1e5e2bd0fa4fdb5e71 Reviewed-on: https://gerrit.libreoffice.org/37108 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/msg.hxx')
-rw-r--r--include/sfx2/msg.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index 5d864ade4694..f3c60afb52b0 100644
--- a/include/sfx2/msg.hxx
+++ b/include/sfx2/msg.hxx
@@ -24,6 +24,7 @@
#include <rtl/ustring.hxx>
#include <sfx2/dllapi.h>
#include <o3tl/typed_flags_set.hxx>
+#include <sfx2/groupid.hxx>
#include <functional>
class SfxItemPool;
@@ -183,7 +184,7 @@ class SfxSlot
{
public:
sal_uInt16 nSlotId; // Unique slot-ID in Shell
- sal_uInt16 nGroupId; // for configuration region
+ SfxGroupId nGroupId; // for configuration region
SfxSlotMode nFlags; // arithmetic ordered Flags
sal_uInt16 nMasterSlotId; // Enum-Slot for example Which-Id
@@ -209,7 +210,7 @@ public:
sal_uInt16 GetSlotId() const;
SfxSlotMode GetMode() const;
bool IsMode( SfxSlotMode nMode ) const;
- sal_uInt16 GetGroupId() const;
+ SfxGroupId GetGroupId() const;
sal_uInt16 GetWhich( const SfxItemPool &rPool ) const;
const SfxType* GetType() const { return pType; }
const char* GetUnoName() const { return pUnoName; }
@@ -252,7 +253,7 @@ inline bool SfxSlot::IsMode( SfxSlotMode nMode ) const
// returns the id of the associated group
-inline sal_uInt16 SfxSlot::GetGroupId() const
+inline SfxGroupId SfxSlot::GetGroupId() const
{
return nGroupId;