* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
namespace lyx {
-InsetMathComment::InsetMathComment()
- : InsetMathNest(1)
+InsetMathComment::InsetMathComment(Buffer * buf)
+ : InsetMathNest(buf, 1)
{}
-InsetMathComment::InsetMathComment(docstring const & str)
- : InsetMathNest(1)
+InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str)
+ : InsetMathNest(buf, 1)
{
// FIXME UNICODE
asArray(str, cell(0));
{
cell(0).metrics(mi, dim);
metricsMarkers(dim);
- // Cache the inset dimension.
- setDimCache(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) << " -->";
}