]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInclude.h
use exclicit temp var
[lyx.git] / src / frontends / xforms / FormInclude.h
index 1e8f744638fdb6d86f66199581bc4881e618c11d..65e4077a1fbbca1dfdd9e31341d8193414d0f60b 100644 (file)
@@ -1,10 +1,12 @@
+// -*- C++ -*-
 /**
  * \file FormInclude.h
  * Copyright 2001 the LyX Team
  * See the file COPYING
  *
  * \author Alejandro Aguilar Sierra
- * \author John Levon
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Angus Leeming <a.leeming@ic.ac.uk>
  */
 #ifndef FORMINCLUDE_H
 #define FORMINCLUDE_H
 #pragma interface
 #endif
 
-#include "FormInset.h"
+#include "FormBase.h"
 
-class InsetInclude;
+class ControlInclude;
 struct FD_form_include;
 
-/** This class provides an XForms implementation of the FormInclude Dialog.
+/** This class provides an XForms implementation of the Include Dialog.
  */
-class FormInclude : public FormCommand {
+class FormInclude : public FormCB<ControlInclude, FormDB<FD_form_include> > {
 public:
        ///
-       FormInclude(LyXView *, Dialogs *);
-       ///
-       ~FormInclude();
+       FormInclude(ControlInclude &);
+
 private:
-       ///
-       enum State {
-               /// the browse button
-               BROWSE=0,
-               /// the load file button
-               LOAD=5,
-               /// the verbatim radio choice
-               VERBATIM=10,
-               /// the input and include radio choices
-               INPUTINCLUDE=11
-       };
+       /// Set the Params variable for the Controller.
+       virtual void apply();
        /// Build the dialog
        virtual void build();
-       /// Filter the inputs
-       virtual bool input( FL_OBJECT *, long );
        /// Update dialog before showing it
        virtual void update();
-       /// Apply from dialog (modify or create inset)
-       virtual void apply();
-       /// Pointer to the actual instantiation of the xform's form
-       virtual FL_FORM * form() const;
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       /// Type definition from the fdesign produced header file.
+       /// Fdesign generated method
        FD_form_include * build_include();
-
-       /// Real GUI implementation.
-       FD_form_include * dialog_;
 };
 
 #endif