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