2009-07-12 22:46:01 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2009-08-01 17:24:13 +00:00
|
|
|
* \file HunspellChecker.h
|
2009-07-12 22:46:01 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Abdelrazak Younes
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LYX_HUNSPELL_H
|
|
|
|
#define LYX_HUNSPELL_H
|
|
|
|
|
|
|
|
#include "SpellChecker.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2009-08-01 17:24:13 +00:00
|
|
|
class HunspellChecker : public SpellChecker
|
2009-07-12 22:46:01 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-08-01 17:24:13 +00:00
|
|
|
HunspellChecker();
|
|
|
|
~HunspellChecker();
|
2009-07-12 22:46:01 +00:00
|
|
|
|
2010-01-27 18:10:33 +00:00
|
|
|
/// \name SpellChecker inherited methods.
|
2009-08-02 09:17:32 +00:00
|
|
|
///@{
|
|
|
|
enum Result check(WordLangTuple const &);
|
|
|
|
void suggest(WordLangTuple const &, docstring_list &);
|
2009-07-12 22:46:01 +00:00
|
|
|
void insert(WordLangTuple const &);
|
2010-12-02 18:52:31 +00:00
|
|
|
void remove(WordLangTuple const &);
|
2009-07-12 22:46:01 +00:00
|
|
|
void accept(WordLangTuple const &);
|
2010-02-10 08:10:31 +00:00
|
|
|
bool hasDictionary(Language const * lang) const;
|
2012-01-04 22:02:07 +00:00
|
|
|
int numDictionaries() const;
|
2009-07-12 22:46:01 +00:00
|
|
|
docstring const error();
|
2010-09-14 05:24:04 +00:00
|
|
|
void advanceChangeNumber();
|
2009-08-02 09:17:32 +00:00
|
|
|
///@}
|
2009-07-12 22:46:01 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
struct Private;
|
|
|
|
Private * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // LYX_Hunspell_H
|