summaryrefslogtreecommitdiff
path: root/sw/inc/acmplwrd.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-30 23:37:30 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-30 23:43:48 +0200
commitd602a3b280fcc1cf16660d8719cd8eb8797dd2ad (patch)
treea95c7f891933bc7a7c8997e6114e9e4b6f7c297e /sw/inc/acmplwrd.hxx
parentfa351042bc425f0437bfb50d09220bedbc257948 (diff)
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
Diffstat (limited to 'sw/inc/acmplwrd.hxx')
-rw-r--r--sw/inc/acmplwrd.hxx5
1 files changed, 5 insertions, 0 deletions
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 <deque>
#include <editeng/swafopt.hxx>
+#include <editeng/LatinLookupTree.hxx>
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<String>& aWords) const;
};