2 #ifndef MATHSIZEINSET_H
3 #define MATHSIZEINSET_H
5 #include "math_nestinset.h"
6 #include "math_metricsinfo.h"
12 /** An inset for \scriptsize etc
13 * \author André Pönitz
15 * Full author contact details are available in file CREDITS
20 class MathSizeInset : public MathNestInset {
23 explicit MathSizeInset(latexkeys const * l);
25 MathInset * clone() const;
26 /// we write extra braces in any case...
27 bool extraBraces() const { return true; }
29 void metrics(MathMetricsInfo & st) const;
31 void draw(MathPainterInfo &, int x, int y) const;
34 void write(WriteStream & os) const;
36 void normalize(NormalStream &) const;
38 void infoize(std::ostream & os) const;
42 latexkeys const * key_;
44 MathStyles const style_;