X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathGrid.h;h=7ff533be998e4f978b16d500c3e9cb95c3a39434;hb=704328d3488c75733ddeb9ad5439b1907e323e39;hp=cd86b6b7f655e984d442d0cea9556357421a89b9;hpb=30b18aec37da1355c8947cfeb8d181e7b5a9a4f9;p=lyx.git diff --git a/src/mathed/InsetMathGrid.h b/src/mathed/InsetMathGrid.h index cd86b6b7f6..7ff533be99 100644 --- a/src/mathed/InsetMathGrid.h +++ b/src/mathed/InsetMathGrid.h @@ -73,8 +73,6 @@ public: ColInfo(); /// currently possible: 'l', 'c', 'r' char align_; - /// cache for drawing - int h_offset; /// cached width mutable int width_; /// cached offset @@ -187,8 +185,6 @@ public: /// swap two columns virtual void swapCol(col_type c); /// - virtual void appendRow(); - /// idx_type index(row_type r, col_type c) const; /// bool idxBetween(idx_type idx, idx_type from, idx_type to) const; @@ -198,6 +194,8 @@ public: virtual char defaultColAlign(col_type) { return 'c'; } /// void setDefaults(); + /// + virtual bool interpretString(Cursor & cur, docstring const & str); /// virtual int colsep() const; @@ -225,6 +223,8 @@ public: /// void htmlize(HtmlStream &) const; /// + void htmlize(HtmlStream &, std::string attrib) const; + /// //void octave(OctaveStream &) const; protected: @@ -238,11 +238,16 @@ protected: /// returns y offset of cell compared to inset int cellYOffset(idx_type idx) const; /// returns proper 'end of line' code for LaTeX - virtual docstring eolString(row_type row, bool fragile) const; + virtual docstring eolString(row_type row, bool fragile, bool latex, + bool last_eoln) const; /// returns proper 'end of column' code for LaTeX virtual docstring eocString(col_type col, col_type lastcol) const; /// splits cells and shifts right part to the next cell void splitCell(Cursor & cur); + /// Column aligmment for display of cell at (\p row, \p col). + /// Must not be written to file! + virtual char displayColAlign(col_type col, row_type) const { return colinfo_[col].align_; } + /// row info. /// rowinfo_[nrows()] is a dummy row used only for hlines.