20#include <config_locales.h>
22#include <com/sun/star/lang/XSingleServiceFactory.hpp>
63#define IMPL_CREATEINSTANCE( ImplName ) \
64 static uno::Reference< uno::XInterface > \
65 ImplName##_CreateInstance( \
66 SAL_UNUSED_PARAMETER const uno::Reference< \
67 lang::XMultiServiceFactory >& ) \
69 return uno::Reference < \
70 uno::XInterface >( static_cast<cppu::OWeakObject*>( \
74#define IMPL_TRANSLITERATION_ITEM( implName ) \
75 { TRLT_SERVICELNAME_L10N, \
76 TRLT_IMPLNAME_PREFIX #implName, \
77 &implName##_CreateInstance }
79#define IMPL_UNO_CONSTRUCTOR( ImplName ) \
80extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * \
81i18npool_##ImplName##_get_implementation( \
82 css::uno::XComponentContext *, \
83 css::uno::Sequence<css::uno::Any> const &) \
85 return cppu::acquire(new ImplName()); \
88#define IMPL_UNO_CONSTRUCTOR_CTX( ImplName ) \
89extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * \
90i18npool_##ImplName##_get_implementation( \
91 css::uno::XComponentContext * context, \
92 css::uno::Sequence<css::uno::Any> const &) \
94 return cppu::acquire(new ImplName(context)); \
135#if WITH_LOCALE_ALL || WITH_LOCALE_hi
141#if WITH_LOCALE_ALL || WITH_LOCALE_ja
193#if WITH_LOCALE_ALL || WITH_LOCALE_ko
221#if WITH_LOCALE_ALL || WITH_LOCALE_th
228#if WITH_LOCALE_ALL || WITH_LOCALE_zh
259typedef uno::Reference< uno::XInterface > (*FN_CreateInstance)(
260 const uno::Reference< lang::XMultiServiceFactory >& );
262struct InstancesArray {
263 const char* pServiceNm;
264 const char* pImplementationNm;
265 FN_CreateInstance pFn;
273 &Transliteration_u2l_CreateInstance },
276 &Transliteration_l2u_CreateInstance },
279 &Transliteration_sentencecase_CreateInstance },
282 &Transliteration_titlecase_CreateInstance },
285 &Transliteration_togglecase_CreateInstance },
292#if WITH_LOCALE_ALL || WITH_LOCALE_hi
296#if WITH_LOCALE_ALL || WITH_LOCALE_ja
299 &hiraganaToKatakana_CreateInstance },
302 &katakanaToHiragana_CreateInstance },
305 &fullwidthToHalfwidth_CreateInstance },
308 &halfwidthToFullwidth_CreateInstance },
341#if WITH_LOCALE_ALL || WITH_LOCALE_ko
354#if WITH_LOCALE_ALL || WITH_LOCALE_th
358#if WITH_LOCALE_ALL || WITH_LOCALE_zh
374 {
nullptr,
nullptr,
nullptr }
383 void* pRet =
nullptr;
385 lang::XMultiServiceFactory* pServiceManager =
386 static_cast< lang::XMultiServiceFactory*
>( _pServiceManager );
387 uno::Reference< lang::XSingleServiceFactory >
xFactory;
389 for(
const InstancesArray* pArr =
aInstances; pArr->pServiceNm; ++pArr )
394 OUString::createFromAscii( pArr->pServiceNm ) };
395 xFactory = ::cppu::createSingleFactory(
397 OUString::createFromAscii( pArr->pImplementationNm ),
constexpr OUStringLiteral sImplementationName
Reference< XSingleServiceFactory > xFactory
Sequence< OUString > aServiceNames
Constant values shared between i18npool and, for example, the number formatter.
const InstancesArray aInstances[]
#define IMPL_UNO_CONSTRUCTOR(ImplName)
SAL_DLLPUBLIC_EXPORT void * i18npool_component_getFactory(const char *sImplementationName, void *_pServiceManager, SAL_UNUSED_PARAMETER void *)
#define IMPL_UNO_CONSTRUCTOR_CTX(ImplName)
#define IMPL_CREATEINSTANCE(ImplName)
#define IMPL_TRANSLITERATION_ITEM(implName)
#define TRLT_SERVICELNAME_L10N
#define TRLT_IMPLNAME_PREFIX
@ ignoreProlongedSoundMark_ja_JP
@ ignoreTraditionalKana_ja_JP
@ ignoreKiKuFollowedBySa_ja_JP
@ ignoreTraditionalKanji_ja_JP
@ ignoreIandEfollowedByYa_ja_JP
@ ignoreIterationMark_ja_JP