]> git.lyx.org Git - lyx.git/blob - src/AppleSpellChecker.h
e41ff3729d970b16661f691be5534c4631c25b75
[lyx.git] / src / AppleSpellChecker.h
1 // -*- C++ -*-
2 /**
3  * \file AppleSpellChecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Stephan Witt
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_APPLESPELL_H
13 #define LYX_APPLESPELL_H
14
15 #include "SpellChecker.h"
16
17 namespace lyx {
18
19 class AppleSpellChecker : public SpellChecker
20 {
21 public:
22         AppleSpellChecker();
23         ~AppleSpellChecker();
24
25         /// \name SpellChecker inherited methods
26         //@{
27         enum Result check(WordLangTuple const &);
28         void suggest(WordLangTuple const &, docstring_list &);
29         void insert(WordLangTuple const &);
30         void remove(WordLangTuple const &);
31         void accept(WordLangTuple const &);
32         bool hasDictionary(Language const * lang) const;
33         int numDictionaries() const;
34         bool canCheckParagraph() const { return true; }
35         int numMisspelledWords() const;
36         void misspelledWord(int index, int & start, int & length) const;
37         docstring const error();
38         void advanceChangeNumber();
39         //@}
40
41 private:
42         struct Private;
43         Private * d;
44 };
45
46
47 } // namespace lyx
48
49 #endif // LYX_APPLESPELL_H