}
+docstring InsetCaptionable::getCaptionDocBook(OutputParams const & runparams) const
+{
+ InsetCaption const * ins = getCaptionInset();
+ if (ins == nullptr)
+ return docstring();
+
+ odocstringstream ods;
+ XMLStream xs(ods);
+ ins->getCaptionAsDocBook(xs, runparams);
+ return ods.str();
+}
+
+
docstring InsetCaptionable::getCaptionHTML(OutputParams const & runparams) const
{
InsetCaption const * ins = getCaptionInset();
return docstring();
odocstringstream ods;
- XHTMLStream xs(ods);
+ XMLStream xs(ods);
docstring def = ins->getCaptionAsHTML(xs, runparams);
if (!def.empty())
// should already have been escaped
- xs << XHTMLStream::ESCAPE_NONE << def << '\n';
+ xs << XMLStream::ESCAPE_NONE << def << '\n';
return ods.str();
}
b.pop();
}
-void InsetCaptionable::updateBuffer(ParIterator const & it, UpdateType utype)
+void InsetCaptionable::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted)
{
Counters & cnts =
buffer().masterBuffer()->params().documentClass().counters();
// Tell captions what the current float is
cnts.current_float(caption_type_);
cnts.isSubfloat(subflt);
- InsetCollapsible::updateBuffer(it, utype);
+ InsetCollapsible::updateBuffer(it, utype, deleted);
// Restore counters
cnts.current_float(saveflt);
if (utype == OutputUpdate)