Kaydet (Commit) af9d3f9b authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Thorsten Behrens

sw_redlinehide_4a: some page break calls in SwFEShell/PageBreakWin

... should use layout.

Change-Id: Iabb29bb49558ef1c805ede3300042b815f62136a
(cherry picked from commit 1af5ca57)
üst c7fcf48e
...@@ -102,7 +102,8 @@ void SwFEShell::ChgCurPageDesc( const SwPageDesc& rDesc ) ...@@ -102,7 +102,8 @@ void SwFEShell::ChgCurPageDesc( const SwPageDesc& rDesc )
SwPaM aPaM( pFlow->IsTextFrame() SwPaM aPaM( pFlow->IsTextFrame()
? *static_cast<SwTextFrame const*>(pFlow)->GetTextNodeFirst() // first, for PAGEDESC ? *static_cast<SwTextFrame const*>(pFlow)->GetTextNodeFirst() // first, for PAGEDESC
: *static_cast<const SwNoTextFrame*>(pFlow)->GetNode() ); : *static_cast<const SwNoTextFrame*>(pFlow)->GetNode() );
GetDoc()->getIDocumentContentOperations().InsertPoolItem( aPaM, aNew ); GetDoc()->getIDocumentContentOperations().InsertPoolItem(
aPaM, aNew, SetAttrMode::DEFAULT, GetLayout());
} }
EndAllActionAndCall(); EndAllActionAndCall();
} }
......
...@@ -351,7 +351,8 @@ static void lcl_SetAPageOffset( sal_uInt16 nOffset, SwPageFrame* pPage, SwFEShel ...@@ -351,7 +351,8 @@ static void lcl_SetAPageOffset( sal_uInt16 nOffset, SwPageFrame* pPage, SwFEShel
pThis->GetDoc()->SetAttr( aDesc, *pFrame->FindTabFrame()->GetFormat() ); pThis->GetDoc()->SetAttr( aDesc, *pFrame->FindTabFrame()->GetFormat() );
else else
{ {
pThis->GetDoc()->getIDocumentContentOperations().InsertPoolItem( *pThis->GetCursor(), aDesc ); pThis->GetDoc()->getIDocumentContentOperations().InsertPoolItem(
*pThis->GetCursor(), aDesc, SetAttrMode::DEFAULT, pThis->GetLayout());
} }
pThis->EndAllAction(); pThis->EndAllAction();
......
...@@ -292,7 +292,8 @@ void SwPageBreakWin::Select() ...@@ -292,7 +292,8 @@ void SwPageBreakWin::Select()
aSet.Put( SwFormatPageDesc( nullptr ) ); aSet.Put( SwFormatPageDesc( nullptr ) );
SwPaM aPaM( *pNd ); SwPaM aPaM( *pNd );
pNd->GetDoc()->getIDocumentContentOperations().InsertItemSet( aPaM, aSet ); pNd->GetDoc()->getIDocumentContentOperations().InsertItemSet(
aPaM, aSet, SetAttrMode::DEFAULT, GetPageFrame()->getRootFrame());
pNd->GetDoc()->GetIDocumentUndoRedo( ).EndUndo( SwUndoId::UI_DELETE_PAGE_BREAK, nullptr ); pNd->GetDoc()->GetIDocumentUndoRedo( ).EndUndo( SwUndoId::UI_DELETE_PAGE_BREAK, nullptr );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment