Prepare ANNOUNCE and NEWS for rc2
[lyx.git] / src / Thesaurus.h
blobe63f2935236108b73cddbdb0104e5692aa6e515c
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.
7 * \author John Levon
9 * Full author contact details are available in file CREDITS.
12 #ifndef THESAURUS_H
13 #define THESAURUS_H
15 #include "support/docstring.h"
17 #include <vector>
18 #include <map>
20 #ifdef HAVE_LIBAIKSAURUS
21 #include AIKSAURUS_H_LOCATION
22 #endif
24 namespace lyx {
26 /**
27 * This class provides an interface to whatever thesauri we might support.
30 class Thesaurus {
31 public:
32 ///
33 Thesaurus();
34 ///
35 ~Thesaurus();
37 typedef std::map<docstring, std::vector<docstring> > Meanings;
39 /**
40 * look up some text in the thesaurus
42 Meanings lookup(docstring const & text);
44 private:
45 #ifdef HAVE_LIBAIKSAURUS
46 Aiksaurus * aik_;
47 #endif
50 extern Thesaurus thesaurus;
53 } // namespace lyx
55 #endif