]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsSpace.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormMathsSpace.h
index b390cf3d6a5638233c71caa13b3006f15467f06b..e7a784576e7b10fcab0fac1e4184a85a23bfba64 100644 (file)
 #pragma interface
 #endif
 
-#include "FormMathsPanel.h"
-
-#include <boost/scoped_ptr.hpp>
+#include "FormBase.h"
 
+class ControlMathSub;
 struct FD_maths_space;
 
 /**
  * This class provides an XForms implementation of the maths space.
  */
-class FormMathsSpace : public FormMathsSub {
+class FormMathsSpace : public FormCB<ControlMathSub, FormDB<FD_maths_space> > {
 public:
        ///
-       FormMathsSpace(LyXView &, Dialogs &, FormMathsPanel const &);
+       FormMathsSpace();
 
 private:
-       /// Build the dialog
-       virtual void build();
-       /// input handler
-       virtual bool input(FL_OBJECT *, long);
-       /// Apply from dialog (modify or create inset)
+       ///
        virtual void apply();
-
-       /// Pointer to the actual instantiation of the xforms form
-       virtual FL_FORM * form() const;
-
-       // Real GUI implementation
-       boost::scoped_ptr<FD_maths_space> dialog_;
+       ///
+       virtual void build();
+       ///
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+       /// Not needed.
+       virtual void update() {}
 
        /// The current choice.
        int space_;