LibreOffice Module i18npool (master) 1
|
#include <textconversion.hxx>
Public Member Functions | |
TextConversion_zh (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
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 | getConversion (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 |
sal_Bool SAL_CALL | interactiveConversion (const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override |
Public Member Functions inherited from i18npool::TextConversionService | |
TextConversionService (const char *pImplName) | |
virtual | ~TextConversionService () override |
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 |
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 |
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 |
virtual sal_Bool SAL_CALL | interactiveConversion (const css::lang::Locale &aLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions) override=0 |
OUString SAL_CALL | getImplementationName () override |
sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
OUString | getWordConversion (const OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions, css::uno::Sequence< sal_Int32 > &offset) |
rtl::OUString | getCharConversion (const rtl::OUString &aText, sal_Int32 nStartPos, sal_Int32 nLength, bool toSChinese, sal_Int32 nConversionOptions) |
Private Attributes | |
css::uno::Reference< css::linguistic2::XConversionDictionaryList > | xCDL |
css::lang::Locale | aLocale |
Additional Inherited Members | |
Protected Member Functions inherited from i18npool::TextConversionService | |
oslGenericFunction | getFunctionBySymbol (const char *func) |
Protected Attributes inherited from i18npool::TextConversionService | |
oslModule | hModule |
Definition at line 122 of file textconversion.hxx.
i18npool::TextConversion_zh::TextConversion_zh | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Definition at line 38 of file textconversion_zh.cxx.
References xCDL.
|
private |
Definition at line 79 of file textconversion_zh.cxx.
References Data, i18npool::TextConversionService::getFunctionBySymbol(), i18npool::getOneCharConversion(), i, and nLength.
Referenced by getConversion(), getConversionWithOffset(), and getWordConversion().
|
overridevirtual |
Implements i18npool::TextConversionService.
Definition at line 283 of file textconversion_zh.cxx.
References aLocale, getCharConversion(), getWordConversion(), and nLength.
Referenced by getConversions().
|
overridevirtual |
Implements i18npool::TextConversionService.
Definition at line 269 of file textconversion_zh.cxx.
References getConversion(), nLength, and result.
|
overridevirtual |
Implements i18npool::TextConversionService.
Definition at line 303 of file textconversion_zh.cxx.
References aLocale, getCharConversion(), getWordConversion(), and nLength.
|
private |
Definition at line 116 of file textconversion_zh.cxx.
References aLocale, bottom, count, getCharConversion(), i18npool::TextConversionService::getFunctionBySymbol(), getLength(), i18npool::getOneCharConversion(), index, nLength, result, start, top, and xCDL.
Referenced by getConversion(), and getConversionWithOffset().
|
overridevirtual |
Implements i18npool::TextConversionService.
Definition at line 325 of file textconversion_zh.cxx.
|
private |
Definition at line 150 of file textconversion.hxx.
Referenced by getConversion(), getConversionWithOffset(), and getWordConversion().
|
private |
Definition at line 146 of file textconversion.hxx.
Referenced by getWordConversion(), and TextConversion_zh().