#include "FuncStatus.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
-#include "output_xhtml.h"
+#include "xml.h"
#include "texstream.h"
#include "TextClass.h"
: InsetCaptionable(buf)
{
setCaptionType(type);
- params_.lines = 0;
- params_.placement = "o";
- params_.overhang = Length(0, Length::PCW);
- params_.width = Length(50, Length::PCW);
}
{
InsetCaptionable::setCaptionType(type);
params_.type = captionType();
- setLabel(_("wrap: ") + floatName(type));
+ setLabel(_("Wrap: ") + floatName(type));
}
}
-int InsetWrap::docbook(odocstream & os, OutputParams const & runparams) const
+void InsetWrap::docbook(XMLStream & xs, OutputParams const & runparams) const
{
- // FIXME UNICODE
- os << '<' << from_ascii(params_.type) << '>';
- int const i = InsetText::docbook(os, runparams);
- os << "</" << from_ascii(params_.type) << '>';
- return i;
+ InsetLayout const & il = getLayout();
+
+ xs << xml::StartTag(il.docbooktag(), il.docbookattr()); // TODO: Detect when there is a title.
+ InsetText::docbook(xs, runparams);
+ xs << xml::EndTag(il.docbooktag());
}