diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-22 11:57:15 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-01 08:44:45 +0100 |
commit | 1af5ca57dc89fffd460a3168a937036b589c3cd7 (patch) | |
tree | 3d65fc6b89e3afe18933641ac718ce2af654a090 /sw | |
parent | fd04c73a3897c1a0c450a09b911a14c2128c16b3 (diff) |
sw_redlinehide_4a: some page break calls in SwFEShell/PageBreakWin
... should use layout.
Change-Id: Iabb29bb49558ef1c805ede3300042b815f62136a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fedesc.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/frmedt/fews.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/docvw/PageBreakWin.cxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/frmedt/fedesc.cxx b/sw/source/core/frmedt/fedesc.cxx index 89c0af0b475b..f386ffece16f 100644 --- a/sw/source/core/frmedt/fedesc.cxx +++ b/sw/source/core/frmedt/fedesc.cxx @@ -102,7 +102,8 @@ void SwFEShell::ChgCurPageDesc( const SwPageDesc& rDesc ) SwPaM aPaM( pFlow->IsTextFrame() ? *static_cast<SwTextFrame const*>(pFlow)->GetTextNodeFirst() // first, for PAGEDESC : *static_cast<const SwNoTextFrame*>(pFlow)->GetNode() ); - GetDoc()->getIDocumentContentOperations().InsertPoolItem( aPaM, aNew ); + GetDoc()->getIDocumentContentOperations().InsertPoolItem( + aPaM, aNew, SetAttrMode::DEFAULT, GetLayout()); } EndAllActionAndCall(); } diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx index 30797fb24997..29cb93402a7b 100644 --- a/sw/source/core/frmedt/fews.cxx +++ b/sw/source/core/frmedt/fews.cxx @@ -351,7 +351,8 @@ static void lcl_SetAPageOffset( sal_uInt16 nOffset, SwPageFrame* pPage, SwFEShel pThis->GetDoc()->SetAttr( aDesc, *pFrame->FindTabFrame()->GetFormat() ); else { - pThis->GetDoc()->getIDocumentContentOperations().InsertPoolItem( *pThis->GetCursor(), aDesc ); + pThis->GetDoc()->getIDocumentContentOperations().InsertPoolItem( + *pThis->GetCursor(), aDesc, SetAttrMode::DEFAULT, pThis->GetLayout()); } pThis->EndAllAction(); diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx index 87f2b1fb442f..f0b7048f19cf 100644 --- a/sw/source/uibase/docvw/PageBreakWin.cxx +++ b/sw/source/uibase/docvw/PageBreakWin.cxx @@ -292,7 +292,8 @@ void SwPageBreakWin::Select() aSet.Put( SwFormatPageDesc( nullptr ) ); 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 ); } |