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 "InsetMathNest.h"
16 #include "MetricsInfo.h"
24 /// An inset for \scriptsize etc.
25 class InsetMathSize : public InsetMathNest {
28 explicit InsetMathSize(Buffer * buf, latexkeys const * l);
29 /// we write extra braces in any case...
30 bool extraBraces() const { return true; }
32 void metrics(MetricsInfo & mi, Dimension & dim) const;
34 void draw(PainterInfo &, int x, int y) const;
37 void write(WriteStream & os) const;
39 void normalize(NormalStream &) const;
41 void infoize(odocstream & os) const;
43 void mathmlize(MathStream &) const;
45 InsetCode lyxCode() const { return MATH_SIZE_CODE; }
48 virtual Inset * clone() const;
50 latexkeys const * key_;