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
|
|
|
|
2009-08-02 09:17:32 +00:00
|
|
|
/// 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 &);
|
2009-03-29 21:18:16 +00:00
|
|
|
void insert(WordLangTuple const &);
|
|
|
|
void accept(WordLangTuple const &);
|
|
|
|
docstring const error();
|
2009-08-02 09:17:32 +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
|