X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathExInt.h;h=5254166d664ea7c4dd0e7a6958774e417a1b0396;hb=02e82157ec583c3900e359de86be79fac6512387;hp=d4bcc012234eba80ef6bda62bf38988df1860bfe;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathExInt.h b/src/mathed/InsetMathExInt.h index d4bcc01223..5254166d66 100644 --- a/src/mathed/InsetMathExInt.h +++ b/src/mathed/InsetMathExInt.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -18,16 +18,26 @@ #include "InsetMathNest.h" -#include +namespace lyx { -// cell(0) is stuff before the 'd', cell(1) the stuff after +// for integrals: +// cell(0) is stuff before the 'd' +// cell(1) is the stuff after the 'd' +// cell(2) is the lower bound +// cell(3) is the upper bound +// for sums: +// cell(0) is the main body +// cell(1) is the index (e.g., i), if the lower bound is "i = ..." +// or the whole lower bound if not +// cell(2) is what follows the "=" in the first case +// cell(3) is the upper bound class InsetMathExInt : public InsetMathNest { public: /// - explicit InsetMathExInt(std::string const & name_); + explicit InsetMathExInt(Buffer * buf, docstring const & name_); /// - void symbol(std::string const &); + void symbol(docstring const &); /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// @@ -42,16 +52,24 @@ public: /// void mathematica(MathematicaStream &) const; /// - void mathmlize(MathMLStream &) const; + void mathmlize(MathStream &) const; + /// + void htmlize(HtmlStream &) const; /// void write(WriteStream & os) const; + /// + InsetCode lyxCode() const { return MATH_EXINT_CODE; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// bool hasScripts() const; /// - std::string symbol_; + docstring symbol_; }; + +} // namespace lyx + + #endif