2 * \file InsetMathClass.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 "InsetMathClass.h"
15 #include "support/docstream.h"
20 InsetMathClass::InsetMathClass(Buffer * buf, MathClass mc)
21 : InsetMathNest(buf, 1), math_class_(mc)
25 Inset * InsetMathClass::clone() const
27 return new InsetMathClass(*this);
31 Limits InsetMathClass::defaultLimits(bool display) const
33 if (allowsLimitsChange() && display)
40 void InsetMathClass::metrics(MetricsInfo & mi, Dimension & dim) const
42 cell(0).metrics(mi, dim);
46 void InsetMathClass::draw(PainterInfo & pi, int x, int y) const
48 cell(0).draw(pi, x, y);
52 void InsetMathClass::write(TeXMathStream & os) const
54 InsetMathNest::write(os);
59 docstring InsetMathClass::name() const
61 return class_to_string(math_class_);
65 void InsetMathClass::infoize(odocstream & os) const