diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-11 15:56:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-12 08:44:50 +0200 |
commit | 20eed8b73d683a649d33d7d77e23b6f0c97d7e78 (patch) | |
tree | 4e4a28fc4d74142562ce8514e5103c33ea997f96 /sc/source/filter/inc | |
parent | convert constants to scoped enum (diff) | |
download | core-20eed8b73d683a649d33d7d77e23b6f0c97d7e78.tar.gz core-20eed8b73d683a649d33d7d77e23b6f0c97d7e78.zip |
convert EXC_COLROW constants to typed_flags_set
Change-Id: I08f06aa24228c0967ba1af139ac5b710537a2de5
Diffstat (limited to 'sc/source/filter/inc')
-rw-r--r-- | sc/source/filter/inc/colrowst.hxx | 23 |
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; |