]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.h
This optional argument to the InsetCollapsable constructor
[features.git] / src / insets / InsetCollapsable.h
index 1ef00985b81d27b1ba497e8a6c3bc8d76f5a8f04..7ae146e0390bb94039eb660c5d8a0fd05cf1bf45 100644 (file)
@@ -33,7 +33,7 @@ namespace frontend { class Painter; }
 class InsetCollapsable : public InsetText {
 public:
        ///
-       InsetCollapsable(Buffer const &, CollapseStatus status = Inset::Open);
+       InsetCollapsable(Buffer const &);
        ///
        InsetCollapsable(InsetCollapsable const & rhs);
        ///
@@ -164,7 +164,8 @@ protected:
        docstring floatName(std::string const & type, BufferParams const &) const;
        ///
        virtual void resetParagraphsFont();
-
+       ///
+       mutable CollapseStatus status_;
 private:
        /// cache for the layout_. Make sure it is in sync with the document class!
        InsetLayout const * layout_;
@@ -174,8 +175,6 @@ private:
        docstring labelstring_;
        ///
        mutable Box button_dim;
-       ///
-       mutable CollapseStatus status_;
        /// a substatus of the Open status, determined automatically in metrics
        mutable bool openinlined_;
        /// the inset will automatically open when the cursor is inside