4 #include "math_commentinset.h"
5 #include "math_mathmlstream.h"
6 #include "LaTeXFeatures.h"
7 #include "support/LOstream.h"
8 #include "textpainter.h"
12 MathCommentInset::MathCommentInset()
17 MathCommentInset::MathCommentInset(string const & str)
20 cell(0) = asArray(str);
24 MathInset * MathCommentInset::clone() const
26 return new MathCommentInset(*this);
30 void MathCommentInset::metrics(MathMetricsInfo & mi) const
32 dim_ = cell(0).metrics(mi);
37 void MathCommentInset::draw(MathPainterInfo & pi, int x, int y) const
39 cell(0).draw(pi, x + 1, y);
40 drawMarkers(pi, x, y);
44 void MathCommentInset::metricsT(TextMetricsInfo const & mi) const
46 dim_ = cell(0).metricsT(mi);
50 void MathCommentInset::drawT(TextPainter & pain, int x, int y) const
52 cell(0).drawT(pain, x, y);
56 void MathCommentInset::write(WriteStream & os) const
58 os << '%' << cell(0) << "\n";
62 void MathCommentInset::maple(MapleStream & os) const
64 os << '#' << cell(0) << "\n";
68 void MathCommentInset::mathematica(MathematicaStream &) const
72 void MathCommentInset::octave(OctaveStream &) const
76 void MathCommentInset::mathmlize(MathMLStream & os) const
78 os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
82 void MathCommentInset::infoize(std::ostream & os) const