LibreOffice Module i18npool (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
i18npool::TextConversion_zh Class Referencefinal

#include <textconversion.hxx>

Inheritance diagram for i18npool::TextConversion_zh:
[legend]
Collaboration diagram for i18npool::TextConversion_zh:
[legend]

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
 

Detailed Description

Definition at line 122 of file textconversion.hxx.

Constructor & Destructor Documentation

◆ TextConversion_zh()

i18npool::TextConversion_zh::TextConversion_zh ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 38 of file textconversion_zh.cxx.

References xCDL.

Member Function Documentation

◆ getCharConversion()

OUString i18npool::TextConversion_zh::getCharConversion ( const rtl::OUString &  aText,
sal_Int32  nStartPos,
sal_Int32  nLength,
bool  toSChinese,
sal_Int32  nConversionOptions 
)
private

◆ getConversion()

OUString SAL_CALL i18npool::TextConversion_zh::getConversion ( const OUString &  aText,
sal_Int32  nStartPos,
sal_Int32  nLength,
const css::lang::Locale &  aLocale,
sal_Int16  nTextConversionType,
sal_Int32  nTextConversionOptions 
)
overridevirtual

Implements i18npool::TextConversionService.

Definition at line 283 of file textconversion_zh.cxx.

References aLocale, getCharConversion(), getWordConversion(), and nLength.

Referenced by getConversions().

◆ getConversions()

TextConversionResult SAL_CALL i18npool::TextConversion_zh::getConversions ( const OUString &  aText,
sal_Int32  nStartPos,
sal_Int32  nLength,
const css::lang::Locale &  aLocale,
sal_Int16  nTextConversionType,
sal_Int32  nTextConversionOptions 
)
overridevirtual

Implements i18npool::TextConversionService.

Definition at line 269 of file textconversion_zh.cxx.

References getConversion(), nLength, and result.

◆ getConversionWithOffset()

OUString SAL_CALL i18npool::TextConversion_zh::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 
)
overridevirtual

◆ getWordConversion()

OUString i18npool::TextConversion_zh::getWordConversion ( const OUString &  aText,
sal_Int32  nStartPos,
sal_Int32  nLength,
bool  toSChinese,
sal_Int32  nConversionOptions,
css::uno::Sequence< sal_Int32 > &  offset 
)
private

◆ interactiveConversion()

sal_Bool SAL_CALL i18npool::TextConversion_zh::interactiveConversion ( const css::lang::Locale &  aLocale,
sal_Int16  nTextConversionType,
sal_Int32  nTextConversionOptions 
)
overridevirtual

Implements i18npool::TextConversionService.

Definition at line 325 of file textconversion_zh.cxx.

Member Data Documentation

◆ aLocale

css::lang::Locale i18npool::TextConversion_zh::aLocale
private

Definition at line 150 of file textconversion.hxx.

Referenced by getConversion(), getConversionWithOffset(), and getWordConversion().

◆ xCDL

css::uno::Reference< css::linguistic2::XConversionDictionaryList > i18npool::TextConversion_zh::xCDL
private

Definition at line 146 of file textconversion.hxx.

Referenced by getWordConversion(), and TextConversion_zh().


The documentation for this class was generated from the following files: