}
-MathClass InsetMath::mathClass() const
-{
- return MC_ORD;
-}
-
-
InsetMath::marker_type InsetMath::marker(BufferView const *) const
{
return nargs() > 0 ? MARKER : NO_MARKER;
}
+/// write LaTeX and LyX code
+void InsetMath::writeLimits(WriteStream & os) const
+{
+ if (limits() == LIMITS) {
+ os << "\\limits";
+ os.pendingSpace(true);
+ } else if (limits() == NO_LIMITS) {
+ os << "\\nolimits ";
+ os.pendingSpace(true);
+ }
+}
+
+
void InsetMath::dump() const
{
lyxerr << "---------------------------------------------" << endl;
}
-int InsetMath::plaintext(odocstringstream &,
+int InsetMath::plaintext(odocstringstream &,
OutputParams const &, size_t) const
{
// all math plain text output shall take place in InsetMathHull
}
-void InsetMath::mathmlize(MathStream & os) const
+void InsetMath::mathmlize(MathStream & ms) const
{
- os << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
- os << MTag("mi");
- NormalStream ns(os.os());
+ ms << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
+ ms << MTag("mi");
+ NormalStream ns(ms.os());
normalize(ns);
- os << ETag("mi");
+ ms << ETag("mi");
}