2001-08-27 02:54:27 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QThesaurus.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTHESAURUS_H
|
|
|
|
#define QTHESAURUS_H
|
|
|
|
|
2001-08-27 20:41:45 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-08-27 02:54:27 +00:00
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
|
|
|
class ControlThesaurus;
|
|
|
|
class QThesaurusDialog;
|
|
|
|
|
2001-08-27 20:41:45 +00:00
|
|
|
///
|
|
|
|
class QThesaurus
|
|
|
|
: public Qt2CB<ControlThesaurus, Qt2DB<QThesaurusDialog> >
|
2001-08-27 02:54:27 +00:00
|
|
|
{
|
2001-08-27 20:41:45 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-08-27 02:54:27 +00:00
|
|
|
friend class QThesaurusDialog;
|
2001-08-27 20:41:45 +00:00
|
|
|
///
|
2001-08-27 02:54:27 +00:00
|
|
|
QThesaurus(ControlThesaurus &);
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
2002-01-16 23:56:25 +00:00
|
|
|
virtual void apply() { };
|
2001-08-27 02:54:27 +00:00
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
/// replace the word
|
|
|
|
void replace();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTHESAURUS_H
|