summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin5.cxx
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-05-11 16:26:58 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-05-12 13:59:39 +0200
commit9356e0efb188258504b2073ffc8b388d566226e3 (patch)
treeb5e45bcbd9de71c3c24b84febc10c466d01976d2 /sc/source/ui/view/gridwin5.cxx
parent4145a857791df2100d5df9defb79e1160f89249f (diff)
Replace ScGlobal::GetRscString with simple ScResId calls
After the gettext migration there is no point to have two APIs for reading the same .mo file. This patch is for sc/source/ui/view/ for easier review. Change-Id: Ic07f7e924236d29f3cafd69c5ee634ae92105459 Reviewed-on: https://gerrit.libreoffice.org/54137 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/view/gridwin5.cxx')
-rw-r--r--sc/source/ui/view/gridwin5.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin5.cxx b/sc/source/ui/view/gridwin5.cxx
index 0abc3f82e1fe..a89e77adda2e 100644
--- a/sc/source/ui/view/gridwin5.cxx
+++ b/sc/source/ui/view/gridwin5.cxx
@@ -53,6 +53,7 @@
#include <postit.hxx>
#include <global.hxx>
#include <globstr.hrc>
+#include <scresid.hxx>
bool ScGridWindow::ShowNoteMarker( SCCOL nPosX, SCROW nPosY, bool bKeyboard )
{
@@ -230,11 +231,11 @@ void ScGridWindow::RequestHelp(const HelpEvent& rHEvt)
OUString aModStr( aModifiedCode.GetName() );
aModStr = aModStr.replaceFirst(aCode.GetName(), "");
aModStr = aModStr.replaceAll("+", "");
- OUString aCtrlClickHlinkStr = ScGlobal::GetRscString( STR_CTRLCLICKHYPERLINK );
+ OUString aCtrlClickHlinkStr = ScResId( STR_CTRLCLICKHYPERLINK );
aCtrlClickHlinkStr = aCtrlClickHlinkStr.replaceAll("%s", aModStr);
//Global string STR_CLICKHYPERLINK i.e, "click to open hyperlink"
- OUString aClickHlinkStr = ScGlobal::GetRscString( STR_CLICKHYPERLINK );
+ OUString aClickHlinkStr = ScResId( STR_CLICKHYPERLINK );
bool bDone = false;
bool bHelpEnabled = bool(rHEvt.GetMode() & ( HelpEventMode::BALLOON | HelpEventMode::QUICK ));
SdrView* pDrView = pViewData->GetScDrawView();