X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sqrtinset.h;h=7279ef3e810dfe584cfcb05a3c8669d737dac24e;hb=a8a1f10e765512b40f6942e5594363fe16542c1c;hp=122c0f0a8fa65ac54b3d5323c937886611f46694;hpb=47b341b9963935f5421661109b497d671f21a885;p=lyx.git diff --git a/src/mathed/math_sqrtinset.h b/src/mathed/math_sqrtinset.h index 122c0f0a8f..7279ef3e81 100644 --- a/src/mathed/math_sqrtinset.h +++ b/src/mathed/math_sqrtinset.h @@ -1,36 +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_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(); /// - MathedInset * Clone(); + virtual std::auto_ptr clone() const; /// - void draw(Painter &, int x, int baseline); + 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(std::ostream &, bool fragile); + void write(WriteStream & os) const; /// - void WriteNormal(std::ostream &); + void normalize(NormalStream &) const; /// - void Metrics(); + void maple(MapleStream &) const; /// - bool Inside(int, int); -private: + void mathematica(MathematicaStream &) const; /// - int hmax_; + void octave(OctaveStream &) const; /// - int wbody_; + void mathmlize(MathMLStream &) const; }; #endif