3 * \file InsetMathRoot.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.
16 #include "InsetMathNest.h"
22 /// The general n-th root inset.
23 class InsetMathRoot : public InsetMathNest {
26 InsetMathRoot(Buffer * buf);
28 bool idxUpDown(Cursor & cur, bool up) const;
30 bool idxForward(Cursor & cur) const;
32 bool idxBackward(Cursor & cur) const;
35 void metrics(MetricsInfo & mi, Dimension & dim) const;
37 void draw(PainterInfo & pi, int x, int y) const;
40 void write(WriteStream & os) const;
42 void normalize(NormalStream &) const;
44 void mathmlize(MathStream &) const;
46 void htmlize(HtmlStream &) const;
48 void maple(MapleStream &) const;
50 void mathematica(MathematicaStream &) const;
52 void octave(OctaveStream &) const;
54 InsetCode lyxCode() const { return MATH_ROOT_CODE; }
56 void validate(LaTeXFeatures &) const;
59 virtual Inset * clone() const;
62 void mathed_root_metrics(MetricsInfo & mi, MathData const & nucleus,
63 MathData const * root, Dimension & dim);
65 void mathed_draw_root(PainterInfo & pi, int x, int y, MathData const & nucleus,
66 MathData const * root, Dimension const & dim);