summaryrefslogtreecommitdiff
path: root/sw/inc/acmplwrd.hxx
diff options
context:
space:
mode:
authorNico Weyand <nico.weyand@gmail.com>2012-09-02 22:09:38 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-09-02 22:09:38 +0200
commit51f9e894f46e718200a14bcd61e9e44c64bc5396 (patch)
tree2bcfe6dfb102cce9807003d8b50a8ad18261c741 /sw/inc/acmplwrd.hxx
parent4b161067d46ddd48b4602ccdcc4d1b2545e2ac83 (diff)
Improved usage of the auto-complete tree structure.
Auto-complete lookup structure remembers as-you-type the character position in a word. Currently the whole word was always looked up which was not necessary. This patch improves this. Change-Id: I7dced25707979377ae3f696a5987956d2308aeec
Diffstat (limited to 'sw/inc/acmplwrd.hxx')
-rw-r--r--sw/inc/acmplwrd.hxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index 72421c384c7b..8e0dd750141a 100644
--- a/sw/inc/acmplwrd.hxx
+++ b/sw/inc/acmplwrd.hxx
@@ -79,7 +79,21 @@ public:
void CheckChangedList(const editeng::SortedAutoCompleteStrings& rNewLst);
- bool GetWordsMatching(String aMatch, std::vector<String>& aWords) const;
+ // Resets the current position within the tree to its root node.
+ void returnToRoot();
+
+ // Advances to a given node within the AutoComplete tree.
+ void gotoNode(OUString sNode);
+
+ // Advances from the current position towards the node keyed with cKey.
+ void advance(const sal_Unicode cKey);
+
+ // Goes back one char within the tree, except if the current node is already the root node.
+ void goBack();
+
+ // Returns all words matching a given prefix aMatch. If bIgnoreCurrentPos is set, the current
+ // position within the tree is ignored and replaced by aMatch.
+ bool GetWordsMatching(String aMatch, std::vector<String>& aWords, sal_Bool bIgnoreCurrentPos) const;
};