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';
}
-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;
char MathCursor::valign() const
{
idx_type idx;
- MathArrayInset * p = enclosingArray(idx);
+ MathGridInset * p = enclosingGrid(idx);
return p ? p->valign() : '\0';
}
char MathCursor::halign() const
{
idx_type idx;
- MathArrayInset * p = enclosingArray(idx);
+ MathGridInset * p = enclosingGrid(idx);
return p ? p->halign(idx % p->ncols()) : '\0';
}
class MathInset;
class MathAtom;
-class MathArrayInset;
+class MathGridInset;
class MathFuncInset;
class MathHullInset;
class MathScriptInset;
///
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();
///