21#include <com/sun/star/lang/XServiceInfo.hpp>
22#include <com/sun/star/i18n/XExtendedTextConversion.hpp>
24#include <osl/module.h>
36 css::i18n::XExtendedTextConversion,
37 css::lang::XServiceInfo
44 virtual css::i18n::TextConversionResult SAL_CALL
45 getConversions(
const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
46 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
47 sal_Int32 nTextConversionOptions )
override = 0;
48 virtual OUString SAL_CALL
49 getConversion(
const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
50 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
51 sal_Int32 nTextConversionOptions )
override = 0;
52 virtual OUString SAL_CALL
54 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
55 sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 >& offset )
override = 0;
58 sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
override = 0;
65 css::uno::Sequence< OUString > SAL_CALL
70#ifndef DISABLE_DYNLOADING
88 TextConversion_ko(
const css::uno::Reference < css::uno::XComponentContext >& rxContext );
91 css::i18n::TextConversionResult SAL_CALL
93 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
94 sal_Int32 nTextConversionOptions )
override;
97 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
98 sal_Int32 nTextConversionOptions )
override;
101 const css::lang::Locale& aLocale, sal_Int16 nTextConversionType,
102 sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 >& offset )
override;
105 sal_Int16 nTextConversionType,
106 sal_Int32 nTextConversionOptions )
override;
110 css::uno::Reference < css::linguistic2::XConversionDictionary >
xCD;
112 css::uno::Reference < css::linguistic2::XConversionDictionaryList >
xCDL;
115 css::uno::Sequence< OUString >
116 getCharConversions(
const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
bool toHanja);
125 TextConversion_zh(
const css::uno::Reference < css::uno::XComponentContext >& rxContext );
128 css::i18n::TextConversionResult SAL_CALL
130 const css::lang::Locale&
aLocale, sal_Int16 nTextConversionType,
131 sal_Int32 nTextConversionOptions )
override;
134 const css::lang::Locale&
aLocale, sal_Int16 nTextConversionType,
135 sal_Int32 nTextConversionOptions )
override;
138 const css::lang::Locale&
aLocale, sal_Int16 nTextConversionType,
139 sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 >& offset )
override;
142 sal_Int16 nTextConversionType,
143 sal_Int32 nTextConversionOptions )
override;
146 css::uno::Reference < css::linguistic2::XConversionDictionaryList >
xCDL;
148 sal_Int32 nStartPos, sal_Int32 nLength,
bool toSChinese, sal_Int32 nConversionOptions, css::uno::Sequence <sal_Int32>& offset);
149 rtl:: OUString
getCharConversion(
const rtl:: OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
bool toSChinese, sal_Int32 nConversionOptions);
OUString SAL_CALL getImplementationName() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL interactiveConversion(const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override=0
virtual ~TextConversionService() override
virtual OUString SAL_CALL getConversion(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override=0
oslGenericFunction getFunctionBySymbol(const char *func)
virtual OUString SAL_CALL getConversionWithOffset(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 > &offset) override=0
sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
TextConversionService(const char *pImplName)
const char * implementationName
virtual css::i18n::TextConversionResult SAL_CALL getConversions(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override=0
OUString SAL_CALL getConversion(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
css::uno::Sequence< OUString > getCharConversions(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toHanja)
css::i18n::TextConversionResult SAL_CALL getConversions(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
OUString SAL_CALL getConversionWithOffset(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 > &offset) override
css::uno::Reference< css::linguistic2::XConversionDictionaryList > xCDL
css::uno::Reference< css::linguistic2::XConversionDictionary > xCD
TextConversion_ko(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
sal_Bool SAL_CALL interactiveConversion(const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
TextConversion_zh(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
OUString SAL_CALL getConversion(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
css::lang::Locale aLocale
OUString getWordConversion(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions, css::uno::Sequence< sal_Int32 > &offset)
OUString SAL_CALL getConversionWithOffset(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions, css::uno::Sequence< sal_Int32 > &offset) override
css::uno::Reference< css::linguistic2::XConversionDictionaryList > xCDL
css::i18n::TextConversionResult SAL_CALL getConversions(const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
rtl::OUString getCharConversion(const rtl::OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions)
sal_Bool SAL_CALL interactiveConversion(const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override
Constant values shared between i18npool and, for example, the number formatter.