#include "frontends/Painter.h"
#include <algorithm>
+#include <output_docbook.h>
using namespace std;
}
-Inset::DisplayType InsetScript::display() const
-{
- return Inline;
-}
-
-
void InsetScript::metrics(MetricsInfo & mi, Dimension & dim) const
{
int const shift = params_.shift(mi.base.font);
}
-int InsetScript::docbook(odocstream & os, OutputParams const & runparams) const
+void InsetScript::docbook(XMLStream & xs, OutputParams const & runparams) const
{
docstring cmdname;
switch (params_.type) {
cmdname = from_ascii("superscript");
break;
}
- os << '<' + cmdname + '>';
- int const i = InsetText::docbook(os, runparams);
- os << "</" + cmdname + '>';
- return i;
+ xs << xml::StartTag(cmdname);
+ InsetText::docbook(xs, runparams);
+ xs << xml::EndTag(cmdname);
}