]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpctrl.cpp
wxScrolledWindow next take, the Gizmo controls
[wxWidgets.git] / src / html / helpctrl.cpp
index 31a5df2dd6754da78967e07c0476a8a0a180080a..0d36aed6e4aa5fa8566dfea19ceda62e919442ea 100644 (file)
@@ -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