summaryrefslogtreecommitdiff
path: root/cui/source/inc/cfgutil.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-27 14:29:36 +0200
committerNoel Grandin <noel@peralex.com>2015-07-28 08:35:35 +0200
commitbf84823f89f382852764b0e828d7f53178c14384 (patch)
tree57d4c899336dc0ff1ff01d478090d204401a8881 /cui/source/inc/cfgutil.hxx
parent7d6d18e74a406a462de6fffac05a9d5f722cc2cd (diff)
convert SFX_CFG* constants to scoped enum
Change-Id: I7b4769d0616b5685792630bcb82fd0d944505a24
Diffstat (limited to 'cui/source/inc/cfgutil.hxx')
-rw-r--r--cui/source/inc/cfgutil.hxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index 93d151d136a3..a84277fec76b 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -74,22 +74,25 @@ struct SfxStylesInfo_Impl
static OUString generateCommand(const OUString& sFamily, const OUString& sStyle);
};
-#define SFX_CFGGROUP_FUNCTION 1
-#define SFX_CFGFUNCTION_SLOT 2
-#define SFX_CFGGROUP_SCRIPTCONTAINER 3
-#define SFX_CFGFUNCTION_SCRIPT 4
-#define SFX_CFGGROUP_STYLES 5
+enum class SfxCfgKind
+{
+ GROUP_FUNCTION = 1,
+ FUNCTION_SLOT = 2,
+ GROUP_SCRIPTCONTAINER = 3,
+ FUNCTION_SCRIPT = 4,
+ GROUP_STYLES = 5,
+};
struct SfxGroupInfo_Impl
{
- sal_uInt16 nKind;
+ SfxCfgKind nKind;
sal_uInt16 nUniqueID;
void* pObject;
- bool bWasOpened;
+ bool bWasOpened;
OUString sCommand;
OUString sLabel;
- SfxGroupInfo_Impl( sal_uInt16 n, sal_uInt16 nr, void* pObj = 0 ) :
+ SfxGroupInfo_Impl( SfxCfgKind n, sal_uInt16 nr, void* pObj = 0 ) :
nKind( n ), nUniqueID( nr ), pObject( pObj ), bWasOpened(false) {}
};