* 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.
*/
class FileName;
-/// Creates the per buffer temporary directory
-std::string const createBufferTmpDir();
-
/** Creates the global LyX temp dir.
\p deflt can be an existing directory name. In this case a new directory
inside \p deflt is created. If \p deflt does not exist yet, \p deflt is
/// 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
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);
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);