]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSqrt.h
Fixed bug 3449 by Stefan Schimanski:
[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 namespace lyx {
20
21
22 /// \c InsetMathSqrt The square root inset.
23 class InsetMathSqrt : public InsetMathNest {
24 public:
25         ///
26         InsetMathSqrt();
27         ///
28         void draw(PainterInfo &, int x, int y) const;
29         ///
30         bool metrics(MetricsInfo & mi, Dimension & dim) const;
31         ///
32         void drawT(TextPainter &, int x, int y) const;
33         ///
34         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
35
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void normalize(NormalStream &) const;
40         ///
41         void maple(MapleStream &) const;
42         ///
43         void mathematica(MathematicaStream &) const;
44         ///
45         void octave(OctaveStream &) const;
46         ///
47         void mathmlize(MathStream &) const;
48 private:
49         virtual std::auto_ptr<InsetBase> doClone() const;
50 };
51
52
53 } // namespace lyx
54 #endif