7 #include "math_commentinset.h"
8 #include "math_mathmlstream.h"
9 #include "LaTeXFeatures.h"
10 #include "support/LOstream.h"
11 #include "textpainter.h"
15 MathCommentInset::MathCommentInset()
20 MathCommentInset::MathCommentInset(string const & str)
23 cell(0) = asArray(str);
27 MathInset * MathCommentInset::clone() const
29 return new MathCommentInset(*this);
33 void MathCommentInset::metrics(MathMetricsInfo & mi) const
35 dim_ = cell(0).metrics(mi);
40 void MathCommentInset::draw(MathPainterInfo & pi, int x, int y) const
42 cell(0).draw(pi, x + 1, y);
43 drawMarkers(pi, x, y);
47 void MathCommentInset::metricsT(TextMetricsInfo const & mi) const
49 dim_ = cell(0).metricsT(mi);
53 void MathCommentInset::drawT(TextPainter & pain, int x, int y) const
55 cell(0).drawT(pain, x, y);
59 void MathCommentInset::write(WriteStream & os) const
61 os << '%' << cell(0) << "\n";
65 void MathCommentInset::maplize(MapleStream & os) const
67 os << '#' << cell(0) << "\n";
71 void MathCommentInset::mathematicize(MathematicaStream &) const
75 void MathCommentInset::octavize(OctaveStream &) const
79 void MathCommentInset::mathmlize(MathMLStream & os) const
81 os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
85 void MathCommentInset::infoize(std::ostream & os) const