int InsetGraphics::latex(Buffer const & buf, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
// If there is no file specified or not existing,
// just output a message about it in the latex output.
int InsetGraphics::plaintext(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
// No graphics in ascii output. Possible to use gifscii to convert
// images to ascii approximation.
// at least we send the filename
// FIXME UNICODE
// FIXME: We have no idea what the encoding of the filename is
- os << '<' << bformat(_("Graphics file: %1$s"),
- from_utf8(params().filename.absFilename()))
- << ">\n";
- return 0;
+
+ docstring str = bformat(_("Graphics file: %1$s"),
+ from_utf8(params().filename.absFilename()));
+ os << '<' << str << '>';
+
+ return 2 + str.size();
}
fragile commands by adding a #\protect# before.
*/
int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
///
int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
/** Tell LyX what the latex features you need i.e. what latex packages
you need to be included.
int InsetQuotes::latex(Buffer const &, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
const int quoteind = quote_index[side_][language_];
string qstr;
int InsetQuotes::plaintext(Buffer const & buf, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
- os << dispString(buf.params().language);
- return 0;
+ docstring str = dispString(buf.params().language);
+ os << str;
+ return str.size();
}
int InsetQuotes::docbook(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
if (times_ == DoubleQ) {
if (side_ == LeftQ)