3 #include "math_commentinset.h"
5 #include "math_support.h"
6 #include "math_mathmlstream.h"
7 #include "LaTeXFeatures.h"
8 #include "support/LOstream.h"
9 #include "textpainter.h"
12 MathCommentInset::MathCommentInset()
17 MathCommentInset::MathCommentInset(string const & str)
20 asArray(str, cell(0));
24 MathInset * MathCommentInset::clone() const
26 return new MathCommentInset(*this);
30 void MathCommentInset::metrics(MetricsInfo & mi, Dimension & dim) const
38 void MathCommentInset::draw(PainterInfo & pi, int x, int y) const
40 cell(0).draw(pi, x + 1, y);
41 drawMarkers(pi, x, y);
45 void MathCommentInset::metricsT(TextMetricsInfo const & mi, Dimension & dim) const
47 cell(0).metricsT(mi, dim);
51 void MathCommentInset::drawT(TextPainter & pain, int x, int y) const
53 cell(0).drawT(pain, x, y);
57 void MathCommentInset::write(WriteStream & os) const
59 os << '%' << cell(0) << "\n";
63 void MathCommentInset::maple(MapleStream & os) const
65 os << '#' << cell(0) << "\n";
69 void MathCommentInset::mathematica(MathematicaStream &) const
73 void MathCommentInset::octave(OctaveStream &) const
77 void MathCommentInset::mathmlize(MathMLStream & os) const
79 os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
83 void MathCommentInset::infoize(std::ostream & os) const