diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-05-11 16:26:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-05-12 13:59:39 +0200 |
commit | 9356e0efb188258504b2073ffc8b388d566226e3 (patch) | |
tree | b5e45bcbd9de71c3c24b84febc10c466d01976d2 /sc/source/ui/view/cellsh.cxx | |
parent | 4145a857791df2100d5df9defb79e1160f89249f (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/cellsh.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index cb2d374bdb6e..9e546006803f 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -48,6 +48,7 @@ #include <formulacell.hxx> #include <scmod.hxx> #include <globstr.hrc> +#include <scresid.hxx> #include <transobj.hxx> #include <drwtrans.hxx> #include <scabstdlg.hxx> @@ -755,7 +756,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) case SID_STATUS_DOCPOS: { - OUString aStr = ScGlobal::GetRscString( STR_TABLE_COUNT ); + OUString aStr = ScResId( STR_TABLE_COUNT ); aStr = aStr.replaceFirst("%1", OUString::number( nTab + 1 ) ); aStr = aStr.replaceFirst("%2", OUString::number( nTabCount ) ); @@ -775,7 +776,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) nRow2 = aMarkRange.aEnd.Row(); if( nCol2 != nCol1 || nRow1 != nRow2 ) { - OUString aStr = ScGlobal::GetRscString( STR_ROWCOL_SELCOUNT ); + OUString aStr = ScResId( STR_ROWCOL_SELCOUNT ); aStr = aStr.replaceAll( "$1", OUString::number( nRow2 - nRow1 + 1 )); aStr = aStr.replaceAll( "$2", OUString::number( nCol2 - nCol1 + 1 )); rSet.Put( SfxStringItem( nWhich, aStr ) ); @@ -786,7 +787,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) pDoc->GetFilterSelCount( nPosX, nPosY, nTab, nSelected, nTotal ); if( nTotal ) { - OUString aStr = ScGlobal::GetRscString( STR_FILTER_SELCOUNT ); + OUString aStr = ScResId( STR_FILTER_SELCOUNT ); aStr = aStr.replaceAll( "$1", OUString::number( nSelected ) ); aStr = aStr.replaceAll( "$2", OUString::number( nTotal ) ); rSet.Put( SfxStringItem( nWhich, aStr ) ); |