mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
184b5dadaf
commit
f558c98c76
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user