4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
22 * Base class of all spell checker implementations.
27 /// the result from checking a single word
31 /// root of given word was found
33 /// word found through compound formation
37 /// not found, with suggestions
39 /// number of other ignored "word"
43 virtual ~SpellBase() {}
45 /// return true if the spellchecker instance still exists
46 virtual bool alive() = 0;
48 /// check the given word of the given lang code and return the result
49 virtual enum Result check(WordLangTuple const &) = 0;
51 /// insert the given word into the personal dictionary
52 virtual void insert(WordLangTuple const &) = 0;
54 /// accept the given word temporarily
55 virtual void accept(WordLangTuple const &) = 0;
57 /// return the next near miss after a SUGGESTED_WORDS result
58 virtual std::string const nextMiss() = 0;
60 /// give an error message on messy exit
61 virtual std::string const error() = 0;
65 #endif // SPELL_BASE_H