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 36 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 37 of file inputsequencechecker.cxx.

i18npool::InputSequenceCheckerImpl::~InputSequenceCheckerImpl ( )
overridevirtual

Definition at line 42 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 133 of file inputsequencechecker.cxx.

References serviceName.

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().

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

Definition at line 85 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 145 of file inputsequencechecker.cxx.

References serviceName.

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

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

Definition at line 68 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

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

Definition at line 67 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

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

Definition at line 70 of file inputsequencechecker.hxx.

Referenced by getInputSequenceChecker().

const char* i18npool::InputSequenceCheckerImpl::serviceName
private

Definition at line 59 of file inputsequencechecker.hxx.

Referenced by getImplementationName(), and getSupportedServiceNames().


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