summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-21 14:38:41 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:41 +0200
commit38143e4599e4ec759a11ea96a4b852bb00a42ab6 (patch)
treeca7259145e28586440c3c49ade6672b9337b4210 /include
parent8d3eefd3b2b6dad051247fbd4a8097bb154617e1 (diff)
convert TREEBOX_ALLITEM constants to scoped enum
Change-Id: I46f792fce6ff09f2b00144f401ee396101d8460d
Diffstat (limited to 'include')
-rw-r--r--include/svtools/treelistbox.hxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx
index b687c2c99090..f06c3c6b6e67 100644
--- a/include/svtools/treelistbox.hxx
+++ b/include/svtools/treelistbox.hxx
@@ -113,8 +113,12 @@ 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
+enum class SvTreeAccRoleType
+{
+ NONE = 0x00,
+ LIST = 0x01,
+ TREE = 0x02
+};
typedef sal_Int64 ExtendedWinBits;
@@ -245,7 +249,7 @@ class SVT_DLLPUBLIC SvTreeListBox
short nEntryHeightOffs;
short nIndent;
short nFocusWidth;
- short nAllItemAccRoleType;
+ SvTreeAccRoleType nAllItemAccRoleType;
sal_uInt16 nFirstSelTab;
sal_uInt16 nLastSelTab;
long mnCheckboxItemWidth;
@@ -532,8 +536,8 @@ public:
void EnableCellFocus();
// For overwriting accessible role for all entries - normally 0, so each entry can be different
- void SetAllEntriesAccessibleRoleType( short n ) { nAllItemAccRoleType = n; }
- short GetAllEntriesAccessibleRoleType() const { return nAllItemAccRoleType; }
+ void SetAllEntriesAccessibleRoleType( SvTreeAccRoleType n ) { nAllItemAccRoleType = n; }
+ SvTreeAccRoleType GetAllEntriesAccessibleRoleType() const { return nAllItemAccRoleType; }
SvTreeFlags GetTreeFlags() const {return nTreeFlags;}