3 * \file InsetMathSqrt.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_SQRTINSET_H
14 #define MATH_SQRTINSET_H
16 #include "InsetMathNest.h"
22 /// \c InsetMathSqrt The square root inset.
23 class InsetMathSqrt : public InsetMathNest {
26 InsetMathSqrt(Buffer * buf);
28 void draw(PainterInfo &, int x, int y) const;
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 void drawT(TextPainter &, int x, int y) const;
34 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
37 void write(WriteStream & os) const;
39 void normalize(NormalStream &) const;
41 void maple(MapleStream &) const;
43 void mathematica(MathematicaStream &) const;
45 void octave(OctaveStream &) const;
47 void mathmlize(MathStream &) const;
49 InsetCode lyxCode() const { return MATH_SQRT_CODE; }
52 virtual Inset * clone() const;