]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.h
swallow <Return> events in mathed. Should mimic 1.3.x behaviour.
[lyx.git] / src / mathed / math_sqrtinset.h
index e3e153de39c82e81a702e2e8e73ab5e81c85699f..7279ef3e810dfe584cfcb05a3c8669d737dac24e 100644 (file)
@@ -1,29 +1,48 @@
 // -*- C++ -*-
+/**
+ * \file math_sqrtinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_SQRTINSET_H
 #define MATH_SQRTINSET_H
 
-#include "math_inset.h"
+#include "math_nestinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-/** The square root inset.
-    \author Alejandro Aguilar Siearra
- */
-class MathSqrtInset : public MathInset {
+/// \c MathSqrtInset The square root inset.
+class MathSqrtInset : public MathNestInset {
 public:
        ///
        MathSqrtInset();
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
+       ///
+       void draw(PainterInfo &, int x, int y) const;
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       void drawT(TextPainter &, int x, int y) const;
+       ///
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+
+       ///
+       void write(WriteStream & os) const;
+       ///
+       void normalize(NormalStream &) const;
        ///
-       void draw(Painter &, int x, int baseline);
+       void maple(MapleStream &) const;
        ///
-       void Write(std::ostream &, bool fragile) const;
+       void mathematica(MathematicaStream &) const;
        ///
-       void WriteNormal(std::ostream &) const;
+       void octave(OctaveStream &) const;
        ///
-       void Metrics(MathStyles st, int asc = 0, int des = 0);
+       void mathmlize(MathMLStream &) const;
 };
 #endif