diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-08-24 14:18:11 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-08-26 12:04:43 +0000 |
commit | c73592e38a075242bc90c5cb2119f163defdad25 (patch) | |
tree | a96d3469146c19da045cf2c58134e4cc3b2243ad /svx/source/sidebar/text/TextUnderlinePopup.cxx | |
parent | 22f3ea65355de33a01406ccf9910e0c746433f40 (diff) |
tdf#101672 non-split underline button
Change-Id: Ib20dc0d0036f594adb83a50c2e3da66f565b2db8
Reviewed-on: https://gerrit.libreoffice.org/28356
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx/source/sidebar/text/TextUnderlinePopup.cxx')
-rw-r--r-- | svx/source/sidebar/text/TextUnderlinePopup.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/svx/source/sidebar/text/TextUnderlinePopup.cxx b/svx/source/sidebar/text/TextUnderlinePopup.cxx index 9e4b6389b14b..975861cf6dc8 100644 --- a/svx/source/sidebar/text/TextUnderlinePopup.cxx +++ b/svx/source/sidebar/text/TextUnderlinePopup.cxx @@ -28,13 +28,20 @@ SFX_IMPL_TOOLBOX_CONTROL(TextUnderlinePopup, SvxTextLineItem); TextUnderlinePopup::TextUnderlinePopup(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx) : SfxToolBoxControl(nSlotId, nId, rTbx) { - rTbx.SetItemBits(nId, ToolBoxItemBits::DROPDOWN | rTbx.GetItemBits(nId)); } TextUnderlinePopup::~TextUnderlinePopup() { } +void TextUnderlinePopup::initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) + throw ( css::uno::Exception, css::uno::RuntimeException, std::exception ) +{ + SfxToolBoxControl::initialize(aArguments); + if (GetToolBox().GetItemCommand(GetId()) == m_aCommandURL) + GetToolBox().SetItemBits(GetId(), ToolBoxItemBits::DROPDOWN | GetToolBox().GetItemBits(GetId())); +} + VclPtr<SfxPopupWindow> TextUnderlinePopup::CreatePopupWindow() { VclPtr<TextUnderlineControl> pControl = VclPtr<TextUnderlineControl>::Create(GetSlotId()); |