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"
21 /// Decorations and accents over (below) a math object
22 class InsetMathDecoration : public InsetMathNest {
25 explicit InsetMathDecoration(latexkeys const * key);
27 void draw(PainterInfo &, int x, int y) const;
29 void write(WriteStream & os) const;
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
33 void normalize(NormalStream & os) const;
35 void infoize(std::ostream & os) const;
37 bool isScriptable() const;
39 void validate(LaTeXFeatures & features) const;
42 virtual std::auto_ptr<InsetBase> doClone() const;
47 /// is it a wide decoration?
49 /// does this need AMS
53 latexkeys const * key_;
54 /// height cache of deco
56 /// vertical offset cache of deco
58 /// width for non-wide deco