LibreOffice Module linguistic (master) 1
|
#include <dlistimp.hxx>
Classes | |
class | MyAppExitListener |
Public Member Functions | |
DicList () | |
virtual | ~DicList () override |
virtual ::sal_Int16 SAL_CALL | getCount () override |
virtual css::uno::Sequence< css::uno::Reference< css::linguistic2::XDictionary > > SAL_CALL | getDictionaries () override |
virtual css::uno::Reference< css::linguistic2::XDictionary > SAL_CALL | getDictionaryByName (const OUString &aDictionaryName) override |
virtual sal_Bool SAL_CALL | addDictionary (const css::uno::Reference< css::linguistic2::XDictionary > &xDictionary) override |
virtual sal_Bool SAL_CALL | removeDictionary (const css::uno::Reference< css::linguistic2::XDictionary > &xDictionary) override |
virtual sal_Bool SAL_CALL | addDictionaryListEventListener (const css::uno::Reference< css::linguistic2::XDictionaryListEventListener > &xListener, sal_Bool bReceiveVerbose) override |
virtual sal_Bool SAL_CALL | removeDictionaryListEventListener (const css::uno::Reference< css::linguistic2::XDictionaryListEventListener > &xListener) override |
virtual ::sal_Int16 SAL_CALL | beginCollectEvents () override |
virtual ::sal_Int16 SAL_CALL | endCollectEvents () override |
virtual ::sal_Int16 SAL_CALL | flushEvents () override |
virtual css::uno::Reference< css::linguistic2::XDictionary > SAL_CALL | createDictionary (const OUString &aName, const css::lang::Locale &aLocale, css::linguistic2::DictionaryType eDicType, const OUString &aURL) override |
virtual css::uno::Reference< css::linguistic2::XDictionaryEntry > SAL_CALL | queryDictionaryEntry (const OUString &aWord, const css::lang::Locale &aLocale, sal_Bool bSearchPosDics, sal_Bool bSpellEntry) override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
void | SaveDics () |
Private Types | |
typedef std::vector< css::uno::Reference< css::linguistic2::XDictionary > > | DictionaryVec_t |
Private Member Functions | |
DicList (const DicList &)=delete | |
DicList & | operator= (const DicList &)=delete |
void | CreateDicList () |
DictionaryVec_t & | GetOrCreateDicList () |
void | SearchForDictionaries (DictionaryVec_t &rDicList, const OUString &rDicDir, bool bIsWritePath) |
sal_Int32 | GetDicPos (const css::uno::Reference< css::linguistic2::XDictionary > &xDic) |
Private Attributes | |
LinguOptions | aOpt |
::comphelper::OInterfaceContainerHelper3< css::lang::XEventListener > | aEvtListeners |
DictionaryVec_t | aDicList |
rtl::Reference< DicEvtListenerHelper > | mxDicEvtLstnrHelper |
rtl::Reference< MyAppExitListener > | mxExitListener |
bool | bDisposing |
bool | bInCreation |
Definition at line 38 of file dlistimp.hxx.
|
private |
Definition at line 59 of file dlistimp.hxx.
|
privatedelete |
DicList::DicList | ( | ) |
Definition at line 251 of file dlistimp.cxx.
References bDisposing, bInCreation, mxDicEvtLstnrHelper, and mxExitListener.
|
overridevirtual |
Definition at line 262 of file dlistimp.cxx.
References mxExitListener.
|
overridevirtual |
Definition at line 384 of file dlistimp.cxx.
References bDisposing, linguistic::GetLinguMutex(), GetOrCreateDicList(), and mxDicEvtLstnrHelper.
Referenced by CreateDicList(), and SearchForDictionaries().
|
overridevirtual |
don't add empty references
Definition at line 436 of file dlistimp.cxx.
References bDisposing, DBG_ASSERT, linguistic::GetLinguMutex(), and mxDicEvtLstnrHelper.
|
overridevirtual |
Definition at line 557 of file dlistimp.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), aEvtListeners, bDisposing, and linguistic::GetLinguMutex().
|
override |
Definition at line 471 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), and mxDicEvtLstnrHelper.
|
private |
to suppress overwriting the list of active dictionaries in the configuration with incorrect arguments during the following activation of the dictionaries
Definition at line 574 of file dlistimp.cxx.
References addDictionary(), AddUserData(), aDicList, aOpt, bInCreation, Translate::Create(), createDictionary(), Translate::get(), LinguOptions::GetActiveDics(), getDictionaryByName(), linguistic::GetDictionaryPaths(), linguistic::GetDictionaryWriteablePath(), LANGUAGE_NONE, linguistic::LinguLanguageToLocale(), mxDicEvtLstnrHelper, and SearchForDictionaries().
Referenced by GetOrCreateDicList().
|
overridevirtual |
Definition at line 490 of file dlistimp.cxx.
References linguistic::GetDictionaryWriteablePath(), linguistic::GetLinguMutex(), and linguistic::LinguLocaleToLanguage().
Referenced by CreateDicList().
|
overridevirtual |
avoid creation of dictionaries if not already done
Definition at line 512 of file dlistimp.cxx.
References aDicList, aEvtListeners, bDisposing, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), Exception, linguistic::GetLinguMutex(), GetOrCreateDicList(), i, mxDicEvtLstnrHelper, and nCount.
|
override |
Definition at line 477 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), and mxDicEvtLstnrHelper.
|
override |
Definition at line 483 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), and mxDicEvtLstnrHelper.
|
override |
Definition at line 347 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), and GetOrCreateDicList().
|
private |
Definition at line 333 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), GetOrCreateDicList(), i, and n.
Referenced by removeDictionary().
|
overridevirtual |
Definition at line 354 of file dlistimp.cxx.
References comphelper::containerToSequence(), linguistic::GetLinguMutex(), and GetOrCreateDicList().
|
overridevirtual |
Definition at line 364 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), GetOrCreateDicList(), i, and nCount.
Referenced by CreateDicList().
|
overridevirtual |
Definition at line 658 of file dlistimp.cxx.
|
inlineprivate |
Definition at line 72 of file dlistimp.hxx.
References aDicList, bInCreation, and CreateDicList().
Referenced by addDictionary(), dispose(), getCount(), GetDicPos(), getDictionaries(), getDictionaryByName(), removeDictionary(), and SaveDics().
|
overridevirtual |
Definition at line 669 of file dlistimp.cxx.
|
overridevirtual |
Definition at line 502 of file dlistimp.cxx.
References linguistic::GetLinguMutex(), linguistic::LinguLocaleToLanguage(), and linguistic::SearchDicList().
|
overridevirtual |
Definition at line 406 of file dlistimp.cxx.
References bDisposing, DBG_ASSERT, GetDicPos(), linguistic::GetLinguMutex(), GetOrCreateDicList(), mxDicEvtLstnrHelper, and nPos.
|
overridevirtual |
Definition at line 455 of file dlistimp.cxx.
References bDisposing, linguistic::GetLinguMutex(), and mxDicEvtLstnrHelper.
|
overridevirtual |
Definition at line 566 of file dlistimp.cxx.
References aEvtListeners, bDisposing, linguistic::GetLinguMutex(), and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
void DicList::SaveDics | ( | ) |
don't create them just for the purpose of saving them !
Definition at line 627 of file dlistimp.cxx.
References aDicList, Exception, GetOrCreateDicList(), i, and nCount.
Referenced by DicList::MyAppExitListener::AtExit().
|
private |
Definition at line 268 of file dlistimp.cxx.
References addDictionary(), aURL, eType, SvtSysLocale::GetCharClass(), linguistic::GetLinguMutex(), INetURLObject::getName(), IsVers2OrNewer(), LANGUAGE_NONE, INetURLObject::LAST_SEGMENT, CharClass::lowercase(), nCount, nPos, and INetURLObject::WithCharset.
Referenced by CreateDicList().
|
overridevirtual |
Definition at line 664 of file dlistimp.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 60 of file dlistimp.hxx.
Referenced by CreateDicList(), dispose(), GetOrCreateDicList(), and SaveDics().
|
private |
Definition at line 57 of file dlistimp.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 55 of file dlistimp.hxx.
Referenced by CreateDicList().
|
private |
Definition at line 65 of file dlistimp.hxx.
Referenced by addDictionary(), addDictionaryListEventListener(), addEventListener(), DicList(), dispose(), removeDictionary(), removeDictionaryListEventListener(), and removeEventListener().
|
private |
Definition at line 66 of file dlistimp.hxx.
Referenced by CreateDicList(), DicList(), and GetOrCreateDicList().
|
private |
Definition at line 62 of file dlistimp.hxx.
Referenced by addDictionary(), addDictionaryListEventListener(), beginCollectEvents(), CreateDicList(), DicList(), dispose(), endCollectEvents(), flushEvents(), removeDictionary(), and removeDictionaryListEventListener().
|
private |
Definition at line 63 of file dlistimp.hxx.
Referenced by DicList(), and ~DicList().