]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_sqrtinset.h
index 5c73159ae858dc17d6f0db862a8e1dbab1569684..57517e49595d74c7ae9c93f104205e6757f37940 100644 (file)
@@ -1,30 +1,34 @@
-
+// -*- C++ -*-
 #ifndef MATH_SQRTINSET_H
 #define MATH_SQRTINSET_H
 
-#include "math_parinset.h"
+#include "math_nestinset.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
 
 /** The square root inset.
     \author Alejandro Aguilar Siearra
  */
-class MathSqrtInset : public MathParInset {
+class MathSqrtInset : public MathNestInset {
 public:
        ///
-       MathSqrtInset(short st = LM_ST_TEXT);
+       MathSqrtInset();
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
-       void draw(Painter &, int x, int baseline);
+       void draw(Painter &, int x, int y) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void metrics(MathMetricsInfo const & st) const;
+
        ///
-       void Metrics();
+       void write(WriteStream & os) const;
        ///
-       bool Inside(int, int);
-private:
+       void normalize(NormalStream &) const;
        ///
-       int hmax_;
+       void maplize(MapleStream &) const;
        ///
-       int wbody_;
+       void mathmlize(MathMLStream &) const;
 };
 #endif