]> git.lyx.org Git - lyx.git/blob - src/HunspellChecker.h
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / HunspellChecker.h
1 // -*- C++ -*-
2 /**
3  * \file HunspellChecker.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_HUNSPELL_H
13 #define LYX_HUNSPELL_H
14
15 #include "SpellChecker.h"
16
17 namespace lyx {
18
19
20 class HunspellChecker : public SpellChecker
21 {
22 public:
23         HunspellChecker();
24         ~HunspellChecker();
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_Hunspell_H