2010-01-22 15:26:38 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file EnchantChecker.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Caolán McNamara
|
|
|
|
* \author Jürgen Spitzmüller
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LYX_ENCHANT_H
|
|
|
|
#define LYX_ENCHANT_H
|
|
|
|
|
|
|
|
#include "SpellChecker.h"
|
|
|
|
|
|
|
|
namespace enchant {
|
|
|
|
class Dict;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class BufferParams;
|
|
|
|
|
|
|
|
|
|
|
|
class EnchantChecker : public SpellChecker {
|
|
|
|
public:
|
|
|
|
EnchantChecker();
|
|
|
|
~EnchantChecker();
|
|
|
|
|
|
|
|
/// SpellChecker inherited methods.
|
|
|
|
///@{
|
|
|
|
enum Result check(WordLangTuple const &);
|
|
|
|
void suggest(WordLangTuple const &, docstring_list &);
|
2013-05-12 11:00:02 +00:00
|
|
|
void stem(WordLangTuple const &, docstring_list &) {}
|
2010-01-22 15:26:38 +00:00
|
|
|
void insert(WordLangTuple const &);
|
2011-04-13 10:55:51 +00:00
|
|
|
void remove(WordLangTuple const &);
|
2010-01-22 15:26:38 +00:00
|
|
|
void accept(WordLangTuple const &);
|
2010-02-10 08:10:31 +00:00
|
|
|
bool hasDictionary(Language const * lang) const;
|
2012-01-05 13:19:04 +00:00
|
|
|
int numDictionaries() const;
|
2010-01-22 15:26:38 +00:00
|
|
|
docstring const error();
|
2010-09-14 05:24:04 +00:00
|
|
|
void advanceChangeNumber();
|
2010-01-22 15:26:38 +00:00
|
|
|
///@}
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct Private;
|
|
|
|
Private * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // LYX_ENCHANT_H
|