]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
typo
[lyx.git] / src / mathed / InsetMathNumber.cpp
index c9ae470decf9dcdd690936270dfa9002517722e0..2ce14a7875b567cd716f9311db7af1b004edd5dc 100644 (file)
 
 #include "InsetMathNumber.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "MathSupport.h"
 
+#include "MetricsInfo.h"
+
 using namespace std;
 
 
@@ -67,16 +68,21 @@ 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 << MTagInline("mn")
+          << str_
+          << ETagInline("mn");
+}
+
+
+void InsetMathNumber::htmlize(HtmlStream & os) const
+{
+       os << str_;
 }
 
 
-void InsetMathNumber::write(WriteStream & os) const
+void InsetMathNumber::write(TeXMathStream & os) const
 {
        os << str_;
 }