]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsStyle.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormMathsStyle.h
index 741a5ec59241e0866ceb648ae8da5bf58aed9db0..0c15347da41d93f939a98ecde7f96679b6292a0d 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C++ -*-
 /**
  * \file FormMathsStyle.h
- * 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
 #pragma interface
 #endif
 
-#include "FormMathsPanel.h"
-
-#include <boost/scoped_ptr.hpp>
+#include "FormBase.h"
 
+class ControlMathSub;
 struct FD_maths_style;
 
 /**
  * This class provides an XForms implementation of the maths style.
  */
-class FormMathsStyle : public FormMathsSub {
+class FormMathsStyle : public FormCB<ControlMathSub, FormDB<FD_maths_style> > {
 public:
        ///
-       FormMathsStyle(LyXView &, Dialogs &, FormMathsPanel const &);
+       FormMathsStyle();
 
 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_style> dialog_;
+       ///
+       virtual void build();
+       ///
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+       /// Not needed.
+       virtual void update() {}
 
        /// The current choice.
        int style_;