]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInclude.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormInclude.h
index 8959a602e69366ac356540cdeeb08cf0e886027e..cfa8504035bf687d617d4c8de291aca9d24c3f5c 100644 (file)
@@ -1,61 +1,45 @@
+// -*- C++ -*-
 /**
  * \file FormInclude.h
- * Copyright 2001 the LyX Team
- * See the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
  * \author John Levon
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  */
 #ifndef FORMINCLUDE_H
 #define FORMINCLUDE_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-#include "FormInset.h"
+#include "FormDialogView.h"
+#include "RadioButtonGroup.h"
+
 
-class InsetInclude;
-struct FD_form_include;
+class ControlInclude;
+struct FD_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 FormController<ControlInclude, FormView<FD_include> > {
 public:
        ///
-       FormInclude(LyXView *, Dialogs *);
-       ///
-       ~FormInclude();
+       FormInclude(Dialog &);
 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 xforms form
-       virtual FL_FORM * form() const;
-
-       /// Type definition from the fdesign produced header file.
-       FD_form_include * build_include();
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       /// Real GUI implementation.
-       FD_form_include * dialog_;
+       /// include type
+       RadioButtonGroup type_;
 };
 
-#endif
+#endif // FORMINCLUDE_H