From 14231e45ce5c8f2615fc5a448479960dfe1ed22b Mon Sep 17 00:00:00 2001 From: Kira Tubo Date: Sun, 16 Jun 2024 23:22:11 -0700 Subject: tdf#146468: Match border tooltips in toolbar/sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the border tooltips within Calc's toolbar and sidebar so that they have matching descriptions. Also update tooltips in Writer toolbar so that descriptions match across both apps. Change-Id: Ib7c682ed5035fe61d991209c4f2cf7f0a1a08a5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169052 Tested-by: Jenkins Reviewed-by: Heiko Tietze Reviewed-by: Stéphane Guillou --- sc/source/ui/sidebar/CellBorderStyleControl.cxx | 20 ++++++++++++++++++++ sc/uiconfig/scalc/ui/floatingborderstyle.ui | 16 ---------------- 2 files changed, 20 insertions(+), 16 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.cxx b/sc/source/ui/sidebar/CellBorderStyleControl.cxx index b6ec90b18e54..12ac05d23794 100644 --- a/sc/source/ui/sidebar/CellBorderStyleControl.cxx +++ b/sc/source/ui/sidebar/CellBorderStyleControl.cxx @@ -22,6 +22,8 @@ #include #include #include +#include +#include #include #include #include @@ -62,12 +64,30 @@ CellBorderStylePopup::~CellBorderStylePopup() void CellBorderStylePopup::Initialize() { + // Tooltip values now controlled in svx/strings.hrc instead of sc/uiconfig/scalc/ui/floatingborderstyle.ui mxTBBorder1->connect_clicked ( LINK(this, CellBorderStylePopup, TB1SelectHdl) ); + mxTBBorder1->set_item_tooltip_text(0, SvxResId(RID_SVXSTR_TABLE_PRESET_NONE)); + mxTBBorder1->set_item_tooltip_text(1, SvxResId(RID_SVXSTR_TABLE_PRESET_OUTERALL)); + mxTBBorder1->set_item_tooltip_text(2, SvxResId(RID_SVXSTR_TABLE_PRESET_OUTER)); + mxTBBorder1->set_item_tooltip_text(3, SvxResId(RID_SVXSTR_TABLE_PRESET_THICK)); mxTBBorder2->connect_clicked ( LINK(this, CellBorderStylePopup, TB2and3SelectHdl) ); + mxTBBorder2->set_item_tooltip_text(0, SvxResId(RID_SVXSTR_PARA_PRESET_ONLYLEFT)); + mxTBBorder2->set_item_tooltip_text(1, SvxResId(RID_SVXSTR_PARA_PRESET_ONLYRIGHT)); + mxTBBorder2->set_item_tooltip_text(2, SvxResId(RID_SVXSTR_PARA_PRESET_ONLYTOP)); + mxTBBorder2->set_item_tooltip_text(3, SvxResId(RID_SVXSTR_PARA_PRESET_ONLYBOTTOM)); + mxTBBorder3->connect_clicked ( LINK(this, CellBorderStylePopup, TB2and3SelectHdl) ); + mxTBBorder3->set_item_tooltip_text(0, SvxResId(RID_SVXSTR_PARA_PRESET_DIAGONALUP)); + mxTBBorder3->set_item_tooltip_text(1, SvxResId(RID_SVXSTR_PARA_PRESET_DIAGONALDOWN)); + mxTBBorder3->set_item_tooltip_text(2, SvxResId(RID_SVXSTR_PARA_PRESET_TOPBOTTOM)); + mxTBBorder3->set_item_tooltip_text(3, SvxResId(RID_SVXSTR_PARA_PRESET_LEFTRIGHT)); mxTBBorder4->connect_clicked ( LINK(this, CellBorderStylePopup, TB4SelectHdl) ); + mxTBBorder4->set_item_tooltip_text(0, SvxResId(RID_SVXSTR_TABLE_PRESET_THICKBOTTOM)); + mxTBBorder4->set_item_tooltip_text(1, SvxResId(RID_SVXSTR_TABLE_PRESET_DOUBLEBOTTOM)); + mxTBBorder4->set_item_tooltip_text(2, SvxResId(RID_SVXSTR_TABLE_PRESET_TOPTHICKBOTTOM)); + mxTBBorder4->set_item_tooltip_text(3, SvxResId(RID_SVXSTR_TABLE_PRESET_TOPDOUBLEBOTTOM)); } IMPL_LINK(CellBorderStylePopup, TB1SelectHdl, const OUString&, rId, void) diff --git a/sc/uiconfig/scalc/ui/floatingborderstyle.ui b/sc/uiconfig/scalc/ui/floatingborderstyle.ui index df407c4b456b..2640d06d051f 100644 --- a/sc/uiconfig/scalc/ui/floatingborderstyle.ui +++ b/sc/uiconfig/scalc/ui/floatingborderstyle.ui @@ -31,7 +31,6 @@ True - No Border sc/res/sidebar/CellBorder_Empty_18x18.png @@ -42,7 +41,6 @@ True - All Borders sc/res/sidebar/CellBorder_All_18x18.png @@ -53,7 +51,6 @@ True - Outside Borders sc/res/sidebar/CellBorder_FourBorders_18x18.png @@ -64,7 +61,6 @@ True - Thick Box Border sc/res/sidebar/CellBorder_FourBorders_Thick_18x18.png @@ -87,7 +83,6 @@ True - Thick Bottom Border sc/res/sidebar/CellBorder_Bottom_Thick_18x18.png @@ -98,7 +93,6 @@ True - Double Bottom Border sc/res/sidebar/CellBorder_Bottom_Double_18x18.png @@ -109,7 +103,6 @@ True - Top and Thick Bottom Borders sc/res/sidebar/CellBorder_TopThin_BottomThick_18x18.png @@ -120,7 +113,6 @@ True - Top and Double Bottom Borders sc/res/sidebar/CellBorder_TopSingle_BottomDouble_18x18.png @@ -143,7 +135,6 @@ True - Left Border sc/res/sidebar/CellBorder_Left_18x18.png @@ -154,7 +145,6 @@ True - Right Border sc/res/sidebar/CellBorder_Right_18x18.png @@ -165,7 +155,6 @@ True - Top Border sc/res/sidebar/CellBorder_Top_18x18.png @@ -176,7 +165,6 @@ True - Bottom Border sc/res/sidebar/CellBorder_Bottom_18x18.png @@ -199,7 +187,6 @@ True - Diagonal Up Border True sc/res/sidebar/CellBorder_RightDiagonal_18x18.png @@ -211,7 +198,6 @@ True - Diagonal Down Border True sc/res/sidebar/CellBorder_LeftDiagonal_18x18.png @@ -223,7 +209,6 @@ True - Top and Bottom Borders True sc/res/sidebar/CellBorder_TopAndBottom_18x18.png @@ -235,7 +220,6 @@ True - Left and Right Borders True sc/res/sidebar/CellBorder_LeftAndRight_18x18.png -- cgit