2001-08-27 02:54:27 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QThesaurus.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-27 02:54:27 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-08-27 02:54:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTHESAURUS_H
|
|
|
|
#define QTHESAURUS_H
|
|
|
|
|
2003-03-26 12:17:20 +00:00
|
|
|
#include "QDialogView.h"
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
2001-08-27 02:54:27 +00:00
|
|
|
|
|
|
|
class ControlThesaurus;
|
|
|
|
class QThesaurusDialog;
|
|
|
|
|
2001-08-27 20:41:45 +00:00
|
|
|
///
|
|
|
|
class QThesaurus
|
2003-03-26 12:17:20 +00:00
|
|
|
: public QController<ControlThesaurus, QView<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
|
|
|
///
|
2003-03-26 12:17:20 +00:00
|
|
|
QThesaurus(Dialog &);
|
2001-08-27 02:54:27 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2002-10-20 01:48:28 +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
|
2002-03-21 21:21:28 +00:00
|
|
|
void replace();
|
2001-08-27 02:54:27 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2001-08-27 02:54:27 +00:00
|
|
|
#endif // QTHESAURUS_H
|