diff options
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 ) ); |