]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormToc.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormToc.h
index c115b9f9934da246b5674b841b1f55d260ef9fc2..1e5bfeb1fc292de370dda6d6f6dca11ac4cdf67e 100644 (file)
@@ -4,9 +4,12 @@
  *
  *           LyX, The Document Processor
  *
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  * ======================================================
+ *
+ * \file FormToc.h
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
  */
 
 #ifndef FORMTOC_H
 #pragma interface
 #endif
 
-#include "FormCommand.h"
+#include "FormBase.h"
+#include "buffer.h"
+
+class ControlToc;
 struct FD_form_toc;
 
 /** This class provides an XForms implementation of the FormToc Dialog.
  */
-class FormToc : public FormCommand {
+class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
 public:
-       /**@name Constructors and Destructors */
-       //@{
        ///
-       FormToc(LyXView *, Dialogs *);
-       ///
-       ~FormToc();
-
+       FormToc(ControlToc &);
 private:
-       /**@name Slot Methods */
-       //@{
-       ///
-       virtual void update();
-       /// Apply from dialog
-       virtual void apply();
-       ///
-       virtual void input( long ) {};
+       /// not needed
+       virtual void apply() {}
        /// Build the dialog
        virtual void build();
+       /// Update dialog before showing it
+       virtual void update();
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+
        ///
-       virtual FL_FORM * const form() const;
-       ///
-       void updateToc();
+       void updateType();
        ///
+       void updateContents();
+
+       /// Fdesign generated method
        FD_form_toc * build_toc();
-       //@}
 
-       /// Real GUI implementation.
-       FD_form_toc * dialog_;
+       ///
+       Buffer::SingleList toclist_;
 };
 
-#endif
+#endif // FORMTOC_H