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
|
|
|
///@{
|
2020-10-01 07:42:11 +00:00
|
|
|
enum Result check(WordLangTuple const &) override;
|
|
|
|
void suggest(WordLangTuple const &, docstring_list &) override;
|
|
|
|
void stem(WordLangTuple const &, docstring_list &) override;
|
|
|
|
void insert(WordLangTuple const &) override;
|
|
|
|
void remove(WordLangTuple const &) override;
|
|
|
|
void accept(WordLangTuple const &) override;
|
|
|
|
bool hasDictionary(Language const * lang) const override;
|
|
|
|
int numDictionaries() const override;
|
|
|
|
docstring const error() override;
|
|
|
|
void advanceChangeNumber() override;
|
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
|