]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNumber.cpp
Introduce a return value for mathmlize(). We will need this to be able
[features.git] / src / mathed / InsetMathNumber.cpp
index a352c6f8618337922ea1347af76d36a7cadafb04..eb2e85bdc73de6618f4c1915b0b0a7257aefef52 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 "MathStream.h"
 #include "MathSupport.h"
 
+using namespace std;
 
-namespace lyx {
 
-using std::vector;
+namespace lyx {
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
@@ -67,9 +67,10 @@ void InsetMathNumber::octave(OctaveStream & os) const
 }
 
 
-void InsetMathNumber::mathmlize(MathStream & os) const
+docstring InsetMathNumber::mathmlize(MathStream & os) const
 {
-       os << "<mi> " << str_ << " </mi>";
+       os << "<mn> " << str_ << " </mn>";
+       return docstring();
 }