4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Kevin Atkinson
10 * Full author contact details are available in file CREDITS.
16 #include "SpellChecker.h"
22 struct AspellStringEnumeration;
23 struct AspellCanHaveError;
29 class ASpell : public SpellChecker
35 /// check the given word and return the result
36 enum Result check(WordLangTuple const &);
38 /// insert the given word into the personal dictionary
39 void insert(WordLangTuple const &);
41 /// accept the given word temporarily
42 void accept(WordLangTuple const &);
44 /// return the next near miss after a SUGGESTED_WORDS result
45 docstring const nextMiss();
47 /// give an error message on messy exit
48 docstring const error();
51 /// add a speller of the given language
52 void addSpeller(std::string const & lang);
55 AspellSpeller * speller;
56 AspellConfig * config;
59 typedef std::map<std::string, Speller> Spellers;
65 AspellStringEnumeration * els;
67 AspellCanHaveError * spell_error_object;
73 #endif // LYX_ASPELL_H