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(Buffer * buf, latexkeys const * key);
29 mode_type currentMode() const;
31 void draw(PainterInfo &, int x, int y) const;
33 void write(WriteStream & os) const;
35 void metrics(MetricsInfo & mi, Dimension & dim) const;
37 void normalize(NormalStream & os) const;
39 void infoize(odocstream & os) const;
41 MathClass mathClass() const;
43 bool isScriptable() const;
45 void validate(LaTeXFeatures & features) const;
47 InsetCode lyxCode() const { return MATH_DECORATION_CODE; }
49 void mathmlize(MathStream &) const;
51 void htmlize(HtmlStream &) const;
53 virtual Inset * clone() const;
58 /// is it a wide decoration?
62 latexkeys const * key_;
63 /// height cache of deco
65 /// vertical offset cache of deco
67 /// width for non-wide deco