3 * \file InsetMathSize.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 MATHSIZEINSET_H
13 #define MATHSIZEINSET_H
15 #include "FontEnums.h"
16 #include "InsetMathNest.h"
25 /// An inset for \scriptsize etc.
26 class InsetMathSize : public InsetMathNest {
29 explicit InsetMathSize(Buffer * buf, latexkeys const * l);
30 /// we write extra braces in any case...
31 bool extraBraces() const override { return true; }
33 void metrics(MetricsInfo & mi, Dimension & dim) const override;
35 void draw(PainterInfo &, int x, int y) const override;
38 void write(TeXMathStream & os) const override;
40 void normalize(NormalStream &) const override;
42 void infoize(odocstream & os) const override;
44 void mathmlize(MathMLStream &) const override;
46 void htmlize(HtmlStream &) const override;
48 void validate(LaTeXFeatures &) const override;
50 InsetCode lyxCode() const override { return MATH_SIZE_CODE; }
53 Inset * clone() const override;
55 latexkeys const * key_;
57 MathStyle const style_;