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"
14 MathCommentInset::MathCommentInset()
19 MathCommentInset::MathCommentInset(string const & str)
22 asArray(str, cell(0));
26 auto_ptr<InsetBase> MathCommentInset::clone() const
28 return auto_ptr<InsetBase>(new MathCommentInset(*this));
32 void MathCommentInset::metrics(MetricsInfo & mi, Dimension & dim) const
40 void MathCommentInset::draw(PainterInfo & 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, Dimension & dim) const
49 cell(0).metricsT(mi, dim);
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::maple(MapleStream & os) const
67 os << '#' << cell(0) << "\n";
71 void MathCommentInset::mathematica(MathematicaStream &) const
75 void MathCommentInset::octave(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