2001-09-01 03:52:21 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QSpellchecker.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QSPELLCHECKER_H
|
|
|
|
#define QSPELLCHECKER_H
|
|
|
|
|
|
|
|
#include "Qt2Base.h"
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
class ControlSpellchecker;
|
2001-09-01 03:52:21 +00:00
|
|
|
class QSpellcheckerDialog;
|
2002-07-11 01:01:38 +00:00
|
|
|
class Dialogs;
|
2001-09-01 03:52:21 +00:00
|
|
|
|
|
|
|
class QSpellchecker :
|
2002-03-21 21:21:28 +00:00
|
|
|
public Qt2CB<ControlSpellchecker, Qt2DB<QSpellcheckerDialog> >
|
2001-09-01 03:52:21 +00:00
|
|
|
{
|
|
|
|
friend class QSpellcheckerDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
public:
|
2002-07-11 01:01:38 +00:00
|
|
|
QSpellchecker(ControlSpellchecker &, Dialogs &);
|
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);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
private:
|
2002-03-21 21:21:28 +00:00
|
|
|
void stop();
|
2001-09-01 03:52:21 +00:00
|
|
|
void accept();
|
|
|
|
void add();
|
|
|
|
void ignore();
|
|
|
|
void replace();
|
|
|
|
void spellcheck();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-09-01 03:52:21 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply() {};
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QSPELLCHECKER_H
|