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
9 * Copyright: (c) 1999 Alejandro Aguilar Sierra
11 * You are free to use and modify this code under the terms of
12 * the GNU General Public Licence version 2 or later.
23 #include "math_defs.h"
24 #include "math_inset.h"
25 #include "symbol_def.h"
30 class MathRootInset: public MathSqrtInset {
33 MathRootInset(short st = LM_ST_TEXT);
35 // MathRootInset(MathSqrtInset &);
39 MathRootInset * Clone();
41 void Draw(int x, int baseline);
43 void Write(FILE * file);
45 void Write(string & file);
49 bool Inside(int, int);
51 void SetFocus(int, int);
53 void SetData(LyxArrayBase *);
55 void GetXY(int& x, int& y) const;
57 LyxArrayBase * GetData();
59 bool setArgumentIdx(int i);
61 int getArgumentIdx() { return idx; }
63 int getMaxArgumentIdx() { return 1; }