]> git.lyx.org Git - lyx.git/blob - src/mathed/math_rootinset.h
the up/down stuff reworked
[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     \version January 1999
27  */
28 class MathRootInset : public MathNestInset {
29 public:
30         ///
31         MathRootInset();
32         ///
33         MathInset * clone() const;
34         ///
35         bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
36         ///
37         void metrics(MathMetricsInfo & mi) const;
38         ///
39         void draw(MathPainterInfo & pi, int x, int y) const;
40
41         ///
42         void write(WriteStream & os) const;
43         ///
44         void normalize(NormalStream &) const;
45         ///
46         void mathmlize(MathMLStream &) const;
47         ///
48         void octavize(OctaveStream &) const;
49 };
50
51 #endif