* \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)
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;
bool FormMathsSpace::input(FL_OBJECT *, long data)
{
space_ = -1;
-
+
if (data >= 0 && data < 6) {
space_ = short(data);
apply();