]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormError.h
6def4551c12933b9100b5ca7c6cd9774a4e4bcbb
[features.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 "FormBase.h"
20 #include "insets/inseterror.h"
21
22 struct FD_form_error;
23
24 /** This class provides an XForms implementation of the FormError Dialog.
25  */
26 class FormError : public FormBase, public noncopyable {
27 public:
28         /// Constructor
29         FormError(LyXView *, Dialogs *);
30         ///
31         ~FormError();
32 private:
33         /// Slot launching dialog to an existing inset
34         void showInset( InsetError * const );
35         /// Update dialog before showing it
36         void update();
37         /// Build the dialog
38         void build();
39         /// Reset data when hide() is called
40         void clearStore();
41         /// Pointer to the actual instantiation of the xform's form
42         FL_FORM * const form() const;
43         /// Fdesign generated method
44         FD_form_error * build_error();
45
46         /// Real GUI implementation.
47         FD_form_error * dialog_;
48         /// inset::hide connection.
49         Connection ih_;
50         /// the error message
51         string message_;
52 };
53
54 #endif