summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/colrowst.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 15:56:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-12 08:44:50 +0200
commit20eed8b73d683a649d33d7d77e23b6f0c97d7e78 (patch)
tree4e4a28fc4d74142562ce8514e5103c33ea997f96 /sc/source/filter/inc/colrowst.hxx
parent6b1d5c9fdbdaa277eac66245cc4d76c53742c5a7 (diff)
convert EXC_COLROW constants to typed_flags_set
Change-Id: I08f06aa24228c0967ba1af139ac5b710537a2de5
Diffstat (limited to 'sc/source/filter/inc/colrowst.hxx')
-rw-r--r--sc/source/filter/inc/colrowst.hxx23
1 files changed, 18 insertions, 5 deletions
diff --git a/sc/source/filter/inc/colrowst.hxx b/sc/source/filter/inc/colrowst.hxx
index af8bf385dcec..d9838fb141c3 100644
--- a/sc/source/filter/inc/colrowst.hxx
+++ b/sc/source/filter/inc/colrowst.hxx
@@ -22,6 +22,19 @@
#include "xiroot.hxx"
#include <mdds/flat_segment_tree.hpp>
+#include <o3tl/typed_flags_set.hxx>
+
+enum class ExcColRowFlags : sal_uInt8 {
+ NONE = 0x00,
+ Used = 0x01,
+ Default = 0x02,
+ Hidden = 0x04,
+ Man = 0x08,
+};
+namespace o3tl {
+ template<> struct typed_flags<ExcColRowFlags> : is_typed_flags<ExcColRowFlags, 0x0f> {};
+}
+
class XclImpColRowSettings : protected XclImpRoot
{
@@ -46,13 +59,13 @@ public:
void ConvertHiddenFlags( SCTAB nScTab );
private:
- void ApplyColFlag(SCCOL nCol, sal_uInt8 nNewVal);
- bool GetColFlag(SCCOL nCol, sal_uInt8 nMask) const;
+ void ApplyColFlag(SCCOL nCol, ExcColRowFlags nNewVal);
+ bool GetColFlag(SCCOL nCol, ExcColRowFlags nMask) const;
private:
- typedef ::mdds::flat_segment_tree<SCROW, sal_uInt16> WidthHeightStoreType;
- typedef ::mdds::flat_segment_tree<SCROW, sal_uInt8> ColRowFlagsType;
- typedef ::mdds::flat_segment_tree<SCROW, bool> RowHiddenType;
+ typedef ::mdds::flat_segment_tree<SCROW, sal_uInt16> WidthHeightStoreType;
+ typedef ::mdds::flat_segment_tree<SCROW, ExcColRowFlags> ColRowFlagsType;
+ typedef ::mdds::flat_segment_tree<SCROW, bool> RowHiddenType;
WidthHeightStoreType maColWidths;
ColRowFlagsType maColFlags;