Skip to content

Commit

Permalink
tdf#105225 New background tab page for Search for formatting dialog
Browse files Browse the repository at this point in the history
Change-Id: I3642ea9e474c06943ea8bfb88e4209749db1fd83
Reviewed-on: https://gerrit.libreoffice.org/66578
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
  • Loading branch information
raykowj authored and mikekaganski committed Jan 18, 2019
1 parent 58aa6a5 commit 7eedbd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cui/source/dialogs/srchxtra.cxx
Expand Up @@ -44,7 +44,7 @@ SvxSearchFormatDialog::SvxSearchFormatDialog(weld::Window* pParent, const SfxIte
AddTabPage("labelTP_PARA_ALIGN", SvxParaAlignTabPage::Create, nullptr);
AddTabPage("labelTP_PARA_EXT", SvxExtParagraphTabPage::Create, nullptr);
AddTabPage("labelTP_PARA_ASIAN", SvxAsianTabPage::Create, nullptr );
AddTabPage("background", SvxBackgroundTabPage::Create, nullptr);
AddTabPage("background", SvxBkgTabPage::Create, nullptr);

// remove asian tabpages if necessary
SvtCJKOptions aCJKOptions;
Expand Down
4 changes: 4 additions & 0 deletions svx/source/dialog/srchdlg.cxx
Expand Up @@ -73,6 +73,8 @@
#include <cstdlib>
#include <memory>

#include <svx/xdef.hxx>

using namespace com::sun::star::i18n;
using namespace com::sun::star::uno;
using namespace com::sun::star::accessibility;
Expand Down Expand Up @@ -2007,6 +2009,8 @@ IMPL_LINK_NOARG(SvxSearchDialog, FormatHdl_Impl, Button*, void)
sal_uInt16 nBrushWhich = pSh->GetPool().GetWhich(SID_ATTR_BRUSH);
aSet.MergeRange(nBrushWhich, nBrushWhich);

aSet.MergeRange(XATTR_FILL_FIRST, XATTR_FILL_LAST);

OUString aTxt;

aSet.InvalidateAllItems();
Expand Down

0 comments on commit 7eedbd6

Please sign in to comment.