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, a.leeming@ic.ac.uk
15 #pragma implementation
18 #include "FormMathsSpace.h"
19 #include "form_maths_space.h"
21 extern char * latex_mathspace[];
23 FormMathsSpace::FormMathsSpace(LyXView * lv, Dialogs * d,
24 FormMathsPanel const & p)
25 : FormMathsSub(lv, d, p, _("Maths Spacing"), false),
30 FL_FORM * FormMathsSpace::form() const
38 void FormMathsSpace::build()
40 dialog_.reset(build_maths_space());
44 bc().setCancel(dialog_->button_close);
46 bc().addReadOnly(dialog_->button_thin);
47 bc().addReadOnly(dialog_->button_medium);
48 bc().addReadOnly(dialog_->button_thick);
49 bc().addReadOnly(dialog_->button_negative);
50 bc().addReadOnly(dialog_->button_quadratin);
51 bc().addReadOnly(dialog_->button_twoquadratin);
55 void FormMathsSpace::apply()
58 parent_.insertSymbol(latex_mathspace[space_]);
61 bool FormMathsSpace::input(FL_OBJECT *, long data)
65 if (data >= 0 && data < 6) {