From 07ec28da82c8e965558e020651be13033653c648 Mon Sep 17 00:00:00 2001 From: heiko tietze Date: Fri, 23 Mar 2018 12:05:31 +0100 Subject: tdf#116297 - Remove table tooltips Tooltips cleared Change-Id: I085913a73a4666db522d5231c7cab8a8e30291b3 Reviewed-on: https://gerrit.libreoffice.org/51776 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- sw/inc/strings.hrc | 5 ----- sw/source/uibase/docvw/edtwin2.cxx | 42 +------------------------------------- 2 files changed, 1 insertion(+), 46 deletions(-) diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 2dbf824d1f5f..a4b39e3fe766 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1173,11 +1173,6 @@ #define STR_REDLINE_TABLE_CELL_DELETE NC_("STR_REDLINE_TABLE_CELL_DELETE", "Cell Deleted") #define STR_ENDNOTE NC_("STR_ENDNOTE", "Endnote: ") #define STR_FTNNOTE NC_("STR_FTNNOTE", "Footnote: ") -#define STR_TABLE_COL_ADJUST NC_("STR_TABLE_COL_ADJUST", "Adjust table column") -#define STR_TABLE_ROW_ADJUST NC_("STR_TABLE_ROW_ADJUST", "Adjust table row") -#define STR_TABLE_SELECT_ALL NC_("STR_TABLE_SELECT_ALL", "Select whole table") -#define STR_TABLE_SELECT_ROW NC_("STR_TABLE_SELECT_ROW", "Select table row") -#define STR_TABLE_SELECT_COL NC_("STR_TABLE_SELECT_COL", "Select table column") #define STR_SMARTTAG_CLICK NC_("STR_SMARTTAG_CLICK", "%s-click to open Smart Tag menu") #define STR_HEADER_TITLE NC_("STR_HEADER_TITLE", "Header (%1)") #define STR_FIRST_HEADER_TITLE NC_("STR_FIRST_HEADER_TITLE", "First Page Header (%1)") diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index 35f73733bd3d..670d9244fa7d 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -389,47 +389,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) bContinue = false; } - if( bContinue ) - { - SwTab nTabCols = rSh.WhichMouseTabCol(aPos); - const char* pTabRes = nullptr; - switch(nTabCols) - { - case SwTab::COL_HORI: - case SwTab::COL_VERT: - pTabRes = STR_TABLE_COL_ADJUST; - break; - case SwTab::ROW_HORI: - case SwTab::ROW_VERT: - pTabRes = STR_TABLE_ROW_ADJUST; - break; - // #i32329# Enhanced table selection - case SwTab::SEL_HORI: - case SwTab::SEL_HORI_RTL: - case SwTab::SEL_VERT: - pTabRes = STR_TABLE_SELECT_ALL; - break; - case SwTab::ROWSEL_HORI: - case SwTab::ROWSEL_HORI_RTL: - case SwTab::ROWSEL_VERT: - pTabRes = STR_TABLE_SELECT_ROW; - break; - case SwTab::COLSEL_HORI: - case SwTab::COLSEL_VERT: - pTabRes = STR_TABLE_SELECT_COL; - break; - case SwTab::COL_NONE: break; // prevent compiler warning - } - if (pTabRes) - { - sText = SwResId(pTabRes); - Size aTextSize( GetTextWidth(sText), GetTextHeight()); - tools::Rectangle aRect(rEvt.GetMousePosPixel(), aTextSize); - OUString sDisplayText(ClipLongToolTip(sText)); - Help::ShowQuickHelp(this, aRect, sDisplayText); - } - bContinue = false; - } + } if( bContinue ) -- cgit v1.2.3