summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-02 09:46:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-05 16:43:15 +0100
commitd2c45d0460cf99aadde1aaec11e032f488fa277b (patch)
treec04080649e3d5393d9d73e2ab9326b56ee3cc6cb /svl
parentec1c96a9b69a5a2546fe2564cd92fe9e33471fbc (diff)
fdo#46808, Adapt i18n::Transliteration UNO service to new style
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
Diffstat (limited to 'svl')
-rw-r--r--svl/inc/svl/ondemand.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svl/inc/svl/ondemand.hxx b/svl/inc/svl/ondemand.hxx
index 47488504b073..364d48f5f27b 100644
--- a/svl/inc/svl/ondemand.hxx
+++ b/svl/inc/svl/ondemand.hxx
@@ -32,6 +32,15 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+namespace comphelper {
+
+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
+ getComponentContext(
+ com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
+ const & factory);
+
+}
+
/*
On demand instanciation and initialization of several i18n wrappers,
helping the number formatter to not perform worse than it already does.
@@ -300,7 +309,7 @@ public:
if ( !bValid )
{
if ( !pPtr )
- pPtr = new ::utl::TransliterationWrapper( xSMgr, nType );
+ pPtr = new ::utl::TransliterationWrapper( comphelper::getComponentContext(xSMgr), nType );
pPtr->loadModuleIfNeeded( eLanguage );
bValid = true;
}
@@ -310,7 +319,7 @@ public:
const ::utl::TransliterationWrapper* getForModule( const String& rModule, LanguageType eLang ) const
{
if ( !pPtr )
- pPtr = new ::utl::TransliterationWrapper( xSMgr, nType );
+ pPtr = new ::utl::TransliterationWrapper( comphelper::getComponentContext(xSMgr), nType );
pPtr->loadModuleByImplName( rModule, eLang );
bValid = false; // reforce settings change in get()
return pPtr;