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