summaryrefslogtreecommitdiff
path: root/sw/source/core/text/itratr.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-04-27 13:43:58 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:20 +0200
commit38a88d7ff92f64470dee94afa75b5e3293841c4d (patch)
treeb64aadc6eff2e3a008d34174a8bac2adcbaaf4e9 /sw/source/core/text/itratr.hxx
parent3e44c8eefc7cc5329ff55b6601d660ddd562783c (diff)
sw_redlinehide: add function to create merged paragraph data
Add the data to ParaPortion for now; there is one per SwTextFrame but there doesn't seem to be anything currently in the layout that exists once per SwTextNode. Change-Id: Id86f742f09e5036485690acbe6f831ba9f69c08c
Diffstat (limited to 'sw/source/core/text/itratr.hxx')
-rw-r--r--sw/source/core/text/itratr.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/text/itratr.hxx b/sw/source/core/text/itratr.hxx
index 68d3801dc495..fa35a26d7119 100644
--- a/sw/source/core/text/itratr.hxx
+++ b/sw/source/core/text/itratr.hxx
@@ -67,7 +67,7 @@ private:
protected:
void Chg( SwTextAttr const *pHt );
void Rst( SwTextAttr const *pHt );
- void CtorInitAttrIter( SwTextNode& rTextNode, SwScriptInfo& rScrInf, SwTextFrame const * pFrame = nullptr );
+ void CtorInitAttrIter(SwTextNode& rTextNode, SwScriptInfo& rScrInf, SwTextFrame * pFrame = nullptr);
explicit SwAttrIter(SwTextNode const * pTextNode)
: m_pViewShell(nullptr)
, m_pFont(nullptr)
@@ -86,7 +86,9 @@ protected:
}
public:
- // Constructor, destructor
+ /// All subclasses of this always have a SwTextFrame passed to the
+ /// constructor, but SwAttrIter itself may be created without a
+ /// SwTextFrame in certain special cases via this ctor here
SwAttrIter( SwTextNode& rTextNode, SwScriptInfo& rScrInf )
: m_pViewShell(nullptr), m_pFont(nullptr), m_pHints(nullptr), m_pScriptInfo(nullptr), m_pLastOut(nullptr), m_nChgCnt(0), m_pRedline(nullptr),m_nPropFont(0), m_pTextNode(&rTextNode)
{ CtorInitAttrIter( rTextNode, rScrInf ); }