diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-05-31 15:03:03 -0800 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-02 00:51:02 +0200 |
commit | 94cb2ac3cb5f2c951f70c3bf6b28aad9e2c0bdb7 (patch) | |
tree | 2f3ed6f19ed94b690cf23750ed6b79b8398d0ca4 /sw/source/ui | |
parent | 6fbcb4f1ad6bbcaac1fade0abf6bbe8215c1f4ab (diff) |
tdf#105225 A section background tab page based on the area tab page
Change-Id: Ibe758cab371bc53207bd2ca617d123b7d660a774
Reviewed-on: https://gerrit.libreoffice.org/55149
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 025f9b90ecde..6e1b83666fea 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -64,6 +64,8 @@ #include <svx/flagsdef.hxx> #include <memory> +#include <svx/unobrushitemhelper.hxx> + using namespace ::com::sun::star; namespace { @@ -1062,6 +1064,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OptionsHdl, Button*, void) RES_BACKGROUND, RES_BACKGROUND, RES_COL, RES_COL, RES_FTN_AT_TXTEND, RES_FRAMEDIR, + XATTR_FILL_FIRST, XATTR_FILL_LAST, SID_ATTR_PAGE_SIZE, SID_ATTR_PAGE_SIZE>{}); aSet.Put( pSectRepr->GetCol() ); @@ -1072,6 +1075,8 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OptionsHdl, Button*, void) aSet.Put( pSectRepr->GetFrameDir() ); aSet.Put( pSectRepr->GetLRSpace() ); + setSvxBrushItemAsFillAttributesToTargetSet(pSectRepr->GetBackground(), aSet); + const SwSectionFormats& rDocFormats = rSh.GetDoc()->GetSections(); SwSectionFormats aOrigArray(rDocFormats); @@ -1417,7 +1422,7 @@ SwInsertSectionTabDialog::SwInsertSectionTabDialog( OSL_ENSURE(pFact, "Dialog creation failed!"); m_nSectionPageId = AddTabPage("section", SwInsertSectionTabPage::Create, nullptr); m_nColumnPageId = AddTabPage("columns", SwColumnPage::Create, nullptr); - m_nBackPageId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), nullptr); + m_nBackPageId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BKG ), nullptr); m_nNotePageId = AddTabPage("notes", SwSectionFootnoteEndTabPage::Create, nullptr); m_nIndentPage = AddTabPage("indents", SwSectionIndentTabPage::Create, nullptr); @@ -2099,7 +2104,7 @@ SwSectionPropertyTabDialog::SwSectionPropertyTabDialog( SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); OSL_ENSURE(pFact, "Dialog creation failed!"); m_nColumnPageId = AddTabPage("columns", SwColumnPage::Create, nullptr); - m_nBackPageId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ), nullptr ); + m_nBackPageId = AddTabPage("background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BKG ), nullptr ); m_nNotePageId = AddTabPage("notes", SwSectionFootnoteEndTabPage::Create, nullptr); m_nIndentPage = AddTabPage("indents", SwSectionIndentTabPage::Create, nullptr); |