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