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 (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_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::SwAutoCompleteWord ( editeng::SortedAutoCompleteStrings::size_type  nWords,
sal_uInt16  nMWrdLen 
)

Definition at line 219 of file acmplwrd.cxx.

References m_pImpl.

◆ ~SwAutoCompleteWord()

SwAutoCompleteWord::~SwAutoCompleteWord ( )

Member Function Documentation

◆ CheckChangedList()

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().

◆ DocumentDying()

void SwAutoCompleteWord::DocumentDying ( const SwDoc rDoc)
private

◆ GetMinWordLen()

sal_uInt16 SwAutoCompleteWord::GetMinWordLen ( ) const
inline

Definition at line 64 of file acmplwrd.hxx.

References m_nMinWordLen.

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

◆ GetWordList()

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

Definition at line 67 of file acmplwrd.hxx.

References m_WordList.

Referenced by SwDocShell::Execute().

◆ GetWordsMatching()

bool SwAutoCompleteWord::GetWordsMatching ( std::u16string_view  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 352 of file acmplwrd.cxx.

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

Referenced by QuickHelpData::FillStrArr().

◆ InsertWord()

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

◆ IsLockWordLstLocked()

bool SwAutoCompleteWord::IsLockWordLstLocked ( ) const
inline

Definition at line 59 of file acmplwrd.hxx.

References m_bLockWordList.

Referenced by SwDocShell::Execute().

◆ SetLockWordLstLocked()

void SwAutoCompleteWord::SetLockWordLstLocked ( bool  bFlag)
inline

Definition at line 60 of file acmplwrd.hxx.

References m_bLockWordList.

Referenced by SwDocShell::Execute().

◆ SetMaxCount()

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().

◆ SetMinWordLen()

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().

Friends And Related Function Documentation

◆ SwAutoCompleteClient

friend class SwAutoCompleteClient
friend

Definition at line 38 of file acmplwrd.hxx.

Member Data Documentation

◆ m_aLRUList

SwAutoCompleteStringPtrDeque SwAutoCompleteWord::m_aLRUList
private

Definition at line 43 of file acmplwrd.hxx.

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

◆ m_bLockWordList

bool SwAutoCompleteWord::m_bLockWordList
private

Definition at line 48 of file acmplwrd.hxx.

Referenced by InsertWord(), IsLockWordLstLocked(), and SetLockWordLstLocked().

◆ m_LookupTree

editeng::Trie SwAutoCompleteWord::m_LookupTree
private

Definition at line 42 of file acmplwrd.hxx.

Referenced by GetWordsMatching(), and InsertWord().

◆ m_nMaxCount

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

Definition at line 46 of file acmplwrd.hxx.

Referenced by InsertWord(), and SetMaxCount().

◆ m_nMinWordLen

sal_uInt16 SwAutoCompleteWord::m_nMinWordLen
private

Definition at line 47 of file acmplwrd.hxx.

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

◆ m_pImpl

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

Definition at line 45 of file acmplwrd.hxx.

Referenced by DocumentDying(), and InsertWord().

◆ m_WordList

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: