Now all cells are correctly visited in sequence when moving with
cursor left/right.
}
+bool InsetMathRoot::idxFirst(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 1;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool InsetMathRoot::idxLast(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
void InsetMathRoot::maple(MapleStream & os) const
{
os << '(' << cell(0) << ")^(1/(" << cell(1) <<"))";
bool idxForward(Cursor & cur) const;
///
bool idxBackward(Cursor & cur) const;
+ ///
+ bool idxFirst(Cursor &) const;
+ ///
+ bool idxLast(Cursor &) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;