* 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 "InsetMathGrid.h"
+namespace lyx {
+
+
/// support for AMS's \\substack
class InsetMathSubstack : public InsetMathGrid {
public:
///
- InsetMathSubstack();
+ explicit InsetMathSubstack(Buffer * buf);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- InsetMathSubstack const * asSubstackInset() const { return this; }
+ InsetMathSubstack const * asSubstackInset() const override { return this; }
///
- bool getStatus(LCursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd,
+ FuncStatus & flag) const override;
+ ///
+ void infoize(odocstream & os) const override;
+ ///
+ void write(TeXMathStream & os) const override;
///
- void infoize(std::ostream & os) const;
+ void mathmlize(MathMLStream &) const override;
///
- void write(WriteStream & os) const;
+ void htmlize(HtmlStream &) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures &) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_SUBSTACK_CODE; }
+
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};
+
+
+} // namespace lyx
#endif