LibreOffice Module lingucomponent (master)  1
Public Member Functions | Static 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
 

Static Public Member Functions

static OUString getImplementationName_Static () throw ()
 
static Sequence< OUString > getSupportedServiceNames_Static () throw ()
 

Private Member Functions

 MacSpellChecker (const MacSpellChecker &)=delete
 
MacSpellCheckeroperator= (const MacSpellChecker &)=delete
 
linguistic::PropertyHelper_SpellGetPropHelper_Impl ()
 
linguistic::PropertyHelper_SpellGetPropHelper ()
 
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
 
Reference< XPropertyChangeListener > xPropHelper
 
linguistic::PropertyHelper_SpellpPropHelper
 
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, pChecker, and pPropHelper.

MacSpellChecker::~MacSpellChecker ( )
overridevirtual

Member Function Documentation

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

Definition at line 631 of file macspellimp.mm.

References getImplementationName_Static().

OUString MacSpellChecker::getImplementationName_Static ( )
throw (
)
inlinestatic

Definition at line 125 of file macspellimp.hxx.

Referenced by getImplementationName(), and MacOSXSpell_component_getFactory().

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

Definition at line 96 of file macspellimp.mm.

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

Referenced by hasLocale().

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

after a reference is established

Definition at line 82 of file macspellimp.mm.

References linguistic::PropertyChgHelper::AddAsPropListener(), GetLinguProperties(), pPropHelper, and xPropHelper.

Referenced by GetPropHelper().

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

Definition at line 561 of file macspellimp.mm.

References GetLinguMutex().

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

Definition at line 330 of file macspellimp.mm.

References pChecker, and u.

Referenced by isValid().

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

Definition at line 641 of file macspellimp.mm.

References getSupportedServiceNames_Static().

Sequence< OUString > MacSpellChecker::getSupportedServiceNames_Static ( )
throw (
)
static

Definition at line 646 of file macspellimp.mm.

References SN_SPELLCHECKER.

Referenced by getSupportedServiceNames(), and MacOSXSpell_component_getFactory().

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

Definition at line 308 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.

after a reference is established

Definition at line 569 of file macspellimp.mm.

References linguistic::PropertyChgHelper::AddAsPropListener(), GetLinguMutex(), pPropHelper, 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
Reference< XSpellAlternatives > SAL_CALL MacSpellChecker::spell ( const OUString &  rWord,
const Locale rLocale,
const css::uno::Sequence< PropertyValue > &  rProperties 
)
overridevirtual

Definition at line 500 of file macspellimp.mm.

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

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

Definition at line 636 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().

linguistic::PropertyHelper_Spell* MacSpellChecker::pPropHelper
private

Definition at line 74 of file macspellimp.hxx.

Referenced by GetPropHelper_Impl(), initialize(), MacSpellChecker(), and ~MacSpellChecker().

Reference< XPropertyChangeListener > MacSpellChecker::xPropHelper
private

Definition at line 73 of file macspellimp.hxx.

Referenced by GetPropHelper_Impl(), initialize(), and removeLinguServiceEventListener().


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