2 * \file FormMathsSpace.C
3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Alejandro Aguilar Sierra
7 * \author Pablo De Napoli, pdenapo@dm.uba.ar
8 * \author John Levon, moz@compsoc.man.ac.uk
9 * \author Angus Leeming <leeming@lyx.org>
15 #pragma implementation
18 #include "FormMathsSpace.h"
19 #include "forms/form_maths_space.h"
20 #include FORMS_H_LOCATION
22 extern char * latex_mathspace[];
24 FormMathsSpace::FormMathsSpace(LyXView & lv, Dialogs & d,
25 FormMathsPanel const & p)
26 : FormMathsSub(lv, d, p, _("Maths Spacing"), false),
31 FL_FORM * FormMathsSpace::form() const
39 void FormMathsSpace::build()
41 dialog_.reset(build_maths_space(this));
45 bc().setCancel(dialog_->button_close);
47 bc().addReadOnly(dialog_->button_thin);
48 bc().addReadOnly(dialog_->button_medium);
49 bc().addReadOnly(dialog_->button_thick);
50 bc().addReadOnly(dialog_->button_negative);
51 bc().addReadOnly(dialog_->button_quadratin);
52 bc().addReadOnly(dialog_->button_twoquadratin);
56 void FormMathsSpace::apply()
59 parent_.insertSymbol(latex_mathspace[space_]);
62 bool FormMathsSpace::input(FL_OBJECT *, long data)
66 if (data >= 0 && data < 6) {