diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/pptimport.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx index 6bd7c15b6831..30d3d2951b24 100644 --- a/oox/source/ppt/pptimport.cxx +++ b/oox/source/ppt/pptimport.cxx @@ -26,9 +26,10 @@ #include <vcl/svapp.hxx> #include <svtools/sfxecode.hxx> #include <svtools/ehdl.hxx> -#include <svtools/svtools.hrc> +#include <svtools/strings.hrc> #include <tools/urlobj.hxx> -#include <svx/dialogs.hrc> +#include <svx/dialmgr.hxx> +#include <svx/strings.hrc> #include "oox/ppt/pptimport.hxx" #include "oox/drawingml/chart/chartconverter.hxx" #include "oox/dump/pptxdumper.hxx" @@ -145,12 +146,11 @@ bool PowerPointImport::importDocument() { // Construct a warning message. INetURLObject aURL(getFileUrl()); - SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset), nullptr, RID_ERRCTX); + SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset), nullptr, getRID_ERRCTX()); OUString aWarning; aContext.GetString(ERRCODE_NONE.MakeWarning(), aWarning); aWarning += ":\n"; - static ResMgr* pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag()); - aWarning += ResId(RID_SVXSTR_WARN_MISSING_SMARTART, *pResMgr).toString(); + aWarning += SvxResId(RID_SVXSTR_WARN_MISSING_SMARTART); // Show it. WinBits eBits = WB_OK | WB_DEF_OK; |