diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-01-03 14:08:55 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-01-04 11:24:27 +0100 |
commit | b37e7aa35a1c927a7154f87c7f1ce75ce5a6a229 (patch) | |
tree | 9809a93d53565bef478a206d8ada58f4d79b81d0 /basctl | |
parent | ed16e39ac696c58985a1eab2cefb880126e06428 (diff) |
lokdialog: Allow language switching in SfxModule(s).
Change-Id: Icef0b3610c3bfa858cdd61de6ef3f5edc1e3c96b
Reviewed-on: https://gerrit.libreoffice.org/47333
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basicmod.hxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/iderdll.cxx | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basctl/source/basicide/basicmod.hxx b/basctl/source/basicide/basicmod.hxx index ffc960cea598..ba269b7cd7e0 100644 --- a/basctl/source/basicide/basicmod.hxx +++ b/basctl/source/basicide/basicmod.hxx @@ -29,8 +29,8 @@ namespace basctl class Module : public SfxModule { public: - Module ( ResMgr *pMgr, SfxObjectFactory *pObjFact) : - SfxModule( pMgr, {pObjFact} ) + Module(const OString& rMgrName, SfxObjectFactory *pObjFact) : + SfxModule(rMgrName, {pObjFact}) { } }; diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx index 1faeb46ae634..84235af23ad1 100644 --- a/basctl/source/basicide/iderdll.cxx +++ b/basctl/source/basicide/iderdll.cxx @@ -116,10 +116,7 @@ Dll::Dll () : SfxObjectFactory* pFact = &DocShell::Factory(); (void)pFact; - ResMgr* pMgr = ResMgr::CreateResMgr( - "basctl", Application::GetSettings().GetUILanguageTag()); - - auto pModule = o3tl::make_unique<Module>( pMgr, &DocShell::Factory() ); + auto pModule = o3tl::make_unique<Module>("basctl", &DocShell::Factory()); SfxModule* pMod = pModule.get(); SfxApplication::SetModule(SfxToolsModule::Basic, std::move(pModule)); |