]> git.lyx.org Git - lyx.git/blob - src/HunspellChecker.cpp
Add a pending space after math if it is not the last of the selection. This fixes...
[lyx.git] / src / HunspellChecker.cpp
1 /**
2  * \file HunspellChecker.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Abdelrazak Younes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "HunspellChecker.h"
14
15 #include "LyXRC.h"
16 #include "WordLangTuple.h"
17
18 #include "support/lassert.h"
19 #include "support/debug.h"
20
21 #include <hunspell/hunspell.hxx>
22
23 #include <map>
24 #include <string>
25
26 using namespace std;
27
28 namespace lyx {
29
30 namespace {
31
32 typedef map<std::string, Hunspell *> Spellers;
33
34 } // anon namespace
35
36 struct HunspellChecker::Private
37 {
38         /// the spellers
39         Spellers spellers_;
40 };
41
42
43 HunspellChecker::HunspellChecker(): d(new Private)
44 {
45 }
46
47
48 HunspellChecker::~HunspellChecker()
49 {
50         delete d;
51 }
52
53
54 SpellChecker::Result HunspellChecker::check(WordLangTuple const & word)
55 {
56         return OK;
57 }
58
59
60 void HunspellChecker::insert(WordLangTuple const & word)
61 {
62 }
63
64
65 void HunspellChecker::accept(WordLangTuple const & word)
66 {
67 }
68
69
70 docstring const HunspellChecker::nextMiss()
71 {
72         return docstring();
73 }
74
75
76 docstring const HunspellChecker::error()
77 {
78         return docstring();
79 }
80
81
82 } // namespace lyx