]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
typo
[lyx.git] / src / mathed / InsetMathNumber.cpp
index 86d68f29d6811cb03e5905ad008315cc7ac3211e..2ce14a7875b567cd716f9311db7af1b004edd5dc 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 "InsetMathNumber.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "MathSupport.h"
 
+#include "MetricsInfo.h"
+
 using namespace std;
 
-namespace lyx {
 
+namespace lyx {
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
@@ -67,13 +68,21 @@ void InsetMathNumber::octave(OctaveStream & os) const
 }
 
 
-void InsetMathNumber::mathmlize(MathStream & os) const
+void InsetMathNumber::mathmlize(MathMLStream & ms) const
 {
-       os << "<mi> " << str_ << " </mi>";
+       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_;
 }