]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormError.h
More pref work from Angus
[lyx.git] / src / frontends / xforms / FormError.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMERROR_H
13 #define FORMERROR_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormInset.h"
20
21 class InsetError;
22 struct FD_form_error;
23
24 /** This class provides an XForms implementation of the FormError Dialog.
25  */
26 class FormError : public FormInset {
27 public:
28         /// Constructor
29         FormError(LyXView *, Dialogs *);
30         ///
31         ~FormError();
32 private:
33         /// Disconnect signals. Also perform any necessary housekeeping.
34         virtual void disconnect();
35
36         /// Slot launching dialog to an existing inset
37         void showInset( InsetError * );
38         /// Update dialog before showing it
39         virtual void update();
40         /// Build the dialog
41         virtual void build();
42         /// Pointer to the actual instantiation of the xform's form
43         virtual FL_FORM * form() const;
44         /// Fdesign generated method
45         FD_form_error * build_error();
46
47         /// Real GUI implementation.
48         FD_form_error * dialog_;
49         /// pointer to the inset passed through showInset
50         InsetError * inset_;
51         /// the error message
52         string message_;
53 };
54
55 #endif