]> git.lyx.org Git - lyx.git/blob - src/Thesaurus.h
Generate the magic label always. We'll need it other times, when we do
[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  * \author Jürgen Spitzmüller
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef THESAURUS_H
14 #define THESAURUS_H
15
16 #include "support/docstring.h"
17
18 #include <map>
19 #include <string>
20 #include <vector>
21
22 namespace lyx {
23
24 /**
25  * This class provides an interface to whatever thesauri we might support.
26  */
27
28 class Thesaurus
29 {
30 public:
31         ///
32         Thesaurus();
33         ///
34         ~Thesaurus();
35
36         typedef std::map<docstring, std::vector<docstring> > Meanings;
37
38         /**
39          * look up some text in the thesaurus
40          */
41         Meanings lookup(docstring const & text, docstring const & lang);
42         /// check if a thesaurus for a given language \p lang is available
43         bool thesaurusAvailable(docstring const & lang) const;
44
45 private:
46         struct Private;
47         Private * const d;
48 };
49
50 extern Thesaurus thesaurus;
51
52
53 } // namespace lyx
54
55 #endif