]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathGrid.h
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / InsetMathGrid.h
index a61439cfcd568bf685738ff730547e7ed666ff1f..1c8efd1814fe3272e5af0410fb493a740349c694 100644 (file)
@@ -45,7 +45,7 @@ public:
                CellInfo();
                /// multicolumn flag
                Multicolumn multi;
-               /// special multi colums alignment
+               /// special multi columns alignment
                docstring align;
        };
 
@@ -95,8 +95,8 @@ public:
        };
 
 public:
-       /// sets nrows and ncols to 1, vertical alingment to 'c'
-       InsetMathGrid(Buffer * buf);
+       /// sets nrows and ncols to 1, vertical alignment to 'c'
+       explicit InsetMathGrid(Buffer * buf);
        /// Note: columns first!
        InsetMathGrid(Buffer * buf, col_type m, row_type n);
        ///
@@ -113,7 +113,7 @@ public:
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///
-       void updateBuffer(ParIterator const &, UpdateType);
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
        /// extract number of columns from alignment string
        static col_type guessColumns(docstring const & halign);
        /// accepts some LaTeX column codes: p,m,!,@,M,<,>
@@ -272,7 +272,7 @@ protected:
        // InsetMathSplit.
        /// The value of a fixed col align for a certain hull type (can
        /// depend on the "indent math" setting).
-       static char colAlign(HullType type, col_type col,  BufferParams const &);
+       char colAlign(HullType type, col_type col) const;
        /// The value of a fixed col spacing for a certain hull type
        static int colSpace(HullType type, col_type col);