]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/html/htmlhelp.h
Header file for MSW GSocket
[wxWidgets.git] / include / wx / html / htmlhelp.h
index 6e56bc5815a81d493747763bcc986a264e9f649b..f22e7594a7cd21f5c220d7cdefb9dc3cf09d4ef1 100644 (file)
 #define __HTMLHELP_H__
 
 #ifdef __GNUG__
-#pragma interface
+#pragma interface "htmlhelp.h"
 #endif
 
 #include "wx/defs.h"
+
 #if wxUSE_HTML
 
-#include <wx/window.h>
-#include <wx/config.h>
-#include <wx/splitter.h>
-#include <wx/notebook.h>
-#include <wx/listctrl.h>
-#include <wx/html/htmlwin.h>
+#include "wx/window.h"
+#include "wx/config.h"
+#include "wx/splitter.h"
+#include "wx/notebook.h"
+#include "wx/listctrl.h"
+#include "wx/html/htmlwin.h"
 
 
 
@@ -65,6 +66,42 @@ typedef struct
     } HtmlContentsItem;
 
 
+//-----------------------------------------------------------------------------
+// Helper constants
+//-----------------------------------------------------------------------------
+
+
+// Command IDs :
+
+enum {
+    wxID_HTML_PANEL = wxID_HIGHEST + 1,
+    wxID_HTML_BACK,
+    wxID_HTML_FORWARD,
+    wxID_HTML_TREECTRL,
+    wxID_HTML_INDEXPAGE,
+    wxID_HTML_INDEXLIST,
+    wxID_HTML_NOTEBOOK,
+    wxID_HTML_SEARCHPAGE,
+    wxID_HTML_SEARCHTEXT,
+    wxID_HTML_SEARCHLIST,
+    wxID_HTML_SEARCHBUTTON
+};
+
+
+//--------------------------------------------------------------------------------
+// HtmlHelpTreeItemData 
+//                  Stores the location of a contents item in a tree item
+//--------------------------------------------------------------------------------
+
+class wxHtmlHelpTreeItemData : public wxTreeItemData
+{
+    private:
+        wxString m_Page;
+
+    public:
+        wxHtmlHelpTreeItemData(HtmlContentsItem *it) : wxTreeItemData() {m_Page = it -> m_Book -> GetBasePath() + it -> m_Page;}
+        const wxString& GetPage() {return m_Page;}
+};
 
 
 //--------------------------------------------------------------------------------
@@ -122,6 +159,13 @@ class WXDLLEXPORT wxHtmlHelpController : public wxEvtHandler
         wxHtmlHelpController();
         ~wxHtmlHelpController();
 
+       // Images:
+       enum {
+           IMG_Book = 0,
+           IMG_Folder,
+           IMG_Page
+       };
+
         void SetTitleFormat(const wxString& format) {m_TitleFormat = format;}
                 // Sets format of title of the frame. Must contain exactly one "%s"
                 // (for title of displayed HTML page)