// additional per-row information
struct ColInfo {
- ///
+ ///
ColInfo();
/// currently possible: 'l', 'c', 'r'
char align_;
mutable int width_;
/// cached offset
mutable int offset_;
- /// do we need a line to the left?
+ /// do we need a line to the left?
bool leftline_;
/// do we need a line to the right?
bool rightline_;
int skip_;
};
-public:
+public:
/// constructor from columns description, creates one row
MathGridInset(char valign, string const & halign);
/// Note: columns first!
int cellYOffset(idx_type idx) const;
///
- bool idxUp(idx_type &) const;
- ///
- bool idxDown(idx_type &) const;
+ bool idxUpDown(idx_type &, bool) const;
///
bool idxLeft(idx_type &, pos_type &) const;
///
///
bool idxEnd(idx_type &, pos_type &) const;
///
- void idxDelete(idx_type &, bool &, bool &);
-
+ bool idxDelete(idx_type &);
+ /// pulls cell after pressing erase
+ void idxGlue(idx_type idx);
+
///
virtual void addRow(row_type);
///
std::vector<RowInfo> rowinfo_;
/// column info
std::vector<ColInfo> colinfo_;
- ///
+ ///
char v_align_; // add approp. type
};