X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetGraphics.cpp;h=a5cff0d6f8a40f58346076a2a3150f0836a5836a;hb=897436efbb9bd641b61467d185a2dfae9839e575;hp=23dda7899f7412f2b29b301108857d39868afaea;hpb=0e64103f927443835005cda616db620f9b9e007b;p=features.git diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index 23dda7899f..a5cff0d6f8 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -726,8 +726,8 @@ string const InsetGraphics::prepareFile(Buffer const & buf, // FIXME (Abdel 12/08/06): Is there a need to show these errors? ErrorList el; if (theConverters().convert(&buf, temp_file, to_file, params().filename, - from, to, el, - Converters::try_default | Converters::try_cache)) { + from, to, el, + Converters::try_default | Converters::try_cache)) { runparams.exportdata->addExternalFile(tex_format, to_file, output_to_file); runparams.exportdata->addExternalFile("dvi", @@ -739,7 +739,7 @@ string const InsetGraphics::prepareFile(Buffer const & buf, 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. @@ -751,7 +751,7 @@ int InsetGraphics::latex(Buffer const & buf, odocstream & os, params().filename.relFilename(buf.filePath()); bool const file_exists = !params().filename.empty() && - isFileReadable(params().filename); + isFileReadable(params().filename); string const message = file_exists ? string() : string("bb = 0 0 200 100, draft, type=eps"); // if !message.empty() then there was no existing file @@ -809,7 +809,7 @@ int InsetGraphics::latex(Buffer const & buf, odocstream & os, int InsetGraphics::plaintext(Buffer const & buf, odocstream & os, - OutputParams const &) const + OutputParams const &) const { // No graphics in ascii output. Possible to use gifscii to convert // images to ascii approximation. @@ -820,7 +820,7 @@ int InsetGraphics::plaintext(Buffer const & buf, odocstream & os, // FIXME: We have no idea what the encoding of the filename is docstring const str = bformat(buf.B_("Graphics file: %1$s"), - from_utf8(params().filename.absFilename())); + from_utf8(params().filename.absFilename())); os << '<' << str << '>'; return 2 + str.size(); @@ -830,20 +830,20 @@ int InsetGraphics::plaintext(Buffer const & buf, odocstream & os, namespace { int writeImageObject(char * format, odocstream & os, OutputParams const & runparams, - docstring const graphic_label, docstring const attributes) + docstring const graphic_label, docstring const attributes) { if (runparams.flavor != OutputParams::XML) { os << "" ; }