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
 
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 128 of file textconversion.hxx.

Constructor & Destructor Documentation

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

OUString i18npool::TextConversion_zh::getCharConversion ( const rtl::OUString &  aText,
sal_Int32  nStartPos,
sal_Int32  nLength,
bool  toSChinese,
sal_Int32  nConversionOptions 
)
private
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 282 of file textconversion_zh.cxx.

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

Referenced by 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 268 of file textconversion_zh.cxx.

References getConversion(), and result.

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
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
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 324 of file textconversion_zh.cxx.

Member Data Documentation

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

Definition at line 156 of file textconversion.hxx.

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

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

Definition at line 152 of file textconversion.hxx.

Referenced by getWordConversion(), and TextConversion_zh().


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