]> git.lyx.org Git - lyx.git/blob - src/sp_base.h
Two little things:
[lyx.git] / src / sp_base.h
1 // -*- C++ -*-
2 #ifndef SP_BASE_H
3 #define SP_BASE_H
4
5 // needed for pid_t typedef
6 #include <sys/types.h>
7 #include "LString.h" // can't forward declare...
8
9 class BufferParams;
10
11 class SpellBase
12 {
13  public:
14
15    /// status
16    enum spellStatus  {
17         ISP_OK = 1,
18         ISP_ROOT,
19         ISP_COMPOUNDWORD,
20         ISP_UNKNOWN,
21         ISP_MISSED,
22         ISP_IGNORE
23    };
24    
25    virtual ~SpellBase() {}
26
27    virtual void initialize(BufferParams const & , string const &) = 0;
28
29    virtual bool alive() = 0;
30    
31    virtual void cleanUp() = 0;
32
33    virtual enum spellStatus check(string const &) = 0;
34
35    virtual void close() = 0;
36
37    virtual void insert(string const &) = 0;
38
39    virtual void accept(string const &) = 0;
40
41    virtual void store(string const & , string const &) = 0;
42
43    virtual char const * error() = 0;
44
45    virtual char const * nextMiss() = 0;
46      
47 };
48
49 #endif
50