]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Infrastructure for choosing different icon sets. This currently works
[lyx.git] / src / support / filetools.h
index da7203cb230be9489dd1797b2907c5b6c85907cc..cd25d472006ada070acbc892d97c92f4143b6337 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
@@ -92,6 +98,13 @@ i18nLibFileSearch(std::string const & dir,
                  std::string const & name,
                  std::string const & ext = std::string());
 
+/** Same as libFileSearch(), but tries first to find a preferred
+  version of the file by appending the icon set name to the dir
+  */
+FileName const
+imageLibFileSearch(std::string & dir, std::string const & name,
+                  std::string const & ext = std::string());
+
 /// How to quote a filename
 enum quote_style {
        /** Quote for the (OS dependant) shell. This is needed for command
@@ -262,6 +275,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);