- /// return the next near miss after a SUGGESTED_WORDS result
- virtual docstring const nextMiss() = 0;
+ /// check if dictionary exists
+ virtual bool hasDictionary(Language const *) const = 0;
+
+ /// how many valid dictionaries were found
+ virtual int numDictionaries() const = 0;
+
+ /// if speller can spell check whole paragraph return true
+ virtual bool canCheckParagraph() const { return false; }
+
+ /// count of misspelled words
+ virtual int numMisspelledWords() const { return 0; }
+
+ /// start position and length of misspelled word at index
+ virtual void misspelledWord(
+ int /* index */,
+ int & start, int & length) const
+ {
+ /// index is used here to make the compiler happy
+ start = 0;
+ length = 0;
+ }