LibreOffice Module lingucomponent (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MacSpellChecker Class Reference

#include <macspellimp.hxx>

Inheritance diagram for MacSpellChecker:
[legend]
Collaboration diagram for MacSpellChecker:
[legend]

Public Member Functions

 MacSpellChecker ()
 
virtual ~MacSpellChecker () override
 
virtual Sequence< Locale > SAL_CALL getLocales () override
 
virtual sal_Bool SAL_CALL hasLocale (const Locale &rLocale) override
 
virtual sal_Bool SAL_CALL isValid (const OUString &rWord, const Locale &rLocale, const css::uno::Sequence< PropertyValue > &rProperties) override
 
virtual Reference< XSpellAlternatives > SAL_CALL spell (const OUString &rWord, const Locale &rLocale, const css::uno::Sequence< PropertyValue > &rProperties) override
 
virtual sal_Bool SAL_CALL addLinguServiceEventListener (const Reference< XLinguServiceEventListener > &rxLstnr) override
 
virtual sal_Bool SAL_CALL removeLinguServiceEventListener (const Reference< XLinguServiceEventListener > &rxLstnr) override
 
virtual OUString SAL_CALL getServiceDisplayName (const Locale &rLocale) override
 
virtual void SAL_CALL initialize (const Sequence< Any > &rArguments) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const Reference< XEventListener > &rxListener) override
 
virtual void SAL_CALL removeEventListener (const Reference< XEventListener > &rxListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

 MacSpellChecker (const MacSpellChecker &)=delete
 
MacSpellCheckeroperator= (const MacSpellChecker &)=delete
 
linguistic::PropertyHelper_Spell & GetPropHelper_Impl ()
 
linguistic::PropertyHelper_Spell & GetPropHelper ()
 
sal_Int16 GetSpellFailure (const OUString &rWord, const Locale &rLocale)
 
Reference< XSpellAlternatives > GetProposals (const OUString &rWord, const Locale &rLocale)
 

Private Attributes

Sequence< LocaleaSuppLocales
 
rtl_TextEncoding * aDEncs
 
LocaleaDLocs
 
OUString * aDNames
 
sal_Int32 numdict
 
UITextChecker * pChecker
 
::comphelper::OInterfaceContainerHelper2 aEvtListeners
 
rtl::Reference< linguistic::PropertyHelper_Spell > xPropHelper
 
bool bDisposing
 

Detailed Description

Definition at line 51 of file macspellimp.hxx.

Constructor & Destructor Documentation

MacSpellChecker::MacSpellChecker ( const MacSpellChecker )
privatedelete
MacSpellChecker::MacSpellChecker ( )

Definition at line 48 of file macspellimp.mm.

References aDEncs, aDLocs, aDNames, bDisposing, GetLinguMutex(), numdict, and pChecker.

MacSpellChecker::~MacSpellChecker ( )
overridevirtual

Definition at line 67 of file macspellimp.mm.

References aDEncs, aDLocs, aDNames, numdict, and xPropHelper.

Member Function Documentation

void SAL_CALL MacSpellChecker::addEventListener ( const Reference< XEventListener > &  rxListener)
overridevirtual
sal_Bool SAL_CALL MacSpellChecker::addLinguServiceEventListener ( const Reference< XLinguServiceEventListener > &  rxLstnr)
overridevirtual

Definition at line 518 of file macspellimp.mm.

References bDisposing, GetLinguMutex(), and GetPropHelper().

void SAL_CALL MacSpellChecker::dispose ( void  )
overridevirtual
OUString SAL_CALL MacSpellChecker::getImplementationName ( )
overridevirtual

Definition at line 618 of file macspellimp.mm.

Sequence< Locale > SAL_CALL MacSpellChecker::getLocales ( )
overridevirtual

Definition at line 94 of file macspellimp.mm.

References aDEncs, aDLocs, aDNames, aSuppLocales, GetLinguMutex(), i, lang, length, Locale, numdict, and pLocale.

Referenced by hasLocale().

linguistic::PropertyHelper_Spell& MacSpellChecker::GetPropHelper ( )
inlineprivate
PropertyHelper_Spell & MacSpellChecker::GetPropHelper_Impl ( )
private

Definition at line 81 of file macspellimp.mm.

References GetLinguProperties(), and xPropHelper.

Referenced by GetPropHelper().

Reference< XSpellAlternatives > MacSpellChecker::GetProposals ( const OUString &  rWord,
const Locale rLocale 
)
private

Definition at line 429 of file macspellimp.mm.

References aStr, count(), length, LinguLocaleToLanguage(), n, pChecker, u, and void().

Referenced by spell().

OUString SAL_CALL MacSpellChecker::getServiceDisplayName ( const Locale rLocale)
overridevirtual

Definition at line 549 of file macspellimp.mm.

References GetLinguMutex().

sal_Int16 MacSpellChecker::GetSpellFailure ( const OUString &  rWord,
const Locale rLocale 
)
private

Definition at line 328 of file macspellimp.mm.

References n, pChecker, and u.

Referenced by isValid().

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

Definition at line 628 of file macspellimp.mm.

References SN_SPELLCHECKER.

sal_Bool SAL_CALL MacSpellChecker::hasLocale ( const Locale rLocale)
overridevirtual

Definition at line 306 of file macspellimp.mm.

References aSuppLocales, GetLinguMutex(), getLocales(), i, Locale, and pLocale.

Referenced by isValid(), and spell().

void SAL_CALL MacSpellChecker::initialize ( const Sequence< Any > &  rArguments)
overridevirtual

Pointer allows for access of the non-UNO functions. And the reference to the UNO-functions while increasing the ref-count and will implicitly free the memory when the object is no longer used.

Definition at line 557 of file macspellimp.mm.

References GetLinguMutex(), and xPropHelper.

sal_Bool SAL_CALL MacSpellChecker::isValid ( const OUString &  rWord,
const Locale rLocale,
const css::uno::Sequence< PropertyValue > &  rProperties 
)
overridevirtual
MacSpellChecker& MacSpellChecker::operator= ( const MacSpellChecker )
privatedelete
void SAL_CALL MacSpellChecker::removeEventListener ( const Reference< XEventListener > &  rxListener)
overridevirtual
sal_Bool SAL_CALL MacSpellChecker::removeLinguServiceEventListener ( const Reference< XLinguServiceEventListener > &  rxLstnr)
overridevirtual

Definition at line 533 of file macspellimp.mm.

References bDisposing, DBG_ASSERT, GetLinguMutex(), GetPropHelper(), and xPropHelper.

Reference< XSpellAlternatives > SAL_CALL MacSpellChecker::spell ( const OUString &  rWord,
const Locale rLocale,
const css::uno::Sequence< PropertyValue > &  rProperties 
)
overridevirtual

Definition at line 498 of file macspellimp.mm.

References GetLinguMutex(), GetProposals(), hasLocale(), isValid(), and Locale.

sal_Bool SAL_CALL MacSpellChecker::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 623 of file macspellimp.mm.

References cppu::supportsService().

Member Data Documentation

rtl_TextEncoding* MacSpellChecker::aDEncs
private

Definition at line 63 of file macspellimp.hxx.

Referenced by getLocales(), MacSpellChecker(), and ~MacSpellChecker().

Locale* MacSpellChecker::aDLocs
private

Definition at line 64 of file macspellimp.hxx.

Referenced by getLocales(), MacSpellChecker(), and ~MacSpellChecker().

OUString* MacSpellChecker::aDNames
private

Definition at line 65 of file macspellimp.hxx.

Referenced by getLocales(), MacSpellChecker(), and ~MacSpellChecker().

::comphelper::OInterfaceContainerHelper2 MacSpellChecker::aEvtListeners
private

Definition at line 72 of file macspellimp.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

Sequence< Locale > MacSpellChecker::aSuppLocales
private

Definition at line 62 of file macspellimp.hxx.

Referenced by getLocales(), and hasLocale().

bool MacSpellChecker::bDisposing
private
sal_Int32 MacSpellChecker::numdict
private

Definition at line 66 of file macspellimp.hxx.

Referenced by getLocales(), MacSpellChecker(), and ~MacSpellChecker().

UITextChecker* MacSpellChecker::pChecker
private

Definition at line 70 of file macspellimp.hxx.

Referenced by GetProposals(), GetSpellFailure(), and MacSpellChecker().

rtl::Reference< linguistic::PropertyHelper_Spell > MacSpellChecker::xPropHelper
private

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