diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-27 08:22:28 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-27 08:42:54 +0100 |
commit | a4f17c00b16f5a983cd91ac5d2c43454f1775931 (patch) | |
tree | 6f57bd7d49e8a9a60e8ec7c2478dc29aca2da328 /i18npool/source/transliteration | |
parent | c492e5156b20c98ee662b9b5f6ad874c51b95bf9 (diff) |
i18npool: Constructor feature for few more implementations.
Change-Id: I018bbe39a30582f51cdd620b3bf3240456b7bd65
Diffstat (limited to 'i18npool/source/transliteration')
-rw-r--r-- | i18npool/source/transliteration/ignoreKana.cxx | 10 | ||||
-rw-r--r-- | i18npool/source/transliteration/ignoreWidth.cxx | 10 | ||||
-rw-r--r-- | i18npool/source/transliteration/transliteration_caseignore.cxx | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/i18npool/source/transliteration/ignoreKana.cxx b/i18npool/source/transliteration/ignoreKana.cxx index e525f5dcca35..d051c664bf4b 100644 --- a/i18npool/source/transliteration/ignoreKana.cxx +++ b/i18npool/source/transliteration/ignoreKana.cxx @@ -21,6 +21,8 @@ // prevent internal compiler error with MSVC6SP3 #include <utility> +#include <com/sun/star/uno/XComponentContext.hpp> + #define TRANSLITERATION_Kana #include <transliteration_Ignore.hxx> #define TRANSLITERATION_hiraganaToKatakana @@ -60,4 +62,12 @@ ignoreKana::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, } } } } +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_i18n_Transliteration_IGNORE_KANA_get_implementation( + css::uno::XComponentContext *, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new css::i18n::ignoreKana()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx index aa4e87b5d5c3..d0c5c93e1c99 100644 --- a/i18npool/source/transliteration/ignoreWidth.cxx +++ b/i18npool/source/transliteration/ignoreWidth.cxx @@ -20,6 +20,8 @@ // prevent internal compiler error with MSVC6SP3 #include <utility> +#include <com/sun/star/uno/XComponentContext.hpp> + #define TRANSLITERATION_Width #include <transliteration_Ignore.hxx> #define TRANSLITERATION_fullwidthToHalfwidth @@ -59,4 +61,12 @@ ignoreWidth::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, } } } } +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_i18n_Transliteration_IGNORE_WIDTH_get_implementation( + css::uno::XComponentContext *, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new css::i18n::ignoreWidth()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_caseignore.cxx b/i18npool/source/transliteration/transliteration_caseignore.cxx index d42261bb3380..a26021d39cf2 100644 --- a/i18npool/source/transliteration/transliteration_caseignore.cxx +++ b/i18npool/source/transliteration/transliteration_caseignore.cxx @@ -21,6 +21,8 @@ // prevent internal compiler error with MSVC6SP3 #include <utility> +#include <com/sun/star/uno/XComponentContext.hpp> + #include <i18nutil/oneToOneMapping.hxx> #include <i18nutil/casefolding.hxx> #include "transliteration_caseignore.hxx" @@ -147,4 +149,12 @@ Transliteration_caseignore::compare( } } } } +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_i18n_Transliteration_IGNORE_CASE_get_implementation( + css::uno::XComponentContext *, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new css::i18n::Transliteration_caseignore()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |