]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Utility functions for converting preference files.
[lyx.git] / src / support / filetools.h
index da7203cb230be9489dd1797b2907c5b6c85907cc..49dadf9a33d617fe827b212afe6e7d62519e9195 100644 (file)
@@ -69,9 +69,15 @@ bool isLyXFileName(std::string const & filename);
 ///
 bool isSGMLFileName(std::string const & filename);
 
-///
+/// check for characters in filenames not allowed by LaTeX
 bool isValidLaTeXFileName(std::string const & filename);
 
+/** check for characters in filenames that might lead to
+  problems when manually compiling the LaTeX export of LyX
+  and opening the result with some older DVI-viewers
+*/
+bool isValidDVIFileName(std::string const & filename);
+
 /** Returns the path of a library data file.
     Search the file name.ext in the subdirectory dir of
       -# user_lyxdir
@@ -262,6 +268,10 @@ std::string const readBB_from_PSFile(FileName const & file);
  */
 int compare_timestamps(FileName const & file1, FileName const & file2);
 
+/// \param lfuns: true if we're converting lfuns, false if prefs
+bool prefs2prefs(FileName const & filename, FileName const & tempfile,
+                 bool lfuns);
+
 typedef std::pair<int, std::string> cmd_ret;
 
 cmd_ret const runCommand(std::string const & cmd);