]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaptionable.cpp
Get rid of xmlize, bringing no advantage over escapeString.
[lyx.git] / src / insets / InsetCaptionable.cpp
index 61c9acc3b8ac492aa97ad84f2c3339d741fab7a3..a8a2108ce9bd8917c061065d6c6dc03c7a478827 100644 (file)
@@ -80,6 +80,19 @@ docstring InsetCaptionable::getCaptionText(OutputParams const & runparams) const
 }
 
 
+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();