diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-03 16:58:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-03 17:03:48 +0000 |
commit | 3e5d94266e7f60c2b3ebd7009579373fddb400cd (patch) | |
tree | 0befdff44e034dddd7f6a4cbb06d92f038449a55 /i18npool | |
parent | 64a50fc271cf20b5e10b54b46ad52810a9722c3a (diff) |
extend with-locale hack to the service instantiation
Change-Id: I6e4403074a758a80c3b44b442021a2c0d2176146
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/breakiterator/breakiteratorImpl.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index 3a8da9abe49a..a81c10733c57 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -16,6 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_locales.h> #include <breakiteratorImpl.hxx> #include <cppuhelper/supportsservice.hxx> @@ -530,6 +531,23 @@ bool SAL_CALL BreakIteratorImpl::createLocaleSpecificBreakIterator(const OUStrin } } +#if !WITH_LOCALE_ALL && !WITH_LOCALE_ja + if (aLocaleName == "ja") + return false; +#endif +#if !WITH_LOCALE_ALL && !WITH_LOCALE_zh + if (aLocaleName == "zh" || aLocaleName == "zh_TW") + return false; +#endif +#if !WITH_LOCALE_ALL && !WITH_LOCALE_ko + if (aLocaleName == "ko") + return false; +#endif +#if !WITH_LOCALE_ALL && !WITH_LOCALE_th + if (aLocaleName == "th") + return false; +#endif + Reference < uno::XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.i18n.BreakIterator_" + aLocaleName, m_xContext); |