3 * \file InsetMathDecoration.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 "InsetMathNest.h"
23 /// Decorations and accents over (below) a math object
24 class InsetMathDecoration : public InsetMathNest {
27 explicit InsetMathDecoration(latexkeys const * key);
29 void draw(PainterInfo &, int x, int y) const;
31 void write(WriteStream & os) const;
33 void metrics(MetricsInfo & mi, Dimension & dim) const;
35 void normalize(NormalStream & os) const;
37 void infoize(odocstream & os) const;
39 bool isScriptable() const;
41 void validate(LaTeXFeatures & features) const;
44 virtual Inset * clone() const;
49 /// is it a wide decoration?
51 /// does this need AMS
55 latexkeys const * key_;
56 /// height cache of deco
58 /// vertical offset cache of deco
60 /// width for non-wide deco