- ///
- bool isBufferDependent() const { return true; }
- ///
- bool exitEarly() const { return exitEarly_; }
-
- /// replace word with replacement
- void replace(docstring const &);
-
- /// replace all occurances of word
- void replaceAll(docstring const &);
- /// insert word in personal dictionary
- void insert();
- /// ignore all occurances of word
- void ignoreAll();
- /// check text until next misspelled/unknown word
- /// returns true when finished
- void check();
- /// get suggestion
- docstring getSuggestion() const;
- /// get word
- docstring getWord() const;
- /// returns progress value
- int getProgress() const { return oldval_; }
- /// returns word count
- int getCount() const { return count_; }
- /// give error message is spellchecker dies
- bool checkAlive();
- /// show count of checked words at normal exit
- void showSummary();
-
- /// set to true when spellchecking is finished
- bool exitEarly_;
- /// current word being checked and lang code
- WordLangTuple word_;
- /// values for progress
- int oldval_;
- int newvalue_;
- /// word count
- int count_;
- /// The actual spellchecker object
- SpellChecker * speller_;
+ bool isBufferDependent() const { return false; }
+ ///}
+ /// The encapsulated widget.
+ SpellcheckerWidget * widget_;