LibreOffice Module lingucomponent (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
LangGuess_Impl Class Reference
Inheritance diagram for LangGuess_Impl:
[legend]
Collaboration diagram for LangGuess_Impl:
[legend]

Public Member Functions

 LangGuess_Impl ()
 
 LangGuess_Impl (const LangGuess_Impl &)=delete
 
LangGuess_Imploperator= (const LangGuess_Impl &)=delete
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::lang::Locale SAL_CALL guessPrimaryLanguage (const OUString &aText,::sal_Int32 nStartPos,::sal_Int32 nLen) override
 
virtual void SAL_CALL disableLanguages (const css::uno::Sequence< css::lang::Locale > &aLanguages) override
 
virtual void SAL_CALL enableLanguages (const css::uno::Sequence< css::lang::Locale > &aLanguages) override
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getAvailableLanguages () override
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getEnabledLanguages () override
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getDisabledLanguages () override
 
void SetFingerPrintsDB (const OUString &fileName)
 

Static Public Member Functions

static Sequence< OUString > getSupportedServiceNames_Static ()
 

Private Member Functions

virtual ~LangGuess_Impl () override
 
void EnsureInitialized ()
 

Private Attributes

SimpleGuesser m_aGuesser
 
bool m_bInitialized
 

Detailed Description

Definition at line 75 of file guesslang.cxx.

Constructor & Destructor Documentation

virtual LangGuess_Impl::~LangGuess_Impl ( )
inlineoverrideprivatevirtual

Definition at line 83 of file guesslang.cxx.

LangGuess_Impl::LangGuess_Impl ( )

Definition at line 110 of file guesslang.cxx.

LangGuess_Impl::LangGuess_Impl ( const LangGuess_Impl )
delete

Member Function Documentation

void SAL_CALL LangGuess_Impl::disableLanguages ( const css::uno::Sequence< css::lang::Locale > &  aLanguages)
overridevirtual
void SAL_CALL LangGuess_Impl::enableLanguages ( const css::uno::Sequence< css::lang::Locale > &  aLanguages)
overridevirtual
void LangGuess_Impl::EnsureInitialized ( )
private
uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getAvailableLanguages ( )
overridevirtual
uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getDisabledLanguages ( )
overridevirtual
uno::Sequence< Locale > SAL_CALL LangGuess_Impl::getEnabledLanguages ( )
overridevirtual
OUString SAL_CALL LangGuess_Impl::getImplementationName ( )
overridevirtual

Definition at line 314 of file guesslang.cxx.

References IMPLNAME.

Sequence< OUString > SAL_CALL LangGuess_Impl::getSupportedServiceNames ( )
overridevirtual

Definition at line 324 of file guesslang.cxx.

References getSupportedServiceNames_Static().

Sequence< OUString > LangGuess_Impl::getSupportedServiceNames_Static ( )
static

Definition at line 329 of file guesslang.cxx.

References aName, and SERVICENAME.

Referenced by getSupportedServiceNames().

Locale SAL_CALL LangGuess_Impl::guessPrimaryLanguage ( const OUString &  aText,
::sal_Int32  nStartPos,
::sal_Int32  nLen 
)
overridevirtual
LangGuess_Impl& LangGuess_Impl::operator= ( const LangGuess_Impl )
delete
void LangGuess_Impl::SetFingerPrintsDB ( const OUString &  fileName)
Exceptions
RuntimeException

text encoding for file name / path needs to be in the same encoding the OS uses

Definition at line 189 of file guesslang.cxx.

References DEFAULT_CONF_FILE_NAME, m_aGuesser, OUStringToOString(), and SimpleGuesser::SetDBPath().

Referenced by EnsureInitialized().

sal_Bool SAL_CALL LangGuess_Impl::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 319 of file guesslang.cxx.

References cppu::supportsService().

Member Data Documentation

SimpleGuesser LangGuess_Impl::m_aGuesser
private
bool LangGuess_Impl::m_bInitialized
private

Definition at line 81 of file guesslang.cxx.

Referenced by EnsureInitialized().


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