+MathClass InsetMath::mathClass() const
+{
+ return MC_ORD;
+}
+
+
+InsetMath::marker_type InsetMath::marker() const
+{
+ return nargs() > 0 ? MARKER : NO_MARKER;
+}
+
+
+bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const
+{
+ MathRow::Element e(mi, MathRow::INSET, mathClass());
+ e.inset = this;
+ e.marker = mi.base.macro_nesting ? NO_MARKER : marker();
+ mrow.push_back(e);
+ return true;
+}
+
+