]> git.lyx.org Git - lyx.git/blob - src/Thesaurus.h
083fcef223610221789ab9ac61acedcade316eab
[lyx.git] / src / Thesaurus.h
1 // -*- C++ -*-
2 /**
3  * \file Thesaurus.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon
8  */
9
10 #ifndef THESAURUS_H
11 #define THESAURUS_H
12  
13 #include <vector>
14 #include <map>
15  
16 #include "LString.h"
17 #ifdef HAVE_LIBAIKSAURUS
18 #include "Aiksaurus.h"
19 #endif
20  
21 /**
22  * This class provides an interface to whatever thesauri we might support.
23  */
24
25 class Thesaurus {
26 public:
27         ///
28         Thesaurus();
29         ///
30         ~Thesaurus();
31
32         typedef std::map<string, std::vector<string> > Meanings;
33  
34         /**
35          * look up some text in the thesaurus
36          */
37         Meanings lookup(string const & text);
38
39 private:
40 #ifdef HAVE_LIBAIKSAURUS
41         Aiksaurus * aik_;
42 #endif
43 };
44  
45 extern Thesaurus thesaurus;
46  
47 #endif