2000-09-22 15:09:51 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMERROR_H
|
|
|
|
#define FORMERROR_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FormBase.h"
|
|
|
|
|
2000-09-27 05:40:29 +00:00
|
|
|
class InsetError;
|
2000-09-22 15:09:51 +00:00
|
|
|
struct FD_form_error;
|
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormError Dialog.
|
|
|
|
*/
|
2000-09-26 13:54:57 +00:00
|
|
|
class FormError : public FormBase {
|
2000-09-22 15:09:51 +00:00
|
|
|
public:
|
|
|
|
/// Constructor
|
|
|
|
FormError(LyXView *, Dialogs *);
|
|
|
|
///
|
|
|
|
~FormError();
|
|
|
|
private:
|
|
|
|
/// Slot launching dialog to an existing inset
|
2000-10-04 03:17:36 +00:00
|
|
|
void showInset( InsetError * );
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Update dialog before showing it
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void update();
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Build the dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void build();
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Reset data when hide() is called
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void clearStore();
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Pointer to the actual instantiation of the xform's form
|
2000-10-03 05:53:25 +00:00
|
|
|
virtual FL_FORM * form() const;
|
2000-09-22 15:09:51 +00:00
|
|
|
/// Fdesign generated method
|
|
|
|
FD_form_error * build_error();
|
|
|
|
|
|
|
|
/// Real GUI implementation.
|
|
|
|
FD_form_error * dialog_;
|
|
|
|
/// inset::hide connection.
|
|
|
|
Connection ih_;
|
|
|
|
/// the error message
|
|
|
|
string message_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|