#pragma interface
#endif
-#include "FormBase.h"
-#include "insets/inseterror.h"
+#include "FormInset.h"
+class InsetError;
struct FD_form_error;
/** This class provides an XForms implementation of the FormError Dialog.
*/
-class FormError : public FormBase, public noncopyable {
+class FormError : public FormInset {
public:
/// Constructor
FormError(LyXView *, Dialogs *);
///
~FormError();
private:
+ /// Disconnect signals. Also perform any necessary housekeeping.
+ virtual void disconnect();
+
/// Slot launching dialog to an existing inset
- void showInset( InsetError * const );
+ void showInset( InsetError * );
/// Update dialog before showing it
- void update();
+ virtual void update();
/// Build the dialog
- void build();
- /// Reset data when hide() is called
- void clearStore();
+ virtual void build();
/// Pointer to the actual instantiation of the xform's form
- FL_FORM * const form() const;
+ virtual FL_FORM * form() const;
/// Fdesign generated method
FD_form_error * build_error();
/// Real GUI implementation.
FD_form_error * dialog_;
- /// inset::hide connection.
- Connection ih_;
+ /// pointer to the inset passed through showInset
+ InsetError * inset_;
/// the error message
string message_;
};