2003-08-23 00:17:00 +00:00
|
|
|
// -*- C++ -*-
|
2003-03-26 01:20:25 +00:00
|
|
|
/**
|
2009-08-01 17:24:13 +00:00
|
|
|
* \file AspellChecker.h
|
2003-08-23 00:17:00 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2003-03-26 01:20:25 +00:00
|
|
|
*
|
|
|
|
* \author Kevin Atkinson
|
2003-08-23 00:17:00 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-03-26 01:20:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LYX_ASPELL_H
|
|
|
|
#define LYX_ASPELL_H
|
|
|
|
|
2009-03-29 19:49:52 +00:00
|
|
|
#include "SpellChecker.h"
|
2003-03-26 01:20:25 +00:00
|
|
|
|
2006-10-21 07:26:07 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2009-08-01 17:24:13 +00:00
|
|
|
class AspellChecker : public SpellChecker
|
2009-03-29 21:18:16 +00:00
|
|
|
{
|
2003-03-26 01:20:25 +00:00
|
|
|
public:
|
2009-08-01 17:24:13 +00:00
|
|
|
AspellChecker();
|
|
|
|
~AspellChecker();
|
2003-03-26 01:20:25 +00:00
|
|
|
|
2010-01-27 18:10:33 +00:00
|
|
|
/// \name SpellChecker inherited methods
|
|
|
|
//@{
|
2021-03-06 15:53:33 +00:00
|
|
|
enum Result check(WordLangTuple const &,
|
|
|
|
std::vector<WordLangTuple> const &) override;
|
2020-10-01 07:42:11 +00:00
|
|
|
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;
|
2010-01-27 18:10:33 +00:00
|
|
|
//@}
|
2003-03-26 01:20:25 +00:00
|
|
|
|
|
|
|
private:
|
2009-08-01 17:48:33 +00:00
|
|
|
struct Private;
|
|
|
|
Private * d;
|
2003-03-26 01:20:25 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2005-05-02 13:35:30 +00:00
|
|
|
#endif // LYX_ASPELL_H
|