2001-08-02 18:46:53 +00:00
|
|
|
// -*- C++ -*-
|
2001-07-29 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* \file Thesaurus.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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>
|
2002-03-21 17:27:08 +00:00
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#include "LString.h"
|
|
|
|
#ifdef HAVE_LIBAIKSAURUS
|
2002-01-13 01:46:33 +00:00
|
|
|
#include "Aiksaurus.h"
|
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
|
|
|
/**
|
|
|
|
* This class provides an interface to whatever thesauri we might support.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Thesaurus {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
Thesaurus();
|
|
|
|
///
|
|
|
|
~Thesaurus();
|
|
|
|
|
2002-01-13 01:46:33 +00:00
|
|
|
typedef std::map<string, std::vector<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
|
|
|
|
*/
|
2002-01-13 01:46:33 +00:00
|
|
|
Meanings lookup(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
|
|
|
|
2001-07-29 10:42:11 +00:00
|
|
|
#endif
|