2 #ifndef MATH_DECORATIONINSET_H
3 #define MATH_DECORATIONINSET_H
5 #include "math_nestinset.h"
9 /** Decorations and accents over (below) a math object
10 * \author Alejandro Aguilar Sierra
12 * Full author contact details are available in file CREDITS
17 class MathDecorationInset : public MathNestInset {
20 explicit MathDecorationInset(latexkeys const * key);
22 MathInset * clone() const;
24 void draw(PainterInfo &, int x, int y) const;
26 void write(WriteStream & os) const;
28 void metrics(MetricsInfo & mi, Dimension & dim) const;
30 void normalize(NormalStream & os) const;
32 void infoize(std::ostream & os) const;
34 bool isScriptable() const;
41 /// is it a wide decoration?
45 latexkeys const * key_;
46 /// height cache of deco
48 /// vertical offset cache of deco
50 /// width for non-wide deco