diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-03-30 20:01:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-31 13:23:03 +0200 |
commit | 0c536453950c21b066478daa93ba69d4ac83a5de (patch) | |
tree | acb2d0cd4454bbb16ce99495c560712017a379d9 /sw/source/core/inc/rootfrm.hxx | |
parent | 8d463bbf6ac7f76054924c1f35a71ffa4bdd4c96 (diff) |
tdf#84938 convert INV_ constants to scoped enum
Change-Id: I587d8ae6510aa5e464214c05a5da9e5e2e0b7228
Diffstat (limited to 'sw/source/core/inc/rootfrm.hxx')
-rw-r--r-- | sw/source/core/inc/rootfrm.hxx | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/sw/source/core/inc/rootfrm.hxx b/sw/source/core/inc/rootfrm.hxx index d30b8b160f81..1da4f8a93902 100644 --- a/sw/source/core/inc/rootfrm.hxx +++ b/sw/source/core/inc/rootfrm.hxx @@ -23,6 +23,8 @@ #include <viewsh.hxx> #include <doc.hxx> #include <IDocumentTimerAccess.hxx> +#include <o3tl/typed_flags_set.hxx> +#include <vector> class SwContentFrame; class SwViewShell; @@ -40,15 +42,21 @@ class SwSelectionList; struct SwPosition; struct SwCursorMoveState; -#define INV_SIZE 1 -#define INV_PRTAREA 2 -#define INV_POS 4 -#define INV_TABLE 8 -#define INV_SECTION 16 -#define INV_LINENUM 32 -#define INV_DIRECTION 64 +enum class SwInvalidateFlags +{ + Size = 0x01, + PrtArea = 0x02, + Pos = 0x04, + Table = 0x08, + Section = 0x10, + LineNum = 0x20, + Direction = 0x40, +}; -#include <vector> +namespace o3tl +{ + template<> struct typed_flags<SwInvalidateFlags> : is_typed_flags<SwInvalidateFlags, 0x7f> {}; +}; /// The root element of a Writer document layout. class SwRootFrame: public SwLayoutFrame @@ -254,7 +262,7 @@ public: static void AssertPageFlys( SwPageFrame * ); /// Invalidate all Content, Size or PrtArea - void InvalidateAllContent( sal_uInt8 nInvalidate ); + void InvalidateAllContent( SwInvalidateFlags nInvalidate ); /** * Invalidate/re-calculate the position of all floating |