]> git.lyx.org Git - lyx.git/blob - src/mathed/math_rootinset.h
small up/down tweaking
[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 #ifdef __GNUG__
21 #pragma interface
22 #endif
23
24 /** The general n-th root inset.
25  *  \author Alejandro Aguilar Sierra
26  *
27  * Full author contact details are available in file CREDITS
28     \version January 1999
29  */
30 class MathRootInset : public MathNestInset {
31 public:
32         ///
33         MathRootInset();
34         ///
35         MathInset * clone() const;
36         ///
37         bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
38         ///
39         void metrics(MathMetricsInfo & mi) const;
40         ///
41         void draw(MathPainterInfo & pi, int x, int y) const;
42
43         ///
44         void write(WriteStream & os) const;
45         ///
46         void normalize(NormalStream &) const;
47         ///
48         void mathmlize(MathMLStream &) const;
49         ///
50         void maplize(MapleStream &) const;
51         ///
52         void octavize(OctaveStream &) const;
53 };
54
55 #endif