2001-08-02 18:46:53 +00:00
|
|
|
// -*- C++ -*-
|
2001-07-29 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* \file Thesaurus.h
|
2003-08-23 00:17:00 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-07-29 10:42:11 +00:00
|
|
|
*
|
|
|
|
* \author John Levon
|
2003-08-23 00:17:00 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-07-29 10:42:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef THESAURUS_H
|
|
|
|
#define THESAURUS_H
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#include <vector>
|
2002-01-13 01:46:33 +00:00
|
|
|
#include <map>
|
2003-10-07 06:45:25 +00:00
|
|
|
#include <string>
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
2003-07-22 15:23:35 +00:00
|
|
|
#include AIKSAURUS_H_LOCATION
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* This class provides an interface to whatever thesauri we might support.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Thesaurus {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
Thesaurus();
|
|
|
|
///
|
|
|
|
~Thesaurus();
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
typedef std::map<std::string, std::vector<std::string> > Meanings;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* look up some text in the thesaurus
|
|
|
|
*/
|
2003-10-06 15:43:21 +00:00
|
|
|
Meanings lookup(std::string const & text);
|
2001-07-29 10:42:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
2002-01-13 01:46:33 +00:00
|
|
|
Aiksaurus * aik_;
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|
|
|
|
};
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
extern Thesaurus thesaurus;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|