]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRoot.cpp
de.po
[lyx.git] / src / mathed / InsetMathRoot.cpp
index b3723faca83f11f808b3cf1860d66be57e0d47db..e0b7efc90b222df3f32d8145162ab200dcbdc6e0 100644 (file)
@@ -156,6 +156,48 @@ bool InsetMathRoot::idxUpDown(Cursor & cur, bool up) const
 }
 
 
+bool InsetMathRoot::idxForward(Cursor & cur) const
+{
+       // nucleus is 0 and is on the right
+       if (cur.idx() == 0)
+               return false;
+
+       cur.idx() = 0;
+       cur.pos() = 0;
+       return true;
+}
+
+
+bool InsetMathRoot::idxBackward(Cursor & cur) const
+{
+       // nucleus is 0 and is on the right
+       if (cur.idx() == 1)
+               return false;
+
+       cur.idx() = 1;
+       cur.pos() = cur.lastpos();
+       return true;
+}
+
+
+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) <<"))";