LibreOffice Module linguistic (master) 1
|
#include <hyphdsp.hxx>
Public Member Functions | |
HyphenatorDispatcher (LngSvcMgr &rLngSvcMgr) | |
virtual | ~HyphenatorDispatcher () 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 css::uno::Reference< css::linguistic2::XHyphenatedWord > SAL_CALL | hyphenate (const OUString &aWord, const css::lang::Locale &aLocale, sal_Int16 nMaxLeading, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override |
virtual css::uno::Reference< css::linguistic2::XHyphenatedWord > SAL_CALL | queryAlternativeSpelling (const OUString &aWord, const css::lang::Locale &aLocale, sal_Int16 nIndex, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override |
virtual css::uno::Reference< css::linguistic2::XPossibleHyphens > SAL_CALL | createPossibleHyphens (const OUString &aWord, const css::lang::Locale &aLocale, 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 |
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_Hyph > | LangSvcEntries_Hyph_Ptr_t |
typedef std::map< LanguageType, LangSvcEntries_Hyph_Ptr_t > | HyphSvcByLangMap_t |
Private Member Functions | |
HyphenatorDispatcher (const HyphenatorDispatcher &)=delete | |
HyphenatorDispatcher & | operator= (const HyphenatorDispatcher &)=delete |
const css::uno::Reference< css::linguistic2::XLinguProperties > & | GetPropSet () |
const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & | GetDicList () |
void | ClearSvcList () |
Static Private Member Functions | |
static css::uno::Reference< css::linguistic2::XHyphenatedWord > | buildHyphWord (const OUString &rOrigWord, const css::uno::Reference< css::linguistic2::XDictionaryEntry > &xEntry, LanguageType nLang, sal_Int16 nMaxLeading) |
static css::uno::Reference< css::linguistic2::XPossibleHyphens > | buildPossHyphens (const css::uno::Reference< css::linguistic2::XDictionaryEntry > &xEntry, LanguageType nLanguage) |
Private Attributes | |
HyphSvcByLangMap_t | aSvcMap |
css::uno::Reference< css::linguistic2::XLinguProperties > | xPropSet |
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > | xDicList |
LngSvcMgr & | rMgr |
Additional Inherited Members | |
Protected Member Functions inherited from LinguDispatcher | |
~LinguDispatcher () | |
Definition at line 37 of file hyphdsp.hxx.
|
private |
Definition at line 45 of file hyphdsp.hxx.
|
private |
Definition at line 44 of file hyphdsp.hxx.
|
privatedelete |
|
explicit |
Definition at line 56 of file hyphdsp.cxx.
|
overridevirtual |
Definition at line 62 of file hyphdsp.cxx.
References ClearSvcList().
|
staticprivate |
multiple '=' should count as one only
take care of #i22591#
Definition at line 75 of file hyphdsp.cxx.
References linguistic::GetLinguMutex(), i, and split().
Referenced by hyphenate(), and queryAlternativeSpelling().
|
staticprivate |
multiple '=' should count as one only
Definition at line 181 of file hyphdsp.cxx.
References DBG_ASSERT, linguistic::GetLinguMutex(), and i.
Referenced by createPossibleHyphens().
|
private |
Definition at line 68 of file hyphdsp.cxx.
References aSvcMap.
Referenced by ~HyphenatorDispatcher().
|
overridevirtual |
Definition at line 535 of file hyphdsp.cxx.
References LngSvcMgr::AddLngSvcEvtBroadcaster(), LangSvcEntries::aSvcImplNames, aSvcMap, LangSvcEntries_Hyph::aSvcRefs, buildPossHyphens(), DBG_ASSERT, GetDicList(), linguistic::GetLinguMutex(), linguistic::GetLocaleDataWrapper(), comphelper::getProcessComponentContext(), GetPropSet(), i, linguistic::IsIgnoreControlChars(), linguistic::IsUseDicList(), linguistic::LinguIsUnspecified(), linguistic::LinguLocaleToLanguage(), LangSvcEntries::nLastTriedSvcIndex, RemoveControlChars(), RemoveHyphens(), rMgr, and SAL_WARN.
|
inlineprivate |
Definition at line 119 of file hyphdsp.hxx.
References linguistic::GetDictionaryList(), and xDicList.
Referenced by createPossibleHyphens(), hyphenate(), and queryAlternativeSpelling().
Definition at line 245 of file hyphdsp.cxx.
References aSvcMap, comphelper::containerToSequence(), and linguistic::GetLinguMutex().
|
inlineprivate |
Definition at line 110 of file hyphdsp.hxx.
References linguistic::GetLinguProperties(), and xPropSet.
Referenced by createPossibleHyphens(), hyphenate(), and queryAlternativeSpelling().
|
overridevirtual |
Implements LinguDispatcher.
Definition at line 684 of file hyphdsp.cxx.
References LangSvcEntries::aSvcImplNames, aSvcMap, linguistic::GetLinguMutex(), and linguistic::LinguLocaleToLanguage().
|
overridevirtual |
Definition at line 259 of file hyphdsp.cxx.
References aSvcMap, linguistic::GetLinguMutex(), and linguistic::LinguLocaleToLanguage().
|
overridevirtual |
because queryDictionaryEntry (in the end DictionaryNeo::getEntry) does not distinguish between "XYZ" and "XYZ." in order to avoid to require them as different entry we have to supply the original word here as well so it can be used in th result otherwise a strange effect may occur (see #i22591#)
Definition at line 268 of file hyphdsp.cxx.
References LngSvcMgr::AddLngSvcEvtBroadcaster(), LangSvcEntries::aSvcImplNames, aSvcMap, LangSvcEntries_Hyph::aSvcRefs, buildHyphWord(), DBG_ASSERT, GetDicList(), linguistic::GetLinguMutex(), linguistic::GetLocaleDataWrapper(), linguistic::GetPosInWordToCheck(), comphelper::getProcessComponentContext(), GetPropSet(), i, linguistic::IsIgnoreControlChars(), linguistic::IsUseDicList(), linguistic::LinguIsUnspecified(), linguistic::LinguLocaleToLanguage(), LangSvcEntries::nLastTriedSvcIndex, linguistic::RebuildHyphensAndControlChars(), RemoveControlChars(), RemoveHyphens(), rMgr, and SAL_WARN.
|
privatedelete |
|
overridevirtual |
Definition at line 404 of file hyphdsp.cxx.
References LngSvcMgr::AddLngSvcEvtBroadcaster(), LangSvcEntries::aSvcImplNames, aSvcMap, LangSvcEntries_Hyph::aSvcRefs, buildHyphWord(), DBG_ASSERT, GetDicList(), linguistic::GetLinguMutex(), linguistic::GetLocaleDataWrapper(), linguistic::GetPosInWordToCheck(), comphelper::getProcessComponentContext(), GetPropSet(), i, linguistic::IsIgnoreControlChars(), linguistic::IsUseDicList(), linguistic::LinguIsUnspecified(), linguistic::LinguLocaleToLanguage(), nIndex, LangSvcEntries::nLastTriedSvcIndex, linguistic::RebuildHyphensAndControlChars(), RemoveControlChars(), RemoveHyphens(), rMgr, and SAL_WARN.
|
overridevirtual |
Implements LinguDispatcher.
Definition at line 652 of file hyphdsp.cxx.
References LangSvcEntries::aSvcImplNames, aSvcMap, LangSvcEntries_Hyph::aSvcRefs, LangSvcEntries::Clear(), linguistic::GetLinguMutex(), and linguistic::LinguLocaleToLanguage().
Referenced by LngSvcMgr::SetCfgServiceLists().
|
private |
Definition at line 46 of file hyphdsp.hxx.
Referenced by ClearSvcList(), createPossibleHyphens(), getLocales(), GetServiceList(), hasLocale(), hyphenate(), queryAlternativeSpelling(), and SetServiceList().
|
private |
Definition at line 51 of file hyphdsp.hxx.
Referenced by createPossibleHyphens(), hyphenate(), and queryAlternativeSpelling().
|
private |
Definition at line 49 of file hyphdsp.hxx.
Referenced by GetDicList().
|
private |
Definition at line 48 of file hyphdsp.hxx.
Referenced by GetPropSet().