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