LibreOffice Module lingucomponent (master) 1
|
#include <sspellimp.hxx>
Classes | |
struct | DictItem |
Public Member Functions | |
SpellChecker () | |
virtual | ~SpellChecker () 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< css::beans::PropertyValue > &rProperties) override |
virtual Reference< XSpellAlternatives > SAL_CALL | spell (const OUString &rWord, const Locale &rLocale, const css::uno::Sequence< css::beans::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 | |
SpellChecker (const SpellChecker &)=delete | |
SpellChecker & | operator= (const SpellChecker &)=delete |
linguistic::PropertyHelper_Spelling & | GetPropHelper_Impl () |
linguistic::PropertyHelper_Spelling & | GetPropHelper () |
sal_Int16 | GetSpellFailure (const OUString &rWord, const Locale &rLocale, int &rInfo) |
Reference< XSpellAlternatives > | GetProposals (const OUString &rWord, const Locale &rLocale) |
Private Attributes | |
std::vector< DictItem > | m_DictItems |
Sequence< Locale > | m_aSuppLocales |
::comphelper::OInterfaceContainerHelper3< XEventListener > | m_aEvtListeners |
std::unique_ptr< linguistic::PropertyHelper_Spelling > | m_pPropHelper |
bool | m_bDisposing |
Definition at line 44 of file sspellimp.hxx.
|
privatedelete |
SpellChecker::SpellChecker | ( | ) |
Definition at line 74 of file sspellimp.cxx.
References GetLinguMutex().
Referenced by lingucomponent_SpellChecker_get_implementation().
|
overridevirtual |
Definition at line 87 of file sspellimp.cxx.
References m_pPropHelper.
|
overridevirtual |
Definition at line 608 of file sspellimp.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), GetLinguMutex(), m_aEvtListeners, and m_bDisposing.
|
overridevirtual |
Definition at line 533 of file sspellimp.cxx.
References GetLinguMutex(), GetPropHelper(), and m_bDisposing.
|
overridevirtual |
Definition at line 591 of file sspellimp.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), GetLinguMutex(), m_aEvtListeners, m_bDisposing, and m_pPropHelper.
|
overridevirtual |
Definition at line 625 of file sspellimp.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 107 of file sspellimp.cxx.
References SvtLinguConfigDictionaryEntry::aLocaleNames, SvtLinguConfigDictionaryEntry::aLocations, LanguageTag::convertToLocale(), DBG_ASSERT, SvtLinguConfig::GetActiveDictionariesByFormat(), GetLinguMutex(), GetOldStyleDics(), comphelper::getProcessServiceFactory(), SvtLinguConfig::GetSupportedDictionaryFormatsFor(), comphelper::LibreOfficeKit::isAllowlistedLanguage(), m_aSuppLocales, m_DictItems, MergeNewStyleDicsAndOldStyleDics(), nPos, SAL_WARN, and SAL_WARN_IF.
Referenced by hasLocale().
|
inlineprivate |
Definition at line 77 of file sspellimp.hxx.
References GetPropHelper_Impl(), and m_pPropHelper.
Referenced by addLinguServiceEventListener(), isValid(), and removeLinguServiceEventListener().
|
private |
after a reference is established
Definition at line 95 of file sspellimp.cxx.
References GetLinguProperties(), and m_pPropHelper.
Referenced by GetPropHelper().
|
private |
Definition at line 429 of file sspellimp.cxx.
References aStr, count, LinguLocaleToLanguage(), m_DictItems, n, OU2ENC, size, and u.
Referenced by spell().
|
overridevirtual |
Definition at line 559 of file sspellimp.cxx.
References Translate::Create(), and Translate::get().
|
private |
Definition at line 246 of file sspellimp.cxx.
References aBuf, DBG_ASSERT, getTextEncodingFromCharset(), m_DictItems, MAXWORDLEN, n, OU2ENC, OUStringToOString(), and u.
Referenced by isValid().
|
overridevirtual |
Definition at line 635 of file sspellimp.cxx.
References SN_SPELLCHECKER.
Definition at line 227 of file sspellimp.cxx.
References GetLinguMutex(), getLocales(), and m_aSuppLocales.
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 565 of file sspellimp.cxx.
References GetLinguMutex(), and m_pPropHelper.
|
overridevirtual |
Definition at line 376 of file sspellimp.cxx.
References GetLinguMutex(), GetPropHelper(), GetSpellFailure(), HasDigits(), hasLocale(), IsUpper(), LinguLocaleToLanguage(), Locale, and SPELL_XML.
Referenced by spell().
|
privatedelete |
|
overridevirtual |
Definition at line 616 of file sspellimp.cxx.
References GetLinguMutex(), m_aEvtListeners, m_bDisposing, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 546 of file sspellimp.cxx.
References GetLinguMutex(), GetPropHelper(), and m_bDisposing.
|
overridevirtual |
Definition at line 513 of file sspellimp.cxx.
References GetLinguMutex(), GetProposals(), hasLocale(), isValid(), and Locale.
|
overridevirtual |
Definition at line 630 of file sspellimp.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 69 of file sspellimp.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
Definition at line 67 of file sspellimp.hxx.
Referenced by getLocales(), and hasLocale().
|
private |
Definition at line 71 of file sspellimp.hxx.
Referenced by addEventListener(), addLinguServiceEventListener(), dispose(), removeEventListener(), and removeLinguServiceEventListener().
|
private |
Definition at line 65 of file sspellimp.hxx.
Referenced by getLocales(), GetProposals(), and GetSpellFailure().
|
private |
Definition at line 70 of file sspellimp.hxx.
Referenced by dispose(), GetPropHelper(), GetPropHelper_Impl(), initialize(), and ~SpellChecker().