]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Herbert's unzip et al patch.
[lyx.git] / src / support / filetools.h
index 4c5bc161bccded82e5a21341ded56449bba2c6b7..1c667a1414da7b44d9859c9f00b8deb05c45d47c 100644 (file)
@@ -132,6 +132,15 @@ ChangeExtension(string const & oldname, string const & extension);
 /// Return the extension of the file (not including the .)
 string const GetExtension(string const & name);
 
+/// Return the type of the file as an extension from contents
+string const getExtFromContents(string const & name);
+
+/// check for zipped file
+bool zippedFile(string const & name);
+
+/// unzip a file
+string const unzipFile(string const & zipped_file);
+
 /// Returns true is path is absolute
 bool AbsolutePath(string const & path);
 
@@ -191,4 +200,5 @@ string const findtexfile(string const & fil, string const & format);
 /// remove the autosave-file and give a Message if it can't be done
 void removeAutosaveFile(string const & filename);
 
+
 #endif