* 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.
*/
namespace lyx {
-class latexkeys;
-
/// Inset for end-of-line comments
class InsetMathComment : public InsetMathNest {
public:
///
- InsetMathComment();
+ explicit InsetMathComment(Buffer * buf);
+ ///
+ explicit InsetMathComment(MathData const & ar);
///
- explicit InsetMathComment(docstring const &);
+ InsetMathComment(Buffer * buf, docstring const &);
///
- bool 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;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
+ ///
+ void maple(MapleStream &) const override;
+ ///
+ void mathematica(MathematicaStream &) const override {}
///
- void maple(MapleStream &) const;
+ void octave(OctaveStream &) const override {}
///
- void mathematica(MathematicaStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void octave(OctaveStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void infoize(odocstream & os) const override;
///
- void infoize(odocstream & os) const;
+ InsetCode lyxCode() const override { return MATH_COMMENT_CODE; }
private:
- virtual std::auto_ptr<Inset> doClone() const;
+ Inset * clone() const override;
};
} // namespace lyx