3 * \file InsetMathSpace.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_SPACEINSET_H
13 #define MATH_SPACEINSET_H
15 #include "InsetMath.h"
21 struct InsetSpaceParams;
24 class InsetMathSpace : public InsetMath {
27 explicit InsetMathSpace();
29 explicit InsetMathSpace(std::string const & name, std::string const & length);
31 explicit InsetMathSpace(Length const & length);
33 InsetMathSpace const * asSpaceInset() const { return this; }
35 InsetMathSpace * asSpaceInset() { return this; }
39 void metrics(MetricsInfo & mi, Dimension & dim) const;
41 void draw(PainterInfo & pi, int x, int y) const;
44 void normalize(NormalStream &) const;
46 void validate(LaTeXFeatures & features) const;
48 void maple(MapleStream &) const;
50 void mathematica(MathematicaStream &) const;
52 void octave(OctaveStream &) const;
54 void mathmlize(MathStream & ms) const;
56 void write(WriteStream & os) const;
57 /// generate something that will be understood by the Dialogs.
58 InsetSpaceParams params() const;
60 bool hasSettings() const { return true; }
62 docstring contextMenu(BufferView const &, int, int) const;
64 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
66 InsetCode lyxCode() const { return MATH_SPACE_CODE; }
70 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
72 virtual Inset * clone() const;
74 bool isNegative() const;
77 /// amount of space for \\hspace