mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
f946f89871
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4261 a592a061-630c-0410-9148-cb99ea01b6c8
59 lines
995 B
C++
59 lines
995 B
C++
#ifndef SP_PSPELL_H
|
|
#define SP_PSPELL_H
|
|
|
|
#include "sp_base.h"
|
|
|
|
class PspellManager;
|
|
class PspellStringEmulation;
|
|
class PspellCanHaveError;
|
|
|
|
class BufferParams;
|
|
|
|
|
|
class PSpell : public SpellBase
|
|
{
|
|
public:
|
|
///
|
|
PSpell();
|
|
///
|
|
PSpell(BufferParams const & params, string const & lang);
|
|
///
|
|
~PSpell();
|
|
/// initialize spell checker
|
|
void initialize(BufferParams const & params, string const & lang);
|
|
///
|
|
bool alive() { return alive_; }
|
|
/// clean up after error
|
|
void cleanUp();
|
|
/// check word
|
|
enum spellStatus check(string const & word);
|
|
/// close spellchecker
|
|
void close();
|
|
///
|
|
void insert(string const & word);
|
|
///
|
|
void accept(string const & word);
|
|
/// store replacement
|
|
void store(string const & mis, string const & cor);
|
|
///
|
|
char const * nextMiss();
|
|
///
|
|
char const * error();
|
|
|
|
private:
|
|
///
|
|
PspellManager * sc;
|
|
///
|
|
PspellStringEmulation * els;
|
|
///
|
|
PspellCanHaveError * spell_error_object;
|
|
///
|
|
spellStatus flag;
|
|
///
|
|
const char * error_;
|
|
///
|
|
bool alive_;
|
|
};
|
|
|
|
#endif
|