X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sqrtinset.h;h=7279ef3e810dfe584cfcb05a3c8669d737dac24e;hb=a8a1f10e765512b40f6942e5594363fe16542c1c;hp=5c73159ae858dc17d6f0db862a8e1dbab1569684;hpb=9a3176581dc3e9aee62d908faf8d48ddb43d4cc3;p=lyx.git diff --git a/src/mathed/math_sqrtinset.h b/src/mathed/math_sqrtinset.h index 5c73159ae8..7279ef3e81 100644 --- a/src/mathed/math_sqrtinset.h +++ b/src/mathed/math_sqrtinset.h @@ -1,30 +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" -/** 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(); + /// + virtual std::auto_ptr clone() const; /// - MathedInset * Clone(); + 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 draw(Painter &, int x, int baseline); + void write(WriteStream & os) const; /// - void Write(std::ostream &, bool fragile); + 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