4 * Copyright 2001 The LyX Team.
5 * See the file COPYING.
7 * \author Edwin Leuven, leuven@fee.uva.nl
10 #ifndef FORMPREAMBLE_H
11 #define FORMPREAMBLE_H
13 #include <boost/smart_ptr.hpp>
14 #include "FormBaseDeprecated.h"
21 struct FD_form_preamble;
23 /** This class provides an XForms implementation of the FormPreamble Dialog.
25 class FormPreamble : public FormBaseBD {
28 FormPreamble(LyXView *, Dialogs *);
30 /// Pointer to the actual instantiation of the ButtonController.
31 virtual xformsBC & bc();
34 // virtual bool input(FL_OBJECT *, long);
41 virtual void update();
43 virtual FL_FORM * form() const;
45 /// Typedefinitions from the fdesign produced Header file
46 FD_form_preamble * build_preamble();
48 /// Real GUI implementation.
49 boost::scoped_ptr<FD_form_preamble> dialog_;
50 /// The ButtonController
51 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
56 xformsBC & FormPreamble::bc()