2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-23 17:09:34 +00:00
|
|
|
/*
|
|
|
|
* \file FormError.h
|
|
|
|
* This file is part of
|
2000-09-22 15:09:51 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-03-23 17:09:34 +00:00
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2000-09-22 15:09:51 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
2001-03-23 17:09:34 +00:00
|
|
|
*
|
|
|
|
* \author Angus Leeming, a.leeming@.ac.uk
|
2000-09-22 15:09:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMERROR_H
|
|
|
|
#define FORMERROR_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-16 12:08:14 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
class ControlError;
|
2000-09-22 15:09:51 +00:00
|
|
|
struct FD_form_error;
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
/** This class provides an XForms implementation of the Error Dialog.
|
2000-09-22 15:09:51 +00:00
|
|
|
*/
|
2001-03-23 17:09:34 +00:00
|
|
|
class FormError : public FormCB<ControlError, FormDB<FD_form_error> > {
|
2000-09-22 15:09:51 +00:00
|
|
|
public:
|
|
|
|
/// Constructor
|
2001-03-23 17:09:34 +00:00
|
|
|
FormError(ControlError &);
|
2000-10-13 05:57:05 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
private:
|
|
|
|
/// not needed.
|
|
|
|
virtual void apply() {}
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Build the dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void build();
|
2001-03-23 17:09:34 +00:00
|
|
|
/// Update dialog before showing it
|
|
|
|
virtual void update();
|
|
|
|
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Fdesign generated method
|
|
|
|
FD_form_error * build_error();
|
|
|
|
};
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
#endif // FORMERROR_H
|