]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/html/htmlhelp.py
it is now possible to add custom buttons into wxHtmlHelpFrame's toolbar
[wxWidgets.git] / utils / wxPython / modules / html / htmlhelp.py
1 # This file was created automatically by SWIG.
2 import htmlhelpc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from mdi import *
17
18 from frames import *
19
20 from stattool import *
21
22 from controls import *
23
24 from controls2 import *
25
26 from windows2 import *
27
28 from cmndlgs import *
29
30 from windows3 import *
31
32 from image import *
33
34 from printfw import *
35
36 from sizers import *
37 class wxHtmlHelpFrameCfgPtr :
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
41 def __setattr__(self,name,value):
42 if name == "x" :
43 htmlhelpc.wxHtmlHelpFrameCfg_x_set(self,value)
44 return
45 if name == "y" :
46 htmlhelpc.wxHtmlHelpFrameCfg_y_set(self,value)
47 return
48 if name == "w" :
49 htmlhelpc.wxHtmlHelpFrameCfg_w_set(self,value)
50 return
51 if name == "h" :
52 htmlhelpc.wxHtmlHelpFrameCfg_h_set(self,value)
53 return
54 if name == "sashpos" :
55 htmlhelpc.wxHtmlHelpFrameCfg_sashpos_set(self,value)
56 return
57 if name == "navig_on" :
58 htmlhelpc.wxHtmlHelpFrameCfg_navig_on_set(self,value)
59 return
60 self.__dict__[name] = value
61 def __getattr__(self,name):
62 if name == "x" :
63 return htmlhelpc.wxHtmlHelpFrameCfg_x_get(self)
64 if name == "y" :
65 return htmlhelpc.wxHtmlHelpFrameCfg_y_get(self)
66 if name == "w" :
67 return htmlhelpc.wxHtmlHelpFrameCfg_w_get(self)
68 if name == "h" :
69 return htmlhelpc.wxHtmlHelpFrameCfg_h_get(self)
70 if name == "sashpos" :
71 return htmlhelpc.wxHtmlHelpFrameCfg_sashpos_get(self)
72 if name == "navig_on" :
73 return htmlhelpc.wxHtmlHelpFrameCfg_navig_on_get(self)
74 raise AttributeError,name
75 def __repr__(self):
76 return "<C wxHtmlHelpFrameCfg instance at %s>" % (self.this,)
77 class wxHtmlHelpFrameCfg(wxHtmlHelpFrameCfgPtr):
78 def __init__(self,*_args,**_kwargs):
79 self.this = apply(htmlhelpc.new_wxHtmlHelpFrameCfg,_args,_kwargs)
80 self.thisown = 1
81
82
83
84
85 class wxHtmlBookRecordPtr :
86 def __init__(self,this):
87 self.this = this
88 self.thisown = 0
89 def GetTitle(self, *_args, **_kwargs):
90 val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs)
91 return val
92 def GetStart(self, *_args, **_kwargs):
93 val = apply(htmlhelpc.wxHtmlBookRecord_GetStart,(self,) + _args, _kwargs)
94 return val
95 def GetBasePath(self, *_args, **_kwargs):
96 val = apply(htmlhelpc.wxHtmlBookRecord_GetBasePath,(self,) + _args, _kwargs)
97 return val
98 def SetContentsRange(self, *_args, **_kwargs):
99 val = apply(htmlhelpc.wxHtmlBookRecord_SetContentsRange,(self,) + _args, _kwargs)
100 return val
101 def GetContentsStart(self, *_args, **_kwargs):
102 val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsStart,(self,) + _args, _kwargs)
103 return val
104 def GetContentsEnd(self, *_args, **_kwargs):
105 val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs)
106 return val
107 def __repr__(self):
108 return "<C wxHtmlBookRecord instance at %s>" % (self.this,)
109 class wxHtmlBookRecord(wxHtmlBookRecordPtr):
110 def __init__(self,*_args,**_kwargs):
111 self.this = apply(htmlhelpc.new_wxHtmlBookRecord,_args,_kwargs)
112 self.thisown = 1
113
114
115
116
117 class wxHtmlContentsItemPtr :
118 def __init__(self,this):
119 self.this = this
120 self.thisown = 0
121 def __setattr__(self,name,value):
122 if name == "m_Level" :
123 htmlhelpc.wxHtmlContentsItem_m_Level_set(self,value)
124 return
125 if name == "m_ID" :
126 htmlhelpc.wxHtmlContentsItem_m_ID_set(self,value)
127 return
128 if name == "m_Name" :
129 htmlhelpc.wxHtmlContentsItem_m_Name_set(self,value)
130 return
131 if name == "m_Page" :
132 htmlhelpc.wxHtmlContentsItem_m_Page_set(self,value)
133 return
134 if name == "m_Book" :
135 htmlhelpc.wxHtmlContentsItem_m_Book_set(self,value.this)
136 return
137 self.__dict__[name] = value
138 def __getattr__(self,name):
139 if name == "m_Level" :
140 return htmlhelpc.wxHtmlContentsItem_m_Level_get(self)
141 if name == "m_ID" :
142 return htmlhelpc.wxHtmlContentsItem_m_ID_get(self)
143 if name == "m_Name" :
144 return htmlhelpc.wxHtmlContentsItem_m_Name_get(self)
145 if name == "m_Page" :
146 return htmlhelpc.wxHtmlContentsItem_m_Page_get(self)
147 if name == "m_Book" :
148 return wxHtmlBookRecordPtr(htmlhelpc.wxHtmlContentsItem_m_Book_get(self))
149 raise AttributeError,name
150 def __repr__(self):
151 return "<C wxHtmlContentsItem instance at %s>" % (self.this,)
152 class wxHtmlContentsItem(wxHtmlContentsItemPtr):
153 def __init__(self,this):
154 self.this = this
155
156
157
158
159 class wxHtmlSearchStatusPtr :
160 def __init__(self,this):
161 self.this = this
162 self.thisown = 0
163 def Search(self, *_args, **_kwargs):
164 val = apply(htmlhelpc.wxHtmlSearchStatus_Search,(self,) + _args, _kwargs)
165 return val
166 def IsActive(self, *_args, **_kwargs):
167 val = apply(htmlhelpc.wxHtmlSearchStatus_IsActive,(self,) + _args, _kwargs)
168 return val
169 def GetCurIndex(self, *_args, **_kwargs):
170 val = apply(htmlhelpc.wxHtmlSearchStatus_GetCurIndex,(self,) + _args, _kwargs)
171 return val
172 def GetMaxIndex(self, *_args, **_kwargs):
173 val = apply(htmlhelpc.wxHtmlSearchStatus_GetMaxIndex,(self,) + _args, _kwargs)
174 return val
175 def GetName(self, *_args, **_kwargs):
176 val = apply(htmlhelpc.wxHtmlSearchStatus_GetName,(self,) + _args, _kwargs)
177 return val
178 def GetContentsItem(self, *_args, **_kwargs):
179 val = apply(htmlhelpc.wxHtmlSearchStatus_GetContentsItem,(self,) + _args, _kwargs)
180 if val: val = wxHtmlContentsItemPtr(val)
181 return val
182 def __repr__(self):
183 return "<C wxHtmlSearchStatus instance at %s>" % (self.this,)
184 class wxHtmlSearchStatus(wxHtmlSearchStatusPtr):
185 def __init__(self,this):
186 self.this = this
187
188
189
190
191 class wxHtmlHelpDataPtr :
192 def __init__(self,this):
193 self.this = this
194 self.thisown = 0
195 def __del__(self,htmlhelpc=htmlhelpc):
196 if self.thisown == 1 :
197 htmlhelpc.delete_wxHtmlHelpData(self)
198 def SetTempDir(self, *_args, **_kwargs):
199 val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
200 return val
201 def AddBook(self, *_args, **_kwargs):
202 val = apply(htmlhelpc.wxHtmlHelpData_AddBook,(self,) + _args, _kwargs)
203 return val
204 def AddBookParam(self, *_args, **_kwargs):
205 val = apply(htmlhelpc.wxHtmlHelpData_AddBookParam,(self,) + _args, _kwargs)
206 return val
207 def FindPageByName(self, *_args, **_kwargs):
208 val = apply(htmlhelpc.wxHtmlHelpData_FindPageByName,(self,) + _args, _kwargs)
209 return val
210 def FindPageById(self, *_args, **_kwargs):
211 val = apply(htmlhelpc.wxHtmlHelpData_FindPageById,(self,) + _args, _kwargs)
212 return val
213 def GetBookRecArray(self, *_args, **_kwargs):
214 val = apply(htmlhelpc.wxHtmlHelpData_GetBookRecArray,(self,) + _args, _kwargs)
215 return val
216 def GetContents(self, *_args, **_kwargs):
217 val = apply(htmlhelpc.wxHtmlHelpData_GetContents,(self,) + _args, _kwargs)
218 if val: val = wxHtmlContentsItemPtr(val)
219 return val
220 def GetContentsCnt(self, *_args, **_kwargs):
221 val = apply(htmlhelpc.wxHtmlHelpData_GetContentsCnt,(self,) + _args, _kwargs)
222 return val
223 def GetIndex(self, *_args, **_kwargs):
224 val = apply(htmlhelpc.wxHtmlHelpData_GetIndex,(self,) + _args, _kwargs)
225 if val: val = wxHtmlContentsItemPtr(val)
226 return val
227 def GetIndexCnt(self, *_args, **_kwargs):
228 val = apply(htmlhelpc.wxHtmlHelpData_GetIndexCnt,(self,) + _args, _kwargs)
229 return val
230 def __repr__(self):
231 return "<C wxHtmlHelpData instance at %s>" % (self.this,)
232 class wxHtmlHelpData(wxHtmlHelpDataPtr):
233 def __init__(self,*_args,**_kwargs):
234 self.this = apply(htmlhelpc.new_wxHtmlHelpData,_args,_kwargs)
235 self.thisown = 1
236
237
238
239
240 class wxHtmlHelpFramePtr(wxFramePtr):
241 def __init__(self,this):
242 self.this = this
243 self.thisown = 0
244 def GetData(self, *_args, **_kwargs):
245 val = apply(htmlhelpc.wxHtmlHelpFrame_GetData,(self,) + _args, _kwargs)
246 if val: val = wxHtmlHelpDataPtr(val)
247 return val
248 def SetTitleFormat(self, *_args, **_kwargs):
249 val = apply(htmlhelpc.wxHtmlHelpFrame_SetTitleFormat,(self,) + _args, _kwargs)
250 return val
251 def Display(self, *_args, **_kwargs):
252 val = apply(htmlhelpc.wxHtmlHelpFrame_Display,(self,) + _args, _kwargs)
253 return val
254 def DisplayID(self, *_args, **_kwargs):
255 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayID,(self,) + _args, _kwargs)
256 return val
257 def DisplayContents(self, *_args, **_kwargs):
258 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayContents,(self,) + _args, _kwargs)
259 return val
260 def DisplayIndex(self, *_args, **_kwargs):
261 val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayIndex,(self,) + _args, _kwargs)
262 return val
263 def KeywordSearch(self, *_args, **_kwargs):
264 val = apply(htmlhelpc.wxHtmlHelpFrame_KeywordSearch,(self,) + _args, _kwargs)
265 return val
266 def UseConfig(self, *_args, **_kwargs):
267 val = apply(htmlhelpc.wxHtmlHelpFrame_UseConfig,(self,) + _args, _kwargs)
268 return val
269 def ReadCustomization(self, *_args, **_kwargs):
270 val = apply(htmlhelpc.wxHtmlHelpFrame_ReadCustomization,(self,) + _args, _kwargs)
271 return val
272 def WriteCustomization(self, *_args, **_kwargs):
273 val = apply(htmlhelpc.wxHtmlHelpFrame_WriteCustomization,(self,) + _args, _kwargs)
274 return val
275 def __repr__(self):
276 return "<C wxHtmlHelpFrame instance at %s>" % (self.this,)
277 class wxHtmlHelpFrame(wxHtmlHelpFramePtr):
278 def __init__(self,*_args,**_kwargs):
279 self.this = apply(htmlhelpc.new_wxHtmlHelpFrame,_args,_kwargs)
280 self.thisown = 1
281
282
283
284
285 class wxHtmlHelpControllerPtr(wxEvtHandlerPtr):
286 def __init__(self,this):
287 self.this = this
288 self.thisown = 0
289 def __del__(self,htmlhelpc=htmlhelpc):
290 if self.thisown == 1 :
291 htmlhelpc.delete_wxHtmlHelpController(self)
292 def SetTitleFormat(self, *_args, **_kwargs):
293 val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
294 return val
295 def SetTempDir(self, *_args, **_kwargs):
296 val = apply(htmlhelpc.wxHtmlHelpController_SetTempDir,(self,) + _args, _kwargs)
297 return val
298 def AddBook(self, *_args, **_kwargs):
299 val = apply(htmlhelpc.wxHtmlHelpController_AddBook,(self,) + _args, _kwargs)
300 return val
301 def Display(self, *_args, **_kwargs):
302 val = apply(htmlhelpc.wxHtmlHelpController_Display,(self,) + _args, _kwargs)
303 return val
304 def DisplayID(self, *_args, **_kwargs):
305 val = apply(htmlhelpc.wxHtmlHelpController_DisplayID,(self,) + _args, _kwargs)
306 return val
307 def DisplayContents(self, *_args, **_kwargs):
308 val = apply(htmlhelpc.wxHtmlHelpController_DisplayContents,(self,) + _args, _kwargs)
309 return val
310 def DisplayIndex(self, *_args, **_kwargs):
311 val = apply(htmlhelpc.wxHtmlHelpController_DisplayIndex,(self,) + _args, _kwargs)
312 return val
313 def KeywordSearch(self, *_args, **_kwargs):
314 val = apply(htmlhelpc.wxHtmlHelpController_KeywordSearch,(self,) + _args, _kwargs)
315 return val
316 def UseConfig(self, *_args, **_kwargs):
317 val = apply(htmlhelpc.wxHtmlHelpController_UseConfig,(self,) + _args, _kwargs)
318 return val
319 def ReadCustomization(self, *_args, **_kwargs):
320 val = apply(htmlhelpc.wxHtmlHelpController_ReadCustomization,(self,) + _args, _kwargs)
321 return val
322 def WriteCustomization(self, *_args, **_kwargs):
323 val = apply(htmlhelpc.wxHtmlHelpController_WriteCustomization,(self,) + _args, _kwargs)
324 return val
325 def GetFrame(self, *_args, **_kwargs):
326 val = apply(htmlhelpc.wxHtmlHelpController_GetFrame,(self,) + _args, _kwargs)
327 if val: val = wxHtmlHelpFramePtr(val)
328 return val
329 def __repr__(self):
330 return "<C wxHtmlHelpController instance at %s>" % (self.this,)
331 class wxHtmlHelpController(wxHtmlHelpControllerPtr):
332 def __init__(self,*_args,**_kwargs):
333 self.this = apply(htmlhelpc.new_wxHtmlHelpController,_args,_kwargs)
334 self.thisown = 1
335
336
337
338
339
340
341 #-------------- FUNCTION WRAPPERS ------------------
342
343
344
345 #-------------- VARIABLE WRAPPERS ------------------
346
347 wxID_HTML_PANEL = htmlhelpc.wxID_HTML_PANEL
348 wxID_HTML_BACK = htmlhelpc.wxID_HTML_BACK
349 wxID_HTML_FORWARD = htmlhelpc.wxID_HTML_FORWARD
350 wxID_HTML_TREECTRL = htmlhelpc.wxID_HTML_TREECTRL
351 wxID_HTML_INDEXPAGE = htmlhelpc.wxID_HTML_INDEXPAGE
352 wxID_HTML_INDEXLIST = htmlhelpc.wxID_HTML_INDEXLIST
353 wxID_HTML_NOTEBOOK = htmlhelpc.wxID_HTML_NOTEBOOK
354 wxID_HTML_SEARCHPAGE = htmlhelpc.wxID_HTML_SEARCHPAGE
355 wxID_HTML_SEARCHTEXT = htmlhelpc.wxID_HTML_SEARCHTEXT
356 wxID_HTML_SEARCHLIST = htmlhelpc.wxID_HTML_SEARCHLIST
357 wxID_HTML_SEARCHBUTTON = htmlhelpc.wxID_HTML_SEARCHBUTTON
358 wxID_HTML_SEARCHCHOICE = htmlhelpc.wxID_HTML_SEARCHCHOICE
359 wxID_HTML_HELPFRAME = htmlhelpc.wxID_HTML_HELPFRAME