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 InsetMathComment(Buffer * buf);
28 explicit InsetMathComment(Buffer * buf, docstring const &);
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
36 void drawT(TextPainter & pi, int x, int y) const;
39 void write(WriteStream & os) const;
41 void maple(MapleStream &) const;
43 void mathematica(MathematicaStream &) const {}
45 void octave(OctaveStream &) const {}
47 void mathmlize(MathStream &) const;
49 void htmlize(HtmlStream &) const;
51 void infoize(odocstream & os) const;
53 InsetCode lyxCode() const { return MATH_COMMENT_CODE; }
55 virtual Inset * clone() const;