LibreOffice Module lingucomponent (master) 1
|
#include <hyphenimp.hxx>
Public Member Functions | |
Hyphenator () | |
virtual | ~Hyphenator () override |
virtual Sequence< Locale > SAL_CALL | getLocales () override |
virtual sal_Bool SAL_CALL | hasLocale (const Locale &rLocale) 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 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 | |
Hyphenator (const Hyphenator &)=delete | |
Hyphenator & | operator= (const Hyphenator &)=delete |
linguistic::PropertyHelper_Hyphenation & | GetPropHelper_Impl () |
linguistic::PropertyHelper_Hyphenation & | 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 |
std::vector< HDInfo > | mvDicts |
::comphelper::OInterfaceContainerHelper3< XEventListener > | aEvtListeners |
std::unique_ptr< linguistic::PropertyHelper_Hyphenation > | pPropHelper |
bool | bDisposing |
Definition at line 57 of file hyphenimp.hxx.
|
privatedelete |
Hyphenator::Hyphenator | ( | ) |
Definition at line 66 of file hyphenimp.cxx.
References bDisposing, and GetLinguMutex().
|
overridevirtual |
Definition at line 72 of file hyphenimp.cxx.
References mvDicts, and pPropHelper.
|
overridevirtual |
Definition at line 765 of file hyphenimp.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), aEvtListeners, bDisposing, and GetLinguMutex().
|
overridevirtual |
Definition at line 690 of file hyphenimp.cxx.
References bDisposing, GetLinguMutex(), and GetPropHelper().
|
overridevirtual |
Definition at line 491 of file hyphenimp.cxx.
References aProperties, ch, DBG_ASSERT, GetPropHelper(), i, LinguLocaleToLanguage(), makeLowerCase(), mvDicts, n, OU2ENC, pos, SAL_MAX_INT16, SAL_MIN_INT16, SAL_WARN, and u.
|
overridevirtual |
Definition at line 748 of file hyphenimp.cxx.
References aEvtListeners, bDisposing, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), GetLinguMutex(), and pPropHelper.
|
overridevirtual |
Definition at line 782 of file hyphenimp.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 98 of file hyphenimp.cxx.
References SvtLinguConfigDictionaryEntry::aLocaleNames, SvtLinguConfigDictionaryEntry::aLocations, aSuppLocales, comphelper::containerToSequence(), DBG_ASSERT, SvtLinguConfig::GetActiveDictionariesByFormat(), GetLinguMutex(), LanguageTag::getLocale(), GetOldStyleDics(), SvtLinguConfig::GetSupportedDictionaryFormatsFor(), MergeNewStyleDicsAndOldStyleDics(), mvDicts, and nPos.
Referenced by hasLocale().
|
inlineprivate |
Definition at line 79 of file hyphenimp.hxx.
References GetPropHelper_Impl(), and pPropHelper.
Referenced by addLinguServiceEventListener(), createPossibleHyphens(), hyphenate(), and removeLinguServiceEventListener().
|
private |
after a reference is established
Definition at line 86 of file hyphenimp.cxx.
References GetLinguProperties(), and pPropHelper.
Referenced by GetPropHelper().
|
overridevirtual |
Definition at line 716 of file hyphenimp.cxx.
References Translate::Create(), and Translate::get().
|
overridevirtual |
Definition at line 792 of file hyphenimp.cxx.
References SN_HYPHENATOR.
Definition at line 206 of file hyphenimp.cxx.
References aSuppLocales, comphelper::findValue(), GetLinguMutex(), and getLocales().
|
overridevirtual |
Definition at line 244 of file hyphenimp.cxx.
References aProperties, capitalType(), ch, DBG_ASSERT, GetPosInWordToCheck(), GetPropHelper(), i, Leading, LinguLocaleToLanguage(), makeInitCap(), makeLowerCase(), makeUpperCase(), mvDicts, n, nPos, OU2ENC, pos, and u.
Referenced by queryAlternativeSpelling().
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 722 of file hyphenimp.cxx.
References GetLinguMutex(), and pPropHelper.
|
staticprivate |
Definition at line 676 of file hyphenimp.cxx.
References CharClass::lowercase(), and CharClass::uppercase().
Referenced by hyphenate().
|
staticprivate |
Definition at line 662 of file hyphenimp.cxx.
References CharClass::lowercase().
Referenced by createPossibleHyphens(), and hyphenate().
|
staticprivate |
Definition at line 669 of file hyphenimp.cxx.
References CharClass::uppercase().
Referenced by hyphenate().
|
privatedelete |
|
overridevirtual |
Definition at line 475 of file hyphenimp.cxx.
References aProperties, hyphenate(), and nIndex.
|
overridevirtual |
Definition at line 773 of file hyphenimp.cxx.
References aEvtListeners, bDisposing, GetLinguMutex(), and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 703 of file hyphenimp.cxx.
References bDisposing, GetLinguMutex(), and GetPropHelper().
|
overridevirtual |
Definition at line 787 of file hyphenimp.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 71 of file hyphenimp.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
Definition at line 68 of file hyphenimp.hxx.
Referenced by getLocales(), and hasLocale().
|
private |
Definition at line 73 of file hyphenimp.hxx.
Referenced by addEventListener(), addLinguServiceEventListener(), dispose(), Hyphenator(), removeEventListener(), and removeLinguServiceEventListener().
|
private |
Definition at line 69 of file hyphenimp.hxx.
Referenced by createPossibleHyphens(), getLocales(), hyphenate(), and ~Hyphenator().
|
private |
Definition at line 72 of file hyphenimp.hxx.
Referenced by dispose(), GetPropHelper(), GetPropHelper_Impl(), initialize(), and ~Hyphenator().