2001-07-13 11:50:39 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file FormSpellchecker.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
2002-03-11 17:00:41 +00:00
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
2001-07-13 11:50:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMSPELLCHECKER_H
|
|
|
|
#define FORMSPELLCHECKER_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FormBase.h"
|
|
|
|
|
|
|
|
class ControlSpellchecker;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_spellchecker;
|
2001-07-13 11:50:39 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormSpellchecker Dialog.
|
|
|
|
*/
|
2002-06-13 13:43:51 +00:00
|
|
|
class FormSpellchecker : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
|
2001-07-13 11:50:39 +00:00
|
|
|
public:
|
|
|
|
///
|
2002-07-02 19:23:10 +00:00
|
|
|
FormSpellchecker(ControlSpellchecker &, Dialogs &);
|
2001-07-13 11:50:39 +00:00
|
|
|
private:
|
|
|
|
/// not needed.
|
2001-07-17 09:00:17 +00:00
|
|
|
void apply() {}
|
2001-07-13 11:50:39 +00:00
|
|
|
/// Build the dialog
|
2001-07-17 09:00:17 +00:00
|
|
|
void build();
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2001-07-17 09:00:17 +00:00
|
|
|
void update();
|
|
|
|
|
|
|
|
/// enable/disable widgets when start/stop
|
|
|
|
void stop(bool);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-07-17 09:00:17 +00:00
|
|
|
/// update progress bar, set suggestions, exit message
|
2001-07-13 11:50:39 +00:00
|
|
|
void partialUpdate(int);
|
|
|
|
|
|
|
|
/// show an error message
|
|
|
|
void showMessage(const char * msg);
|
|
|
|
|
|
|
|
/// Filter the inputs
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FORMSPELLCHECKER_H
|