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