]> git.lyx.org Git - features.git/blobdiff - src/insets/insettabular.h
Various fixes in insettext/tabular to make update work selective.
[features.git] / src / insets / insettabular.h
index 7c5b1340da07b7815e76077bf9eb87f3cfcd2104..5247e0241206718f4f6d2edbaf8e2e98ac8e31c1 100644 (file)
@@ -80,14 +80,16 @@ public:
     ///
     int width(Painter &, LyXFont const & f) const;
     ///
-    void draw(Painter & pain, const LyXFont &, int , float &) const;
+    void draw(BufferView *, const LyXFont &, int , float &) const;
     ///
-    void update(BufferView *, LyXFont const &) const;
+    void update(BufferView *, LyXFont const &, bool);
     ///
     const char * EditMessage() const;
     ///
     void Edit(BufferView *, int x, int y, unsigned int);
     ///
+    bool doClearArea() const { return !locked; };
+    ///
     void InsetUnlock(BufferView *);
     ///
     void UpdateLocal(BufferView *, bool what, bool mark_dirty);
@@ -150,7 +152,7 @@ public:
     LyXTabular * tabular;
 
 private:
-    void calculate_width_of_cells(Painter &, LyXFont const &) const;
+    void calculate_width_of_cells(BufferView *, LyXFont const &, bool =false) const;
     ///
     void DrawCellLines(Painter &, int x, int baseline, int row, int cell)
            const;