2001-09-01 03:52:21 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QSpellchecker.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-09-01 03:52:21 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Kalle Dalheimer
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-09-01 03:52:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QSPELLCHECKER_H
|
|
|
|
#define QSPELLCHECKER_H
|
|
|
|
|
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#include "Qt2Base.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
class ControlSpellchecker;
|
2001-09-01 03:52:21 +00:00
|
|
|
class QSpellcheckerDialog;
|
2002-08-12 14:28:43 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QSpellchecker
|
|
|
|
: public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
|
2001-09-01 03:52:21 +00:00
|
|
|
{
|
2002-10-20 01:48:28 +00:00
|
|
|
public:
|
2001-09-01 03:52:21 +00:00
|
|
|
friend class QSpellcheckerDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-08-12 14:28:43 +00:00
|
|
|
QSpellchecker();
|
2001-09-01 03:52:21 +00:00
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
/// update from controller
|
2001-09-01 03:52:21 +00:00
|
|
|
void partialUpdate(int id);
|
|
|
|
private:
|
|
|
|
void accept();
|
|
|
|
void add();
|
|
|
|
void ignore();
|
|
|
|
void replace();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
/// Apply changes
|
2002-10-20 01:48:28 +00:00
|
|
|
virtual void apply() {}
|
2003-02-17 18:40:04 +00:00
|
|
|
/// not needed
|
|
|
|
virtual void update_contents() {}
|
2001-09-01 03:52:21 +00:00
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QSPELLCHECKER_H
|