LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwAutoCompleteWord Class Reference

#include <acmplwrd.hxx>

Collaboration diagram for SwAutoCompleteWord:
[legend]

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::SortedAutoCompleteStringsGetWordList () const
 
void CheckChangedList (const editeng::SortedAutoCompleteStrings &rNewLst)
 
bool GetWordsMatching (const OUString &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 const m_LookupTree
 
SwAutoCompleteStringPtrDeque m_aLRUList
 
std::unique_ptr< SwAutoCompleteWord_Implm_pImpl
 
editeng::SortedAutoCompleteStrings::size_type m_nMaxCount
 
sal_uInt16 m_nMinWordLen
 
bool m_bLockWordList
 

Friends

class SwAutoCompleteClient
 

Detailed Description

Definition at line 36 of file acmplwrd.hxx.

Constructor & Destructor Documentation

SwAutoCompleteWord::SwAutoCompleteWord ( editeng::SortedAutoCompleteStrings::size_type  nWords,
sal_uInt16  nMWrdLen 
)

Definition at line 202 of file acmplwrd.cxx.

SwAutoCompleteWord::~SwAutoCompleteWord ( )

Member Function Documentation

void SwAutoCompleteWord::CheckChangedList ( const editeng::SortedAutoCompleteStrings rNewLst)

Definition at line 343 of file acmplwrd.cxx.

References m_aLRUList, and m_WordList.

Referenced by SwDocShell::Execute().

void SwAutoCompleteWord::DocumentDying ( const SwDoc rDoc)
private
sal_uInt16 SwAutoCompleteWord::GetMinWordLen ( ) const
inline

Definition at line 64 of file acmplwrd.hxx.

References m_nMinWordLen.

Referenced by SwTextFrame::AutoSpell_(), and SwTextFrame::CollectAutoCmplWrds().

const editeng::SortedAutoCompleteStrings& SwAutoCompleteWord::GetWordList ( ) const
inline

Definition at line 67 of file acmplwrd.hxx.

References m_WordList.

Referenced by SwDocShell::Execute().

bool SwAutoCompleteWord::GetWordsMatching ( const OUString &  aMatch,
std::vector< OUString > &  rWords 
) const

Return all words matching a given prefix.

Parameters
aMatchthe prefix to search for
rWordsthe words found matching

Definition at line 336 of file acmplwrd.cxx.

References editeng::Trie::findSuggestions(), and m_LookupTree.

Referenced by QuickHelpData::FillStrArr().

bool SwAutoCompleteWord::InsertWord ( const OUString &  rWord,
SwDoc rDoc 
)
bool SwAutoCompleteWord::IsLockWordLstLocked ( ) const
inline

Definition at line 59 of file acmplwrd.hxx.

References m_bLockWordList.

Referenced by SwLayIdle::DoIdleJob(), and SwDocShell::Execute().

void SwAutoCompleteWord::SetLockWordLstLocked ( bool  bFlag)
inline

Definition at line 60 of file acmplwrd.hxx.

Referenced by SwDocShell::Execute().

void SwAutoCompleteWord::SetMaxCount ( editeng::SortedAutoCompleteStrings::size_type  n)

Definition at line 287 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 308 of file acmplwrd.cxx.

References m_aLRUList, m_nMinWordLen, m_WordList, and nPos.

Referenced by SwDocShell::Execute().

Friends And Related Function Documentation

friend class SwAutoCompleteClient
friend

Definition at line 38 of file acmplwrd.hxx.

Member Data Documentation

SwAutoCompleteStringPtrDeque SwAutoCompleteWord::m_aLRUList
private

Definition at line 43 of file acmplwrd.hxx.

Referenced by CheckChangedList(), DocumentDying(), InsertWord(), SetMaxCount(), and SetMinWordLen().

bool SwAutoCompleteWord::m_bLockWordList
private

Definition at line 48 of file acmplwrd.hxx.

Referenced by InsertWord(), and IsLockWordLstLocked().

editeng::Trie const SwAutoCompleteWord::m_LookupTree
private

Definition at line 42 of file acmplwrd.hxx.

Referenced by GetWordsMatching(), and InsertWord().

editeng::SortedAutoCompleteStrings::size_type SwAutoCompleteWord::m_nMaxCount
private

Definition at line 46 of file acmplwrd.hxx.

Referenced by InsertWord(), and SetMaxCount().

sal_uInt16 SwAutoCompleteWord::m_nMinWordLen
private

Definition at line 47 of file acmplwrd.hxx.

Referenced by GetMinWordLen(), InsertWord(), and SetMinWordLen().

std::unique_ptr<SwAutoCompleteWord_Impl> SwAutoCompleteWord::m_pImpl
private

Definition at line 45 of file acmplwrd.hxx.

Referenced by DocumentDying(), and InsertWord().

editeng::SortedAutoCompleteStrings SwAutoCompleteWord::m_WordList
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().


The documentation for this class was generated from the following files: