]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/gtk/html.py
added functions to read/write several elements at once (patch 754986)
[wxWidgets.git] / wxPython / src / gtk / html.py
... / ...
CommitLineData
1# This file was created automatically by SWIG.
2import htmlc
3
4from misc import *
5
6from misc2 import *
7
8from windows import *
9
10from gdi import *
11
12from fonts import *
13
14from clip_dnd import *
15
16from events import *
17
18from streams import *
19
20from utils import *
21
22from mdi import *
23
24from frames import *
25
26from stattool import *
27
28from controls import *
29
30from controls2 import *
31
32from windows2 import *
33
34from cmndlgs import *
35
36from windows3 import *
37
38from image import *
39
40from printfw import *
41
42from sizers import *
43
44from filesys import *
45import wx
46class wxHtmlLinkInfoPtr(wxObjectPtr):
47 def __init__(self,this):
48 self.this = this
49 self.thisown = 0
50 def GetHref(self, *_args, **_kwargs):
51 val = htmlc.wxHtmlLinkInfo_GetHref(self, *_args, **_kwargs)
52 return val
53 def GetTarget(self, *_args, **_kwargs):
54 val = htmlc.wxHtmlLinkInfo_GetTarget(self, *_args, **_kwargs)
55 return val
56 def GetEvent(self, *_args, **_kwargs):
57 val = htmlc.wxHtmlLinkInfo_GetEvent(self, *_args, **_kwargs)
58 return val
59 def GetHtmlCell(self, *_args, **_kwargs):
60 val = htmlc.wxHtmlLinkInfo_GetHtmlCell(self, *_args, **_kwargs)
61 if val: val = wxHtmlCellPtr(val)
62 return val
63 def SetEvent(self, *_args, **_kwargs):
64 val = htmlc.wxHtmlLinkInfo_SetEvent(self, *_args, **_kwargs)
65 return val
66 def SetHtmlCell(self, *_args, **_kwargs):
67 val = htmlc.wxHtmlLinkInfo_SetHtmlCell(self, *_args, **_kwargs)
68 return val
69 def __repr__(self):
70 return "<%s.%s instance; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
71class wxHtmlLinkInfo(wxHtmlLinkInfoPtr):
72 def __init__(self,*_args,**_kwargs):
73 self.this = htmlc.new_wxHtmlLinkInfo(*_args,**_kwargs)
74 self.thisown = 1
75
76
77
78
79class wxHtmlTagPtr(wxObjectPtr):
80 def __init__(self,this):
81 self.this = this
82 self.thisown = 0
83 def GetName(self, *_args, **_kwargs):
84 val = htmlc.wxHtmlTag_GetName(self, *_args, **_kwargs)
85 return val
86 def HasParam(self, *_args, **_kwargs):
87 val = htmlc.wxHtmlTag_HasParam(self, *_args, **_kwargs)
88 return val
89 def GetParam(self, *_args, **_kwargs):
90 val = htmlc.wxHtmlTag_GetParam(self, *_args, **_kwargs)
91 return val
92 def GetAllParams(self, *_args, **_kwargs):
93 val = htmlc.wxHtmlTag_GetAllParams(self, *_args, **_kwargs)
94 return val
95 def HasEnding(self, *_args, **_kwargs):
96 val = htmlc.wxHtmlTag_HasEnding(self, *_args, **_kwargs)
97 return val
98 def GetBeginPos(self, *_args, **_kwargs):
99 val = htmlc.wxHtmlTag_GetBeginPos(self, *_args, **_kwargs)
100 return val
101 def GetEndPos1(self, *_args, **_kwargs):
102 val = htmlc.wxHtmlTag_GetEndPos1(self, *_args, **_kwargs)
103 return val
104 def GetEndPos2(self, *_args, **_kwargs):
105 val = htmlc.wxHtmlTag_GetEndPos2(self, *_args, **_kwargs)
106 return val
107 def __repr__(self):
108 return "<%s.%s instance; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
109class wxHtmlTag(wxHtmlTagPtr):
110 def __init__(self,this):
111 self.this = this
112
113
114
115
116class wxHtmlParserPtr(wxObjectPtr):
117 def __init__(self,this):
118 self.this = this
119 self.thisown = 0
120 def SetFS(self, *_args, **_kwargs):
121 val = htmlc.wxHtmlParser_SetFS(self, *_args, **_kwargs)
122 return val
123 def GetFS(self, *_args, **_kwargs):
124 val = htmlc.wxHtmlParser_GetFS(self, *_args, **_kwargs)
125 return val
126 def Parse(self, *_args, **_kwargs):
127 val = htmlc.wxHtmlParser_Parse(self, *_args, **_kwargs)
128 return val
129 def InitParser(self, *_args, **_kwargs):
130 val = htmlc.wxHtmlParser_InitParser(self, *_args, **_kwargs)
131 return val
132 def DoneParser(self, *_args, **_kwargs):
133 val = htmlc.wxHtmlParser_DoneParser(self, *_args, **_kwargs)
134 return val
135 def DoParsing(self, *_args, **_kwargs):
136 val = htmlc.wxHtmlParser_DoParsing(self, *_args, **_kwargs)
137 return val
138 def StopParsing(self, *_args, **_kwargs):
139 val = htmlc.wxHtmlParser_StopParsing(self, *_args, **_kwargs)
140 return val
141 def AddTagHandler(self, *_args, **_kwargs):
142 val = htmlc.wxHtmlParser_AddTagHandler(self, *_args, **_kwargs)
143 return val
144 def GetSource(self, *_args, **_kwargs):
145 val = htmlc.wxHtmlParser_GetSource(self, *_args, **_kwargs)
146 return val
147 def PushTagHandler(self, *_args, **_kwargs):
148 val = htmlc.wxHtmlParser_PushTagHandler(self, *_args, **_kwargs)
149 return val
150 def PopTagHandler(self, *_args, **_kwargs):
151 val = htmlc.wxHtmlParser_PopTagHandler(self, *_args, **_kwargs)
152 return val
153 def __repr__(self):
154 return "<%s.%s instance; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
155class wxHtmlParser(wxHtmlParserPtr):
156 def __init__(self,this):
157 self.this = this
158
159
160
161
162class wxHtmlWinParserPtr(wxHtmlParserPtr):
163 def __init__(self,this):
164 self.this = this
165 self.thisown = 0
166 def SetDC(self, *_args, **_kwargs):
167 val = htmlc.wxHtmlWinParser_SetDC(self, *_args, **_kwargs)
168 return val
169 def GetDC(self, *_args, **_kwargs):
170 val = htmlc.wxHtmlWinParser_GetDC(self, *_args, **_kwargs)
171 return val
172 def GetCharHeight(self, *_args, **_kwargs):
173 val = htmlc.wxHtmlWinParser_GetCharHeight(self, *_args, **_kwargs)
174 return val
175 def GetCharWidth(self, *_args, **_kwargs):
176 val = htmlc.wxHtmlWinParser_GetCharWidth(self, *_args, **_kwargs)
177 return val
178 def GetWindow(self, *_args, **_kwargs):
179 val = htmlc.wxHtmlWinParser_GetWindow(self, *_args, **_kwargs)
180 return val
181 def SetFonts(self, *_args, **_kwargs):
182 val = htmlc.wxHtmlWinParser_SetFonts(self, *_args, **_kwargs)
183 return val
184 def GetContainer(self, *_args, **_kwargs):
185 val = htmlc.wxHtmlWinParser_GetContainer(self, *_args, **_kwargs)
186 if val: val = wxHtmlContainerCellPtr(val)
187 return val
188 def OpenContainer(self, *_args, **_kwargs):
189 val = htmlc.wxHtmlWinParser_OpenContainer(self, *_args, **_kwargs)
190 if val: val = wxHtmlContainerCellPtr(val)
191 return val
192 def SetContainer(self, *_args, **_kwargs):
193 val = htmlc.wxHtmlWinParser_SetContainer(self, *_args, **_kwargs)
194 if val: val = wxHtmlContainerCellPtr(val)
195 return val
196 def CloseContainer(self, *_args, **_kwargs):
197 val = htmlc.wxHtmlWinParser_CloseContainer(self, *_args, **_kwargs)
198 if val: val = wxHtmlContainerCellPtr(val)
199 return val
200 def GetFontSize(self, *_args, **_kwargs):
201 val = htmlc.wxHtmlWinParser_GetFontSize(self, *_args, **_kwargs)
202 return val
203 def SetFontSize(self, *_args, **_kwargs):
204 val = htmlc.wxHtmlWinParser_SetFontSize(self, *_args, **_kwargs)
205 return val
206 def GetFontBold(self, *_args, **_kwargs):
207 val = htmlc.wxHtmlWinParser_GetFontBold(self, *_args, **_kwargs)
208 return val
209 def SetFontBold(self, *_args, **_kwargs):
210 val = htmlc.wxHtmlWinParser_SetFontBold(self, *_args, **_kwargs)
211 return val
212 def GetFontItalic(self, *_args, **_kwargs):
213 val = htmlc.wxHtmlWinParser_GetFontItalic(self, *_args, **_kwargs)
214 return val
215 def SetFontItalic(self, *_args, **_kwargs):
216 val = htmlc.wxHtmlWinParser_SetFontItalic(self, *_args, **_kwargs)
217 return val
218 def GetFontUnderlined(self, *_args, **_kwargs):
219 val = htmlc.wxHtmlWinParser_GetFontUnderlined(self, *_args, **_kwargs)
220 return val
221 def SetFontUnderlined(self, *_args, **_kwargs):
222 val = htmlc.wxHtmlWinParser_SetFontUnderlined(self, *_args, **_kwargs)
223 return val
224 def GetFontFixed(self, *_args, **_kwargs):
225 val = htmlc.wxHtmlWinParser_GetFontFixed(self, *_args, **_kwargs)
226 return val
227 def SetFontFixed(self, *_args, **_kwargs):
228 val = htmlc.wxHtmlWinParser_SetFontFixed(self, *_args, **_kwargs)
229 return val
230 def GetAlign(self, *_args, **_kwargs):
231 val = htmlc.wxHtmlWinParser_GetAlign(self, *_args, **_kwargs)
232 return val
233 def SetAlign(self, *_args, **_kwargs):
234 val = htmlc.wxHtmlWinParser_SetAlign(self, *_args, **_kwargs)
235 return val
236 def GetLinkColor(self, *_args, **_kwargs):
237 val = htmlc.wxHtmlWinParser_GetLinkColor(self, *_args, **_kwargs)
238 if val: val = wxColourPtr(val) ; val.thisown = 1
239 return val
240 def SetLinkColor(self, *_args, **_kwargs):
241 val = htmlc.wxHtmlWinParser_SetLinkColor(self, *_args, **_kwargs)
242 return val
243 def GetActualColor(self, *_args, **_kwargs):
244 val = htmlc.wxHtmlWinParser_GetActualColor(self, *_args, **_kwargs)
245 if val: val = wxColourPtr(val) ; val.thisown = 1
246 return val
247 def SetActualColor(self, *_args, **_kwargs):
248 val = htmlc.wxHtmlWinParser_SetActualColor(self, *_args, **_kwargs)
249 return val
250 def SetLink(self, *_args, **_kwargs):
251 val = htmlc.wxHtmlWinParser_SetLink(self, *_args, **_kwargs)
252 return val
253 def CreateCurrentFont(self, *_args, **_kwargs):
254 val = htmlc.wxHtmlWinParser_CreateCurrentFont(self, *_args, **_kwargs)
255 if val: val = wxFontPtr(val)
256 return val
257 def GetLink(self, *_args, **_kwargs):
258 val = htmlc.wxHtmlWinParser_GetLink(self, *_args, **_kwargs)
259 if val: val = wxHtmlLinkInfoPtr(val) ; val.thisown = 1
260 return val
261 def __repr__(self):
262 return "<%s.%s instance; proxy of C++ wxHtmlWinParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
263class wxHtmlWinParser(wxHtmlWinParserPtr):
264 def __init__(self,*_args,**_kwargs):
265 self.this = htmlc.new_wxHtmlWinParser(*_args,**_kwargs)
266 self.thisown = 1
267
268
269
270
271class wxHtmlTagHandlerPtr(wxObjectPtr):
272 def __init__(self,this):
273 self.this = this
274 self.thisown = 0
275 def _setCallbackInfo(self, *_args, **_kwargs):
276 val = htmlc.wxHtmlTagHandler__setCallbackInfo(self, *_args, **_kwargs)
277 return val
278 def SetParser(self, *_args, **_kwargs):
279 val = htmlc.wxHtmlTagHandler_SetParser(self, *_args, **_kwargs)
280 return val
281 def GetParser(self, *_args, **_kwargs):
282 val = htmlc.wxHtmlTagHandler_GetParser(self, *_args, **_kwargs)
283 if val: val = wxHtmlParserPtr(val)
284 return val
285 def ParseInner(self, *_args, **_kwargs):
286 val = htmlc.wxHtmlTagHandler_ParseInner(self, *_args, **_kwargs)
287 return val
288 def __repr__(self):
289 return "<%s.%s instance; proxy of C++ wxHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
290class wxHtmlTagHandler(wxHtmlTagHandlerPtr):
291 def __init__(self,*_args,**_kwargs):
292 self.this = htmlc.new_wxHtmlTagHandler(*_args,**_kwargs)
293 self.thisown = 1
294 self._setCallbackInfo(self, wxHtmlTagHandler)
295
296
297
298
299class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr):
300 def __init__(self,this):
301 self.this = this
302 self.thisown = 0
303 def _setCallbackInfo(self, *_args, **_kwargs):
304 val = htmlc.wxHtmlWinTagHandler__setCallbackInfo(self, *_args, **_kwargs)
305 return val
306 def SetParser(self, *_args, **_kwargs):
307 val = htmlc.wxHtmlWinTagHandler_SetParser(self, *_args, **_kwargs)
308 return val
309 def GetParser(self, *_args, **_kwargs):
310 val = htmlc.wxHtmlWinTagHandler_GetParser(self, *_args, **_kwargs)
311 if val: val = wxHtmlWinParserPtr(val)
312 return val
313 def ParseInner(self, *_args, **_kwargs):
314 val = htmlc.wxHtmlWinTagHandler_ParseInner(self, *_args, **_kwargs)
315 return val
316 def __repr__(self):
317 return "<%s.%s instance; proxy of C++ wxHtmlWinTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
318class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr):
319 def __init__(self,*_args,**_kwargs):
320 self.this = htmlc.new_wxHtmlWinTagHandler(*_args,**_kwargs)
321 self.thisown = 1
322 self._setCallbackInfo(self, wxHtmlWinTagHandler)
323
324
325
326
327class wxHtmlCellPtr(wxObjectPtr):
328 def __init__(self,this):
329 self.this = this
330 self.thisown = 0
331 def GetPosX(self, *_args, **_kwargs):
332 val = htmlc.wxHtmlCell_GetPosX(self, *_args, **_kwargs)
333 return val
334 def GetPosY(self, *_args, **_kwargs):
335 val = htmlc.wxHtmlCell_GetPosY(self, *_args, **_kwargs)
336 return val
337 def GetWidth(self, *_args, **_kwargs):
338 val = htmlc.wxHtmlCell_GetWidth(self, *_args, **_kwargs)
339 return val
340 def GetHeight(self, *_args, **_kwargs):
341 val = htmlc.wxHtmlCell_GetHeight(self, *_args, **_kwargs)
342 return val
343 def GetDescent(self, *_args, **_kwargs):
344 val = htmlc.wxHtmlCell_GetDescent(self, *_args, **_kwargs)
345 return val
346 def GetLink(self, *_args, **_kwargs):
347 val = htmlc.wxHtmlCell_GetLink(self, *_args, **_kwargs)
348 if val: val = wxHtmlLinkInfoPtr(val)
349 return val
350 def GetNext(self, *_args, **_kwargs):
351 val = htmlc.wxHtmlCell_GetNext(self, *_args, **_kwargs)
352 if val: val = wxHtmlCellPtr(val)
353 return val
354 def GetParent(self, *_args, **_kwargs):
355 val = htmlc.wxHtmlCell_GetParent(self, *_args, **_kwargs)
356 if val: val = wxHtmlContainerCellPtr(val)
357 return val
358 def SetLink(self, *_args, **_kwargs):
359 val = htmlc.wxHtmlCell_SetLink(self, *_args, **_kwargs)
360 return val
361 def SetNext(self, *_args, **_kwargs):
362 val = htmlc.wxHtmlCell_SetNext(self, *_args, **_kwargs)
363 return val
364 def SetParent(self, *_args, **_kwargs):
365 val = htmlc.wxHtmlCell_SetParent(self, *_args, **_kwargs)
366 return val
367 def SetPos(self, *_args, **_kwargs):
368 val = htmlc.wxHtmlCell_SetPos(self, *_args, **_kwargs)
369 return val
370 def Layout(self, *_args, **_kwargs):
371 val = htmlc.wxHtmlCell_Layout(self, *_args, **_kwargs)
372 return val
373 def Draw(self, *_args, **_kwargs):
374 val = htmlc.wxHtmlCell_Draw(self, *_args, **_kwargs)
375 return val
376 def DrawInvisible(self, *_args, **_kwargs):
377 val = htmlc.wxHtmlCell_DrawInvisible(self, *_args, **_kwargs)
378 return val
379 def Find(self, *_args, **_kwargs):
380 val = htmlc.wxHtmlCell_Find(self, *_args, **_kwargs)
381 if val: val = wxHtmlCellPtr(val)
382 return val
383 def AdjustPagebreak(self, *_args, **_kwargs):
384 val = htmlc.wxHtmlCell_AdjustPagebreak(self, *_args, **_kwargs)
385 return val
386 def SetCanLiveOnPagebreak(self, *_args, **_kwargs):
387 val = htmlc.wxHtmlCell_SetCanLiveOnPagebreak(self, *_args, **_kwargs)
388 return val
389 def __repr__(self):
390 return "<%s.%s instance; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
391class wxHtmlCell(wxHtmlCellPtr):
392 def __init__(self,*_args,**_kwargs):
393 self.this = htmlc.new_wxHtmlCell(*_args,**_kwargs)
394 self.thisown = 1
395
396
397
398
399class wxHtmlWordCellPtr(wxHtmlCellPtr):
400 def __init__(self,this):
401 self.this = this
402 self.thisown = 0
403 def __repr__(self):
404 return "<%s.%s instance; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
405class wxHtmlWordCell(wxHtmlWordCellPtr):
406 def __init__(self,*_args,**_kwargs):
407 self.this = htmlc.new_wxHtmlWordCell(*_args,**_kwargs)
408 self.thisown = 1
409
410
411
412
413class wxHtmlContainerCellPtr(wxHtmlCellPtr):
414 def __init__(self,this):
415 self.this = this
416 self.thisown = 0
417 def InsertCell(self, *_args, **_kwargs):
418 val = htmlc.wxHtmlContainerCell_InsertCell(self, *_args, **_kwargs)
419 return val
420 def SetAlignHor(self, *_args, **_kwargs):
421 val = htmlc.wxHtmlContainerCell_SetAlignHor(self, *_args, **_kwargs)
422 return val
423 def GetAlignHor(self, *_args, **_kwargs):
424 val = htmlc.wxHtmlContainerCell_GetAlignHor(self, *_args, **_kwargs)
425 return val
426 def SetAlignVer(self, *_args, **_kwargs):
427 val = htmlc.wxHtmlContainerCell_SetAlignVer(self, *_args, **_kwargs)
428 return val
429 def GetAlignVer(self, *_args, **_kwargs):
430 val = htmlc.wxHtmlContainerCell_GetAlignVer(self, *_args, **_kwargs)
431 return val
432 def SetIndent(self, *_args, **_kwargs):
433 val = htmlc.wxHtmlContainerCell_SetIndent(self, *_args, **_kwargs)
434 return val
435 def GetIndent(self, *_args, **_kwargs):
436 val = htmlc.wxHtmlContainerCell_GetIndent(self, *_args, **_kwargs)
437 return val
438 def GetIndentUnits(self, *_args, **_kwargs):
439 val = htmlc.wxHtmlContainerCell_GetIndentUnits(self, *_args, **_kwargs)
440 return val
441 def SetAlign(self, *_args, **_kwargs):
442 val = htmlc.wxHtmlContainerCell_SetAlign(self, *_args, **_kwargs)
443 return val
444 def SetWidthFloat(self, *_args, **_kwargs):
445 val = htmlc.wxHtmlContainerCell_SetWidthFloat(self, *_args, **_kwargs)
446 return val
447 def SetWidthFloatFromTag(self, *_args, **_kwargs):
448 val = htmlc.wxHtmlContainerCell_SetWidthFloatFromTag(self, *_args, **_kwargs)
449 return val
450 def SetMinHeight(self, *_args, **_kwargs):
451 val = htmlc.wxHtmlContainerCell_SetMinHeight(self, *_args, **_kwargs)
452 return val
453 def SetBackgroundColour(self, *_args, **_kwargs):
454 val = htmlc.wxHtmlContainerCell_SetBackgroundColour(self, *_args, **_kwargs)
455 return val
456 def GetBackgroundColour(self, *_args, **_kwargs):
457 val = htmlc.wxHtmlContainerCell_GetBackgroundColour(self, *_args, **_kwargs)
458 if val: val = wxColourPtr(val) ; val.thisown = 1
459 return val
460 def SetBorder(self, *_args, **_kwargs):
461 val = htmlc.wxHtmlContainerCell_SetBorder(self, *_args, **_kwargs)
462 return val
463 def GetFirstCell(self, *_args, **_kwargs):
464 val = htmlc.wxHtmlContainerCell_GetFirstCell(self, *_args, **_kwargs)
465 if val: val = wxHtmlCellPtr(val)
466 return val
467 def __repr__(self):
468 return "<%s.%s instance; proxy of C++ wxHtmlContainerCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
469class wxHtmlContainerCell(wxHtmlContainerCellPtr):
470 def __init__(self,*_args,**_kwargs):
471 self.this = htmlc.new_wxHtmlContainerCell(*_args,**_kwargs)
472 self.thisown = 1
473
474
475
476
477class wxHtmlColourCellPtr(wxHtmlCellPtr):
478 def __init__(self,this):
479 self.this = this
480 self.thisown = 0
481 def __repr__(self):
482 return "<%s.%s instance; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
483class wxHtmlColourCell(wxHtmlColourCellPtr):
484 def __init__(self,*_args,**_kwargs):
485 self.this = htmlc.new_wxHtmlColourCell(*_args,**_kwargs)
486 self.thisown = 1
487
488
489
490
491class wxHtmlFontCellPtr(wxHtmlCellPtr):
492 def __init__(self,this):
493 self.this = this
494 self.thisown = 0
495 def __repr__(self):
496 return "<%s.%s instance; proxy of C++ wxHtmlFontCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
497class wxHtmlFontCell(wxHtmlFontCellPtr):
498 def __init__(self,*_args,**_kwargs):
499 self.this = htmlc.new_wxHtmlFontCell(*_args,**_kwargs)
500 self.thisown = 1
501
502
503
504
505class wxHtmlWidgetCellPtr(wxHtmlCellPtr):
506 def __init__(self,this):
507 self.this = this
508 self.thisown = 0
509 def __repr__(self):
510 return "<%s.%s instance; proxy of C++ wxHtmlWidgetCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
511class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
512 def __init__(self,*_args,**_kwargs):
513 self.this = htmlc.new_wxHtmlWidgetCell(*_args,**_kwargs)
514 self.thisown = 1
515
516
517
518
519class wxHtmlFilterPtr(wxObjectPtr):
520 def __init__(self,this):
521 self.this = this
522 self.thisown = 0
523 def _setCallbackInfo(self, *_args, **_kwargs):
524 val = htmlc.wxHtmlFilter__setCallbackInfo(self, *_args, **_kwargs)
525 return val
526 def __repr__(self):
527 return "<%s.%s instance; proxy of C++ wxHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
528class wxHtmlFilter(wxHtmlFilterPtr):
529 def __init__(self,*_args,**_kwargs):
530 self.this = htmlc.new_wxHtmlFilter(*_args,**_kwargs)
531 self.thisown = 1
532 self._setCallbackInfo(self, wxHtmlFilter)
533
534
535
536
537class wxHtmlWindowPtr(wxScrolledWindowPtr):
538 def __init__(self,this):
539 self.this = this
540 self.thisown = 0
541 def Create(self, *_args, **_kwargs):
542 val = htmlc.wxHtmlWindow_Create(self, *_args, **_kwargs)
543 return val
544 def _setCallbackInfo(self, *_args, **_kwargs):
545 val = htmlc.wxHtmlWindow__setCallbackInfo(self, *_args, **_kwargs)
546 return val
547 def SetPage(self, *_args, **_kwargs):
548 val = htmlc.wxHtmlWindow_SetPage(self, *_args, **_kwargs)
549 return val
550 def LoadPage(self, *_args, **_kwargs):
551 val = htmlc.wxHtmlWindow_LoadPage(self, *_args, **_kwargs)
552 return val
553 def LoadFile(self, *_args, **_kwargs):
554 val = htmlc.wxHtmlWindow_LoadFile(self, *_args, **_kwargs)
555 return val
556 def AppendToPage(self, *_args, **_kwargs):
557 val = htmlc.wxHtmlWindow_AppendToPage(self, *_args, **_kwargs)
558 return val
559 def GetOpenedPage(self, *_args, **_kwargs):
560 val = htmlc.wxHtmlWindow_GetOpenedPage(self, *_args, **_kwargs)
561 return val
562 def GetOpenedAnchor(self, *_args, **_kwargs):
563 val = htmlc.wxHtmlWindow_GetOpenedAnchor(self, *_args, **_kwargs)
564 return val
565 def GetOpenedPageTitle(self, *_args, **_kwargs):
566 val = htmlc.wxHtmlWindow_GetOpenedPageTitle(self, *_args, **_kwargs)
567 return val
568 def SetRelatedFrame(self, *_args, **_kwargs):
569 val = htmlc.wxHtmlWindow_SetRelatedFrame(self, *_args, **_kwargs)
570 return val
571 def GetRelatedFrame(self, *_args, **_kwargs):
572 val = htmlc.wxHtmlWindow_GetRelatedFrame(self, *_args, **_kwargs)
573 return val
574 def SetRelatedStatusBar(self, *_args, **_kwargs):
575 val = htmlc.wxHtmlWindow_SetRelatedStatusBar(self, *_args, **_kwargs)
576 return val
577 def SetFonts(self, *_args, **_kwargs):
578 val = htmlc.wxHtmlWindow_SetFonts(self, *_args, **_kwargs)
579 return val
580 def SetTitle(self, *_args, **_kwargs):
581 val = htmlc.wxHtmlWindow_SetTitle(self, *_args, **_kwargs)
582 return val
583 def SetBorders(self, *_args, **_kwargs):
584 val = htmlc.wxHtmlWindow_SetBorders(self, *_args, **_kwargs)
585 return val
586 def ReadCustomization(self, *_args, **_kwargs):
587 val = htmlc.wxHtmlWindow_ReadCustomization(self, *_args, **_kwargs)
588 return val
589 def WriteCustomization(self, *_args, **_kwargs):
590 val = htmlc.wxHtmlWindow_WriteCustomization(self, *_args, **_kwargs)
591 return val
592 def HistoryBack(self, *_args, **_kwargs):
593 val = htmlc.wxHtmlWindow_HistoryBack(self, *_args, **_kwargs)
594 return val
595 def HistoryForward(self, *_args, **_kwargs):
596 val = htmlc.wxHtmlWindow_HistoryForward(self, *_args, **_kwargs)
597 return val
598 def HistoryCanBack(self, *_args, **_kwargs):
599 val = htmlc.wxHtmlWindow_HistoryCanBack(self, *_args, **_kwargs)
600 return val
601 def HistoryCanForward(self, *_args, **_kwargs):
602 val = htmlc.wxHtmlWindow_HistoryCanForward(self, *_args, **_kwargs)
603 return val
604 def HistoryClear(self, *_args, **_kwargs):
605 val = htmlc.wxHtmlWindow_HistoryClear(self, *_args, **_kwargs)
606 return val
607 def GetInternalRepresentation(self, *_args, **_kwargs):
608 val = htmlc.wxHtmlWindow_GetInternalRepresentation(self, *_args, **_kwargs)
609 if val: val = wxHtmlContainerCellPtr(val)
610 return val
611 def GetParser(self, *_args, **_kwargs):
612 val = htmlc.wxHtmlWindow_GetParser(self, *_args, **_kwargs)
613 if val: val = wxHtmlWinParserPtr(val)
614 return val
615 def ScrollToAnchor(self, *_args, **_kwargs):
616 val = htmlc.wxHtmlWindow_ScrollToAnchor(self, *_args, **_kwargs)
617 return val
618 def HasAnchor(self, *_args, **_kwargs):
619 val = htmlc.wxHtmlWindow_HasAnchor(self, *_args, **_kwargs)
620 return val
621 def base_OnLinkClicked(self, *_args, **_kwargs):
622 val = htmlc.wxHtmlWindow_base_OnLinkClicked(self, *_args, **_kwargs)
623 return val
624 def base_OnSetTitle(self, *_args, **_kwargs):
625 val = htmlc.wxHtmlWindow_base_OnSetTitle(self, *_args, **_kwargs)
626 return val
627 def base_OnCellMouseHover(self, *_args, **_kwargs):
628 val = htmlc.wxHtmlWindow_base_OnCellMouseHover(self, *_args, **_kwargs)
629 return val
630 def base_OnCellClicked(self, *_args, **_kwargs):
631 val = htmlc.wxHtmlWindow_base_OnCellClicked(self, *_args, **_kwargs)
632 return val
633 def __repr__(self):
634 return "<%s.%s instance; proxy of C++ wxHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
635class wxHtmlWindow(wxHtmlWindowPtr):
636 def __init__(self,*_args,**_kwargs):
637 self.this = htmlc.new_wxHtmlWindow(*_args,**_kwargs)
638 self.thisown = 1
639 self._setCallbackInfo(self, wxHtmlWindow)
640 self._setOORInfo(self)
641
642
643
644def wxPreHtmlWindow(*_args,**_kwargs):
645 val = wxHtmlWindowPtr(htmlc.new_wxPreHtmlWindow(*_args,**_kwargs))
646 val.thisown = 1
647 val._setOORInfo(val)
648 return val
649
650
651class wxHtmlDCRendererPtr(wxObjectPtr):
652 def __init__(self,this):
653 self.this = this
654 self.thisown = 0
655 def __del__(self, delfunc=htmlc.delete_wxHtmlDCRenderer):
656 if self.thisown == 1:
657 try:
658 delfunc(self)
659 except:
660 pass
661 def SetDC(self, *_args, **_kwargs):
662 val = htmlc.wxHtmlDCRenderer_SetDC(self, *_args, **_kwargs)
663 return val
664 def SetSize(self, *_args, **_kwargs):
665 val = htmlc.wxHtmlDCRenderer_SetSize(self, *_args, **_kwargs)
666 return val
667 def SetHtmlText(self, *_args, **_kwargs):
668 val = htmlc.wxHtmlDCRenderer_SetHtmlText(self, *_args, **_kwargs)
669 return val
670 def SetFonts(self, *_args, **_kwargs):
671 val = htmlc.wxHtmlDCRenderer_SetFonts(self, *_args, **_kwargs)
672 return val
673 def Render(self, *_args, **_kwargs):
674 val = htmlc.wxHtmlDCRenderer_Render(self, *_args, **_kwargs)
675 return val
676 def GetTotalHeight(self, *_args, **_kwargs):
677 val = htmlc.wxHtmlDCRenderer_GetTotalHeight(self, *_args, **_kwargs)
678 return val
679 def __repr__(self):
680 return "<%s.%s instance; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
681class wxHtmlDCRenderer(wxHtmlDCRendererPtr):
682 def __init__(self,*_args,**_kwargs):
683 self.this = htmlc.new_wxHtmlDCRenderer(*_args,**_kwargs)
684 self.thisown = 1
685
686
687
688
689class wxHtmlPrintoutPtr(wxPrintoutPtr):
690 def __init__(self,this):
691 self.this = this
692 self.thisown = 0
693 def SetHtmlText(self, *_args, **_kwargs):
694 val = htmlc.wxHtmlPrintout_SetHtmlText(self, *_args, **_kwargs)
695 return val
696 def SetHtmlFile(self, *_args, **_kwargs):
697 val = htmlc.wxHtmlPrintout_SetHtmlFile(self, *_args, **_kwargs)
698 return val
699 def SetHeader(self, *_args, **_kwargs):
700 val = htmlc.wxHtmlPrintout_SetHeader(self, *_args, **_kwargs)
701 return val
702 def SetFooter(self, *_args, **_kwargs):
703 val = htmlc.wxHtmlPrintout_SetFooter(self, *_args, **_kwargs)
704 return val
705 def SetFonts(self, *_args, **_kwargs):
706 val = htmlc.wxHtmlPrintout_SetFonts(self, *_args, **_kwargs)
707 return val
708 def SetMargins(self, *_args, **_kwargs):
709 val = htmlc.wxHtmlPrintout_SetMargins(self, *_args, **_kwargs)
710 return val
711 def __repr__(self):
712 return "<%s.%s instance; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
713class wxHtmlPrintout(wxHtmlPrintoutPtr):
714 def __init__(self,*_args,**_kwargs):
715 self.this = htmlc.new_wxHtmlPrintout(*_args,**_kwargs)
716 self.thisown = 1
717
718
719
720
721class wxHtmlEasyPrintingPtr(wxObjectPtr):
722 def __init__(self,this):
723 self.this = this
724 self.thisown = 0
725 def __del__(self, delfunc=htmlc.delete_wxHtmlEasyPrinting):
726 if self.thisown == 1:
727 try:
728 delfunc(self)
729 except:
730 pass
731 def PreviewFile(self, *_args, **_kwargs):
732 val = htmlc.wxHtmlEasyPrinting_PreviewFile(self, *_args, **_kwargs)
733 return val
734 def PreviewText(self, *_args, **_kwargs):
735 val = htmlc.wxHtmlEasyPrinting_PreviewText(self, *_args, **_kwargs)
736 return val
737 def PrintFile(self, *_args, **_kwargs):
738 val = htmlc.wxHtmlEasyPrinting_PrintFile(self, *_args, **_kwargs)
739 return val
740 def PrintText(self, *_args, **_kwargs):
741 val = htmlc.wxHtmlEasyPrinting_PrintText(self, *_args, **_kwargs)
742 return val
743 def PrinterSetup(self, *_args, **_kwargs):
744 val = htmlc.wxHtmlEasyPrinting_PrinterSetup(self, *_args, **_kwargs)
745 return val
746 def PageSetup(self, *_args, **_kwargs):
747 val = htmlc.wxHtmlEasyPrinting_PageSetup(self, *_args, **_kwargs)
748 return val
749 def SetHeader(self, *_args, **_kwargs):
750 val = htmlc.wxHtmlEasyPrinting_SetHeader(self, *_args, **_kwargs)
751 return val
752 def SetFooter(self, *_args, **_kwargs):
753 val = htmlc.wxHtmlEasyPrinting_SetFooter(self, *_args, **_kwargs)
754 return val
755 def SetFonts(self, *_args, **_kwargs):
756 val = htmlc.wxHtmlEasyPrinting_SetFonts(self, *_args, **_kwargs)
757 return val
758 def GetPrintData(self, *_args, **_kwargs):
759 val = htmlc.wxHtmlEasyPrinting_GetPrintData(self, *_args, **_kwargs)
760 if val: val = wxPrintDataPtr(val)
761 return val
762 def GetPageSetupData(self, *_args, **_kwargs):
763 val = htmlc.wxHtmlEasyPrinting_GetPageSetupData(self, *_args, **_kwargs)
764 if val: val = wxPageSetupDialogDataPtr(val)
765 return val
766 def __repr__(self):
767 return "<%s.%s instance; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
768class wxHtmlEasyPrinting(wxHtmlEasyPrintingPtr):
769 def __init__(self,*_args,**_kwargs):
770 self.this = htmlc.new_wxHtmlEasyPrinting(*_args,**_kwargs)
771 self.thisown = 1
772
773
774
775
776
777
778#-------------- FUNCTION WRAPPERS ------------------
779
780wxHtmlWinParser_AddTagHandler = htmlc.wxHtmlWinParser_AddTagHandler
781
782wxHtmlWindow_AddFilter = htmlc.wxHtmlWindow_AddFilter
783
784
785
786#-------------- VARIABLE WRAPPERS ------------------
787
788wxHTML_ALIGN_LEFT = htmlc.wxHTML_ALIGN_LEFT
789wxHTML_ALIGN_CENTER = htmlc.wxHTML_ALIGN_CENTER
790wxHTML_ALIGN_RIGHT = htmlc.wxHTML_ALIGN_RIGHT
791wxHTML_ALIGN_BOTTOM = htmlc.wxHTML_ALIGN_BOTTOM
792wxHTML_ALIGN_TOP = htmlc.wxHTML_ALIGN_TOP
793wxHTML_CLR_FOREGROUND = htmlc.wxHTML_CLR_FOREGROUND
794wxHTML_CLR_BACKGROUND = htmlc.wxHTML_CLR_BACKGROUND
795wxHTML_UNITS_PIXELS = htmlc.wxHTML_UNITS_PIXELS
796wxHTML_UNITS_PERCENT = htmlc.wxHTML_UNITS_PERCENT
797wxHTML_INDENT_LEFT = htmlc.wxHTML_INDENT_LEFT
798wxHTML_INDENT_RIGHT = htmlc.wxHTML_INDENT_RIGHT
799wxHTML_INDENT_TOP = htmlc.wxHTML_INDENT_TOP
800wxHTML_INDENT_BOTTOM = htmlc.wxHTML_INDENT_BOTTOM
801wxHTML_INDENT_HORIZONTAL = htmlc.wxHTML_INDENT_HORIZONTAL
802wxHTML_INDENT_VERTICAL = htmlc.wxHTML_INDENT_VERTICAL
803wxHTML_INDENT_ALL = htmlc.wxHTML_INDENT_ALL
804wxHTML_COND_ISANCHOR = htmlc.wxHTML_COND_ISANCHOR
805wxHTML_COND_ISIMAGEMAP = htmlc.wxHTML_COND_ISIMAGEMAP
806wxHTML_COND_USER = htmlc.wxHTML_COND_USER
807wxHW_SCROLLBAR_NEVER = htmlc.wxHW_SCROLLBAR_NEVER
808wxHW_SCROLLBAR_AUTO = htmlc.wxHW_SCROLLBAR_AUTO
809wxHTML_OPEN = htmlc.wxHTML_OPEN
810wxHTML_BLOCK = htmlc.wxHTML_BLOCK
811wxHTML_REDIRECT = htmlc.wxHTML_REDIRECT
812wxHTML_URL_PAGE = htmlc.wxHTML_URL_PAGE
813wxHTML_URL_IMAGE = htmlc.wxHTML_URL_IMAGE
814wxHTML_URL_OTHER = htmlc.wxHTML_URL_OTHER
815wxPAGE_ODD = htmlc.wxPAGE_ODD
816wxPAGE_EVEN = htmlc.wxPAGE_EVEN
817wxPAGE_ALL = htmlc.wxPAGE_ALL
818
819
820#-------------- USER INCLUDE -----------------------
821
822
823# Stuff these names into the wx namespace so wxPyConstructObject can find them
824import wx
825wx.wxHtmlTagPtr = wxHtmlTagPtr
826wx.wxHtmlParserPtr = wxHtmlParserPtr
827wx.wxHtmlWinParserPtr = wxHtmlWinParserPtr
828wx.wxHtmlTagHandlerPtr = wxHtmlTagHandlerPtr
829wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr
830wx.wxHtmlCellPtr = wxHtmlCellPtr
831wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr
832wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr
833wx.wxHtmlWindowPtr = wxHtmlWindowPtr
834wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr
835wx.wxHtmlFilterPtr = wxHtmlFilterPtr
836