]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTabular.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / InsetTabular.h
index 0bf0235985166df804547d2209fc61e750db51da..0d4e7afee9d0e954e564e7f86f8fefec0e28bacd 100644 (file)
@@ -74,7 +74,7 @@ public:
        ///
        void toggleMultiRow(bool m) { isMultiRow = m; }
        ///
-       void setContentAlignment(LyXAlignment al) {contentAlign = al; }
+       void setContentAlignment(LyXAlignment al) { contentAlign = al; }
        /// writes the contents of the cell as a string, optionally
        /// descending into insets
        docstring asString(bool intoInsets = true);
@@ -93,6 +93,8 @@ public:
        bool allowMultiPar() const override { return !isMultiRow && (!isMultiColumn || isFixedWidth); }
        ///
        bool canPaintChange(BufferView const &) const override { return false; }
+       /// This assures we never output \maketitle in table cells
+       bool isInTitle() const override { return true; }
 private:
        ///
        InsetTableCell() = delete;
@@ -550,9 +552,11 @@ public:
        ///
        void insertRow(row_type row, bool copy);
        ///
-       void moveColumn(col_type col, ColDirection direction);
+       void moveColumn(col_type col_start, col_type col_end,
+                       ColDirection direction);
        ///
-       void moveRow(row_type row, RowDirection direction);
+       void moveRow(row_type row_start, row_type row_end,
+                    RowDirection direction);
        ///
        void appendColumn(col_type column);
        ///
@@ -976,9 +980,7 @@ public:
        bool canTrackChanges() const override { return true; }
        ///
        bool canPaintChange(BufferView const &) const override { return true; }
-       /** returns false if, when outputting LaTeX, font changes should
-           be closed before generating this inset. This is needed for
-           insets that may contain several paragraphs */
+       ///
        bool inheritFont() const override { return false; }
        ///
        bool allowMultiPar() const override;
@@ -987,7 +989,7 @@ public:
        //
        bool isTable() const override { return true; }
        ///
-       RowFlags rowFlags() const override;
+       int rowFlags() const override;
        ///
        void latex(otexstream &, OutputParams const &) const override;
        ///