diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-01 10:01:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-02 13:57:14 +0200 |
commit | c1c195afab72794a1f0d5ed63c2e3fe6f65bfa84 (patch) | |
tree | e64b047be56d1079ba1976456c5df70bb957b157 /sw/source/filter/ww8/wrtw8nds.cxx | |
parent | d11f2e00593300dc68bcd11e23ad05116465adba (diff) |
introduce SwPosition::GetNode
as part of the process of hiding the internals of SwPosition
largely done by doing:
git grep -lF 'nNode.GetNode' | xargs perl -pi -e
's/nNode\.GetNode/GetNode/g'
Change-Id: Id1937df1bd5a54677c2c1bbfb2d693a4e22a7b98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137671
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/wrtw8nds.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index cd48428cadb0..6f260a25c1c6 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1692,7 +1692,7 @@ SvxFrameDirection MSWordExportBase::TrueFrameDirection( const SwFrameFormat &rFl if ((RndStdIds::FLY_AT_PAGE != pAnchor->GetAnchorId()) && pAnchor->GetContentAnchor() ) { - pFlyFormat = pAnchor->GetContentAnchor()->nNode.GetNode().GetFlyFormat(); + pFlyFormat = pAnchor->GetContentAnchor()->GetNode().GetFlyFormat(); } else pFlyFormat = nullptr; @@ -1746,7 +1746,7 @@ std::shared_ptr<SvxBrushItem> WW8Export::TrueFrameBgBrush(const SwFrameFormat &r pAnchor->GetContentAnchor()) { pFlyFormat = - pAnchor->GetContentAnchor()->nNode.GetNode().GetFlyFormat(); + pAnchor->GetContentAnchor()->GetNode().GetFlyFormat(); } else pFlyFormat = nullptr; @@ -1854,9 +1854,9 @@ static SwTextFormatColl& lcl_getFormatCollection( MSWordExportBase& rExport, con // Looking for deletions, which ends in current pTextNode if( RedlineType::Delete == pRedl->GetRedlineData().GetType() && pEnd->nNode == *pTextNode && pStt->nNode != *pTextNode && - pStt->nNode.GetNode().IsTextNode() ) + pStt->GetNode().IsTextNode() ) { - pTextNode = pStt->nNode.GetNode().GetTextNode(); + pTextNode = pStt->GetNode().GetTextNode(); nMax = nPos; nPos = 0; } @@ -3452,7 +3452,7 @@ void WW8AttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFormat, const P if ( !m_rWW8Export.IsInTable() && rFormat.IsInline() ) { //Test to see if this textbox contains only a single graphic/ole - SwTextNode* pParTextNode = rAnch.GetContentAnchor()->nNode.GetNode().GetTextNode(); + SwTextNode* pParTextNode = rAnch.GetContentAnchor()->GetNode().GetTextNode(); if ( pParTextNode && !m_rWW8Export.m_rDoc.GetNodes()[ nStt ]->IsNoTextNode() ) bDone = true; } @@ -3465,7 +3465,7 @@ void WW8AttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFormat, const P if ( m_rWW8Export.m_pParentFrame ) { /* Munge flys in fly into absolutely positioned elements for word 6 */ - const SwTextNode* pParTextNode = rAnch.GetContentAnchor()->nNode.GetNode().GetTextNode(); + const SwTextNode* pParTextNode = rAnch.GetContentAnchor()->GetNode().GetTextNode(); const SwRect aPageRect = pParTextNode->FindPageFrameRect(); aOffset = rFrameFormat.FindLayoutRect().Pos(); |