+docstring InsetCollapsable::toolTip(BufferView const & bv, int x, int y) const
+{
+ Dimension dim = dimensionCollapsed();
+ if (geometry() == NoButton)
+ return layout_->labelstring();
+ else if (x > xo(bv) + dim.wid || y > yo(bv) + dim.des)
+ return docstring();
+
+ switch (status_) {
+ case Open:
+ return _("Left-click to collapse the inset");
+ case Collapsed:
+ return _("Left-click to open the inset");
+ }
+ return docstring();
+}
+
+
+void InsetCollapsable::setLayout(BufferParams const & bp)
+{
+ setLayout(bp.getTextClassPtr());
+}
+
+
+void InsetCollapsable::setLayout(TextClassPtr tc)