2 * \file InsetMathNumber.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathNumber.h"
14 #include "MathStream.h"
15 #include "MathSupport.h"
17 #include "MetricsInfo.h"
24 InsetMathNumber::InsetMathNumber(docstring const & s)
29 Inset * InsetMathNumber::clone() const
31 return new InsetMathNumber(*this);
35 void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
37 mathed_string_dim(mi.base.font, str_, dim);
41 void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
47 void InsetMathNumber::normalize(NormalStream & os) const
49 os << "[number " << str_ << ']';
53 void InsetMathNumber::maple(MapleStream & os) const
59 void InsetMathNumber::mathematica(MathematicaStream & os) const
65 void InsetMathNumber::octave(OctaveStream & os) const
71 void InsetMathNumber::mathmlize(MathMLStream & ms) const
73 ms << MTagInline("mn")
79 void InsetMathNumber::htmlize(HtmlStream & os) const
85 void InsetMathNumber::write(TeXMathStream & os) const