+docstring InsetWrap::layoutName() const
+{
+ return "Wrap:" + from_utf8(params_.type);
+}
+
+
+docstring InsetWrap::toolTip(BufferView const & bv, int x, int y) const
+{
+ if (isOpen(bv))
+ return InsetCollapsable::toolTip(bv, x, y);
+ OutputParams rp(&buffer().params().encoding());
+ docstring caption_tip = getCaptionText(rp);
+ if (!caption_tip.empty())
+ caption_tip += from_ascii("\n");
+ return toolTipText(caption_tip);
+}
+
+