]> git.lyx.org Git - lyx.git/commitdiff
activate row delete/insert for the 'cases' environment, too
authorAndré Pönitz <poenitz@gmx.net>
Tue, 13 Nov 2001 08:21:03 +0000 (08:21 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 13 Nov 2001 08:21:03 +0000 (08:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3015 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C
src/mathed/math_cursor.C
src/mathed/math_cursor.h

index 124c64e39584d81e8d4d711c173af4e5808ee7ce..4705bb82e7ccfb59018202d7bc7d47d5e93a8bfd 100644 (file)
@@ -555,7 +555,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        case LFUN_MATH_COLUMN_DELETE:
        {
                MathInset::idx_type idx = 0;
-               MathArrayInset * p = mathcursor ? mathcursor->enclosingArray(idx) : 0;
+               MathGridInset * p = mathcursor ? mathcursor->enclosingGrid(idx) : 0;
                if (p) {
                        bv->lockedInsetStoreUndo(Undo::EDIT);
                        char al = arg.size() ? arg[0] : 'c';
index 2b4db8d14919dfa8cde2a501f40054ced87a509f..1cb978decbc0cca3aba45956a242b6ecbf88ed56 100644 (file)
@@ -917,10 +917,10 @@ bool MathCursor::selection() const
 }
 
 
-MathArrayInset * MathCursor::enclosingArray(MathCursor::idx_type & idx) const
+MathGridInset * MathCursor::enclosingGrid(MathCursor::idx_type & idx) const
 {
        for (int i = Cursor_.size() - 1; i >= 0; --i) {
-               MathArrayInset * p = (*Cursor_[i].par_)->asArrayInset();
+               MathGridInset * p = (*Cursor_[i].par_)->asGridInset();
                if (p) {
                        idx = Cursor_[i].idx_;
                        return p;
@@ -1126,7 +1126,7 @@ void MathCursor::readLine(MathArray & ar) const
 char MathCursor::valign() const
 {
        idx_type idx;
-       MathArrayInset * p = enclosingArray(idx);
+       MathGridInset * p = enclosingGrid(idx);
        return p ? p->valign() : '\0';
 }
 
@@ -1134,7 +1134,7 @@ char MathCursor::valign() const
 char MathCursor::halign() const
 {
        idx_type idx;
-       MathArrayInset * p = enclosingArray(idx);
+       MathGridInset * p = enclosingGrid(idx);
        return p ? p->halign(idx % p->ncols()) : '\0';
 }
 
index ff4e92e6a4cb19576dbd4275aa905b14b5ca8333..513886d97a902df095addcfd363e14bdb8481880 100644 (file)
@@ -27,7 +27,7 @@
 
 class MathInset;
 class MathAtom;
-class MathArrayInset;
+class MathGridInset;
 class MathFuncInset;
 class MathHullInset;
 class MathScriptInset;
@@ -126,7 +126,7 @@ public:
        ///
        MathAtom & par() const;
        /// return the next enclosing grid inset and the cursor's index in it
-       MathArrayInset * enclosingArray(idx_type &) const;
+       MathGridInset * enclosingGrid(idx_type &) const;
        ///
        InsetFormulaBase const * formula();
        ///