]> git.lyx.org Git - lyx.git/blobdiff - src/Exporter.h
Provide proper fallback if a bibliography processor is not found
[lyx.git] / src / Exporter.h
index e4c5bcbc8248b5dda7388e3abc322017e978fed8..2b34ac14f8b539fc2c0053e72a79c71c6e756684 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  *
  * Full author contact details are available in file CREDITS.
@@ -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 {
@@ -81,13 +83,13 @@ public:
                             support::FileName const & sourceName);
        /// get referenced files for \p format
        std::vector<ExportedFile> const
-       externalFiles(std::string const & format) const;
+               externalFiles(std::string const & format) const;
 private:
        typedef std::map<std::string, std::vector<ExportedFile> > FileMap;
        /** Files that are referenced by the export result in the
         *  different formats.
         */
-       FileMap externalfiles;
+       FileMap externalfiles_;
 };