X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_sqrtinset.h;h=7279ef3e810dfe584cfcb05a3c8669d737dac24e;hb=a8a1f10e765512b40f6942e5594363fe16542c1c;hp=60a39b377028796cbd483499cf896d27e2c7f21c;hpb=b906c06db6ecd4b63bb5cdb5781ab05029303e25;p=lyx.git diff --git a/src/mathed/math_sqrtinset.h b/src/mathed/math_sqrtinset.h index 60a39b3770..7279ef3e81 100644 --- a/src/mathed/math_sqrtinset.h +++ b/src/mathed/math_sqrtinset.h @@ -1,26 +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" -/// -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; + /// + 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; + /// - MathedInset * Clone(); + void write(WriteStream & os) const; /// - void draw(Painter &, int x, int baseline); + void normalize(NormalStream &) const; /// - void Write(std::ostream &, bool fragile); + void maple(MapleStream &) const; /// - void Metrics(); + void mathematica(MathematicaStream &) const; /// - bool Inside(int, int); -private: + void octave(OctaveStream &) const; /// - int hmax, wbody; + void mathmlize(MathMLStream &) const; }; #endif