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< lookupTableItemlookupTable
 
std::optional< lookupTableItemcachedItem
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 35 of file inputsequencechecker.hxx.

Constructor & Destructor Documentation

◆ InputSequenceCheckerImpl() [1/2]

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

◆ InputSequenceCheckerImpl() [2/2]

i18npool::InputSequenceCheckerImpl::InputSequenceCheckerImpl ( const char *  pServiceName)

Definition at line 37 of file inputsequencechecker.cxx.

◆ ~InputSequenceCheckerImpl()

i18npool::InputSequenceCheckerImpl::~InputSequenceCheckerImpl ( )
overridevirtual

Definition at line 42 of file inputsequencechecker.cxx.

Member Function Documentation

◆ checkInputSequence()

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

◆ correctInputSequence()

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

◆ getImplementationName()

OUString SAL_CALL i18npool::InputSequenceCheckerImpl::getImplementationName ( )
overridevirtual

Definition at line 133 of file inputsequencechecker.cxx.

References serviceName.

◆ getInputSequenceChecker()

Reference< XExtendedInputSequenceChecker > & i18npool::InputSequenceCheckerImpl::getInputSequenceChecker ( char const *  rLanguage)
private
Exceptions
css::uno::RuntimeException

Definition at line 103 of file inputsequencechecker.cxx.

References cachedItem, lookupTable, and m_xContext.

Referenced by checkInputSequence(), and correctInputSequence().

◆ getLanguageByScripType()

char * i18npool::InputSequenceCheckerImpl::getLanguageByScripType ( sal_Unicode  cChar,
sal_Unicode  nChar 
)
staticprivate

◆ getSupportedServiceNames()

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

Definition at line 145 of file inputsequencechecker.cxx.

References serviceName.

◆ supportsService()

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

Definition at line 139 of file inputsequencechecker.cxx.

References cppu::supportsService().

Member Data Documentation

◆ cachedItem

std::optional<lookupTableItem> i18npool::InputSequenceCheckerImpl::cachedItem
private

Definition at line 67 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

◆ lookupTable

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

Definition at line 66 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

◆ m_xContext

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

Definition at line 69 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

◆ serviceName

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: