]> git.lyx.org Git - lyx.git/blob - src/HunspellSpellChecker.cpp
TextLayoutUi.ui: group everything into boxes for a consistent layout with the other...
[lyx.git] / src / HunspellSpellChecker.cpp
1 /**
2  * \file HunspellSpellChecker.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 "HunspellSpellChecker.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 typedef map<std::string, Hunspell *> Spellers;
32 }
33
34 class HunspellSpellChecker::Private
35 {
36         /// the spellers
37         Spellers spellers_;
38 };
39
40
41 HunspellSpellChecker::HunspellSpellChecker(): d(new Private)
42 {
43 }
44
45
46 HunspellSpellChecker::~HunspellSpellChecker()
47 {
48         delete d;
49 }
50
51
52 SpellChecker::Result HunspellSpellChecker::check(WordLangTuple const & word)
53 {
54         return OK;
55 }
56
57
58 void HunspellSpellChecker::insert(WordLangTuple const & word)
59 {
60 }
61
62
63 void HunspellSpellChecker::accept(WordLangTuple const & word)
64 {
65 }
66
67
68 docstring const HunspellSpellChecker::nextMiss()
69 {
70         return docstring();
71 }
72
73
74 docstring const HunspellSpellChecker::error()
75 {
76         return docstring();
77 }
78
79
80 } // namespace lyx