#include <config.h>
#include "InsetMathNumber.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathStream.h"
#include "MathSupport.h"
-using lyx::docstring;
+
+namespace lyx {
using std::string;
using std::auto_ptr;
+using std::vector;
-
-InsetMathNumber::InsetMathNumber(string const & s)
+InsetMathNumber::InsetMathNumber(docstring const & s)
: str_(s)
{}
void InsetMathNumber::draw(PainterInfo & pi, int x, int y) const
{
- docstring const dstr(str_.begin(), str_.end());
- pi.draw(x, y, dstr);
+ pi.draw(x, y, str_);
}
}
-void InsetMathNumber::mathmlize(MathMLStream & os) const
+void InsetMathNumber::mathmlize(MathStream & os) const
{
os << "<mi> " << str_ << " </mi>";
}
{
os << str_;
}
+
+
+} // namespace lyx