]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_sqrtinset.h
index 5c73159ae858dc17d6f0db862a8e1dbab1569684..e3e153de39c82e81a702e2e8e73ab5e81c85699f 100644 (file)
@@ -1,30 +1,29 @@
-
+// -*- C++ -*-
 #ifndef MATH_SQRTINSET_H
 #define MATH_SQRTINSET_H
 
-#include "math_parinset.h"
+#include "math_inset.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
 
 /** The square root inset.
     \author Alejandro Aguilar Siearra
  */
-class MathSqrtInset : public MathParInset {
+class MathSqrtInset : public MathInset {
 public:
        ///
-       MathSqrtInset(short st = LM_ST_TEXT);
+       MathSqrtInset();
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
        void draw(Painter &, int x, int baseline);
        ///
-       void Write(std::ostream &, bool fragile);
-       ///
-       void Metrics();
-       ///
-       bool Inside(int, int);
-private:
+       void Write(std::ostream &, bool fragile) const;
        ///
-       int hmax_;
+       void WriteNormal(std::ostream &) const;
        ///
-       int wbody_;
+       void Metrics(MathStyles st, int asc = 0, int des = 0);
 };
 #endif