]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Regularly check if preview is modified when visible on screen
[lyx.git] / src / insets / InsetCollapsable.h
index ec23773123e079217dfd6e77d9f15e835040d370..a426db034ab12903057c96fd01fce67b0bb5d2af 100644 (file)
@@ -54,6 +54,8 @@ public:
        void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
+       ///
+       virtual void drawBackground(PainterInfo &, int, int) const {}
 
        /// return x,y of given position relative to the inset's baseline
        void cursorPos(BufferView const & bv, CursorSlice const & sl,
@@ -73,6 +75,8 @@ public:
        ///
        void setLabel(docstring const & l);
        ///
+       docstring getLabel() const;
+       ///
        virtual void setButtonLabel() {}
        ///
        virtual docstring const buttonLabel(BufferView const &) const;
@@ -127,6 +131,8 @@ public:
        /// and of course decoration().
        Geometry geometry(BufferView const & bv) const;
        ///
+       bool canPaintChange(BufferView const & bv) const;
+       ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
        bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
@@ -144,6 +150,10 @@ public:
        std::string contextMenu(BufferView const & bv, int x, int y) const;
        ///
        std::string contextMenuName() const;
+       ///
+       void addToToc(DocIterator const & dit, bool output_active,
+                     UpdateType utype, TocBackend & backend) const; //override
+
 protected:
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);