diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-17 12:41:45 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:20 +0200 |
commit | c9c668d76dc0ea00e11f86917b1ae69dadbbe224 (patch) | |
tree | eb3d86235e70344a075d7c769a7ec84ce9525c21 /sw/inc/node.hxx | |
parent | 54a5b9144b29951fd57def1e356418f46d9b03c5 (diff) |
sw_redlinehide: add merge state flag to SwNode
Since checking redlines for every node is probably inefficient, the
SwNode should cache if it's merged by delete redlines and hence if a
layout that hides redlines should create frames for it.
Change-Id: I846d94a95efe9c32f44e1ac17bf2cd5600ebf8b7
Diffstat (limited to 'sw/inc/node.hxx')
-rw-r--r-- | sw/inc/node.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 1862bdf64d64..1a8a4dc69c82 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -88,6 +88,17 @@ class SW_DLLPUBLIC SwNode sal_uInt8 m_nAFormatNumLvl : 3; bool m_bIgnoreDontExpand : 1; ///< for Text Attributes - ignore the flag +public: + /// sw_redlinehide: redline node merge state + enum class Merge { None, First, NonFirst, Hidden }; + bool IsCreateFrameWhenHidingRedlines() { + return m_eMerge == Merge::None || m_eMerge == Merge::First; + } + void SetRedlineMergeFlag(Merge const eMerge) { m_eMerge = eMerge; } + Merge GetRedlineMergeFlag() const { return m_eMerge; } +private: + Merge m_eMerge; + #ifdef DBG_UTIL static long s_nSerial; long m_nSerial; |