]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormMathsSpace.C
Nothing but a changed email address (trying to factor my tree in in small steps)
[lyx.git] / src / frontends / xforms / FormMathsSpace.C
index 11402a6a143826a79d8436219125e76a0cfc2fed..feb8f0e367f3147349399fcf7b8a0e2306329dd3 100644 (file)
@@ -6,21 +6,22 @@
  * \author Alejandro Aguilar Sierra
  * \author Pablo De Napoli, pdenapo@dm.uba.ar
  * \author John Levon, moz@compsoc.man.ac.uk
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming <leeming@lyx.org>
  */
 
 #include <config.h>
 
-#ifdef __GNUG_
+#ifdef __GNUG__
 #pragma implementation
 #endif
 
 #include "FormMathsSpace.h"
-#include "form_maths_space.h"
+#include "forms/form_maths_space.h"
+#include FORMS_H_LOCATION
 
 extern char * latex_mathspace[];
 
-FormMathsSpace::FormMathsSpace(LyXView * lv, Dialogs * d,
+FormMathsSpace::FormMathsSpace(LyXView & lv, Dialogs & d,
                               FormMathsPanel const & p)
        : FormMathsSub(lv, d, p, _("Maths Spacing"), false),
          space_(-1)
@@ -30,14 +31,14 @@ FormMathsSpace::FormMathsSpace(LyXView * lv, Dialogs * d,
 FL_FORM * FormMathsSpace::form() const
 {
        if (dialog_.get())
-               return dialog_->form;
+               return dialog_->form;
        return 0;
 }
 
 
 void FormMathsSpace::build()
 {
-       dialog_.reset(build_maths_space());
+       dialog_.reset(build_maths_space(this));
 
        space_ = -1;
 
@@ -61,7 +62,7 @@ void FormMathsSpace::apply()
 bool FormMathsSpace::input(FL_OBJECT *, long data)
 {
        space_ = -1;
+
        if (data >= 0 && data < 6) {
                space_ = short(data);
                apply();