[Libreoffice-commits] core.git: cui/source sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Feb 2 04:05:41 UTC 2019
cui/source/tabpages/bbdlg.cxx | 10 +++++-----
sw/source/uibase/docvw/HeaderFooterWin.cxx | 4 ++++
2 files changed, 9 insertions(+), 5 deletions(-)
New commits:
commit 5439b1e4d504c9afa71a707743d219222790d6ac
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Sun Nov 25 17:23:42 2018 -0900
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Sat Feb 2 05:05:06 2019 +0100
tdf#105225 New background tab page for header and footer Border
and Background dialog
Change-Id: I21979884b89a496ae36d5f1e48763680ae5da817
Reviewed-on: https://gerrit.libreoffice.org/64016
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj at gmail.com>
diff --git a/cui/source/tabpages/bbdlg.cxx b/cui/source/tabpages/bbdlg.cxx
index a17122b0f66b..c4f77b1e9aa5 100644
--- a/cui/source/tabpages/bbdlg.cxx
+++ b/cui/source/tabpages/bbdlg.cxx
@@ -46,7 +46,7 @@ SvxBorderBackgroundDlg::SvxBorderBackgroundDlg(weld::Window *pParent,
}
else
{
- AddTabPage("background", SvxBackgroundTabPage::Create, nullptr );
+ AddTabPage("background", SvxBkgTabPage::Create, nullptr );
}
}
@@ -54,11 +54,11 @@ void SvxBorderBackgroundDlg::PageCreated(const OString& rPageId, SfxTabPage& rTa
{
if (rPageId == "background")
{
+ SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
// allow switching between Color/graphic
- if(mbEnableBackgroundSelector)
- {
- static_cast< SvxBackgroundTabPage& >(rTabPage).ShowSelector();
- }
+ if (mbEnableBackgroundSelector)
+ aSet.Put(SfxUInt32Item(SID_FLAG_TYPE, static_cast<sal_uInt32>(SvxBackgroundTabFlags::SHOW_SELECTOR)));
+ rTabPage.PageCreated(aSet);
}
// inits for Area and Transparency TabPages
// The selection attribute lists (XPropertyList derivates, e.g. XColorList for
diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx
index dd658ad3920c..2d1fca27f4f3 100644
--- a/sw/source/uibase/docvw/HeaderFooterWin.cxx
+++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx
@@ -38,6 +38,7 @@
#include <drawinglayer/primitive2d/textlayoutdevice.hxx>
#include <drawinglayer/primitive2d/textprimitive2d.hxx>
#include <editeng/boxitem.hxx>
+#include <editeng/brushitem.hxx>
#include <svx/hdft.hxx>
#include <sfx2/dispatch.hxx>
#include <drawinglayer/processor2d/processorfromoutputdevice.hxx>
@@ -428,10 +429,13 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
*pPool,
svl::Items<
RES_BACKGROUND, RES_SHADOW,
+ XATTR_FILL_FIRST, XATTR_FILL_LAST,
SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER>{});
aSet.Put( pHFFormat->GetAttrSet() );
+ aSet.Put( pHFFormat->makeBackgroundBrushItem() );
+
// Create a box info item... needed by the dialog
SvxBoxInfoItem aBoxInfo( SID_ATTR_BORDER_INNER );
const SfxPoolItem *pBoxInfo;
More information about the Libreoffice-commits
mailing list