]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Small things in my tree.
[lyx.git] / src / support / filetools.h
index efe21a5f49b9160c9a378e34d64e5efdd07c88b0..14ba9027fc56873c98998ea665cfcfea78c23fba 100644 (file)
@@ -77,9 +77,6 @@ int IsFileWriteable (string const & path);
 ///
 bool IsLyXFilename(string const & filename);
 
-///
-bool IsSGMLFilename(string const & filename);
-
 /** Returns the path of a library data file.
   Search the file name.ext in the subdirectory dir of
   \begin{enumerate}
@@ -134,12 +131,10 @@ string AddName(string const & path, string const & fname);
 string AddPath(string const & path, string const & path2);
 
 /** Change extension of oldname to extension.
- If no_path is true, the path is stripped from the filename.
  If oldname does not have an extension, it is appended.
  If the extension is empty, any extension is removed from the name.
  */
-string ChangeExtension(string const & oldname, string const & extension, 
-                      bool no_path);
+string ChangeExtension(string const & oldname, string const & extension);
 
 /// Create absolute path. If impossible, don't do anything
 string ExpandPath(string const & path);
@@ -178,6 +173,9 @@ string NormalizePath(string const & path);
 /// Strips path from filename
 string OnlyFilename(string const & fname);
 
+/// Get the contents of a file as a huge string
+string GetFileContents(string const & fname);
+
 /// Cleanup a path if necessary. Currently only useful with OS/2
 string CleanupPath(string const & path) ;
 
@@ -188,8 +186,8 @@ string CleanupPath(string const & path) ;
 */
 string ReplaceEnvironmentPath(string const & path);
 
-/* Set Link to the path File Points to as a symbolic link.
-   Return True if succesfull, False other wise */
+/* Set Link to the path file points to as a symbolic link.
+   Returns true if successful */
 bool LyXReadLink(string const & file, string & Link);
 
 /* Uses kpsewhich to find tex files */