]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsSpace.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormMathsSpace.C
index 5e6f03ad63696f2df5f911df21077547bf703ddc..80453a92838d8746d1b98c63021480a77c86d7de 100644 (file)
@@ -8,25 +8,27 @@
  * \author John Levon
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-
 #include "FormMathsSpace.h"
 #include "forms/form_maths_space.h"
 #include "ControlMath.h"
 #include "xformsBC.h"
 
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
 
 extern char * latex_mathspace[];
 
-typedef FormCB<ControlMathSub, FormDB<FD_maths_space> > base_class;
+namespace lyx {
+namespace frontend {
+
+typedef FormController<ControlMath, FormView<FD_maths_space> > base_class;
 
-FormMathsSpace::FormMathsSpace()
-       : base_class(_("Math Spacing"), false),
+FormMathsSpace::FormMathsSpace(Dialog & parent)
+       : base_class(parent, _("Math Spacing"), false),
          space_(-1)
 {}
 
@@ -53,7 +55,7 @@ void FormMathsSpace::build()
 void FormMathsSpace::apply()
 {
        if (space_ >= 0)
-               controller().insertSymbol(latex_mathspace[space_]);
+               controller().dispatchInsert(latex_mathspace[space_]);
 }
 
 ButtonPolicy::SMInput FormMathsSpace::input(FL_OBJECT *, long data)
@@ -66,3 +68,6 @@ ButtonPolicy::SMInput FormMathsSpace::input(FL_OBJECT *, long data)
        }
        return ButtonPolicy::SMI_VALID;
 }
+
+} // namespace frontend
+} // namespace lyx