3 * \file math_sizeinset.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 "math_nestinset.h"
16 #include "metricsinfo.h"
21 /// An inset for \scriptsize etc.
22 class MathSizeInset : public MathNestInset {
25 explicit MathSizeInset(latexkeys const * l);
27 virtual std::auto_ptr<InsetBase> clone() const;
28 /// we write extra braces in any case...
29 bool extraBraces() const { return true; }
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
33 void draw(PainterInfo &, int x, int y) const;
36 void write(WriteStream & os) const;
38 void normalize(NormalStream &) const;
40 void infoize(std::ostream & os) const;
44 latexkeys const * key_;