]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPreamble.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormPreamble.h
index ac681dedf85090750e31fa4d55bab9bfadb266c4..2efaf2118a3b10465734e6f37aac3ca2fc284b21 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file FormPreamble.h
  * Copyright 2001 The LyX Team.
 #ifndef FORMPREAMBLE_H
 #define FORMPREAMBLE_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "FormBase.h"
 
+class ControlPreamble;
 struct FD_form_preamble;
 
-/** This class provides an XForms implementation of the FormPreamble Dialog.
+/** This class provides an XForms implementation of the Preamble Dialog.
  */
-class FormPreamble : public FormBaseBD {
+class FormPreamble : public FormCB<ControlPreamble, FormDB<FD_form_preamble> > {
 public:
-   ///
-   FormPreamble(LyXView *, Dialogs *);
-   ///
-   ~FormPreamble();
-   
+       ///
+       FormPreamble(ControlPreamble &);
 private:
-   /** Redraw the form (on receipt of a Signal indicating, for example,
-    *  that the xform colours have been re-mapped). 
-    */
-
-   /// Filter the inputs
-   // virtual bool input(FL_OBJECT *, long);
+       /// Apply from dialog 
+       virtual void apply();
+       /// Build the dialog
+       virtual void build();
+       /// Update the dialog
+       virtual void update();
    
-   /// Build the popup
-   virtual void build();
-   /// Apply from popup
-   virtual void apply();
-   /// Update the popup.
-   virtual void update();
-   ///
-   virtual FL_FORM * form() const;
-   
-   /// Typedefinitions from the fdesign produced Header file
-   FD_form_preamble  * build_preamble();
-   
-   /// Real GUI implementation.
-   FD_form_preamble  * dialog_;
+       /// Fdesign generated method
+       FD_form_preamble * build_preamble();
 };
 
-#endif
+
+#endif // FORMPREAMBLE_H