]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettabular.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insettabular.h
index 7b8830a47de924b7b90e393bd07feff0a49b5e07..1088145ab6041e4b05864e108336c01e66b15329 100644 (file)
@@ -106,7 +106,7 @@ public:
        /// Appends \c list with all labels found within this inset.
        void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        /// number of cells
-       size_t nargs() const;
+       size_t nargs() const { return tabular.getNumberOfCells(); }
        ///
        boost::shared_ptr<InsetText const> cell(idx_type) const;
        ///
@@ -115,11 +115,12 @@ public:
        LyXText * getText(int) const;
 
        ///
-       void markErased();
+       void markErased(bool);
 
-       // this should return true if we have a "normal" cell, otherwise true.
+       // this should return true if we have a "normal" cell, otherwise false.
        // "normal" means without width set!
-       bool forceDefaultParagraphs(InsetBase const * in) const;
+       /// should all paragraphs be output with "Standard" layout?
+       bool forceDefaultParagraphs(idx_type cell = 0) const;
 
        ///
        void addPreview(lyx::graphics::PreviewLoader &) const;
@@ -156,7 +157,7 @@ private:
 
        ///
        void drawCellLines(Painter &, int x, int y, row_type row,
-                          idx_type cell) const;
+                          idx_type cell, bool erased) const;
        ///
        void setCursorFromCoordinates(LCursor & cur, int x, int y) const;