.cached format of help books is now endian-independent; also changed lookup logic for .cached files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-01-19 00:59:27 +00:00
parent eaf40b230e
commit f35822af10
2 changed files with 103 additions and 69 deletions

View File

@@ -127,12 +127,11 @@ class WXDLLEXPORT wxHtmlSearchStatus
wxString m_Keyword, m_Name;
wxChar *m_LastPage;
wxHtmlContentsItem* m_ContentsItem;
bool m_Active; // search is not finished
bool m_Active; // search is not finished
int m_CurIndex; // where we are now
int m_MaxIndex; // number of files we search
// For progress bar: 100*curindex/maxindex = % complete
}
;
};
class WXDLLEXPORT wxHtmlHelpData : public wxObject
{
@@ -153,7 +152,8 @@ class WXDLLEXPORT wxHtmlHelpData : public wxObject
// Adds new book. 'book' is location of .htb file (stands for "html book").
// See documentation for details on its format.
// Returns success.
bool AddBookParam(const wxString& title, const wxString& contfile,
bool AddBookParam(const wxFSFile& bookfile,
const wxString& title, const wxString& contfile,
const wxString& indexfile = wxEmptyString,
const wxString& deftopic = wxEmptyString,
const wxString& path = wxEmptyString);
@@ -190,8 +190,7 @@ class WXDLLEXPORT wxHtmlHelpData : public wxObject
// Reads binary book
bool SaveCachedBook(wxHtmlBookRecord *book, wxOutputStream *f);
// Writes binary book
}
;
};
#endif