2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include <boost/smart_ptr.hpp>
21 #include "FormInset.h"
26 /** This class provides an XForms implementation of the FormError Dialog.
28 class FormError : public FormInset {
31 FormError(LyXView *, Dialogs *);
33 /// Pointer to the actual instantiation of the ButtonController.
34 virtual xformsBC & bc();
35 /// Disconnect signals. Also perform any necessary housekeeping.
36 virtual void disconnect();
38 /// Slot launching dialog to an existing inset
39 void showInset(InsetError *);
40 /// Update dialog before showing it
41 virtual void update();
44 /// Pointer to the actual instantiation of the xforms form
45 virtual FL_FORM * form() const;
46 /// Fdesign generated method
47 FD_form_error * build_error();
49 /// Real GUI implementation.
50 boost::scoped_ptr<FD_form_error> dialog_;
51 /// pointer to the inset passed through showInset
55 /// The ButtonController
56 ButtonController<OkCancelPolicy, xformsBC> bc_;
61 xformsBC & FormError::bc()