diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-06-11 23:13:14 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-06-11 23:14:30 +0200 |
commit | af3916f8ee5dbd5ccb3b8faca940b57ff2102d76 (patch) | |
tree | bd1fad667a235d8791321cc02d7b29a8a828df15 /sw/inc/acmplwrd.hxx | |
parent | 49a0278601ec73ee052086824536fa3d9796e5d3 (diff) |
fdo#55315 Added simple Trie lookup tree for autocomplete words storage
Added simple Trie lookup tree which is more tailored to what is needed
in autocomplete implementation, but still has the speed of the
LatinLookupTree that has been used till now. As the implementation
is much simpler it should be more managable and easier fixable.
For now two actions: insert (word) and findSuggestions are supported.
Acttion findSuggestion returns all words in a list for a searched
sub-word, it also fixes fdo#62945.
Change-Id: I63b69c30d28b4e1c465c2122ebc537f7f75a033a
Diffstat (limited to 'sw/inc/acmplwrd.hxx')
-rw-r--r-- | sw/inc/acmplwrd.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx index 7b2f40bea571..7be3b3ffea33 100644 --- a/sw/inc/acmplwrd.hxx +++ b/sw/inc/acmplwrd.hxx @@ -23,7 +23,7 @@ #include <deque> #include <editeng/swafopt.hxx> -#include <editeng/LatinLookupTree.hxx> +#include <editeng/Trie.hxx> class SwDoc; class SwAutoCompleteWord_Impl; @@ -38,7 +38,7 @@ class SwAutoCompleteWord /// contains extended strings carrying source information editeng::SortedAutoCompleteStrings m_WordList; - LookupTree* m_LookupTree; + editeng::Trie m_LookupTree; SwAutoCompleteStringPtrDeque aLRULst; SwAutoCompleteWord_Impl* pImpl; |