]> git.lyx.org Git - lyx.git/blob - src/mathed/math_rootinset.h
fix pullArg when pressing <Delete> at the end of an cell
[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_inset.h"
19 #include "symbol_def.h"
20
21 #ifdef __GNUG__
22 #pragma interface
23 #endif
24
25 /** The general n-th root inset.
26     \author Alejandro Aguilar Sierra
27     \version January 1999
28  */
29 class MathRootInset : public MathInset {
30 public:
31         ///
32         MathRootInset();
33         ///
34         MathInset * clone() const;
35         ///
36         void draw(Painter &, int x, int baseline);
37         ///
38         void Write(std::ostream &, bool fragile) const;
39         ///
40         void WriteNormal(std::ostream &) const;
41         ///
42         void Metrics(MathStyles st, int asc = 0, int des = 0);
43         ///
44         bool idxUp(int & idx, int & pos) const;
45         ///
46         bool idxDown(int & idx, int & pos) const;
47 };
48
49 #endif