]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPreamble.h
7f54cffd24eb3bcd2a02a9741e3bfae4ef20ba79
[lyx.git] / src / frontends / xforms / FormPreamble.h
1 // -*- C++ -*-
2 /**
3  * \file FormPreamble.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #ifndef FORMPREAMBLE_H
11 #define FORMPREAMBLE_H
12
13 #include <boost/smart_ptr.hpp>
14 #include "FormBaseDeprecated.h"
15 #include "xformsBC.h"
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 struct FD_form_preamble;
22
23 /** This class provides an XForms implementation of the FormPreamble Dialog.
24  */
25 class FormPreamble : public FormBaseBD {
26 public:
27         ///
28         FormPreamble(LyXView *, Dialogs *);
29 private:
30         /// Pointer to the actual instantiation of the ButtonController.
31         virtual xformsBC & bc();
32
33         /// Filter the inputs
34         // virtual bool input(FL_OBJECT *, long);
35    
36         /// Build the popup
37         virtual void build();
38         /// Apply from popup
39         virtual void apply();
40         /// Update the popup.
41         virtual void update();
42         ///
43         virtual FL_FORM * form() const;
44    
45         /// Typedefinitions from the fdesign produced Header file
46         FD_form_preamble  * build_preamble();
47    
48         /// Real GUI implementation.
49         boost::scoped_ptr<FD_form_preamble> dialog_;
50         /// The ButtonController
51         ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
52 };
53
54
55 inline
56 xformsBC & FormPreamble::bc()
57 {
58   return bc_;
59 }
60 #endif