]> git.lyx.org Git - lyx.git/blob - src/Thesaurus.h
This patch transfer Inset::destroyed signal to InsetText and InsetMathNest thus freei...
[lyx.git] / src / Thesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file Thesaurus.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef THESAURUS_H
13 #define THESAURUS_H
14
15 #include "support/docstring.h"
16
17 #include <vector>
18 #include <map>
19
20 #ifdef HAVE_LIBAIKSAURUS
21 #include AIKSAURUS_H_LOCATION
22 #endif
23
24 namespace lyx {
25
26 /**
27  * This class provides an interface to whatever thesauri we might support.
28  */
29
30 class Thesaurus {
31 public:
32         ///
33         Thesaurus();
34         ///
35         ~Thesaurus();
36
37         typedef std::map<docstring, std::vector<docstring> > Meanings;
38
39         /**
40          * look up some text in the thesaurus
41          */
42         Meanings lookup(docstring const & text);
43
44 private:
45 #ifdef HAVE_LIBAIKSAURUS
46         Aiksaurus * aik_;
47 #endif
48 };
49
50 extern Thesaurus thesaurus;
51
52
53 } // namespace lyx
54
55 #endif