]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / mathed / InsetMathComment.cpp
index ee04b0abd67bea2301878bf2336319dd5ae8f890..ff91991aa86ff0755fb7cb470f0f28e734bbca91 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.
  */
 #include "MathStream.h"
 #include "MathSupport.h"
 
+#include <ostream>
+
 
 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));
@@ -76,17 +85,15 @@ 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) << 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) << " -->";
 }