summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/impop.cxx
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-05-12 19:52:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-05-12 22:53:17 +0200
commitfabbeb7a8d8a5bb7ce030c1871e6ad7cf33d4a07 (patch)
treefea4819276a5e42353b01bae51ca548ad2859d87 /sc/source/filter/excel/impop.cxx
parentd2bed9999e4fbd8aae5f9987de10f6112fba6f72 (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/filter/ for easier review. Change-Id: I77adc446e66623535a9d4c871ac1403e88efff78 Reviewed-on: https://gerrit.libreoffice.org/54183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/filter/excel/impop.cxx')
-rw-r--r--sc/source/filter/excel/impop.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 90616ce57d2a..85ebffc50295 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -47,6 +47,7 @@
#include <patattr.hxx>
#include <attrib.hxx>
#include <globstr.hrc>
+#include <scresid.hxx>
#include <global.hxx>
#include <markdata.hxx>
#include <olinetab.hxx>
@@ -1249,7 +1250,7 @@ void ImportExcel::PostDocLoad()
/* Set automatic page numbering in Default page style (default is "page number = 1").
Otherwise hidden tables (i.e. for scenarios) which have Default page style will
break automatic page numbering. */
- if( SfxStyleSheetBase* pStyleSheet = GetStyleSheetPool().Find( ScGlobal::GetRscString( STR_STYLENAME_STANDARD ), SfxStyleFamily::Page ) )
+ if( SfxStyleSheetBase* pStyleSheet = GetStyleSheetPool().Find( ScResId( STR_STYLENAME_STANDARD ), SfxStyleFamily::Page ) )
pStyleSheet->GetItemSet().Put( SfxUInt16Item( ATTR_PAGE_FIRSTPAGENO, 0 ) );
// outlines for all sheets, sets hidden rows and columns (#i11776# after filtered ranges)