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 | |
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>
-rw-r--r-- | icon-themes/breeze/links.txt | 2 | ||||
-rw-r--r-- | icon-themes/galaxy/links.txt | 2 | ||||
-rw-r--r-- | icon-themes/hicontrast/links.txt | 2 | ||||
-rw-r--r-- | icon-themes/sifr/links.txt | 3 | ||||
-rw-r--r-- | icon-themes/tango/links.txt | 2 | ||||
-rw-r--r-- | include/svx/TextUnderlinePopup.hxx | 4 | ||||
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu | 11 | ||||
-rw-r--r-- | sc/uiconfig/scalc/toolbar/singlemode.xml | 2 | ||||
-rw-r--r-- | svx/source/sidebar/text/TextUnderlinePopup.cxx | 9 | ||||
-rw-r--r-- | sw/uiconfig/swriter/toolbar/singlemode.xml | 2 |
10 files changed, 36 insertions, 3 deletions
diff --git a/icon-themes/breeze/links.txt b/icon-themes/breeze/links.txt index e91a80e82d23..b97f2e223f44 100644 --- a/icon-themes/breeze/links.txt +++ b/icon-themes/breeze/links.txt @@ -828,6 +828,8 @@ cmd/sc_dsbrowserexplorer.png cmd/sc_showfmexplorer.png cmd/lc_savesimple.png cmd/lc_save.png cmd/sc_savesimple.png cmd/sc_save.png +cmd/lc_underlinesimple.png cmd/lc_underline.png +cmd/sc_underlinesimple.png cmd/sc_underline.png # Slide command aliases cmd/lc_insertslide.png cmd/lc_insertpage.png diff --git a/icon-themes/galaxy/links.txt b/icon-themes/galaxy/links.txt index 3cb75cc2bbbb..0c66dda38504 100644 --- a/icon-themes/galaxy/links.txt +++ b/icon-themes/galaxy/links.txt @@ -1,5 +1,7 @@ cmd/lc_savesimple.png cmd/lc_save.png cmd/sc_savesimple.png cmd/sc_save.png +cmd/lc_underlinesimple.png cmd/lc_underline.png +cmd/sc_underlinesimple.png cmd/sc_underline.png cmd/lc_datastreamsplay.png avmedia/res/avl02049.png cmd/sc_datastreamsplay.png avmedia/res/av02049.png cmd/lc_datastreamsstop.png avmedia/res/avl02051.png diff --git a/icon-themes/hicontrast/links.txt b/icon-themes/hicontrast/links.txt index fc96ed65d055..df0ec87ceb50 100644 --- a/icon-themes/hicontrast/links.txt +++ b/icon-themes/hicontrast/links.txt @@ -1,5 +1,7 @@ cmd/lc_savesimple.png cmd/lc_save.png cmd/sc_savesimple.png cmd/sc_save.png +cmd/lc_underlinesimple.png cmd/lc_underline.png +cmd/sc_underlinesimple.png cmd/sc_underline.png cmd/lc_anchormenu.png cmd/lc_toggleanchortype.png cmd/sc_anchormenu.png cmd/sc_toggleanchortype.png diff --git a/icon-themes/sifr/links.txt b/icon-themes/sifr/links.txt index bdf0d87fa363..2424d04052f9 100644 --- a/icon-themes/sifr/links.txt +++ b/icon-themes/sifr/links.txt @@ -162,6 +162,9 @@ cmd/sc_insertcolumnsafter.png cmd/sc_insertcolumns.png cmd/lc_savesimple.png cmd/lc_save.png cmd/sc_savesimple.png cmd/sc_save.png +cmd/lc_underlinesimple.png cmd/lc_underline.png +cmd/sc_underlinesimple.png cmd/sc_underline.png + # anchor menu cmd/lc_anchormenu.png cmd/lc_toggleanchortype.png cmd/sc_anchormenu.png cmd/sc_toggleanchortype.png diff --git a/icon-themes/tango/links.txt b/icon-themes/tango/links.txt index 3ecaa7198fc2..5e7ed99de6dc 100644 --- a/icon-themes/tango/links.txt +++ b/icon-themes/tango/links.txt @@ -1,5 +1,7 @@ cmd/lc_savesimple.png cmd/lc_save.png cmd/sc_savesimple.png cmd/sc_save.png +cmd/lc_underlinesimple.png cmd/lc_underline.png +cmd/sc_underlinesimple.png cmd/sc_underline.png cmd/sc_showsinglepage.png cmd/sc_adddirect.png res/sx03129.png dbaccess/res/db.png cmd/sc_refresh.png cmd/sc_reload.png diff --git a/include/svx/TextUnderlinePopup.hxx b/include/svx/TextUnderlinePopup.hxx index 99d0eba31d47..c627391c3492 100644 --- a/include/svx/TextUnderlinePopup.hxx +++ b/include/svx/TextUnderlinePopup.hxx @@ -36,6 +36,10 @@ public: TextUnderlinePopup(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx); virtual ~TextUnderlinePopup(); + // XInitialization + virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) + throw ( css::uno::Exception, css::uno::RuntimeException, std::exception ) override; + virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override; }; diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 9f476a516cf4..bcee0d680db3 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -1523,6 +1523,17 @@ <value>9</value> </prop> </node> + <node oor:name=".uno:UnderlineSimple" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Underline</value> + </prop> + <prop oor:name="Properties" oor:type="xs:int"> + <value>9</value> + </prop> + <prop oor:name="TargetURL" oor:type="xs:string"> + <value>.uno:Underline</value> + </prop> + </node> <node oor:name=".uno:Overline" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Overline</value> diff --git a/sc/uiconfig/scalc/toolbar/singlemode.xml b/sc/uiconfig/scalc/toolbar/singlemode.xml index 672ecac9a639..df58727575c4 100644 --- a/sc/uiconfig/scalc/toolbar/singlemode.xml +++ b/sc/uiconfig/scalc/toolbar/singlemode.xml @@ -50,7 +50,7 @@ <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:Bold"/> <toolbar:toolbaritem xlink:href=".uno:Italic"/> - <toolbar:toolbaritem xlink:href=".uno:Underline"/> + <toolbar:toolbaritem xlink:href=".uno:UnderlineSimple"/> <toolbar:toolbaritem xlink:href=".uno:Color"/> <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:BackgroundColor"/> 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()); diff --git a/sw/uiconfig/swriter/toolbar/singlemode.xml b/sw/uiconfig/swriter/toolbar/singlemode.xml index 1fb58912b6c0..67c012b79aa0 100644 --- a/sw/uiconfig/swriter/toolbar/singlemode.xml +++ b/sw/uiconfig/swriter/toolbar/singlemode.xml @@ -35,7 +35,7 @@ <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:Bold"/> <toolbar:toolbaritem xlink:href=".uno:Italic"/> - <toolbar:toolbaritem xlink:href=".uno:Underline"/> + <toolbar:toolbaritem xlink:href=".uno:UnderlineSimple"/> <toolbar:toolbaritem xlink:href=".uno:Strikeout" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:FontColor"/> <toolbar:toolbaritem xlink:href=".uno:BackColor" toolbar:visible="false"/> |