]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathGrid.h
New methods in LaTeXFeatures specifically for collection of CSS
[lyx.git] / src / mathed / InsetMathGrid.h
index efb2fcc236ca44c661ebfa3bcb89a5c5c036632b..bfa286b766a95c34e4d663bb840b2f5b985229f8 100644 (file)
@@ -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;
@@ -240,11 +236,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.