diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-20 15:50:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-22 10:28:41 +0200 |
commit | 8d3eefd3b2b6dad051247fbd4a8097bb154617e1 (patch) | |
tree | d3f5b29d0006197893da0b8b94ab455a230c9bfb /include/svtools/treelistbox.hxx | |
parent | 923de833be3131c36cd2b5952f3311f810aac01b (diff) |
convert TREEFLAG_ constants to scoped enum
Change-Id: Ibf9eab757fbe94dbff3fd09472f3ca74fffd5094
Diffstat (limited to 'include/svtools/treelistbox.hxx')
-rw-r--r-- | include/svtools/treelistbox.hxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index be7b8b71c2dc..b687c2c99090 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -100,10 +100,18 @@ namespace o3tl #define SV_ENTRYHEIGHTOFFS_PIXEL 2 -#define TREEFLAG_CHKBTN 0x0001 -#define TREEFLAG_USESEL 0x0002 -#define TREEFLAG_MANINS 0x0004 -#define TREEFLAG_RECALCTABS 0x0008 +enum class SvTreeFlags +{ + CHKBTN = 0x01, + USESEL = 0x02, + MANINS = 0x04, + RECALCTABS = 0x08, + FIXEDHEIGHT = 0x10, +}; +namespace o3tl +{ + template<> struct typed_flags<SvTreeFlags> : is_typed_flags<SvTreeFlags, 0x1f> {}; +} #define TREEBOX_ALLITEM_ACCROLE_TYPE_LIST 0x01 #define TREEBOX_ALLITEM_ACCROLE_TYPE_TREE 0x02 @@ -261,7 +269,7 @@ protected: SvTreeListEntry* pTargetEntry; SvLBoxButtonData* pCheckButtonData; std::vector<SvLBoxTab*> aTabs; - sal_uInt16 nTreeFlags; + SvTreeFlags nTreeFlags; sal_uInt16 nImpFlags; // Move/CopySelection: Position of the current Entry in SelectionList sal_uInt16 nCurEntrySelPos; @@ -527,7 +535,7 @@ public: void SetAllEntriesAccessibleRoleType( short n ) { nAllItemAccRoleType = n; } short GetAllEntriesAccessibleRoleType() const { return nAllItemAccRoleType; } - sal_uInt16 GetTreeFlags() const {return nTreeFlags;} + SvTreeFlags GetTreeFlags() const {return nTreeFlags;} OUString headString; OUString SearchEntryTextWithHeadTitle(SvTreeListEntry* pEntry); |