mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
8283e978f8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
50 lines
817 B
C++
50 lines
817 B
C++
// -*- C++ -*-
|
|
#ifndef SP_BASE_H
|
|
#define SP_BASE_H
|
|
|
|
// needed for pid_t typedef
|
|
#include <sys/types.h>
|
|
#include "LString.h" // can't forward declare...
|
|
|
|
class BufferParams;
|
|
|
|
class SpellBase
|
|
{
|
|
public:
|
|
|
|
/// status
|
|
enum spellStatus {
|
|
ISP_OK = 1,
|
|
ISP_ROOT,
|
|
ISP_COMPOUNDWORD,
|
|
ISP_UNKNOWN,
|
|
ISP_MISSED,
|
|
ISP_IGNORE
|
|
};
|
|
|
|
virtual ~SpellBase() {}
|
|
|
|
virtual void initialize(BufferParams const & , string const &) = 0;
|
|
|
|
virtual bool alive() = 0;
|
|
|
|
virtual void cleanUp() = 0;
|
|
|
|
virtual enum spellStatus check(string const &) = 0;
|
|
|
|
virtual void close() = 0;
|
|
|
|
virtual void insert(string const &) = 0;
|
|
|
|
virtual void accept(string const &) = 0;
|
|
|
|
virtual void store(string const & , string const &) = 0;
|
|
|
|
virtual char const * error() = 0;
|
|
|
|
virtual char const * nextMiss() = 0;
|
|
|
|
};
|
|
|
|
#endif
|