]> git.lyx.org Git - lyx.git/blob - src/Thesaurus.h
a673e04765a1f6792932768a066f4945e18b7fb9
[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 <vector>
16 #include <map>
17
18 #ifdef HAVE_LIBAIKSAURUS
19 #include AIKSAURUS_H_LOCATION
20 #endif
21
22 /**
23  * This class provides an interface to whatever thesauri we might support.
24  */
25
26 class Thesaurus {
27 public:
28         ///
29         Thesaurus();
30         ///
31         ~Thesaurus();
32
33         typedef std::map<std::string, std::vector<std::string> > Meanings;
34
35         /**
36          * look up some text in the thesaurus
37          */
38         Meanings lookup(std::string const & text);
39
40 private:
41 #ifdef HAVE_LIBAIKSAURUS
42         Aiksaurus * aik_;
43 #endif
44 };
45
46 extern Thesaurus thesaurus;
47
48 #endif