LibreOffice Module linguistic (master) 1
|
#include <spelldsp.hxx>
Public Member Functions | |
SpellCheckerDispatcher (LngSvcMgr &rLngSvcMgr) | |
virtual | ~SpellCheckerDispatcher () override |
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL | getLocales () override |
virtual sal_Bool SAL_CALL | hasLocale (const css::lang::Locale &aLocale) override |
virtual sal_Bool SAL_CALL | isValid (const OUString &aWord, const css::lang::Locale &aLocale, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override |
virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL | spell (const OUString &aWord, const css::lang::Locale &aLocale, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override |
virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL | getLanguages () override |
virtual sal_Bool SAL_CALL | hasLanguage (::sal_Int16 nLanguage) override |
virtual sal_Bool SAL_CALL | isValid (const OUString &aWord, ::sal_Int16 nLanguage, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override |
virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL | spell (const OUString &aWord, ::sal_Int16 nLanguage, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override |
virtual void | SetServiceList (const css::lang::Locale &rLocale, const css::uno::Sequence< OUString > &rSvcImplNames) override |
virtual css::uno::Sequence< OUString > | GetServiceList (const css::lang::Locale &rLocale) const override |
void | FlushSpellCache () |
virtual void | SetServiceList (const css::lang::Locale &rLocale, const css::uno::Sequence< OUString > &rSvcImplNames)=0 |
virtual css::uno::Sequence< OUString > | GetServiceList (const css::lang::Locale &rLocale) const =0 |
Private Types | |
typedef std::shared_ptr< LangSvcEntries_Spell > | LangSvcEntries_Spell_Ptr_t |
typedef std::map< LanguageType, LangSvcEntries_Spell_Ptr_t > | SpellSvcByLangMap_t |
Private Member Functions | |
SpellCheckerDispatcher (const SpellCheckerDispatcher &)=delete | |
SpellCheckerDispatcher & | operator= (const SpellCheckerDispatcher &)=delete |
linguistic::SpellCache & | GetCache () const |
const css::uno::Reference< css::linguistic2::XLinguProperties > & | GetPropSet () |
const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & | GetDicList () |
bool | isValid_Impl (const OUString &aWord, LanguageType nLanguage, const css::beans::PropertyValues &aProperties) |
css::uno::Reference< css::linguistic2::XSpellAlternatives > | spell_Impl (const OUString &aWord, LanguageType nLanguage, const css::beans::PropertyValues &aProperties) |
void | setCharClass (const LanguageTag &rLanguageTag) |
Static Private Member Functions | |
static OUString | makeLowerCase (const OUString &, const std::optional< CharClass > &) |
Private Attributes | |
SpellSvcByLangMap_t | m_aSvcMap |
css::uno::Reference< css::linguistic2::XLinguProperties > | m_xPropSet |
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > | m_xDicList |
LngSvcMgr & | m_rMgr |
std::unique_ptr< linguistic::SpellCache > | m_pCache |
std::optional< CharClass > | m_oCharClass |
Additional Inherited Members | |
Protected Member Functions inherited from LinguDispatcher | |
~LinguDispatcher () | |
Definition at line 40 of file spelldsp.hxx.
|
private |
Definition at line 48 of file spelldsp.hxx.
|
private |
Definition at line 49 of file spelldsp.hxx.
|
privatedelete |
|
explicit |
Definition at line 164 of file spelldsp.cxx.
|
overridevirtual |
Definition at line 170 of file spelldsp.cxx.
void SpellCheckerDispatcher::FlushSpellCache | ( | ) |
Definition at line 808 of file spelldsp.cxx.
References m_pCache.
|
inlineprivate |
Definition at line 113 of file spelldsp.hxx.
References m_pCache.
Referenced by isValid_Impl(), and spell_Impl().
|
inlineprivate |
Definition at line 131 of file spelldsp.hxx.
References linguistic::GetDictionaryList(), and m_xDicList.
Referenced by isValid_Impl(), and spell_Impl().
|
overridevirtual |
Definition at line 719 of file spelldsp.cxx.
References linguistic::GetLinguMutex(), getLocales(), and linguistic::LocaleSeqToLangSeq().
Definition at line 175 of file spelldsp.cxx.
References comphelper::containerToSequence(), linguistic::GetLinguMutex(), and m_aSvcMap.
Referenced by getLanguages().
|
inlineprivate |
Definition at line 122 of file spelldsp.hxx.
References linguistic::GetLinguProperties(), and m_xPropSet.
Referenced by isValid_Impl(), and spell_Impl().
|
overridevirtual |
Implements LinguDispatcher.
Definition at line 791 of file spelldsp.cxx.
References LangSvcEntries::aSvcImplNames, linguistic::GetLinguMutex(), linguistic::LinguLocaleToLanguage(), and m_aSvcMap.
|
overridevirtual |
Definition at line 728 of file spelldsp.cxx.
References LanguageTag::convertToLocale(), linguistic::GetLinguMutex(), and hasLocale().
|
overridevirtual |
Definition at line 189 of file spelldsp.cxx.
References linguistic::GetLinguMutex(), linguistic::LinguLocaleToLanguage(), and m_aSvcMap.
Referenced by hasLanguage(), isValid_Impl(), and spell_Impl().
|
overridevirtual |
|
overridevirtual |
|
private |
css::uno::RuntimeException | |
css::lang::IllegalArgumentException |
Definition at line 249 of file spelldsp.cxx.
References LngSvcMgr::AddLngSvcEvtBroadcaster(), linguistic::SpellCache::AddWord(), LangSvcEntries::aSvcImplNames, LangSvcEntries_Spell::aSvcRefs, linguistic::capitalType(), linguistic::SpellCache::CheckWord(), LanguageTag::convertToLocale(), DBG_ASSERT, GetCache(), GetDicList(), linguistic::GetLinguMutex(), linguistic::GetLocaleDataWrapper(), comphelper::getProcessComponentContext(), GetPropSet(), hasLocale(), i, linguistic::IsIgnoreControlChars(), linguistic::IsUseDicList(), lcl_GetRulingDictionaryEntry(), linguistic::LinguIsUnspecified(), Locale, m_aSvcMap, m_oCharClass, m_rMgr, makeLowerCase(), LangSvcEntries::nLastTriedSvcIndex, RemoveControlChars(), RemoveHyphens(), SAL_WARN, setCharClass(), and SvcListHasLanguage().
|
staticprivate |
Definition at line 822 of file spelldsp.cxx.
Referenced by isValid_Impl(), and spell_Impl().
|
privatedelete |
|
private |
Definition at line 814 of file spelldsp.cxx.
References m_oCharClass.
Referenced by isValid_Impl(), and spell_Impl().
|
overridevirtual |
Implements LinguDispatcher.
Definition at line 756 of file spelldsp.cxx.
References LangSvcEntries::aSvcImplNames, LangSvcEntries_Spell::aSvcRefs, LangSvcEntries::Clear(), linguistic::GetLinguMutex(), linguistic::LinguLocaleToLanguage(), m_aSvcMap, and m_pCache.
Referenced by LngSvcMgr::SetCfgServiceLists().
|
overridevirtual |
|
overridevirtual |
|
private |
css::uno::RuntimeException | |
css::lang::IllegalArgumentException |
Definition at line 412 of file spelldsp.cxx.
References LngSvcMgr::AddLngSvcEvtBroadcaster(), linguistic::SpellCache::AddWord(), LangSvcEntries::aSvcImplNames, LangSvcEntries_Spell::aSvcRefs, linguistic::capitalType(), linguistic::SpellCache::CheckWord(), comphelper::containerToSequence(), LanguageTag::convertToLocale(), DBG_ASSERT, GetCache(), GetDicList(), linguistic::GetLinguMutex(), linguistic::GetLocaleDataWrapper(), comphelper::getProcessComponentContext(), GetPropSet(), hasLocale(), i, linguistic::IsIgnoreControlChars(), linguistic::IsUseDicList(), lcl_GetRulingDictionaryEntry(), linguistic::LinguIsUnspecified(), Locale, m_aSvcMap, m_oCharClass, m_rMgr, makeLowerCase(), LangSvcEntries::nLastTriedSvcIndex, RemoveControlChars(), RemoveHyphens(), SAL_WARN, linguistic::SearchDicList(), linguistic::SearchSimilarText(), linguistic::SeqRemoveNegEntries(), setCharClass(), and SvcListHasLanguage().
|
private |
Definition at line 50 of file spelldsp.hxx.
Referenced by getLocales(), GetServiceList(), hasLocale(), isValid_Impl(), SetServiceList(), and spell_Impl().
|
private |
Definition at line 57 of file spelldsp.hxx.
Referenced by isValid_Impl(), setCharClass(), and spell_Impl().
|
mutableprivate |
Definition at line 56 of file spelldsp.hxx.
Referenced by FlushSpellCache(), GetCache(), and SetServiceList().
|
private |
Definition at line 55 of file spelldsp.hxx.
Referenced by isValid_Impl(), and spell_Impl().
|
private |
Definition at line 53 of file spelldsp.hxx.
Referenced by GetDicList().
|
private |
Definition at line 52 of file spelldsp.hxx.
Referenced by GetPropSet().