+docstring InsetCaption::xhtml(XHTMLStream & xs, OutputParams const & rp) const
+{
+ if (rp.html_disable_captions)
+ return docstring();
+ string attr = "class='float-caption";
+ if (!type_.empty())
+ attr += " float-caption-" + type_;
+ attr += "'";
+ xs << html::StartTag("div", attr);
+ docstring def = getCaptionAsHTML(xs, rp);
+ xs << html::EndTag("div");
+ return def;
+}
+
+
+void InsetCaption::getArgument(otexstream & os,
+ OutputParams const & runparams) const
+{
+ InsetText::latex(os, runparams);
+}
+
+
+void InsetCaption::getOptArg(otexstream & os,