3 * \file InsetMathComment.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_COMMENTINSET_H
13 #define MATH_COMMENTINSET_H
15 #include "InsetMathNest.h"
22 /// Inset for end-of-line comments
23 class InsetMathComment : public InsetMathNest {
26 explicit InsetMathComment(Buffer * buf);
28 explicit InsetMathComment(MathData const & ar);
30 InsetMathComment(Buffer * buf, docstring const &);
32 void metrics(MetricsInfo & mi, Dimension & dim) const override;
34 void draw(PainterInfo & pi, int x, int y) const override;
36 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
38 void drawT(TextPainter & pi, int x, int y) const override;
41 void write(WriteStream & os) const override;
43 void maple(MapleStream &) const override;
45 void mathematica(MathematicaStream &) const override {}
47 void octave(OctaveStream &) const override {}
49 void mathmlize(MathStream &) const override;
51 void htmlize(HtmlStream &) const override;
53 void infoize(odocstream & os) const override;
55 InsetCode lyxCode() const override { return MATH_COMMENT_CODE; }
57 Inset * clone() const override;