X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormMathsSpace.C;h=feb8f0e367f3147349399fcf7b8a0e2306329dd3;hb=c265d16ed06149b478c2d2c9b9b8e69cdb1bcf3d;hp=11402a6a143826a79d8436219125e76a0cfc2fed;hpb=0fde5a4c780868491d0a689ad7b7a43cb70d3a66;p=lyx.git diff --git a/src/frontends/xforms/FormMathsSpace.C b/src/frontends/xforms/FormMathsSpace.C index 11402a6a14..feb8f0e367 100644 --- a/src/frontends/xforms/FormMathsSpace.C +++ b/src/frontends/xforms/FormMathsSpace.C @@ -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 */ #include -#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();