diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 09:59:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 10:11:19 +0200 |
commit | ed3a4fcc878e8f3ce720520d60448bc962da0754 (patch) | |
tree | 107d2e30caf6b88fb80fb6589bed1e50ae282771 /sw/inc/SwGetPoolIdFromName.hxx | |
parent | 5549160d97392d649bc3f7a490c161e77c1fd94a (diff) |
convert GET_POOLID constants to scoped enum
Change-Id: Ifc54789d12d0b024ed28f13ec78b5c10afa902de
Diffstat (limited to 'sw/inc/SwGetPoolIdFromName.hxx')
-rw-r--r-- | sw/inc/SwGetPoolIdFromName.hxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/sw/inc/SwGetPoolIdFromName.hxx b/sw/inc/SwGetPoolIdFromName.hxx index 57e28028c384..820d864bd2ee 100644 --- a/sw/inc/SwGetPoolIdFromName.hxx +++ b/sw/inc/SwGetPoolIdFromName.hxx @@ -22,18 +22,15 @@ /* When using the NameMapper to translate pool ids to UI or programmatic * names, this enum is used to define which family is required */ -typedef sal_uInt16 SwGetPoolIdFromName; - -namespace nsSwGetPoolIdFromName -{ - const SwGetPoolIdFromName GET_POOLID_TXTCOLL = 0x01; - const SwGetPoolIdFromName GET_POOLID_CHRFMT = 0x02; - const SwGetPoolIdFromName GET_POOLID_FRMFMT = 0x04; - const SwGetPoolIdFromName GET_POOLID_PAGEDESC = 0x08; - const SwGetPoolIdFromName GET_POOLID_NUMRULE = 0x10; - const SwGetPoolIdFromName GET_POOLID_TABSTYLE = 0x20; - const SwGetPoolIdFromName GET_POOLID_CELLSTYLE= 0x40; -} +enum class SwGetPoolIdFromName : sal_uInt16 { + TxtColl = 0x01, + ChrFmt = 0x02, + FrmFmt = 0x04, + PageDesc = 0x08, + NumRule = 0x10, + TabStyle = 0x20, + CellStyle= 0x40 +}; #endif |