// -*- 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_parinset.h"
+#include "math_nestinset.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-/** The square root inset.
- \author Alejandro Aguilar Siearra
- */
-class MathSqrtInset : public MathParInset {
+/// \c MathSqrtInset The square root inset.
+class MathSqrtInset : public MathNestInset {
public:
///
- MathSqrtInset(short st = LM_ST_TEXT);
+ MathSqrtInset();
+ ///
+ void draw(PainterInfo &, int x, int y) const;
///
- MathedInset * Clone();
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void draw(Painter &, int x, int baseline);
+ void drawT(TextPainter &, int x, int y) const;
///
- void Write(std::ostream &, bool fragile);
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+
///
- void Metrics();
+ void write(WriteStream & os) const;
///
- bool Inside(int, int);
-private:
+ void normalize(NormalStream &) const;
+ ///
+ void maple(MapleStream &) const;
///
- int hmax_;
+ void mathematica(MathematicaStream &) const;
///
- int wbody_;
+ void octave(OctaveStream &) const;
+ ///
+ void mathmlize(MathMLStream &) const;
+private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
};
#endif