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 override;
32 MathClass mathClass() const override { return math_class_; }
34 void metrics(MetricsInfo & mi, Dimension & dim) const override;
36 void draw(PainterInfo & pi, int x, int y) const override;
38 void infoize(odocstream & os) const override;
40 InsetCode lyxCode() const override { return MATH_CLASS_CODE; }
42 InsetMathClass * asClassInset() { return this; }
44 InsetMathClass const * asClassInset() const override { return this; }
47 Inset * clone() const override;
49 MathClass math_class_;