]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_root.h
make doc++ able to generate the source documentation for lyx
[features.git] / src / mathed / math_root.h
index 0429aadff9ba83fda09b9d13dab048e8fd203408..5a8aa95bc48e4d686ba0015f4878085760f08762 100644 (file)
@@ -6,7 +6,7 @@
  *  Created:     January 1999
  *  Description: Root math object
  *
- *  Copyright: (c) 1999 Alejandro Aguilar Sierra
+ *  Copyright: 1999 Alejandro Aguilar Sierra
  *
  *   You are free to use and modify this code under the terms of
  *   the GNU General Public Licence version 2 or later.
 #pragma interface
 #endif
 
-#include <cstdio>
 #include "math_defs.h"
 #include "math_inset.h"
 #include "symbol_def.h"
 #include "LString.h"
 
-
 ///
 class MathRootInset: public MathSqrtInset {
- public:
+public:
     ///
+    explicit
     MathRootInset(short st = LM_ST_TEXT);
     ///
-    //    MathRootInset(MathSqrtInset &);
-    ///
     ~MathRootInset();
     ///
     MathedInset * Clone();
     ///
-    void Draw(int x, int baseline);
-    ///
-    void Write(ostream &);
+    void draw(Painter &, int x, int baseline);
     ///
-    void Write(string & file);
+    void Write(std::ostream &, bool fragile);
     ///
     void Metrics();
     ///
@@ -52,7 +47,7 @@ class MathRootInset: public MathSqrtInset {
     ///
     void SetData(LyxArrayBase *);
     ///
-    void GetXY(int& x, int& y) const;
+    void GetXY(int & x, int & y) const;
     ///
     LyxArrayBase * GetData();
     ///
@@ -64,7 +59,7 @@ class MathRootInset: public MathSqrtInset {
     ///
     void  SetStyle(short);
 
- protected:
+protected:
     ///
     int idx;
     ///