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);
37 void InsetMathClass::draw(PainterInfo & pi, int x, int y) const
39 cell(0).draw(pi, x, y);
43 docstring InsetMathClass::name() const
45 return class_to_string(math_class_);
49 void InsetMathClass::infoize(odocstream & os) const