]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / filetools.h
index 6e3e412ec62ac5975af3b33be50c985f42cbd4ac..782ba2cc31773218b868d3441b116d849d3a1655 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
 #define LYX_FILETOOL_H
 
 #include "support/docstring.h"
-#include "support/FileName.h"
 
-#include <vector>
 #include <utility>
 #include <string>
 
 namespace lyx {
 namespace support {
 
-/// Creates the per buffer temporary directory
-std::string const createBufferTmpDir();
+class FileName;
 
 /** Creates the global LyX temp dir.
   \p deflt can be an existing directory name. In this case a new directory
@@ -49,11 +46,11 @@ FileName const fileOpenSearch(std::string const & path,
 
 /// How to search files
 enum search_mode {
-       // The file must exist (return an empty file name otherwise)
-       standard_mode,
+       /// The file must exist (return an empty file name otherwise)
+       must_exist,
        /// Only do file name expansion, return the complete name even if
        /// the file does not exist
-       allow_unreadable
+       may_not_exist
 };
 
 /** Returns the real name of file name in directory path, with optional
@@ -64,7 +61,7 @@ enum search_mode {
 FileName const fileSearch(std::string const & path,
                             std::string const & name,
                             std::string const & ext = std::string(),
-                            search_mode mode = standard_mode);
+                            search_mode mode = must_exist);
 
 ///
 bool isLyXFilename(std::string const & filename);
@@ -198,9 +195,6 @@ std::string const unzippedFileName(std::string const & zipped_file);
 FileName const unzipFile(FileName const & zipped_file,
                         std::string const & unzipped_file = std::string());
 
-/// Returns true is path is absolute
-bool absolutePath(std::string const & path);
-
 /// Create absolute path. If impossible, don't do anything
 std::string const expandPath(std::string const & path);
 
@@ -256,9 +250,6 @@ bool readLink(FileName const & file, FileName & link);
 FileName const findtexfile(std::string const & fil,
                              std::string const & format);
 
-/// remove the autosave-file and give a Message if it can't be done
-void removeAutosaveFile(std::string const & filename);
-
 /// read the BoundingBox entry from a ps/eps/pdf-file
 std::string const readBB_from_PSFile(FileName const & file);
 
@@ -279,14 +270,6 @@ cmd_ret const runCommand(std::string const & cmd);
 } // namespace support
 } // namespace lyx
 
-/// The following functions are implemented in minizip/zipunzip.cpp, and are not in
-/// the lyx::support namespace
-
-/// zip several files to a zipfile. In-zip filenames are also specified
-bool zipFiles(std::string 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);
 
 
 #endif