X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FExporter.h;h=2b34ac14f8b539fc2c0053e72a79c71c6e756684;hb=4b0069860c4ac54aff09627582c6f5da7aa9020c;hp=4d08de95d9e310eaf70d0b4721fa8bee9638fd7c;hpb=3ad3ad71357e24dc49729a9ad34d6896b22dc8d9;p=lyx.git diff --git a/src/Exporter.h b/src/Exporter.h index 4d08de95d9..2b34ac14f8 100644 --- a/src/Exporter.h +++ b/src/Exporter.h @@ -30,7 +30,9 @@ enum CopyStatus { /** copy file \p sourceFile to \p destFile. If \p force is false, the user - * will be asked before existing files are overwritten. + * will be asked before existing files are overwritten. If \p only_tmp + * is true, then only copy files that are in our tmp dir (to avoid other files + * overwriting themselves). * \return * - SUCCESS if this file got copied * - FORCE if subsequent calls should not ask for confirmation before @@ -39,7 +41,7 @@ enum CopyStatus { */ CopyStatus copyFile(std::string const & format, support::FileName const & sourceFile, support::FileName const & destFile, - std::string const & latexFile, bool force); + std::string const & latexFile, bool force, bool only_tmp = true); class ExportedFile {