]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Yes, yet another patch from Herbert!
[lyx.git] / src / support / filetools.h
index 04d8b2debaa25ebd07bfdba894bf5389420a2ac7..5299d8ad619d19e5a49bedb46f3a3adc560c9a05 100644 (file)
@@ -116,9 +116,6 @@ string const MakeLatexName(string const & file);
 /// Put the name in quotes suitable for the current shell
 string const QuoteName(string const & file);
 
-/// Is a filename/path absolute?
-bool AbsolutePath(string const & path);
-
 /// Add a filename to a path. Any path from filename is stripped first.
 string const AddName(string const & path, string const & fname);
 
@@ -135,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);
+
+/// Returns true is path is absolute
+bool AbsolutePath(string const & path);
+
 /// Create absolute path. If impossible, don't do anything
 string const ExpandPath(string const & path);
 
@@ -191,4 +197,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