]> git.lyx.org Git - lyx.git/blob - src/EnchantChecker.h
Re-fix #11146 with recent LaTeX
[lyx.git] / src / EnchantChecker.h
1 // -*- C++ -*-
2 /**
3  * \file EnchantChecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Caolán McNamara
8  * \author Jürgen Spitzmüller
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef LYX_ENCHANT_H
14 #define LYX_ENCHANT_H
15
16 #include "SpellChecker.h"
17
18 namespace enchant {
19     class Dict;
20 }
21
22 namespace lyx {
23
24 class BufferParams;
25
26
27 class EnchantChecker : public SpellChecker {
28 public:
29         EnchantChecker();
30         ~EnchantChecker();
31
32         /// SpellChecker inherited methods.
33         ///@{
34         enum Result check(WordLangTuple const &);
35         void suggest(WordLangTuple const &, docstring_list &);
36         void stem(WordLangTuple const &, docstring_list &) {}
37         void insert(WordLangTuple const &);
38         void remove(WordLangTuple const &);
39         void accept(WordLangTuple const &);
40         bool hasDictionary(Language const * lang) const;
41         int numDictionaries() const;
42         docstring const error();
43         void advanceChangeNumber();
44         ///@}
45
46 private:
47         struct Private;
48         Private * d;
49 };
50
51
52 } // namespace lyx
53
54 #endif // LYX_ENCHANT_H