]> git.lyx.org Git - lyx.git/blob - src/EnchantChecker.h
Avoid full metrics computation with Update:FitCursor
[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
19 namespace enchant {
20         class Dict;
21 }
22
23 namespace lyx {
24
25 class BufferParams;
26
27
28 class EnchantChecker : public SpellChecker {
29 public:
30         EnchantChecker();
31         ~EnchantChecker();
32
33         /// SpellChecker inherited methods.
34         ///@{
35         enum Result check(WordLangTuple const &,
36                           std::vector<WordLangTuple> const &) override;
37         void suggest(WordLangTuple const &, docstring_list &) override;
38         void stem(WordLangTuple const &, docstring_list &) override {}
39         void insert(WordLangTuple const &) override;
40         void remove(WordLangTuple const &) override;
41         void accept(WordLangTuple const &) override;
42         bool hasDictionary(Language const * lang) const override;
43         int numDictionaries() const override;
44         docstring const error() override;
45         void advanceChangeNumber() override;
46         ///@}
47
48 private:
49         struct Private;
50         Private * d;
51 };
52
53
54 } // namespace lyx
55
56 #endif // LYX_ENCHANT_H