* src/insets/insetexternal.C

(InsetExternal::latex): Handle the dryrun flag correctly: Only
	create the LaTeX output, do not do any file conversions.
	(InsetExternal::plaintext): ditto
	(InsetExternal::docbook): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17127 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-02-10 11:03:26 +00:00
parent 7485d9f552
commit a405fc2708

View File

@ -688,7 +688,8 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
// run through the LaTeX compiler.
// If we're running through the LaTeX compiler, we should write the
// generated files in the bufer's temporary directory.
bool const external_in_tmpdir = !runparams.nice && !runparams.dryrun;
bool const external_in_tmpdir = !runparams.nice;
bool const dryrun = runparams.dryrun || runparams.inComment;
// If the template has specified a PDFLaTeX output, then we try and
// use that.
@ -707,7 +708,7 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
buf, os,
*(runparams.exportdata),
external_in_tmpdir,
runparams.inComment);
dryrun);
}
}
@ -715,7 +716,7 @@ int InsetExternal::latex(Buffer const & buf, odocstream & os,
return external::writeExternal(params_, "LaTeX", buf, os,
*(runparams.exportdata),
external_in_tmpdir,
runparams.inComment);
dryrun);
}
@ -724,7 +725,7 @@ int InsetExternal::plaintext(Buffer const & buf, odocstream & os,
{
return external::writeExternal(params_, "Ascii", buf, os,
*(runparams.exportdata), false,
runparams.inComment);
runparams.dryrun || runparams.inComment);
}
@ -733,7 +734,7 @@ int InsetExternal::docbook(Buffer const & buf, odocstream & os,
{
return external::writeExternal(params_, "DocBook", buf, os,
*(runparams.exportdata), false,
runparams.inComment);
runparams.dryrun || runparams.inComment);
}