]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Embedding feature patch 1: add zipFiles and unzipToDir to support
[lyx.git] / src / support / filetools.h
index c8872ebce1e00cce9cc98f1fdf7a74b6cad3aa9f..150202106937904ae85474a728e10e987cdb5ca3 100644 (file)
@@ -94,6 +94,9 @@ bool isLyXFilename(std::string const & filename);
 ///
 bool isSGMLFilename(std::string const & filename);
 
+///
+bool isValidLaTeXFilename(std::string const & filename);
+
 /** Returns the path of a library data file.
     Search the file name.ext in the subdirectory dir of
       -# user_lyxdir
@@ -311,6 +314,12 @@ typedef std::pair<int, std::string> cmd_ret;
 
 cmd_ret const runCommand(std::string const & cmd);
 
+/// zip several files to a zipfile. In-zip filenames are also specified
+bool zipFiles(DocFileName const & zipfile, std::vector<std::pair<std::string, std::string> > const & files);
+
+/// Unzip a zip file to a directory
+bool unzipToDir(std::string const & zipfile, std::string const & path);
+
 } // namespace support
 } // namespace lyx