]> git.lyx.org Git - features.git/blobdiff - src/insets/insetcollapsable.h
fix insertion of raw double quote, reading of Info inset, initial width of collapsed...
[features.git] / src / insets / insetcollapsable.h
index e672030953e266d19271e696aed98c4c80c68dee..05dfb96f48d7ba2018995de909d79b5b7dcf8eac 100644 (file)
@@ -27,7 +27,7 @@ class LyXText;
 class Paragraph;
 class LyXCursor;
 
-/** A colapsable text inset
+/** A collapsable text inset
   
 */
 class InsetCollapsable : public UpdatableInset {
@@ -41,8 +41,8 @@ public:
        static int const TEXT_TO_TOP_OFFSET = 2;
        ///
        static int const TEXT_TO_BOTTOM_OFFSET = 2;
-       ///
-       InsetCollapsable();
+       /// inset is initially collapsed if bool = true
+       InsetCollapsable(bool = false);
        ///
        void read(Buffer const *, LyXLex &);
        ///
@@ -219,7 +219,7 @@ private:
        ///
        bool autocollapse;
        ///
-       int widthCollapsed;
+       mutable int widthCollapsed;
        ///
        mutable int oldWidth;
        ///