/// describe content if cursor behind
virtual void infoize2(odocstream &) const {}
+ enum {
+ PLAINTEXT_NEWLINE = 10000
+ };
+
/// plain text output in ucs4 encoding
- /// return the number of characters, in case of multiple lines of
- /// output, add runparams.linelen to the number of chars in the last line
+ /// return the number of characters; in case of multiple lines of
+ /// output, add PLAINTEXT_NEWLINE to the number of chars in the last line
virtual int plaintext(Buffer const &, odocstream &,
OutputParams const &) const = 0;
/// docbook output
case Doublebox: os << "\n]]"; len = 2; break;
}
- return len + runparams.linelen; // len chars on a separate line
+ return PLAINTEXT_NEWLINE + len; // len chars on a separate line
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
external::writeExternal(params_, "Ascii", buf, os,
*(runparams.exportdata), false,
runparams.dryrun || runparams.inComment);
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
buffer.tocBackend().writePlaintextTocList(to_ascii(getParam("type")), os);
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
OutputParams const & runparams) const
{
os << "\n-------------------------------------------\n";
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
OutputParams const & runparams) const
{
os << '\n';
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}
OutputParams const & runparams) const
{
os << '\n';
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
os << '\n'; // output table on a new line
int const dp = runparams.linelen > 0 ? runparams.depth : 0;
tabular.plaintext(buf, os, runparams, dp, false, 0);
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
int InsetText::latex(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
TexRow texrow;
latexParagraphs(buf, paragraphs(), os, texrow, runparams);
int InsetText::plaintext(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
ParagraphList::const_iterator beg = paragraphs().begin();
ParagraphList::const_iterator end = paragraphs().end();
int InsetText::docbook(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
docbookParagraphs(paragraphs(), buf, os, runparams);
return 0;
buffer.tocBackend().writePlaintextTocList(getCmdName(), os);
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
OutputParams const & runparams) const
{
os << "\n\n";
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
InsetText::plaintext(buf, os, runparams);
os << "\n]";
- return 1 + runparams.linelen; // one char on a separate line
+ return PLAINTEXT_NEWLINE + 1; // one char on a separate line
}