2010-07-07 17:40:50 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file AppleSpellChecker.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Stephan Witt
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LYX_APPLESPELL_H
|
|
|
|
#define LYX_APPLESPELL_H
|
|
|
|
|
|
|
|
#include "SpellChecker.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class AppleSpellChecker : public SpellChecker
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AppleSpellChecker();
|
|
|
|
~AppleSpellChecker();
|
|
|
|
|
|
|
|
/// \name SpellChecker inherited methods
|
|
|
|
//@{
|
|
|
|
enum Result check(WordLangTuple const &);
|
|
|
|
void suggest(WordLangTuple const &, docstring_list &);
|
|
|
|
void insert(WordLangTuple const &);
|
2010-08-05 20:10:40 +00:00
|
|
|
void remove(WordLangTuple const &);
|
2010-07-07 17:40:50 +00:00
|
|
|
void accept(WordLangTuple const &);
|
|
|
|
bool hasDictionary(Language const * lang) const;
|
|
|
|
docstring const error();
|
|
|
|
//@}
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct Private;
|
|
|
|
Private * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // LYX_APPLESPELL_H
|