mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
16083c82e1
John's thesaurus patch. A patch of my own to clean-up the spellchecker code a little (functionality not changed). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3383 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
1.0 KiB
C++
54 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormSpellchecker.h
|
|
* Copyright 2001 The LyX Team.
|
|
* See the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
*/
|
|
|
|
#ifndef FORMSPELLCHECKER_H
|
|
#define FORMSPELLCHECKER_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
|
|
class ControlSpellchecker;
|
|
struct FD_form_spellchecker;
|
|
|
|
/** This class provides an XForms implementation of the FormSpellchecker Dialog.
|
|
*/
|
|
class FormSpellchecker : public FormCB<ControlSpellchecker, FormDB<FD_form_spellchecker> > {
|
|
public:
|
|
///
|
|
FormSpellchecker(ControlSpellchecker &);
|
|
|
|
private:
|
|
/// not needed.
|
|
void apply() {}
|
|
/// Build the dialog
|
|
void build();
|
|
///
|
|
void update();
|
|
|
|
/// enable/disable widgets when start/stop
|
|
void stop(bool);
|
|
|
|
/// update progress bar, set suggestions, exit message
|
|
void partialUpdate(int);
|
|
|
|
/// show an error message
|
|
void showMessage(const char * msg);
|
|
|
|
/// Filter the inputs
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
/// Fdesign generated method
|
|
FD_form_spellchecker * build_spellchecker();
|
|
};
|
|
|
|
#endif // FORMSPELLCHECKER_H
|