summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-21 15:00:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 07:40:55 +0100
commit9decbd5998dc93549ef9f0268e86f53634071600 (patch)
tree14cf38afae9323ad2205b0e3eb7fcf2ccc4fa5ef /sw/inc
parent507dc611bd561c854f228b92ec70348b8e8ddd06 (diff)
convert SwTableAutoFormat::UpdateFlags to scoped enum
and remove unused UPDATE_ALL Change-Id: Ib8f21dcddec66947fff8e9cda63f10711da02883 Reviewed-on: https://gerrit.libreoffice.org/63748 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/tblafmt.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/inc/tblafmt.hxx b/sw/inc/tblafmt.hxx
index 4f6275f92f1e..b2e6bded8be3 100644
--- a/sw/inc/tblafmt.hxx
+++ b/sw/inc/tblafmt.hxx
@@ -189,6 +189,11 @@ public:
void SaveVersionNo( SvStream& rStream, sal_uInt16 fileVersion ) const;
};
+enum class SwTableAutoFormatUpdateFlags { Char = 1, Box = 2 };
+namespace o3tl {
+ template<> struct typed_flags<SwTableAutoFormatUpdateFlags> : is_typed_flags<SwTableAutoFormatUpdateFlags, 0x03> {};
+};
+
/*
@remarks
A table has a number of lines. These lines seem to correspond with rows, except in the case of
@@ -283,10 +288,9 @@ public:
void SetName( const OUString& rNew ) { m_aName = rNew; nStrResId = USHRT_MAX; }
const OUString& GetName() const { return m_aName; }
- enum UpdateFlags { UPDATE_CHAR = 1, UPDATE_BOX = 2, UPDATE_ALL = 3 };
void UpdateFromSet( sal_uInt8 nPos, const SfxItemSet& rSet,
- UpdateFlags eFlags, SvNumberFormatter const * );
- void UpdateToSet( sal_uInt8 nPos, SfxItemSet& rSet, UpdateFlags eFlags,
+ SwTableAutoFormatUpdateFlags eFlags, SvNumberFormatter const * );
+ void UpdateToSet( sal_uInt8 nPos, SfxItemSet& rSet, SwTableAutoFormatUpdateFlags eFlags,
SvNumberFormatter* ) const ;
void RestoreTableProperties(SwTable &table) const;