#include "InsetMath.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "debug.h"
#include "support/lstrings.h"
namespace lyx {
-using std::string;
using std::endl;
void InsetMath::write(WriteStream & os) const
{
- string const s = name();
- os << '\\' << s.c_str();
+ docstring const s = name();
+ os << "\\" << s;
// We need an extra ' ' unless this is a single-char-non-ASCII name
// or anything non-ASCII follows
if (s.size() != 1 || isalpha(s[0]))
void InsetMath::normalize(NormalStream & os) const
{
- os << '[' << name().c_str() << "] ";
+ os << '[' << name() << "] ";
}
}
-void InsetMath::mathmlize(MathMLStream & os) const
+void InsetMath::mathmlize(MathStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
}
-string InsetMath::name() const
+docstring InsetMath::name() const
{
- return "unknown";
+ return from_ascii("unknown");
}