]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsible.h
New attempt on #9906: allow following hyperlinks via context menu.
[lyx.git] / src / insets / InsetCollapsible.h
index c0fbe3b6afcd3e7aa5ca06b60614e6c35b9a6ea2..95a8e1f52c9830f369a6e85c993a4e3cd38897c0 100644 (file)
@@ -39,7 +39,7 @@ public:
        ///
        InsetCollapsible(InsetCollapsible const & rhs);
        ///
-       InsetCollapsible const & operator=(InsetCollapsible const &);
+       InsetCollapsible & operator=(InsetCollapsible const &);
        ///
        virtual ~InsetCollapsible();
        ///
@@ -54,6 +54,12 @@ public:
        void read(Lexer &);
        ///
        void write(std::ostream &) const;
+
+       ///
+       int topOffset(BufferView const * bv) const;
+       ///
+       int bottomOffset(BufferView const * bv) const;
+
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -168,13 +174,13 @@ protected:
        Inset * editXY(Cursor & cur, int x, int y);
        ///
        mutable CollapseStatus status_;
+        ///
+        unique_ptr<support::TempFile> tempfile_;
 private:
        ///
        Dimension dimensionCollapsed(BufferView const & bv) const;
        ///
        docstring labelstring_;
-       ///
-       unique_ptr<support::TempFile> tempfile_;
 
        // These variables depend of the view in which the inset is displayed
        struct View