changed wxAddBasePath to wxHtmlCotentsItem's method

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-04-29 22:14:02 +00:00
parent aafe448833
commit 468ae730db
3 changed files with 40 additions and 33 deletions

View File

@@ -60,6 +60,11 @@ public:
void SetBasePath(const wxString& path) { m_BasePath = path; }
void SetStart(const wxString& start) { m_Start = start; }
// returns full filename of page (which is part of the book),
// i.e. with book's basePath prepended. If page is already absolute
// path, basePath is _not_ prepended.
wxString GetFullPath(const wxString &page) const;
protected:
wxString m_BasePath;
wxString m_Title;
@@ -79,6 +84,9 @@ struct wxHtmlContentsItem
wxChar* m_Name;
wxChar* m_Page;
wxHtmlBookRecord *m_Book;
// returns full filename of m_Page, i.e. with book's basePath prepended
wxString GetFullPath() const { return m_Book->GetFullPath(m_Page); }
};
//------------------------------------------------------------------------------
@@ -196,9 +204,6 @@ protected:
bool SaveCachedBook(wxHtmlBookRecord *book, wxOutputStream *f);
};
// Utility function
wxString wxAddBasePath(const wxString& basePath, const wxString& path) ;
#endif
#endif