]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormInclude.h
formskdepatchthingie
[lyx.git] / src / frontends / xforms / FormInclude.h
1 /**
2  * \file FormInclude.h
3  * Copyright 2001 the LyX Team
4  * See the file COPYING
5  *
6  * \author Alejandro Aguilar Sierra
7  * \author John Levon
8  */
9 #ifndef FORMINCLUDE_H
10 #define FORMINCLUDE_H
11
12 #ifdef __GNUG__
13 #pragma interface
14 #endif
15
16 #include "FormInset.h"
17
18 class InsetInclude;
19  
20 struct FD_form_include;
21
22 /** This class provides an XForms implementation of the FormInclude Dialog.
23  */
24 class FormInclude : public FormCommand {
25 public:
26         ///
27         FormInclude(LyXView *, Dialogs *);
28         ///
29         ~FormInclude();
30 private:
31         ///
32         enum State {
33                 /// the browse button
34                 BROWSE=0,
35                 /// the load file button
36                 LOAD=5,
37                 /// the verbatim radio choice
38                 VERBATIM=10,
39                 /// the input and include radio choices
40                 INPUTINCLUDE=11
41         };
42  
43         /// Build the dialog
44         virtual void build();
45         /// Filter the inputs
46         virtual bool input( FL_OBJECT *, long );
47         /// Update dialog before showing it
48         virtual void update();
49         /// Apply from dialog (modify or create inset)
50         virtual void apply();
51         /// Pointer to the actual instantiation of the xform's form
52         virtual FL_FORM * form() const;
53
54         /// Type definition from the fdesign produced header file.
55         FD_form_include * build_include();
56
57         /// Real GUI implementation.
58         FD_form_include * dialog_;
59 };
60
61 #endif