]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.C
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / InsetMathComment.C
index f2473d70fb255b756d01ee87d57d3edb6746d233..650c27f25d19fa7aa29d44856502adf043d8a9ad 100644 (file)
 
 #include "InsetMathComment.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "MathSupport.h"
 #include "support/std_ostream.h"
 
+
+namespace lyx {
+
 using std::string;
 using std::auto_ptr;
 
@@ -25,11 +28,11 @@ InsetMathComment::InsetMathComment()
 {}
 
 
-InsetMathComment::InsetMathComment(string const & str)
+InsetMathComment::InsetMathComment(docstring const & str)
        : InsetMathNest(1)
 {
        // FIXME UNICODE
-       asArray(lyx::from_utf8(str), cell(0));
+       asArray(str, cell(0));
 }
 
 
@@ -86,13 +89,16 @@ void InsetMathComment::octave(OctaveStream &) const
 {}
 
 
-void InsetMathComment::mathmlize(MathMLStream & os) const
+void InsetMathComment::mathmlize(MathStream & os) const
 {
        os << MTag("comment") << cell(0) << cell(1) << ETag("comment");
 }
 
 
-void InsetMathComment::infoize(std::ostream & os) const
+void InsetMathComment::infoize(odocstream & os) const
 {
        os << "Comment";
 }
+
+
+} // namespace lyx