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);
26 /// we write extra braces in any case...
27 bool extraBraces() const { return true; }
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo &, int x, int y) const;
34 void write(WriteStream & os) const;
36 void normalize(NormalStream &) const;
38 void infoize(std::ostream & os) const;
40 virtual std::auto_ptr<InsetBase> doClone() const;
42 latexkeys const * key_;