]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
Do not throw exceptions here either. See r22806.
[lyx.git] / src / mathed / InsetMathComment.cpp
index 5bf046d08e87e229ab2a711024a056540d82ff04..ec6d7cccd43cc88380881f4a5265b84fb9e1dae8 100644 (file)
@@ -3,7 +3,7 @@
  * 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));
@@ -78,20 +78,18 @@ void InsetMathComment::maple(MapleStream & os) const
 }
 
 
-void InsetMathComment::mathematica(MathematicaStream &) const
-{}
-
-
-void InsetMathComment::octave(OctaveStream &) const
-{}
-
-
 void InsetMathComment::mathmlize(MathStream & os) const
 {
        os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
 }
 
 
+void InsetMathComment::htmlize(HtmlStream & os) const
+{
+       os << "<!-- " << cell(0) << cell(1) << " -->";
+}
+
+
 void InsetMathComment::infoize(odocstream & os) const
 {
        os << "Comment";