diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-24 17:20:33 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-27 08:42:53 +0100 |
commit | b192f590e68252881c3a545cbb81056851695010 (patch) | |
tree | ac6cfc627a427e507d3a0c8c2423b88237f6bc18 /i18npool/source/textconversion/textconversionImpl.cxx | |
parent | 564c0aa65712b52f8d0fb187fd0f123be8c1fe3f (diff) |
i18npool: Ctor feature for another services.
Change-Id: Id2346686ac2f6c537825d70cac1a537d09e351d5
Diffstat (limited to 'i18npool/source/textconversion/textconversionImpl.cxx')
-rw-r--r-- | i18npool/source/textconversion/textconversionImpl.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx index 2fc29c9fa335..00e1480561ed 100644 --- a/i18npool/source/textconversion/textconversionImpl.cxx +++ b/i18npool/source/textconversion/textconversionImpl.cxx @@ -110,12 +110,10 @@ TextConversionImpl::getLocaleSpecificTextConversion(const Locale& rLocale) throw throw NoSupportException(); // aLocale is not supported } -const sal_Char cTextConversion[] = "com.sun.star.i18n.TextConversion"; - OUString SAL_CALL TextConversionImpl::getImplementationName() throw( RuntimeException ) { - return OUString::createFromAscii(cTextConversion); + return OUString("com.sun.star.i18n.TextConversion"); } sal_Bool SAL_CALL @@ -129,10 +127,18 @@ Sequence< OUString > SAL_CALL TextConversionImpl::getSupportedServiceNames() throw( RuntimeException ) { Sequence< OUString > aRet(1); - aRet[0] = OUString::createFromAscii(cTextConversion); + aRet[0] = OUString("com.sun.star.i18n.TextConversion"); return aRet; } } } } } +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_i18n_TextConversion_get_implementation( + css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new css::i18n::TextConversionImpl(context)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |