Exchanging cells 0 and 1 requires to implement idxBackWard/Forward.
}
+bool InsetMathRoot::idxForward(Cursor & cur) const
+{
+ // nucleus is 0 and is on the right
+ if (cur.idx() == 0)
+ return false;
+ else
+ cur.idx() = 0;
+
+ return true;
+}
+
+
+bool InsetMathRoot::idxBackward(Cursor & cur) const
+{
+ // nucleus is 0 and is on the right
+ if (cur.idx() == 1)
+ return false;
+ else
+ cur.idx() = 1;
+
+ return true;
+}
+
+
void InsetMathRoot::maple(MapleStream & os) const
{
os << '(' << cell(0) << ")^(1/(" << cell(1) <<"))";
InsetMathRoot(Buffer * buf);
///
bool idxUpDown(Cursor & cur, bool up) const;
+ ///
+ bool idxForward(Cursor & cur) const;
+ ///
+ bool idxBackward(Cursor & cur) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;