4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Jürgen Spitzmüller
10 * Full author contact details are available in file CREDITS.
16 #include "support/docstring.h"
23 #include MYTHES_H_LOCATION
25 #ifdef HAVE_LIBAIKSAURUS
26 #include AIKSAURUS_H_LOCATION
27 #endif // HAVE_LIBAIKSAURUS
28 #endif // !HAVE_LIBMYTHES
33 * This class provides an interface to whatever thesauri we might support.
44 typedef std::map
<docstring
, std::vector
<docstring
> > Meanings
;
47 * look up some text in the thesaurus
49 Meanings
lookup(docstring
const & text
, docstring
const & lang
);
50 /// check if a thesaurus for a given language \p lang is available
51 bool thesaurusAvailable(docstring
const & lang
) const;
55 /// add a thesaurus to the list
56 bool addThesaurus(docstring
const & lang
);
58 typedef std::map
<docstring
, MyThes
*> Thesauri
;
62 #ifdef HAVE_LIBAIKSAURUS
64 #endif // HAVE_LIBAIKSAURUS
65 #endif // !HAVE_LIBMYTHES
68 extern Thesaurus thesaurus
;