namespace lyx {
-InsetMathComment::InsetMathComment()
- : InsetMathNest(1)
+InsetMathComment::InsetMathComment(Buffer * buf)
+ : InsetMathNest(buf, 1)
{}
-InsetMathComment::InsetMathComment(docstring const & str)
- : InsetMathNest(1)
+InsetMathComment::InsetMathComment(MathData const & ar)
+ : InsetMathNest(const_cast<Buffer *>(ar.buffer()), 1)
+{
+ cell(0) = ar;
+}
+
+
+InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str)
+ : InsetMathNest(buf, 1)
{
// FIXME UNICODE
asArray(str, cell(0));
void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
{
cell(0).metrics(mi, dim);
- metricsMarkers(dim);
+ metricsMarkers(mi, dim);
}
}
-void InsetMathComment::mathematica(MathematicaStream &) const
-{}
-
-
-void InsetMathComment::octave(OctaveStream &) const
-{}
+void InsetMathComment::mathmlize(MathStream & os) const
+{
+ os << MTag("comment") << cell(0) << ETag("comment");
+}
-void InsetMathComment::mathmlize(MathStream & os) const
+void InsetMathComment::htmlize(HtmlStream & os) const
{
- os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
+ os << "<!-- " << cell(0) << " -->";
}