X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/673dfcfac1a56da3cdcedecae59e327613ca2f66..6d56eb5c56fb1f5707727e86a615e270d4dddbfe:/src/html/helpctrl.cpp diff --git a/src/html/helpctrl.cpp b/src/html/helpctrl.cpp index 31a5df2dd6..0d36aed6e4 100644 --- a/src/html/helpctrl.cpp +++ b/src/html/helpctrl.cpp @@ -213,8 +213,9 @@ bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& } return FALSE; -#endif +#else return FALSE; +#endif } void wxHtmlHelpController::SetFrameParameters(const wxString& title, @@ -248,5 +249,20 @@ bool wxHtmlHelpController::Quit() return TRUE; } +// Sets the specified book or all books to have the given base path +void wxHtmlHelpController::SetBookBasePath(const wxString& basePath, int which) +{ + size_t i; + for (i = 0; i < m_helpData.GetBookRecArray().Count(); i++ ) + { + if (i == (size_t) which || which == -1) + { + wxHtmlBookRecord& book = m_helpData.GetBookRecArray()[i]; + book.SetBasePath(basePath); + } + if (i == (size_t) which) + return; + } +} #endif