/// Note: columns first!
MathGridInset(col_type m, row_type n);
///
- void write(std::ostream &, bool fragile) const;
+ MathGridInset(int m, int n, char valign, string const & halign);
///
- void metrics(MathStyles st) const;
+ void write(MathWriteInfo & os) const;
+ ///
+ void writeNormal(std::ostream &) const;
+ ///
+ void metrics(MathMetricsInfo const & st) const;
///
void draw(Painter &, int x, int y) const;
///
const RowInfo & rowinfo(row_type row) const;
///
RowInfo & rowinfo(row_type row);
- ///
- bool isGrid() const { return true; }
+ /// identifies GridInset
+ virtual MathGridInset * asGridInset() { return this; }
///
col_type ncols() const { return colinfo_.size(); }
///
bool idxLast(idx_type &, pos_type &) const;
///
+ bool idxHome(idx_type &, pos_type &) const;
+ ///
+ bool idxEnd(idx_type &, pos_type &) const;
+ ///
void idxDelete(idx_type &, bool &, bool &);
///
void idxDeleteRange(idx_type, idx_type);
///
void setDefaults();
+ ///
+ string octavize() const;
+ ///
+ string maplize() const;
+
protected:
/// returns proper 'end of line' code for LaTeX
string eolString(row_type row) const;