added .chm support for Unix (Markus Sinner)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-10-07 20:15:27 +00:00
parent c839485c8e
commit 3527f29c87
8 changed files with 1233 additions and 14 deletions

View File

@@ -38,6 +38,12 @@
#if wxUSE_HELP
#include "wx/tipwin.h"
#endif
#if wxUSE_LIBMSPACK
#include "wx/html/forcelnk.h"
FORCE_LINK(wxhtml_chm_support)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpController, wxHelpControllerBase)
@@ -187,10 +193,15 @@ bool wxHtmlHelpController::Initialize(const wxString& file)
{
actualFilename = dir + filename + wxString(wxT(".hhp"));
if (!wxFileExists(actualFilename))
return FALSE;
{
#if wxUSE_LIBMSPACK
actualFilename = dir + filename + wxString(wxT(".chm"));
if (!wxFileExists(actualFilename))
#endif
return false;
}
}
}
return AddBook(wxFileName(actualFilename));
}