#include <config.h>
#include "InsetMathString.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathStream.h"
#include "MathSupport.h"
-using lyx::docstring;
-using std::string;
+namespace lyx {
+
using std::auto_ptr;
+using std::vector;
-InsetMathString::InsetMathString(string const & s)
+InsetMathString::InsetMathString(docstring const & s)
: str_(s)
{}
void InsetMathString::draw(PainterInfo & pi, int x, int y) const
{
- //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
- docstring dstr(str_.begin(), str_.end());
- pi.draw(x, y, dstr);
+ pi.draw(x, y, str_);
}
// insert '*' between adjacent chars if type is LM_TC_VAR
os << str_[0];
- for (string::size_type i = 1; i < str_.size(); ++i)
+ for (size_t i = 1; i < str_.size(); ++i)
os << str_[i];
}
// insert '*' between adjacent chars if type is LM_TC_VAR
os << str_[0];
- for (string::size_type i = 1; i < str_.size(); ++i)
+ for (size_t i = 1; i < str_.size(); ++i)
os << str_[i];
}
-void InsetMathString::mathmlize(MathMLStream & os) const
+void InsetMathString::mathmlize(MathStream & os) const
{
/*
if (code_ == LM_TC_VAR)
{
os << str_;
}
+
+
+} // namespace lyx