diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-08-06 16:34:46 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-08-15 04:04:10 +0200 |
commit | bebaac5eb6ebd2db3e1ea22b1630111343a9c25c (patch) | |
tree | 1787d37ef88f90c82c023cd374927ea249257d06 | |
parent | 46aba1db9a8e43da03f4db580b8dc9de7b850b00 (diff) |
tdf#100864 Assign a tooltip to the button to close pane
which appears at the top-right corner of both Impress's
Slide Pane and Draw's Page Pane.
Change-Id: Ida52ccc35e42546cd6260001e22335b04608034d
Reviewed-on: https://gerrit.libreoffice.org/40803
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
-rw-r--r-- | include/sfx2/strings.hrc | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/titledockwin.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc index bf3a85569661..9f0b9657a729 100644 --- a/include/sfx2/strings.hrc +++ b/include/sfx2/strings.hrc @@ -255,6 +255,7 @@ #define STR_SIGNATURE_OK NC_("STR_SIGNATURE_OK", "This document is digitally signed and the signature is valid.") #define STR_SIGNATURE_SHOW NC_("STR_SIGNATURE_SHOW", "Show Signatures") +#define STR_CLOSE_PANE NC_("STR_CLOSE_PANE", "Close Pane") #define STR_SFX_DOCK NC_("STR_SFX_DOCK", "Dock") #define STR_SFX_UNDOCK NC_("STR_SFX_UNDOCK", "Undock") diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx index 8b43c8c23fb4..f7ba40f5311a 100644 --- a/sfx2/source/dialog/titledockwin.cxx +++ b/sfx2/source/dialog/titledockwin.cxx @@ -217,6 +217,7 @@ namespace sfx2 // Get the closer bitmap and set it as right most button. BitmapEx aBitmapEx(SFX_BMP_CLOSE_DOC); m_aToolbox->InsertItem(1, Image(aBitmapEx)); + m_aToolbox->SetQuickHelpText(1, SfxResId(STR_CLOSE_PANE)); m_aToolbox->ShowItem( 1 ); } |