diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-01 22:03:42 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-14 16:19:06 +0200 |
commit | 481e754414ce8dbd2de4ad23e43fccfc9a1d47ef (patch) | |
tree | f3c821dbb727c133974e26d9078984a41d7ea49b /sw/source/core/layout/pagechg.cxx | |
parent | sw_redlinehide: refactor SwFlowFrame::IsKeep() (diff) | |
download | core-481e754414ce8dbd2de4ad23e43fccfc9a1d47ef.tar.gz core-481e754414ce8dbd2de4ad23e43fccfc9a1d47ef.zip |
sw_redlinehide: trivial convert to GetPageDescItem()/GetBreakItem()
Change-Id: Ia652ff428c232b9307e41da8f6b9648f486f7179
Diffstat (limited to 'sw/source/core/layout/pagechg.cxx')
-rw-r--r-- | sw/source/core/layout/pagechg.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx index 11095f1dec62..036e3371e97c 100644 --- a/sw/source/core/layout/pagechg.cxx +++ b/sw/source/core/layout/pagechg.cxx @@ -770,7 +770,7 @@ SwPageDesc *SwPageFrame::FindPageDesc() SwFrame *pFlow = pFrame; if ( pFlow->IsInTab() ) pFlow = pFlow->FindTabFrame(); - pRet = const_cast<SwPageDesc*>(pFlow->GetAttrSet()->GetPageDesc().GetPageDesc()); + pRet = const_cast<SwPageDesc*>(pFlow->GetPageDescItem().GetPageDesc()); } if ( !pRet ) pRet = &GetFormat()->GetDoc()->GetPageDesc( 0 ); @@ -786,7 +786,7 @@ SwPageDesc *SwPageFrame::FindPageDesc() { SwFlowFrame *pTmp = SwFlowFrame::CastFlowFrame( pFlow ); if ( !pTmp->IsFollow() ) - pRet = const_cast<SwPageDesc*>(pFlow->GetAttrSet()->GetPageDesc().GetPageDesc()); + pRet = const_cast<SwPageDesc*>(pFlow->GetPageDescItem().GetPageDesc()); } //3. and 3.1 @@ -1288,7 +1288,8 @@ SwPageFrame *SwFrame::InsertPage( SwPageFrame *pPrevPage, bool bFootnote ) // For ContentFrame take the one from format if provided, // otherwise from the Follow of the PrevPage if ( IsFlowFrame() && !SwFlowFrame::CastFlowFrame( this )->IsFollow() ) - { SwFormatPageDesc &rDesc = const_cast<SwFormatPageDesc&>(GetAttrSet()->GetPageDesc()); + { + SwFormatPageDesc &rDesc = const_cast<SwFormatPageDesc&>(GetPageDescItem()); pDesc = rDesc.GetPageDesc(); if ( rDesc.GetNumOffset() ) { |