]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormExternal.h
* Baruch's GuiBC template.
[lyx.git] / src / frontends / xforms / FormExternal.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2000-2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file FormExternal.h
11  * \author Asger Alstrup
12  * \author John Levon
13  * \author Angus Leeming, a.leeming@ic.ac.uk
14  */
15
16 #ifndef FORMEXTERNAL_H
17 #define FORMEXTERNAL_H
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "FormBase.h"
24 #include "insets/insetexternal.h"
25
26 class ControlExternal;
27 struct FD_form_external;
28
29 /// The class for editing External insets via a dialog
30 class FormExternal : public FormCB<ControlExternal, FormDB<FD_form_external> > {
31 public:
32         ///
33         FormExternal(ControlExternal &);
34
35 private:
36         /// apply changes
37         void apply();
38
39         /// build the dialog
40         void build();
41
42         /// update the dialog
43         void update();
44
45         /// Filter the inputs on callback from xforms
46         ButtonPolicy::SMInput input(FL_OBJECT *, long);
47
48         ///
49         void updateComboChange();
50
51         /// Fdesign generated method
52         FD_form_external * build_external();
53 };
54
55 #endif // FORMEXTERNAL_H