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
|
|
|
|
2006-12-10 11:52:46 +00:00
|
|
|
#include "support/docstring.h"
|
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#include <vector>
|
2002-01-13 01:46:33 +00:00
|
|
|
#include <map>
|
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
|
2007-05-28 07:56:38 +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();
|
|
|
|
|
2006-12-10 11:52:46 +00:00
|
|
|
typedef std::map<docstring, std::vector<docstring> > Meanings;
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* look up some text in the thesaurus
|
|
|
|
*/
|
2006-12-10 11:52:46 +00:00
|
|
|
Meanings lookup(docstring const & text);
|
2001-07-29 10:42:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
2007-05-28 07:56:38 +00:00
|
|
|
Aiksaurus * aik_;
|
|
|
|
#endif
|
2001-07-29 10:42:11 +00:00
|
|
|
};
|
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
|