#include "InsetMathScript.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathSupport.h"
#include "InsetMathSymbol.h"
#include "dispatchresult.h"
#include <boost/assert.hpp>
-using lyx::char_type;
+
+namespace lyx {
using std::string;
using std::max;
if (nuc().size())
nuc().draw(pi, x + dxx(), y);
else {
- nuc().setXY(x + dxx(), y);
+ nuc().setXY(*pi.base.bv, x + dxx(), y);
if (editing(pi.base.bv))
pi.draw(x + dxx(), y, char_type('.'));
}
if (nuc().back()->asSymbolInset()) {
// \intop is an alias for \int\limits, \ointop == \oint\limits
- if (nuc().back()->asSymbolInset()->name().find("intop") != string::npos)
+ if (nuc().back()->asSymbolInset()->name().find(from_ascii("intop")) != string::npos)
return true;
// per default \int has limits beside the \int even in displayed formulas
- if (nuc().back()->asSymbolInset()->name().find("int") != string::npos)
+ if (nuc().back()->asSymbolInset()->name().find(from_ascii("int")) != string::npos)
return false;
}
}
-void InsetMathScript::mathmlize(MathMLStream & os) const
+void InsetMathScript::mathmlize(MathStream & os) const
{
bool d = hasDown() && down().size();
bool u = hasUp() && up().size();
}
-void InsetMathScript::infoize(std::ostream & os) const
+void InsetMathScript::infoize(odocstream & os) const
{
os << "Scripts";
}
-void InsetMathScript::infoize2(std::ostream & os) const
+void InsetMathScript::infoize2(odocstream & os) const
{
if (limits_)
os << (limits_ == 1 ? ", Displayed limits" : ", Inlined limits");
InsetMathNest::doDispatch(cur, cmd);
}
+
+
+} // namespace lyx