]> git.lyx.org Git - lyx.git/blob - src/mathed/math_rootinset.h
fix #1073
[lyx.git] / src / mathed / math_rootinset.h
1 // -*- C++ -*-
2 /**
3  *  File:        math_root.h
4  *  Purpose:     Declaration of the root object
5  *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6  *  Created:     January 1999
7  *  Description: Root math object
8  *
9  *  Copyright: 1999 Alejandro Aguilar Sierra
10  *
11  *   You are free to use and modify this code under the terms of
12  *   the GNU General Public Licence version 2 or later.
13  */
14
15 #ifndef MATH_ROOT_H
16 #define MATH_ROOT_H
17
18 #include "math_nestinset.h"
19
20
21 /** The general n-th root inset.
22  *  \author Alejandro Aguilar Sierra
23  *
24  * Full author contact details are available in file CREDITS
25     \version January 1999
26  */
27 class MathRootInset : public MathNestInset {
28 public:
29         ///
30         MathRootInset();
31         ///
32         MathInset * clone() const;
33         ///
34         bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
35         ///
36         void metrics(MetricsInfo & mi) const;
37         ///
38         void draw(PainterInfo & pi, int x, int y) const;
39
40         ///
41         void write(WriteStream & os) const;
42         ///
43         void normalize(NormalStream &) const;
44         ///
45         void mathmlize(MathMLStream &) const;
46         ///
47         void maple(MapleStream &) const;
48         ///
49         void octave(OctaveStream &) const;
50 };
51
52 #endif