LibreOffice Module i18npool (master)  1
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
i18npool::InputSequenceCheckerImpl Class Reference

#include <inputsequencechecker.hxx>

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

Classes

struct  lookupTableItem
 

Public Member Functions

 InputSequenceCheckerImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
 InputSequenceCheckerImpl (const char *pServiceName)
 
virtual ~InputSequenceCheckerImpl () override
 
virtual sal_Bool SAL_CALL checkInputSequence (const OUString &Text, sal_Int32 nStartPos, sal_Unicode inputChar, sal_Int16 inputCheckMode) override
 
virtual sal_Int32 SAL_CALL correctInputSequence (OUString &Text, sal_Int32 nStartPos, sal_Unicode inputChar, sal_Int16 inputCheckMode) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > & getInputSequenceChecker (char const *rLanguage)
 

Static Private Member Functions

static char * getLanguageByScripType (sal_Unicode cChar, sal_Unicode nChar)
 

Private Attributes

const char * serviceName
 
std::vector< std::unique_ptr< lookupTableItem > > lookupTable
 
lookupTableItemcachedItem
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 35 of file inputsequencechecker.hxx.

Constructor & Destructor Documentation

i18npool::InputSequenceCheckerImpl::InputSequenceCheckerImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
i18npool::InputSequenceCheckerImpl::InputSequenceCheckerImpl ( const char *  pServiceName)

Definition at line 38 of file inputsequencechecker.cxx.

i18npool::InputSequenceCheckerImpl::~InputSequenceCheckerImpl ( )
overridevirtual

Definition at line 44 of file inputsequencechecker.cxx.

Member Function Documentation

sal_Bool SAL_CALL i18npool::InputSequenceCheckerImpl::checkInputSequence ( const OUString &  Text,
sal_Int32  nStartPos,
sal_Unicode  inputChar,
sal_Int16  inputCheckMode 
)
overridevirtual
sal_Int32 SAL_CALL i18npool::InputSequenceCheckerImpl::correctInputSequence ( OUString &  Text,
sal_Int32  nStartPos,
sal_Unicode  inputChar,
sal_Int16  inputCheckMode 
)
overridevirtual
OUString SAL_CALL i18npool::InputSequenceCheckerImpl::getImplementationName ( )
overridevirtual

Definition at line 135 of file inputsequencechecker.cxx.

References serviceName.

Reference< XExtendedInputSequenceChecker > & i18npool::InputSequenceCheckerImpl::getInputSequenceChecker ( char const *  rLanguage)
private
char * i18npool::InputSequenceCheckerImpl::getLanguageByScripType ( sal_Unicode  cChar,
sal_Unicode  nChar 
)
staticprivate

Definition at line 87 of file inputsequencechecker.cxx.

References unicode::getUnicodeScriptType(), and type.

Referenced by checkInputSequence(), and correctInputSequence().

Sequence< OUString > SAL_CALL i18npool::InputSequenceCheckerImpl::getSupportedServiceNames ( )
overridevirtual

Definition at line 147 of file inputsequencechecker.cxx.

References serviceName.

sal_Bool SAL_CALL i18npool::InputSequenceCheckerImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 141 of file inputsequencechecker.cxx.

References cppu::supportsService().

Member Data Documentation

lookupTableItem* i18npool::InputSequenceCheckerImpl::cachedItem
private

Definition at line 67 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

std::vector<std::unique_ptr<lookupTableItem> > i18npool::InputSequenceCheckerImpl::lookupTable
private

Definition at line 66 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

css::uno::Reference< css::uno::XComponentContext > i18npool::InputSequenceCheckerImpl::m_xContext
private

Definition at line 69 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

const char* i18npool::InputSequenceCheckerImpl::serviceName
private

Definition at line 58 of file inputsequencechecker.hxx.

Referenced by getImplementationName(), and getSupportedServiceNames().


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