]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / filetools.h
index 2e2aa0060bb86322032920d01f4cd0ad5eaad514..d1329d89e69a73bd4cc3b79db222e63fa5a0591d 100644 (file)
@@ -58,7 +58,7 @@ string const FileSearch(string const & path, string const & name,
     1: dir writeable
     0: not writeable
    -1: error- couldn't find out, or unsure
-  */
+*/
 int IsDirWriteable (string const & path);
 
 /** Is a file readable ?
@@ -139,6 +139,9 @@ string const AddPath(string const & path, string const & path2);
 string const
 ChangeExtension(string const & oldname, string const & extension);
 
+/// Return the extension of the file (not including the .)
+string const GetExtension(string const & name);
+
 /// Create absolute path. If impossible, don't do anything
 string const ExpandPath(string const & path);
 
@@ -199,4 +202,7 @@ bool LyXReadLink(string const & file, string & Link);
 /* Uses kpsewhich to find tex files */
 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