3 * \file math_decorationinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_DECORATIONINSET_H
14 #define MATH_DECORATIONINSET_H
16 #include "math_nestinset.h"
22 /// Decorations and accents over (below) a math object
23 class MathDecorationInset : public MathNestInset {
26 explicit MathDecorationInset(latexkeys const * key);
28 virtual std::auto_ptr<InsetBase> clone() const;
30 void draw(PainterInfo &, int x, int y) const;
32 void write(WriteStream & os) const;
34 void metrics(MetricsInfo & mi, Dimension & dim) const;
36 void normalize(NormalStream & os) const;
38 void infoize(std::ostream & os) const;
40 bool isScriptable() const;
47 /// is it a wide decoration?
51 latexkeys const * key_;
52 /// height cache of deco
54 /// vertical offset cache of deco
56 /// width for non-wide deco