]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettabular.h
Hopefully fixed the redo problems with insets!
[lyx.git] / src / insets / insettabular.h
index 3a69d952bb50fe84c8922c0b9408bd2cf9fe5a7b..ae89b37ca065937c0c81cfeb3c4d68987629aba5 100644 (file)
@@ -125,9 +125,7 @@ public:
        ///
        bool insertInset(BufferView *, Inset *);
        ///
-       bool insetAllowed(Inset::Code) const {
-               return the_locking_inset != 0;
-       }
+       bool insetAllowed(Inset::Code code) const;
        ///
        bool isTextInset() const { return true; }
        ///
@@ -150,7 +148,7 @@ public:
        ///
        int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int docBook(Buffer const *, std::ostream &) const;
+       int docbook(Buffer const *, std::ostream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
@@ -189,7 +187,7 @@ public:
        ///
        std::vector<string> const getLabelList() const;
        ///
-       void nodraw(bool b) {
+       void nodraw(bool b) const {
                UpdatableInset::nodraw(b);
        }
        bool nodraw() const;
@@ -210,9 +208,12 @@ public:
        ///
        Paragraph * firstParagraph() const;
        ///
+       Paragraph * getFirstParagraph(int) const;
+       ///
        LyXCursor const & cursor(BufferView *) const;
        ///
-       string const selectNextWord(BufferView *, float & value) const;
+       bool allowSpellcheck() { return true; }
+       string const selectNextWordToSpellcheck(BufferView *, float & value) const;
        void selectSelectedWord(BufferView *);
        void toggleSelection(BufferView *, bool kill_selection);
        ///
@@ -243,6 +244,8 @@ private:
        ///
        void hideInsetCursor(BufferView *);
        ///
+       void fitInsetCursor(BufferView *) const;
+       ///
        void setPos(BufferView *, int x, int y) const;
        ///
        UpdatableInset::RESULT moveRight(BufferView *, bool lock = true);
@@ -257,7 +260,7 @@ private:
        ///
        bool movePrevCell(BufferView *, bool lock = false);
        ///
-       bool deletable();
+       bool deletable() const;
        ///
        int getCellXPos(int cell) const;
        ///
@@ -333,5 +336,9 @@ private:
        mutable bool locked;
        ///
        mutable UpdateCodes need_update;
+       ///
+       bool in_update;
+       ///
+       mutable bool in_reset_pos;
 };
 #endif