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
|
|
|
|
//@{
|
2009-03-29 21:18:16 +00:00
|
|
|
enum Result check(WordLangTuple const &);
|
2009-08-02 09:17:32 +00:00
|
|
|
void suggest(WordLangTuple const &, docstring_list &);
|
2013-05-12 11:00:02 +00:00
|
|
|
void stem(WordLangTuple const &, docstring_list &) {}
|
2009-03-29 21:18:16 +00:00
|
|
|
void insert(WordLangTuple const &);
|
2010-12-02 18:52:31 +00:00
|
|
|
void remove(WordLangTuple const &);
|
2009-03-29 21:18:16 +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-03-29 21:18:16 +00:00
|
|
|
docstring const error();
|
2010-09-14 05:24:04 +00:00
|
|
|
void advanceChangeNumber();
|
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
|