]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettabular.h
fix #832
[lyx.git] / src / insets / insettabular.h
index 81cb7f3fb3042e301c5e9b39c557f07ad66e9b13..b1992c9ccadb16782fcc5ffbd7bf8eebfad9b231 100644 (file)
@@ -45,7 +45,6 @@
 #ifndef INSETTABULAR_H
 #define INSETTABULAR_H
 
-
 #include "inset.h"
 #include "tabular.h"
 #include "LString.h"
@@ -92,21 +91,15 @@ public:
        ///
        int width(BufferView *, LyXFont const & f) const;
        ///
-       void draw(BufferView *, const LyXFont &, int , float &, bool) const;
+       void draw(BufferView *, const LyXFont &, int , float &) const;
        ///
-       void update(BufferView *, LyXFont const &, bool = false);
+       void update(BufferView *, bool = false);
        ///
        string const editMessage() const;
-       ///
-       void edit(BufferView *, int x, int y, mouse_button::state);
-       ///
-       void edit(BufferView * bv, bool front = true);
-       ///
-       bool doClearArea() const;
-       ///
+       //
        void insetUnlock(BufferView *);
        ///
-       void updateLocal(BufferView *, UpdateCodes, bool mark_dirty) const;
+       void updateLocal(BufferView *, UpdateCodes) const;
        ///
        bool lockInsetInInset(BufferView *, UpdatableInset *);
        ///
@@ -146,10 +139,10 @@ public:
        void validate(LaTeXFeatures & features) const;
        ///
        Inset::Code lyxCode() const { return Inset::TABULAR_CODE; }
-       ///
+       /// FIXME, document
        void getCursorPos(BufferView *, int & x, int & y) const;
-       ///
-       void toggleInsetCursor(BufferView *);
+       /// Get the absolute document x,y of the cursor
+       virtual void getCursor(BufferView &, int &, int &) const;
        ///
        bool tabularFeatures(BufferView * bv, string const & what);
        ///
@@ -197,9 +190,7 @@ public:
        ///
        Inset * getInsetFromID(int id) const;
        ///
-       Paragraph * firstParagraph() const;
-       ///
-       Paragraph * getFirstParagraph(int) const;
+       ParagraphList * getParagraphs(int) const;
        ///
        LyXCursor const & cursor(BufferView *) const;
        ///
@@ -253,8 +244,7 @@ private:
        ///
        void lfunMouseMotion(FuncRequest const &);
        ///
-       bool calculate_dimensions_of_cells(BufferView *, LyXFont const &,
-                                          bool = false) const;
+       bool calculate_dimensions_of_cells(BufferView *, bool = false) const;
        ///
        void drawCellLines(Painter &, int x, int baseline,
                           int row, int cell) const;
@@ -262,10 +252,6 @@ private:
        void drawCellSelection(Painter &, int x, int baseline,
                               int row, int column, int cell) const;
        ///
-       void showInsetCursor(BufferView *, bool show=true);
-       ///
-       void hideInsetCursor(BufferView *);
-       ///
        void fitInsetCursor(BufferView *) const;
        ///
        void setPos(BufferView *, int x, int y) const;