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 void InsetMathClass::metrics(MetricsInfo & mi, Dimension & dim) const
33 cell(0).metrics(mi, dim);
38 void InsetMathClass::draw(PainterInfo & pi, int x, int y) const
40 cell(0).draw(pi, x + 1, y);
41 drawMarkers(pi, x, y);
45 docstring InsetMathClass::name() const
47 return class_to_string(math_class_);
51 void InsetMathClass::infoize(odocstream & os) const