Add and update some comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30405 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-07-07 15:29:33 +00:00
parent 44763a6f0f
commit 3a41879cb4

View File

@ -222,7 +222,7 @@ class DocFileName : public FileName {
public:
DocFileName();
/** \param abs_filename the file in question. Must have an absolute path.
* \param save_abs_path how is the file to be output to file?
* \param save_abs_path how is the filename to be output?
*/
DocFileName(std::string const & abs_filename, bool save_abs_path = true);
DocFileName(FileName const & abs_filename, bool save_abs_path = true);
@ -233,9 +233,9 @@ public:
* the absolute path using this.
*/
virtual void set(std::string const & filename, std::string const & buffer_path);
///
void erase();
///
bool saveAbsPath() const { return save_abs_path_; }
/// \param buffer_path if empty, uses `pwd`
std::string relFilename(std::string const & buffer_path = empty_string()) const;
@ -271,6 +271,8 @@ public:
std::string unzippedFilename() const;
private:
/// Records whether we should save (or export) the filename as a relative
/// or absolute path.
bool save_abs_path_;
/// Cache for isZipped() because zippedFile() is expensive
mutable bool zipped_;