summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/text/TextUnderlinePopup.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sidebar/text/TextUnderlinePopup.cxx')
-rw-r--r--svx/source/sidebar/text/TextUnderlinePopup.cxx9
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());