* 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.
*/
#include "InsetMathNest.h"
-#include <string>
-
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;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
+ ///
+ void maxima(MaximaStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maple(MapleStream &) const override;
///
- void maple(MapleStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathmlize(MathMLStream &) const override;
///
- void mathmlize(MathMLStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(TeXMathStream & os) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_EXINT_CODE; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
///
bool hasScripts() const;
///
- std::string symbol_;
+ docstring symbol_;
};
} // namespace lyx
+
#endif