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 "MathStream.h"
16 #include "MathSupport.h"
18 #include "MetricsInfo.h"
25 InsetMathNumber::InsetMathNumber(docstring const & s)
30 Inset * InsetMathNumber::clone() const
32 return new InsetMathNumber(*this);
36 void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
38 mathed_string_dim(mi.base.font, str_, dim);
42 void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
48 void InsetMathNumber::normalize(NormalStream & os) const
50 os << "[number " << str_ << ']';
54 void InsetMathNumber::maple(MapleStream & os) const
60 void InsetMathNumber::mathematica(MathematicaStream & os) const
66 void InsetMathNumber::octave(OctaveStream & os) const
72 void InsetMathNumber::mathmlize(MathStream & os) const
74 os << "<mn>" << str_ << "</mn>";
78 void InsetMathNumber::htmlize(HtmlStream & os) const
84 void InsetMathNumber::write(WriteStream & os) const