]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_root.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / math_root.h
index 155e6e8a28cea2fa366845643115cf5bf5419236..bddb171dcf8f6cfecb38a3855d22de8d9a664658 100644 (file)
 
 #include "math_sqrtinset.h"
 #include "symbol_def.h"
-#include "LString.h"
 
-///
-class MathRootInset: public MathSqrtInset {
-public:
-    ///
-    explicit
-    MathRootInset(short st = LM_ST_TEXT);
-    ///
-    ~MathRootInset();
-    ///
-    MathedInset * Clone();
-    ///
-    void draw(Painter &, int x, int baseline);
-    ///
-    void Write(std::ostream &, bool fragile);
-    ///
-    void Metrics();
-    ///
-    bool Inside(int, int);
-    ///
-    void SetFocus(int, int);
-    ///
-    void SetData(MathedArray *);
-    ///
-    void GetXY(int & x, int & y) const;
-    ///
-    MathedArray * GetData();
-    ///
-    bool setArgumentIdx(int i);
-    ///
-    int getArgumentIdx() const { return idx; }
-    ///
-    int getMaxArgumentIdx() const { return 1; }
-    ///
-    void SetStyle(short);
 
-protected:
-    ///
-    int idx;
-    ///
-    MathParInset * uroot;
-    ///
-    int wroot, dh;
+/** The general n-th root inset.
+    \author Alejandro Aguilar Sierra
+    \version January 1999
+ */
+class MathRootInset : public MathSqrtInset {
+public:
+       ///
+       explicit
+       MathRootInset(short st = LM_ST_TEXT);
+       ///
+       ~MathRootInset();
+       ///
+       MathedInset * Clone();
+       ///
+       void draw(Painter &, int x, int baseline);
+       ///
+       void Write(std::ostream &, bool fragile);
+       ///
+       void Metrics();
+       ///
+       bool Inside(int, int);
+       ///
+       void SetFocus(int, int);
+       ///
+       void setData(MathedArray *);
+       ///
+       void GetXY(int & x, int & y) const;
+       ///
+       MathedArray * GetData();
+       ///
+       bool setArgumentIdx(int i);
+       ///
+       int getArgumentIdx() const;
+       ///
+       int getMaxArgumentIdx() const;
+       ///
+       void SetStyle(short);
+private:
+       ///
+       int idx_;
+       ///
+       MathParInset * uroot_;
+       ///
+       int wroot_;
+       ///
+       int dh_;
 };
+
+
+inline
+int MathRootInset::getArgumentIdx() const
+{
+       return idx_;
+}
+
+
+inline
+int MathRootInset::getMaxArgumentIdx() const
+{
+       return 1;
+}
+
 #endif