int InsetWrap::latex(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
os << "\\begin{floating" << from_ascii(params_.type) << '}';
if (!params_.placement.empty())
}
+int InsetWrap::plaintext(Buffer const & buf, odocstream & os,
+ OutputParams const & runparams) const
+{
+ os << '[' << _("wrap") << ' ' << floatName(params_.type, buf.params()) << ":\n";
+ InsetText::plaintext(buf, os, runparams);
+ os << "\n]";
+
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
+}
+
+
int InsetWrap::docbook(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
// FIXME UNICODE
os << '<' << from_ascii(params_.type) << '>';
void InsetWrap::addToToc(TocList & toclist, Buffer const & buf) const
{
- ParConstIterator pit = par_const_iterator_begin(*this);
- ParConstIterator end = par_const_iterator_end(*this);
-
- // Find a caption layout in one of the (child inset's) pars
- for (; pit != end; ++pit) {
- if (pit->layout()->labeltype == LABEL_SENSITIVE) {
- string const type = params_.type;
- docstring const str =
- convert<docstring>(toclist[type].size() + 1)
- + ". " + pit->asString(buf, false);
- TocItem const item(pit, 0, str);
- toclist[type].push_back(item);
- }
- }
+ // Is there a need to provide a list of wrap insets?
+ return;
}