]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathNumber.cpp
index eb2e85bdc73de6618f4c1915b0b0a7257aefef52..f5702ab71d8510069e0275fd156047b43872fdee 100644 (file)
 
 #include "InsetMathNumber.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "MathSupport.h"
 
+#include "MetricsInfo.h"
+
 using namespace std;
 
 
@@ -67,14 +68,21 @@ void InsetMathNumber::octave(OctaveStream & os) const
 }
 
 
-docstring InsetMathNumber::mathmlize(MathStream & os) const
+void InsetMathNumber::mathmlize(MathMLStream & ms) const
 {
-       os << "<mn> " << str_ << " </mn>";
-       return docstring();
+       ms << "<" << from_ascii(ms.namespacedTag("mn")) << ">"
+          << str_
+          << "</" << from_ascii(ms.namespacedTag("mn")) << ">";
+}
+
+
+void InsetMathNumber::htmlize(HtmlStream & os) const
+{
+       os << str_;
 }
 
 
-void InsetMathNumber::write(WriteStream & os) const
+void InsetMathNumber::write(TeXMathStream & os) const
 {
        os << str_;
 }