diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-04-20 21:01:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-04-21 08:35:50 +0200 |
commit | f2bbe8bbd543b931352cd4a7626ee2196f6f917d (patch) | |
tree | 8f0412816335ab3a95607bdf248d523d86d2517f /sw/source/core/inc/frame.hxx | |
parent | 97351cfe6adcb87ef9076e69312a7208029d6d1a (diff) |
Introduce SwFrameInvFlags to replace magic numbers in SwFrame::SwClientNotify()
SwFrame::UpdateAttrFrame() is not yet updated to produce these.
Change-Id: Ibe822139858cbb39a9ecc14e9631dde8ba369871
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114350
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 5a797f20feac..02efa581ba7f 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -288,6 +288,21 @@ public: void transform(const basegfx::B2DHomMatrix& aTransform); }; +enum class SwFrameInvFlags : sal_uInt8 +{ + NONE = 0x00, + InvalidatePrt = 0x01, + InvalidateSize = 0x02, + InvalidatePos = 0x04, + SetCompletePaint = 0x08, + NextInvalidatePos = 0x10, + NextSetCompletePaint = 0x20, +}; + +namespace o3tl { + template<> struct typed_flags<SwFrameInvFlags> : is_typed_flags<SwFrameInvFlags, 0x003f> {}; +} + /** * Base class of the Writer layout elements. * @@ -385,7 +400,7 @@ class SW_DLLPUBLIC SwFrame : public SwFrameAreaDefinition, public SwClient, publ */ SwContentFrame* FindPrevCnt_(); - void UpdateAttrFrame( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 & ); + void UpdateAttrFrame( const SfxPoolItem*, const SfxPoolItem*, SwFrameInvFlags & ); SwFrame* GetIndNext_(); void SetDirFlags( bool bVert ); |