]> git.lyx.org Git - lyx.git/blob - src/sp_pspell.h
redraw fix 1.
[lyx.git] / src / sp_pspell.h
1 #ifndef SP_PSPELL_H
2 #define SP_PSPELL_H
3
4 #include "sp_base.h"
5
6 class PspellManager;
7 class PspellStringEmulation;
8 class PspellCanHaveError;
9
10 class BufferParams;
11
12
13 class PSpell : public SpellBase
14 {
15 public:
16         ///
17         PSpell();
18         ///
19         PSpell(BufferParams const & params, string const & lang);
20         ///
21         ~PSpell();
22         /// initialize spell checker
23         void initialize(BufferParams const & params, string const & lang);
24         ///
25         bool alive() { return alive_; }
26         /// clean up after error
27         void cleanUp();
28         /// check word
29         enum spellStatus check(string const & word);
30         /// close spellchecker
31         void close();
32         ///
33         void insert(string const & word);
34         ///
35         void accept(string const & word);
36         /// store replacement
37         void store(string const & mis, string const & cor);
38         ///
39         char const * nextMiss();
40         ///
41         char const * error();
42
43 private:
44         ///
45         PspellManager * sc;
46         ///
47         PspellStringEmulation * els;
48         ///
49         PspellCanHaveError * spell_error_object;
50         ///
51         spellStatus flag;
52         ///
53         const char * error_;
54         ///
55         bool alive_;
56 };
57
58 #endif