summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfld.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/docfld.cxx')
-rw-r--r--sw/source/core/doc/docfld.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 21acbc441d70..e0c6b2bc86df 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -198,14 +198,14 @@ void _SetGetExpField::GetPosOfContent( SwPosition& rPos ) const
}
}
-void _SetGetExpField::SetBodyPos( const SwContentFrm& rFrm )
+void _SetGetExpField::SetBodyPos( const SwContentFrame& rFrame )
{
- if( !rFrm.IsInDocBody() )
+ if( !rFrame.IsInDocBody() )
{
- SwNodeIndex aIdx( *rFrm.GetNode() );
+ SwNodeIndex aIdx( *rFrame.GetNode() );
SwDoc& rDoc = *aIdx.GetNodes().GetDoc();
SwPosition aPos( aIdx );
- bool const bResult = ::GetBodyTextNode( rDoc, aPos, rFrm );
+ bool const bResult = ::GetBodyTextNode( rDoc, aPos, rFrame );
OSL_ENSURE(bResult, "Where is the field?");
(void) bResult; // unused in non-debug
nNode = aPos.nNode.GetIndex();
@@ -1006,12 +1006,12 @@ void SwDocUpdateField::GetBodyNode( const SwTextField& rTField, sal_uInt16 nFiel
// always the first! (in tab headline, header-/footer)
Point aPt;
- const SwContentFrm* pFrm = rTextNd.getLayoutFrm( rDoc.getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false );
+ const SwContentFrame* pFrame = rTextNd.getLayoutFrame( rDoc.getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false );
_SetGetExpField* pNew = nullptr;
bool bIsInBody = false;
- if( !pFrm || pFrm->IsInDocBody() )
+ if( !pFrame || pFrame->IsInDocBody() )
{
// create index to determine the TextNode
SwNodeIndex aIdx( rTextNd );
@@ -1021,14 +1021,14 @@ void SwDocUpdateField::GetBodyNode( const SwTextField& rTField, sal_uInt16 nFiel
// in frames whose anchor is in redline. However, we do want to update
// fields in hidden sections. So: In order to be updated, a field 1)
// must have a frame, or 2) it must be in the document body.
- if( (pFrm != nullptr) || bIsInBody )
+ if( (pFrame != nullptr) || bIsInBody )
pNew = new _SetGetExpField( aIdx, &rTField );
}
else
{
// create index to determine the TextNode
SwPosition aPos( rDoc.GetNodes().GetEndOfPostIts() );
- bool const bResult = GetBodyTextNode( rDoc, aPos, *pFrm );
+ bool const bResult = GetBodyTextNode( rDoc, aPos, *pFrame );
OSL_ENSURE(bResult, "where is the Field");
(void) bResult; // unused in non-debug
pNew = new _SetGetExpField( aPos.nNode, &rTField, &aPos.nContent );
@@ -1071,11 +1071,11 @@ void SwDocUpdateField::GetBodyNode( const SwSectionNode& rSectNd )
// always the first! (in tab headline, header-/footer)
Point aPt;
- const SwContentFrm* pFrm = pCNd->getLayoutFrm( rDoc.getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false );
- if( !pFrm )
+ const SwContentFrame* pFrame = pCNd->getLayoutFrame( rDoc.getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false );
+ if( !pFrame )
break;
- bool const bResult = GetBodyTextNode( rDoc, aPos, *pFrm );
+ bool const bResult = GetBodyTextNode( rDoc, aPos, *pFrame );
OSL_ENSURE(bResult, "where is the Field");
(void) bResult; // unused in non-debug
pNew = new _SetGetExpField( rSectNd, &aPos );