LibreOffice Module sw (master) 1
|
#include <acmplwrd.hxx>
Public Member Functions | |
SwAutoCompleteWord (editeng::SortedAutoCompleteStrings::size_type nWords, sal_uInt16 nMWrdLen) | |
~SwAutoCompleteWord () | |
bool | InsertWord (const OUString &rWord, SwDoc &rDoc) |
bool | IsLockWordLstLocked () const |
void | SetLockWordLstLocked (bool bFlag) |
void | SetMaxCount (editeng::SortedAutoCompleteStrings::size_type n) |
sal_uInt16 | GetMinWordLen () const |
void | SetMinWordLen (sal_uInt16 n) |
const editeng::SortedAutoCompleteStrings & | GetWordList () const |
void | CheckChangedList (const editeng::SortedAutoCompleteStrings &rNewLst) |
bool | GetWordsMatching (std::u16string_view aMatch, std::vector< OUString > &aWords) const |
Return all words matching a given prefix. More... | |
Private Member Functions | |
void | DocumentDying (const SwDoc &rDoc) |
Private Attributes | |
editeng::SortedAutoCompleteStrings | m_WordList |
contains extended strings carrying source information More... | |
editeng::Trie | m_LookupTree |
SwAutoCompleteStringPtrDeque | m_aLRUList |
std::unique_ptr< SwAutoCompleteWord_Impl > | m_pImpl |
editeng::SortedAutoCompleteStrings::size_type | m_nMaxCount |
sal_uInt16 | m_nMinWordLen |
bool | m_bLockWordList |
Friends | |
class | SwAutoCompleteClient |
Definition at line 36 of file acmplwrd.hxx.
SwAutoCompleteWord::SwAutoCompleteWord | ( | editeng::SortedAutoCompleteStrings::size_type | nWords, |
sal_uInt16 | nMWrdLen | ||
) |
Definition at line 219 of file acmplwrd.cxx.
References m_pImpl.
SwAutoCompleteWord::~SwAutoCompleteWord | ( | ) |
Definition at line 228 of file acmplwrd.cxx.
References SwAutoCompleteClient::GetElementCount(), SwAutoCompleteString::GetElementCount(), and m_WordList.
void SwAutoCompleteWord::CheckChangedList | ( | const editeng::SortedAutoCompleteStrings & | rNewLst | ) |
Definition at line 359 of file acmplwrd.cxx.
References m_aLRUList, and m_WordList.
Referenced by SwDocShell::Execute().
|
private |
Definition at line 400 of file acmplwrd.cxx.
References SvxSwAutoFormatFlags::bAutoCmpltKeepList, SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), SvxAutoCorrect::GetSwFlags(), m_aLRUList, m_pImpl, m_WordList, nPos, and SwAutoCompleteString::RemoveDocument().
Referenced by SwAutoCompleteClient::DocumentDying().
|
inline |
Definition at line 64 of file acmplwrd.hxx.
References m_nMinWordLen.
Referenced by SwTextFrame::AutoSpell_(), and SwTextFrame::CollectAutoCmplWrds().
|
inline |
Definition at line 67 of file acmplwrd.hxx.
References m_WordList.
Referenced by SwDocShell::Execute().
bool SwAutoCompleteWord::GetWordsMatching | ( | std::u16string_view | aMatch, |
std::vector< OUString > & | rWords | ||
) | const |
Return all words matching a given prefix.
aMatch | the prefix to search for |
rWords | the words found matching |
Definition at line 352 of file acmplwrd.cxx.
References editeng::Trie::findSuggestions(), and m_LookupTree.
Referenced by QuickHelpData::FillStrArr().
bool SwAutoCompleteWord::InsertWord | ( | const OUString & | rWord, |
SwDoc & | rDoc | ||
) |
Definition at line 238 of file acmplwrd.cxx.
References SwAutoCompleteString::AddDocument(), CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, SwDoc::GetDocShell(), SfxObjectShell::GetMedium(), INetURLObject::GetProtocol(), SfxMedium::GetURLObject(), editeng::Trie::insert(), m_aLRUList, m_bLockWordList, m_LookupTree, m_nMaxCount, m_nMinWordLen, m_pImpl, and m_WordList.
Referenced by SwTextFrame::AutoSpell_(), and SwTextFrame::CollectAutoCmplWrds().
|
inline |
Definition at line 59 of file acmplwrd.hxx.
References m_bLockWordList.
Referenced by SwDocShell::Execute().
|
inline |
Definition at line 60 of file acmplwrd.hxx.
References m_bLockWordList.
Referenced by SwDocShell::Execute().
void SwAutoCompleteWord::SetMaxCount | ( | editeng::SortedAutoCompleteStrings::size_type | n | ) |
Definition at line 304 of file acmplwrd.cxx.
References m_aLRUList, m_nMaxCount, and m_WordList.
Referenced by SwDocShell::Execute().
void SwAutoCompleteWord::SetMinWordLen | ( | sal_uInt16 | n | ) |
Definition at line 324 of file acmplwrd.cxx.
References getLength(), m_aLRUList, m_nMinWordLen, m_WordList, n, and nPos.
Referenced by SwDocShell::Execute().
|
friend |
Definition at line 38 of file acmplwrd.hxx.
|
private |
Definition at line 43 of file acmplwrd.hxx.
Referenced by CheckChangedList(), DocumentDying(), InsertWord(), SetMaxCount(), and SetMinWordLen().
|
private |
Definition at line 48 of file acmplwrd.hxx.
Referenced by InsertWord(), IsLockWordLstLocked(), and SetLockWordLstLocked().
|
private |
Definition at line 42 of file acmplwrd.hxx.
Referenced by GetWordsMatching(), and InsertWord().
|
private |
Definition at line 46 of file acmplwrd.hxx.
Referenced by InsertWord(), and SetMaxCount().
|
private |
Definition at line 47 of file acmplwrd.hxx.
Referenced by GetMinWordLen(), InsertWord(), and SetMinWordLen().
|
private |
Definition at line 45 of file acmplwrd.hxx.
Referenced by DocumentDying(), and InsertWord().
|
private |
contains extended strings carrying source information
Definition at line 41 of file acmplwrd.hxx.
Referenced by CheckChangedList(), DocumentDying(), GetWordList(), InsertWord(), SetMaxCount(), SetMinWordLen(), and ~SwAutoCompleteWord().