From d602a3b280fcc1cf16660d8719cd8eb8797dd2ad Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 30 Jul 2012 23:37:30 +0200 Subject: First step to change sorted vector with LookupTree for word autocompletion. With this commit autocompletion words are inserted into a LookupTree instance and used when autocompleting words. Previouslly used sorted vector is still used for the GUI. Change-Id: Ib5aed38d575fbef7221afbebe824a440d4ffbc7e --- sw/inc/acmplwrd.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw/inc') diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx index 46281699f697..72421c384c7b 100644 --- a/sw/inc/acmplwrd.hxx +++ b/sw/inc/acmplwrd.hxx @@ -32,6 +32,7 @@ #include #include +#include class SwDoc; class SwAutoCompleteWord_Impl; @@ -46,6 +47,7 @@ class SwAutoCompleteWord /// contains extended strings carrying source information editeng::SortedAutoCompleteStrings m_WordList; + LookupTree* m_LookupTree; SwAutoCompleteStringPtrDeque aLRULst; SwAutoCompleteWord_Impl* pImpl; @@ -74,7 +76,10 @@ public: const editeng::SortedAutoCompleteStrings& GetWordList() const { return m_WordList; } + void CheckChangedList(const editeng::SortedAutoCompleteStrings& rNewLst); + + bool GetWordsMatching(String aMatch, std::vector& aWords) const; }; -- cgit