3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author Kevin Atkinson
7 * \author John Levon <levon@movementarian.org>
13 #include "SpellBase.h"
16 class PspellStringEmulation;
17 class PspellCanHaveError;
22 class PSpell : public SpellBase {
25 * Initialise the spellchecker with the given buffer params and language.
27 PSpell(BufferParams const & params, string const & lang);
31 /// return true if the spellchecker instance still exists
32 virtual bool alive() { return alive_; }
34 /// clean up on messy exit
35 virtual void cleanUp();
37 /// check the given word and return the result
38 virtual enum Result check(string const & word);
40 /// finish this spellchecker instance
43 /// insert the given word into the personal dictionary
44 virtual void insert(string const & word);
46 /// accept the given word temporarily
47 virtual void accept(string const & word);
49 /// return the next near miss after a MISSED result
50 virtual string const nextMiss();
52 /// give an error message on messy exit
53 virtual string const error();
59 PspellStringEmulation * els;
61 PspellCanHaveError * spell_error_object;
62 /// initialised properly ?