3 * \file InsetMathClass.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_CLASSINSET_H
13 #define MATH_CLASSINSET_H
15 #include "MathClass.h"
17 #include "InsetMathNest.h"
23 /// Support for LaTeX's \\mathxxx class-changing commands
25 class InsetMathClass : public InsetMathNest {
28 InsetMathClass(Buffer * buf, MathClass);
30 docstring name() const;
32 MathClass mathClass() const { return math_class_; }
34 void metrics(MetricsInfo & mi, Dimension & dim) const;
36 void draw(PainterInfo & pi, int x, int y) const;
38 void infoize(odocstream & os) const;
40 InsetCode lyxCode() const { return MATH_CLASS_CODE; }
43 virtual Inset * clone() const;
45 MathClass math_class_;