]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSqrt.h
rename mathed/math_xinset into mathed/InsetMathX
[lyx.git] / src / mathed / InsetMathSqrt.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSqrt.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author André Pönitz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef MATH_SQRTINSET_H
14 #define MATH_SQRTINSET_H
15
16 #include "InsetMathNest.h"
17
18
19 /// \c InsetMathSqrt The square root inset.
20 class InsetMathSqrt : public InsetMathNest {
21 public:
22         ///
23         InsetMathSqrt();
24         ///
25         void draw(PainterInfo &, int x, int y) const;
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void drawT(TextPainter &, int x, int y) const;
30         ///
31         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
32
33         ///
34         void write(WriteStream & os) const;
35         ///
36         void normalize(NormalStream &) const;
37         ///
38         void maple(MapleStream &) const;
39         ///
40         void mathematica(MathematicaStream &) const;
41         ///
42         void octave(OctaveStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45 private:
46         virtual std::auto_ptr<InsetBase> doClone() const;
47 };
48 #endif