1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of html classes
7 // Created: 25-nov-1998
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include <wx/html/htmlwin.h>
19 #include <wx/html/helpctrl.h>
21 #include <wx/fs_zip.h>
22 #include <wx/fs_inet.h>
23 #include <wx/wfstream.h>
26 //---------------------------------------------------------------------------
29 %include my_typemaps.i
43 //---------------------------------------------------------------------------
45 class wxHtmlHelpFrameCfg
56 //---------------------------------------------------------------------------
58 class wxHtmlBookRecord {
60 wxHtmlBookRecord(const wxString& basepath, const wxString& title,
61 const wxString& start);
65 wxString GetBasePath();
67 void SetContentsRange(int start, int end);
68 int GetContentsStart();
72 //---------------------------------------------------------------------------
80 wxHtmlBookRecord *m_Book;
83 //---------------------------------------------------------------------------
85 class wxHtmlSearchStatus
88 //wxHtmlSearchStatus(wxHtmlHelpData* base, const wxString& keyword,
89 // const wxString& book = wxEmptyString);
94 const wxString& GetName();
95 wxHtmlContentsItem* GetContentsItem();
98 //---------------------------------------------------------------------------
100 class wxHtmlHelpData {
105 void SetTempDir(const wxString& path);
106 bool AddBook(const wxString& book);
107 // bool AddBookParam(const wxString& title, const wxString& contfile,
108 // const wxString& indexfile=wxEmptyString,
109 // const wxString& deftopic=wxEmptyString,
110 // const wxString& path=wxEmptyString);
112 wxString FindPageByName(const wxString& page);
113 wxString FindPageById(int id);
115 // TODO: this one needs fixed...
116 const wxHtmlBookRecArray& GetBookRecArray();
118 wxHtmlContentsItem* GetContents();
119 int GetContentsCnt();
120 wxHtmlContentsItem* GetIndex();
124 //---------------------------------------------------------------------------
126 class wxHtmlHelpFrame : public wxFrame {
128 wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
129 const wxString& title = wxEmptyString,
130 int style = wxHF_DEFAULTSTYLE, wxHtmlHelpData* data = NULL);
132 wxHtmlHelpData* GetData();
133 void SetTitleFormat(const wxString& format);
134 void Display(const wxString& x);
135 %name(DisplayID) void Display(int id);
136 void DisplayContents();
138 bool KeywordSearch(const wxString& keyword);
139 void UseConfig(wxConfigBase *config, const wxString& rootpath = wxEmptyString);
140 void ReadCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
141 void WriteCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
145 //---------------------------------------------------------------------------
161 class wxHtmlHelpController : public wxEvtHandler {
163 wxHtmlHelpController(int style = wxHF_DEFAULTSTYLE);
164 ~wxHtmlHelpController();
166 void SetTitleFormat(const wxString& format);
167 void SetTempDir(const wxString& path);
168 bool AddBook(const wxString& book, int show_wait_msg = FALSE);
169 void Display(const wxString& x);
170 %name(DisplayID) void Display(int id);
171 void DisplayContents();
173 bool KeywordSearch(const wxString& keyword);
174 void UseConfig(wxConfigBase *config, const wxString& rootpath = wxEmptyString);
175 void ReadCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
176 void WriteCustomization(wxConfigBase *cfg, wxString path = wxEmptyString);
177 wxHtmlHelpFrame* GetFrame();
180 //---------------------------------------------------------------------------
181 //---------------------------------------------------------------------------