LibreOffice Module lingucomponent (master) 1
|
#include <nthesimp.hxx>
Classes | |
struct | ThesInfo |
Public Member Functions | |
Thesaurus () | |
virtual | ~Thesaurus () override |
virtual Sequence< Locale > SAL_CALL | getLocales () override |
virtual sal_Bool SAL_CALL | hasLocale (const Locale &rLocale) override |
virtual Sequence< Reference< css::linguistic2::XMeaning > > SAL_CALL | queryMeanings (const OUString &rTerm, const Locale &rLocale, const css::uno::Sequence< css::beans::PropertyValue > &rProperties) 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 | |
Thesaurus (const Thesaurus &)=delete | |
Thesaurus & | operator= (const Thesaurus &)=delete |
linguistic::PropertyHelper_Thesaurus & | GetPropHelper_Impl () |
linguistic::PropertyHelper_Thesaurus & | GetPropHelper () |
Static Private Member Functions | |
static OUString | makeLowerCase (const OUString &, CharClass const *) |
static OUString | makeUpperCase (const OUString &, CharClass const *) |
static OUString | makeInitCap (const OUString &, CharClass const *) |
Private Attributes | |
Sequence< Locale > | aSuppLocales |
::comphelper::OInterfaceContainerHelper3< XEventListener > | aEvtListeners |
linguistic::PropertyHelper_Thesaurus * | pPropHelper |
bool | bDisposing |
std::vector< ThesInfo > | mvThesInfo |
Sequence< Reference< css::linguistic2::XMeaning > > | prevMeanings |
OUString | prevTerm |
LanguageType | prevLocale |
Definition at line 55 of file nthesimp.hxx.
|
privatedelete |
Thesaurus::Thesaurus | ( | ) |
Definition at line 69 of file nthesimp.cxx.
References GetLinguMutex(), and LANGUAGE_DONTKNOW.
|
overridevirtual |
Definition at line 75 of file nthesimp.cxx.
References mvThesInfo, and pPropHelper.
|
overridevirtual |
Definition at line 532 of file nthesimp.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), aEvtListeners, bDisposing, and GetLinguMutex().
|
overridevirtual |
Definition at line 514 of file nthesimp.cxx.
References aEvtListeners, bDisposing, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), GetLinguMutex(), and pPropHelper.
|
overridevirtual |
Definition at line 549 of file nthesimp.cxx.
! for compatibility with old dictionaries (the ones not using extensions ! or new configuration entries, but still using the dictionary.lst file) ! Get the list of old style spell checking dictionaries to use...
For each dictionary and each locale we need a separate entry. If this results in more than one dictionary per locale than (for now) it is undefined which dictionary gets used. In the future the implementation should support using several dictionaries for one locale.
Definition at line 96 of file nthesimp.cxx.
References SvtLinguConfigDictionaryEntry::aLocaleNames, SvtLinguConfigDictionaryEntry::aLocations, aSuppLocales, comphelper::containerToSequence(), DBG_ASSERT, SvtLinguConfig::GetActiveDictionariesByFormat(), GetLinguMutex(), LanguageTag::getLocale(), GetOldStyleDics(), SvtLinguConfig::GetSupportedDictionaryFormatsFor(), comphelper::LibreOfficeKit::isAllowlistedLanguage(), Locale, MergeNewStyleDicsAndOldStyleDics(), mvThesInfo, and nPos.
Referenced by hasLocale().
|
inlineprivate |
Definition at line 89 of file nthesimp.hxx.
References GetPropHelper_Impl(), and pPropHelper.
Referenced by queryMeanings().
|
private |
after a reference is established
Definition at line 84 of file nthesimp.cxx.
References GetLinguProperties(), and pPropHelper.
Referenced by GetPropHelper().
|
overridevirtual |
Definition at line 450 of file nthesimp.cxx.
References Translate::Create(), and Translate::get().
|
overridevirtual |
Definition at line 559 of file nthesimp.cxx.
References SN_THESAURUS.
Definition at line 204 of file nthesimp.cxx.
References aSuppLocales, comphelper::findValue(), GetLinguMutex(), and getLocales().
Referenced by queryMeanings().
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 456 of file nthesimp.cxx.
References GetLinguMutex(), and pPropHelper.
|
staticprivate |
Definition at line 497 of file nthesimp.cxx.
References CharClass::lowercase(), and CharClass::uppercase().
Referenced by queryMeanings().
|
staticprivate |
Definition at line 483 of file nthesimp.cxx.
References CharClass::lowercase().
Referenced by queryMeanings().
|
staticprivate |
Definition at line 490 of file nthesimp.cxx.
References CharClass::uppercase().
Referenced by queryMeanings().
|
overridevirtual |
Definition at line 214 of file nthesimp.cxx.
References aStr, capitalType(), count, DBG_ASSERT, GetLinguMutex(), GetLngSvcMgr_Impl(), GetPropHelper(), getTextEncodingFromCharset(), hasLocale(), i, LinguIsUnspecified(), LinguLocaleToLanguage(), makeInitCap(), makeLowerCase(), makeUpperCase(), mvThesInfo, OU2ENC, OUStringToOString(), pos, prevLocale, prevMeanings, prevTerm, and SPELLML_SUPPORT.
|
overridevirtual |
Definition at line 540 of file nthesimp.cxx.
References aEvtListeners, bDisposing, GetLinguMutex(), and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 554 of file nthesimp.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 67 of file nthesimp.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
Definition at line 65 of file nthesimp.hxx.
Referenced by getLocales(), and hasLocale().
|
private |
Definition at line 69 of file nthesimp.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 78 of file nthesimp.hxx.
Referenced by getLocales(), queryMeanings(), and ~Thesaurus().
|
private |
Definition at line 68 of file nthesimp.hxx.
Referenced by dispose(), GetPropHelper(), GetPropHelper_Impl(), initialize(), and ~Thesaurus().
|
private |
Definition at line 83 of file nthesimp.hxx.
Referenced by queryMeanings().
Definition at line 81 of file nthesimp.hxx.
Referenced by queryMeanings().
|
private |
Definition at line 82 of file nthesimp.hxx.
Referenced by queryMeanings().