Jean-Marc teaches me that MakeRelPath is quite sophisticated...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7441 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-07-29 10:56:55 +00:00
parent 184b5dadaf
commit f558c98c76
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-07-29 Angus Leeming <leeming@lyx.org>
* filename.[Ch] (relFilename, outputFilename): the 'path' arg
defaults to string() because MakeRelPath can accept that.
2003-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
* Makefile.am: contidionalize USE_COMPRESSION

View File

@ -43,9 +43,9 @@ string const FileName::relFilename(string const & path) const
}
string const FileName::outputFilename(string const & buffer_path) const
string const FileName::outputFilename(string const & path) const
{
return save_abs_path_ ? name_ : MakeRelPath(name_, buffer_path);
return save_abs_path_ ? name_ : MakeRelPath(name_, path);
}

View File

@ -35,8 +35,10 @@ public:
bool saveAbsPath() const { return save_abs_path_; }
string const absFilename() const { return name_; }
string const relFilename(string const & buffer_path) const;
string const outputFilename(string const & buffer_path) const;
/// \param buffer_path if empty, uses `pwd`
string const relFilename(string const & buffer_path = string()) const;
/// \param buf_path if empty, uses `pwd`
string const outputFilename(string const & buf_path = string()) const;
private:
string name_;