diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-07-24 14:10:13 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-17 15:42:58 +0200 |
commit | acf11542658a06866d43bf0e07d92f1dcae6448b (patch) | |
tree | 87787d01104392565a6310bc94347a9f086ab69b | |
parent | e150d269a33d466b4129da84f345c87eb0ea62e5 (diff) |
sw: rename SwNode MakeFrame overloads
Change-Id: Ida4f6d55801292c509e577056140d9ff7608de9b
-rw-r--r-- | sw/inc/node.hxx | 10 | ||||
-rw-r--r-- | sw/source/core/doc/tblrwcl.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 10 | ||||
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 18 | ||||
-rw-r--r-- | sw/source/core/docnode/node.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/docnode/nodes.cxx | 14 | ||||
-rw-r--r-- | sw/source/core/docnode/section.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/undo/untbl.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/html/htmltab.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/writerhelper.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/xml/xmltbli.cxx | 2 |
12 files changed, 39 insertions, 39 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 1030cdbe90f0..dbe60802da1a 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -409,7 +409,7 @@ public: /** Method creates all views of document for given node. The content frames that are created are put in the respective layout. */ - void MakeFrames( SwContentNode& rNode ); + void MakeFramesForAdjacentContentNode(SwContentNode& rNode); /** Method deletes all views of document for the node. The content- frames are removed from the respective layout. @@ -504,7 +504,7 @@ public: SwTabFrame *MakeFrame( SwFrame* ); /// Creates the frms for the table node (i.e. the TabFrames). - void MakeFrames( SwNodeIndex* pIdxBehind ); + void MakeOwnFrames(SwNodeIndex* pIdxBehind); /** Method deletes all views of document for the node. The content frames are removed from the respective layout. */ @@ -512,7 +512,7 @@ public: /** Method creates all views of the document for the previous node. The content frames that are created are put into the respective layout. */ - void MakeFrames( const SwNodeIndex & rIdx ); + void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx); SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const; void SetNewTable( std::unique_ptr<SwTable> , bool bNewFrames=true ); @@ -552,7 +552,7 @@ public: On default the frames are created until the end of the range. When another NodeIndex pEnd is passed a MakeFrames is called up to it. Used by TableToText. */ - void MakeFrames( SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr ); + void MakeOwnFrames(SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr); /** Method deletes all views of document for the node. The content frames are removed from the respective layout. */ @@ -560,7 +560,7 @@ public: /** Method creates all views of document for the previous node. The content frames created are put into the respective layout. */ - void MakeFrames( const SwNodeIndex & rIdx ); + void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx); SwSectionNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const; diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index 384ae1e3adbe..e5e5f5ef49db 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -2183,7 +2183,7 @@ bool SwTable::MakeCopy( SwDoc* pInsDoc, const SwPosition& rPos, // Clean up pNewTable->GCLines(); - pTableNd->MakeFrames( &aIdx ); // re-generate the Frames + pTableNd->MakeOwnFrames( &aIdx ); // re-generate the Frames CHECKTABLELAYOUT diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index c64f7a0ab410..8bfdfb0827c9 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -879,7 +879,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, pTNd->SetAttr( rSet ); } // Do not forget to create the Frame! - pCpyTNd->MakeFrames( *pTNd ); + pCpyTNd->MakeFramesForAdjacentContentNode(*pTNd); } else new SwTextNode( aInsPos, GetDoc()->GetDfltTextFormatColl() ); @@ -950,7 +950,7 @@ SwSectionNode* SwNodes::InsertTextSection(SwNodeIndex const& rNdIdx, delete pNode2Layout; } else - pSectNd->MakeFrames( &aInsPos ); + pSectNd->MakeOwnFrames(&aInsPos); } return pSectNd; @@ -1021,7 +1021,7 @@ SwFrame *SwSectionNode::MakeFrame( SwFrame *pSib ) // Creates all Document Views for the preceding Node. // The created ContentFrames are attached to the corresponding Layout -void SwSectionNode::MakeFrames(const SwNodeIndex & rIdx ) +void SwSectionNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx) { // Take my succsessive or preceding ContentFrame SwNodes& rNds = GetNodes(); @@ -1039,7 +1039,7 @@ void SwSectionNode::MakeFrames(const SwNodeIndex & rIdx ) return; } pCNd = aIdx.GetNode().GetContentNode(); - pCNd->MakeFrames( static_cast<SwContentNode&>(rIdx.GetNode()) ); + pCNd->MakeFramesForAdjacentContentNode(static_cast<SwContentNode&>(rIdx.GetNode())); } else { @@ -1131,7 +1131,7 @@ void SwSectionNode::MakeFrames(const SwNodeIndex & rIdx ) // Create a new SectionFrame for every occurrence in the Layout and insert before // the corresponding ContentFrame -void SwSectionNode::MakeFrames( SwNodeIndex* pIdxBehind, SwNodeIndex* pEndIdx ) +void SwSectionNode::MakeOwnFrames(SwNodeIndex* pIdxBehind, SwNodeIndex* pEndIdx) { OSL_ENSURE( pIdxBehind, "no Index" ); SwNodes& rNds = GetNodes(); diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index d3adcae03146..a13ff90ba20a 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -539,7 +539,7 @@ const SwTable* SwDoc::InsertTable( const SwInsertTableOptions& rInsTableOpts, } // Insert Frames GetNodes().GoNext( &aNdIdx ); // Go to the next ContentNode - pTableNd->MakeFrames( &aNdIdx ); + pTableNd->MakeOwnFrames( &aNdIdx ); // To-Do - add 'SwExtraRedlineTable' also ? if( getIDocumentRedlineAccess().IsRedlineOn() || (!getIDocumentRedlineAccess().IsIgnoreRedline() && !getIDocumentRedlineAccess().GetRedlineTable().empty() )) @@ -1649,18 +1649,18 @@ bool SwNodes::TableToText( const SwNodeRange& rRange, sal_Unicode cCh, if( nullptr != ( pCNd = aDelRg.aStart.GetNode().GetContentNode())) { if( pFrameNd->IsContentNode() ) - static_cast<SwContentNode*>(pFrameNd)->MakeFrames( *pCNd ); + static_cast<SwContentNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(*pCNd); else if( pFrameNd->IsTableNode() ) - static_cast<SwTableNode*>(pFrameNd)->MakeFrames( aDelRg.aStart ); + static_cast<SwTableNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(aDelRg.aStart); else if( pFrameNd->IsSectionNode() ) - static_cast<SwSectionNode*>(pFrameNd)->MakeFrames( aDelRg.aStart ); + static_cast<SwSectionNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(aDelRg.aStart); pFrameNd = pCNd; } else if( nullptr != ( pSNd = aDelRg.aStart.GetNode().GetSectionNode())) { if( !pSNd->GetSection().IsHidden() && !pSNd->IsContentHidden() ) { - pSNd->MakeFrames( &aFrameIdx, &aDelRg.aEnd ); + pSNd->MakeOwnFrames(&aFrameIdx, &aDelRg.aEnd); break; } aDelRg.aStart = *pSNd->EndOfSectionNode(); @@ -2359,7 +2359,7 @@ SwTabFrame *SwTableNode::MakeFrame( SwFrame* pSib ) * Creates all Views from the Document for the preceding Node. The resulting ContentFrames * are added to the corresponding Layout. */ -void SwTableNode::MakeFrames(const SwNodeIndex & rIdx ) +void SwTableNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx) { if( !GetTable().GetFrameFormat()->HasWriterListeners()) // Do we actually have Frame? return; @@ -2389,7 +2389,7 @@ void SwTableNode::MakeFrames(const SwNodeIndex & rIdx ) /** * Create a TableFrame for every Shell and insert before the corresponding ContentFrame. */ -void SwTableNode::MakeFrames( SwNodeIndex* pIdxBehind ) +void SwTableNode::MakeOwnFrames(SwNodeIndex* pIdxBehind) { OSL_ENSURE( pIdxBehind, "No Index" ); *pIdxBehind = *this; @@ -2472,7 +2472,7 @@ void SwTableNode::SetNewTable( std::unique_ptr<SwTable> pNewTable, bool bNewFram { SwNodeIndex aIdx( *EndOfSectionNode()); GetNodes().GoNext( &aIdx ); - MakeFrames( &aIdx ); + MakeOwnFrames(&aIdx); } } @@ -3204,7 +3204,7 @@ bool SwDoc::SplitTable( const SwPosition& rPos, SplitTable_HeadlineOption eHdlnM // And insert Frames SwNodeIndex aNdIdx( *pNew->EndOfSectionNode() ); GetNodes().GoNext( &aNdIdx ); // To the next ContentNode - pNew->MakeFrames( &aNdIdx ); + pNew->MakeOwnFrames( &aNdIdx ); // Insert a paragraph between the Table GetNodes().MakeTextNode( SwNodeIndex( *pNew ), diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index 069e9bc9f9e3..5fbc8cdd0aab 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -1273,7 +1273,7 @@ bool SwContentNode::GoPrevious(SwIndex * pIdx, sal_uInt16 nMode ) const * Creates all Views for the Doc for this Node. * The created ContentFrames are attached to the corresponding Layout. */ -void SwContentNode::MakeFrames( SwContentNode& rNode ) +void SwContentNode::MakeFramesForAdjacentContentNode(SwContentNode& rNode) { OSL_ENSURE( &rNode != this, "No ContentNode or CopyNode and new Node identical." ); diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 55ad45d2b361..0c81d837b4f9 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -374,11 +374,11 @@ void SwNodes::ChgNode( SwNodeIndex const & rDelPos, sal_uLong nSz, if( pCNd ) { if( pFrameNd->IsTableNode() ) - static_cast<SwTableNode*>(pFrameNd)->MakeFrames( aIdx ); + static_cast<SwTableNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(aIdx); else if( pFrameNd->IsSectionNode() ) - static_cast<SwSectionNode*>(pFrameNd)->MakeFrames( aIdx ); + static_cast<SwSectionNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(aIdx); else - static_cast<SwContentNode*>(pFrameNd)->MakeFrames( *pCNd ); + static_cast<SwContentNode*>(pFrameNd)->MakeFramesForAdjacentContentNode(*pCNd); pFrameNd = pCNd; } ++aIdx; @@ -592,7 +592,7 @@ bool SwNodes::MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, if( bNewFrames ) { SwNodeIndex aTmp( aIdx ); - pTableNd->MakeFrames( &aTmp ); + pTableNd->MakeOwnFrames(&aTmp); } aIdx -= nInsPos; nInsPos = 0; @@ -771,7 +771,7 @@ bool SwNodes::MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, if( pSectNd && !--nSectNdCnt ) { SwNodeIndex aTmp( *pSectNd ); - pSectNd->MakeFrames( &aTmp ); + pSectNd->MakeOwnFrames(&aTmp); bNewFrames = bSaveNewFrames; } aSttNdStack.erase( aSttNdStack.begin() + nLevel ); // remove from stack @@ -1796,7 +1796,7 @@ void SwNodes::CopyNodes( const SwNodeRange& rRange, if( bNewFrames && pTableNd ) { nStt = aInsPos; - pTableNd->MakeFrames( &nStt ); + pTableNd->MakeOwnFrames(&nStt); } } break; @@ -1822,7 +1822,7 @@ void SwNodes::CopyNodes( const SwNodeRange& rRange, if( bNewFrames && pSectNd && !pSectNd->GetSection().IsHidden() ) - pSectNd->MakeFrames( &nStt ); + pSectNd->MakeOwnFrames(&nStt); } break; diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 5c6170ad5869..f7504558e1f8 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -726,7 +726,7 @@ void SwSectionFormat::MakeFrames() nullptr != (pSectNd = pIdx->GetNode().GetSectionNode() )) { SwNodeIndex aIdx( *pIdx ); - pSectNd->MakeFrames( &aIdx ); + pSectNd->MakeOwnFrames( &aIdx ); } } diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index df9b9ddddca9..3dc3c3c8aabe 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -141,7 +141,7 @@ SwTextNode *SwNodes::MakeTextNode( const SwNodeIndex & rWhere, switch (pNd->GetNodeType()) { case SwNodeType::Table: - static_cast<SwTableNode*>(pNd)->MakeFrames( aIdx ); + static_cast<SwTableNode*>(pNd)->MakeFramesForAdjacentContentNode(aIdx); return pNode; case SwNodeType::Section: @@ -155,13 +155,13 @@ SwTextNode *SwNodes::MakeTextNode( const SwNodeIndex & rWhere, aTmp = *pNd; break; } - static_cast<SwSectionNode*>(pNd)->MakeFrames( aIdx ); + static_cast<SwSectionNode*>(pNd)->MakeFramesForAdjacentContentNode(aIdx); return pNode; case SwNodeType::Text: case SwNodeType::Grf: case SwNodeType::Ole: - static_cast<SwContentNode*>(pNd)->MakeFrames( *pNode ); + static_cast<SwContentNode*>(pNd)->MakeFramesForAdjacentContentNode(*pNode); return pNode; case SwNodeType::End: @@ -518,7 +518,7 @@ SwContentNode *SwTextNode::SplitContentNode( const SwPosition &rPos ) { MoveTextAttr_To_AttrSet(); } - pNode->MakeFrames( *this ); + pNode->MakeFramesForAdjacentContentNode(*this); lcl_ChangeFootnoteRef( *this ); } else @@ -577,7 +577,7 @@ SwContentNode *SwTextNode::SplitContentNode( const SwPosition &rPos ) if ( HasWriterListeners() ) { - MakeFrames( *pNode ); + MakeFramesForAdjacentContentNode(*pNode); } lcl_ChangeFootnoteRef( *pNode ); } @@ -2726,7 +2726,7 @@ SwContentNode* SwTextNode::AppendNode( const SwPosition & rPos ) } if( HasWriterListeners() ) - MakeFrames( *pNew ); + MakeFramesForAdjacentContentNode(*pNew); return pNew; } diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx index fd0031746ea4..52bfb8697878 100644 --- a/sw/source/core/undo/untbl.cxx +++ b/sw/source/core/undo/untbl.cxx @@ -3048,7 +3048,7 @@ void SwUndoMergeTable::UndoImpl(::sw::UndoRedoContext & rContext) // create frames for the new table SwNodeIndex aTmpIdx( *pNew ); - pNew->MakeFrames( &aTmpIdx ); + pNew->MakeOwnFrames(&aTmpIdx); // position cursor somewhere in content SwContentNode* pCNd = pDoc->GetNodes().GoNext( &rIdx ); diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index 66833ff3a72a..cea48ce2645c 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -4736,7 +4736,7 @@ void TableSaveStruct::MakeTable( sal_uInt16 nWidth, SwPosition& rPos, SwDoc *pDo SwNodeIndex aIdx( *pTableNd->EndOfSectionNode(), 1 ); OSL_ENSURE( aIdx.GetIndex() <= pTCntxt->GetPos()->nNode.GetIndex(), "unexpected node for table layout" ); - pTableNd->MakeFrames( &aIdx ); + pTableNd->MakeOwnFrames(&aIdx); } } diff --git a/sw/source/filter/ww8/writerhelper.cxx b/sw/source/filter/ww8/writerhelper.cxx index dcf3d289d311..3530448518bb 100644 --- a/sw/source/filter/ww8/writerhelper.cxx +++ b/sw/source/filter/ww8/writerhelper.cxx @@ -879,7 +879,7 @@ namespace sw { SwNodeIndex *pIndex = aTable.second; pTable->DelFrames(); - pTable->MakeFrames(pIndex); + pTable->MakeOwnFrames(pIndex); } } } diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx index e0d1aabbc463..92c53688a6cd 100644 --- a/sw/source/filter/xml/xmltbli.cxx +++ b/sw/source/filter/xml/xmltbli.cxx @@ -2784,7 +2784,7 @@ void SwXMLTableContext::MakeTable() { m_pTableNode->DelFrames(); SwNodeIndex aIdx( *m_pTableNode->EndOfSectionNode(), 1 ); - m_pTableNode->MakeFrames( &aIdx ); + m_pTableNode->MakeOwnFrames(&aIdx); } } |