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 &);
|
2012-03-02 10:20:09 +00:00
|
|
|
void stem(WordLangTuple const &, docstring_list &) {};
|
2010-07-07 17:40:50 +00:00
|
|
|
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;
|
2012-01-04 22:02:07 +00:00
|
|
|
int numDictionaries() const;
|
2010-09-04 07:48:15 +00:00
|
|
|
bool canCheckParagraph() const { return true; }
|
|
|
|
int numMisspelledWords() const;
|
|
|
|
void misspelledWord(int index, int & start, int & length) const;
|
2010-07-07 17:40:50 +00:00
|
|
|
docstring const error();
|
2010-09-14 05:24:04 +00:00
|
|
|
void advanceChangeNumber();
|
2010-07-07 17:40:50 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
private:
|
|
|
|
struct Private;
|
|
|
|
Private * d;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // LYX_APPLESPELL_H
|