]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/html/html.py
Added wxPython support of new HTML Printing classes.
[wxWidgets.git] / utils / wxPython / modules / html / 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 events import *
13
14 from mdi import *
15
16 from frames import *
17
18 from stattool import *
19
20 from controls import *
21
22 from controls2 import *
23
24 from windows2 import *
25
26 from cmndlgs import *
27
28 from windows3 import *
29
30 from image import *
31
32 from printfw import *
33
34 from sizers import *
35 import wx
36 widget = htmlc
37 class wxHtmlTagPtr :
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
41 def GetName(self, *_args, **_kwargs):
42 val = apply(htmlc.wxHtmlTag_GetName,(self,) + _args, _kwargs)
43 return val
44 def HasParam(self, *_args, **_kwargs):
45 val = apply(htmlc.wxHtmlTag_HasParam,(self,) + _args, _kwargs)
46 return val
47 def GetParam(self, *_args, **_kwargs):
48 val = apply(htmlc.wxHtmlTag_GetParam,(self,) + _args, _kwargs)
49 return val
50 def GetAllParams(self, *_args, **_kwargs):
51 val = apply(htmlc.wxHtmlTag_GetAllParams,(self,) + _args, _kwargs)
52 return val
53 def IsEnding(self, *_args, **_kwargs):
54 val = apply(htmlc.wxHtmlTag_IsEnding,(self,) + _args, _kwargs)
55 return val
56 def HasEnding(self, *_args, **_kwargs):
57 val = apply(htmlc.wxHtmlTag_HasEnding,(self,) + _args, _kwargs)
58 return val
59 def GetBeginPos(self, *_args, **_kwargs):
60 val = apply(htmlc.wxHtmlTag_GetBeginPos,(self,) + _args, _kwargs)
61 return val
62 def GetEndPos1(self, *_args, **_kwargs):
63 val = apply(htmlc.wxHtmlTag_GetEndPos1,(self,) + _args, _kwargs)
64 return val
65 def GetEndPos2(self, *_args, **_kwargs):
66 val = apply(htmlc.wxHtmlTag_GetEndPos2,(self,) + _args, _kwargs)
67 return val
68 def __repr__(self):
69 return "<C wxHtmlTag instance at %s>" % (self.this,)
70 class wxHtmlTag(wxHtmlTagPtr):
71 def __init__(self,this):
72 self.this = this
73
74
75
76
77 class wxHtmlParserPtr :
78 def __init__(self,this):
79 self.this = this
80 self.thisown = 0
81 def SetFS(self, *_args, **_kwargs):
82 val = apply(htmlc.wxHtmlParser_SetFS,(self,) + _args, _kwargs)
83 return val
84 def GetFS(self, *_args, **_kwargs):
85 val = apply(htmlc.wxHtmlParser_GetFS,(self,) + _args, _kwargs)
86 return val
87 def Parse(self, *_args, **_kwargs):
88 val = apply(htmlc.wxHtmlParser_Parse,(self,) + _args, _kwargs)
89 return val
90 def InitParser(self, *_args, **_kwargs):
91 val = apply(htmlc.wxHtmlParser_InitParser,(self,) + _args, _kwargs)
92 return val
93 def DoneParser(self, *_args, **_kwargs):
94 val = apply(htmlc.wxHtmlParser_DoneParser,(self,) + _args, _kwargs)
95 return val
96 def DoParsing(self, *_args, **_kwargs):
97 val = apply(htmlc.wxHtmlParser_DoParsing,(self,) + _args, _kwargs)
98 return val
99 def AddTagHandler(self, *_args, **_kwargs):
100 val = apply(htmlc.wxHtmlParser_AddTagHandler,(self,) + _args, _kwargs)
101 return val
102 def GetSource(self, *_args, **_kwargs):
103 val = apply(htmlc.wxHtmlParser_GetSource,(self,) + _args, _kwargs)
104 return val
105 def PushTagHandler(self, *_args, **_kwargs):
106 val = apply(htmlc.wxHtmlParser_PushTagHandler,(self,) + _args, _kwargs)
107 return val
108 def PopTagHandler(self, *_args, **_kwargs):
109 val = apply(htmlc.wxHtmlParser_PopTagHandler,(self,) + _args, _kwargs)
110 return val
111 def __repr__(self):
112 return "<C wxHtmlParser instance at %s>" % (self.this,)
113 class wxHtmlParser(wxHtmlParserPtr):
114 def __init__(self,this):
115 self.this = this
116
117
118
119
120 class wxHtmlWinParserPtr(wxHtmlParserPtr):
121 def __init__(self,this):
122 self.this = this
123 self.thisown = 0
124 def SetDC(self, *_args, **_kwargs):
125 val = apply(htmlc.wxHtmlWinParser_SetDC,(self,) + _args, _kwargs)
126 return val
127 def GetDC(self, *_args, **_kwargs):
128 val = apply(htmlc.wxHtmlWinParser_GetDC,(self,) + _args, _kwargs)
129 if val: val = wxDCPtr(val)
130 return val
131 def GetCharHeight(self, *_args, **_kwargs):
132 val = apply(htmlc.wxHtmlWinParser_GetCharHeight,(self,) + _args, _kwargs)
133 return val
134 def GetCharWidth(self, *_args, **_kwargs):
135 val = apply(htmlc.wxHtmlWinParser_GetCharWidth,(self,) + _args, _kwargs)
136 return val
137 def GetWindow(self, *_args, **_kwargs):
138 val = apply(htmlc.wxHtmlWinParser_GetWindow,(self,) + _args, _kwargs)
139 if val: val = wxWindowPtr(val)
140 return val
141 def SetFonts(self, *_args, **_kwargs):
142 val = apply(htmlc.wxHtmlWinParser_SetFonts,(self,) + _args, _kwargs)
143 return val
144 def GetContainer(self, *_args, **_kwargs):
145 val = apply(htmlc.wxHtmlWinParser_GetContainer,(self,) + _args, _kwargs)
146 if val: val = wxHtmlContainerCellPtr(val)
147 return val
148 def OpenContainer(self, *_args, **_kwargs):
149 val = apply(htmlc.wxHtmlWinParser_OpenContainer,(self,) + _args, _kwargs)
150 if val: val = wxHtmlContainerCellPtr(val)
151 return val
152 def SetContainer(self, *_args, **_kwargs):
153 val = apply(htmlc.wxHtmlWinParser_SetContainer,(self,) + _args, _kwargs)
154 if val: val = wxHtmlContainerCellPtr(val)
155 return val
156 def CloseContainer(self, *_args, **_kwargs):
157 val = apply(htmlc.wxHtmlWinParser_CloseContainer,(self,) + _args, _kwargs)
158 if val: val = wxHtmlContainerCellPtr(val)
159 return val
160 def GetFontSize(self, *_args, **_kwargs):
161 val = apply(htmlc.wxHtmlWinParser_GetFontSize,(self,) + _args, _kwargs)
162 return val
163 def SetFontSize(self, *_args, **_kwargs):
164 val = apply(htmlc.wxHtmlWinParser_SetFontSize,(self,) + _args, _kwargs)
165 return val
166 def GetFontBold(self, *_args, **_kwargs):
167 val = apply(htmlc.wxHtmlWinParser_GetFontBold,(self,) + _args, _kwargs)
168 return val
169 def SetFontBold(self, *_args, **_kwargs):
170 val = apply(htmlc.wxHtmlWinParser_SetFontBold,(self,) + _args, _kwargs)
171 return val
172 def GetFontItalic(self, *_args, **_kwargs):
173 val = apply(htmlc.wxHtmlWinParser_GetFontItalic,(self,) + _args, _kwargs)
174 return val
175 def SetFontItalic(self, *_args, **_kwargs):
176 val = apply(htmlc.wxHtmlWinParser_SetFontItalic,(self,) + _args, _kwargs)
177 return val
178 def GetFontUnderlined(self, *_args, **_kwargs):
179 val = apply(htmlc.wxHtmlWinParser_GetFontUnderlined,(self,) + _args, _kwargs)
180 return val
181 def SetFontUnderlined(self, *_args, **_kwargs):
182 val = apply(htmlc.wxHtmlWinParser_SetFontUnderlined,(self,) + _args, _kwargs)
183 return val
184 def GetFontFixed(self, *_args, **_kwargs):
185 val = apply(htmlc.wxHtmlWinParser_GetFontFixed,(self,) + _args, _kwargs)
186 return val
187 def SetFontFixed(self, *_args, **_kwargs):
188 val = apply(htmlc.wxHtmlWinParser_SetFontFixed,(self,) + _args, _kwargs)
189 return val
190 def GetAlign(self, *_args, **_kwargs):
191 val = apply(htmlc.wxHtmlWinParser_GetAlign,(self,) + _args, _kwargs)
192 return val
193 def SetAlign(self, *_args, **_kwargs):
194 val = apply(htmlc.wxHtmlWinParser_SetAlign,(self,) + _args, _kwargs)
195 return val
196 def GetLinkColor(self, *_args, **_kwargs):
197 val = apply(htmlc.wxHtmlWinParser_GetLinkColor,(self,) + _args, _kwargs)
198 if val: val = wxColourPtr(val)
199 return val
200 def SetLinkColor(self, *_args, **_kwargs):
201 val = apply(htmlc.wxHtmlWinParser_SetLinkColor,(self,) + _args, _kwargs)
202 return val
203 def GetActualColor(self, *_args, **_kwargs):
204 val = apply(htmlc.wxHtmlWinParser_GetActualColor,(self,) + _args, _kwargs)
205 if val: val = wxColourPtr(val)
206 return val
207 def SetActualColor(self, *_args, **_kwargs):
208 val = apply(htmlc.wxHtmlWinParser_SetActualColor,(self,) + _args, _kwargs)
209 return val
210 def GetLink(self, *_args, **_kwargs):
211 val = apply(htmlc.wxHtmlWinParser_GetLink,(self,) + _args, _kwargs)
212 return val
213 def SetLink(self, *_args, **_kwargs):
214 val = apply(htmlc.wxHtmlWinParser_SetLink,(self,) + _args, _kwargs)
215 return val
216 def CreateCurrentFont(self, *_args, **_kwargs):
217 val = apply(htmlc.wxHtmlWinParser_CreateCurrentFont,(self,) + _args, _kwargs)
218 if val: val = wxFontPtr(val)
219 return val
220 def __repr__(self):
221 return "<C wxHtmlWinParser instance at %s>" % (self.this,)
222 class wxHtmlWinParser(wxHtmlWinParserPtr):
223 def __init__(self,*_args,**_kwargs):
224 self.this = apply(htmlc.new_wxHtmlWinParser,_args,_kwargs)
225 self.thisown = 1
226
227
228
229
230 class wxHtmlTagHandlerPtr :
231 def __init__(self,this):
232 self.this = this
233 self.thisown = 0
234 def _setSelf(self, *_args, **_kwargs):
235 val = apply(htmlc.wxHtmlTagHandler__setSelf,(self,) + _args, _kwargs)
236 return val
237 def SetParser(self, *_args, **_kwargs):
238 val = apply(htmlc.wxHtmlTagHandler_SetParser,(self,) + _args, _kwargs)
239 return val
240 def GetParser(self, *_args, **_kwargs):
241 val = apply(htmlc.wxHtmlTagHandler_GetParser,(self,) + _args, _kwargs)
242 if val: val = wxHtmlParserPtr(val)
243 return val
244 def ParseInner(self, *_args, **_kwargs):
245 val = apply(htmlc.wxHtmlTagHandler_ParseInner,(self,) + _args, _kwargs)
246 return val
247 def __repr__(self):
248 return "<C wxHtmlTagHandler instance at %s>" % (self.this,)
249 class wxHtmlTagHandler(wxHtmlTagHandlerPtr):
250 def __init__(self,*_args,**_kwargs):
251 self.this = apply(htmlc.new_wxHtmlTagHandler,_args,_kwargs)
252 self.thisown = 1
253 self._setSelf(self)
254
255
256
257
258 class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr):
259 def __init__(self,this):
260 self.this = this
261 self.thisown = 0
262 def _setSelf(self, *_args, **_kwargs):
263 val = apply(htmlc.wxHtmlWinTagHandler__setSelf,(self,) + _args, _kwargs)
264 return val
265 def SetParser(self, *_args, **_kwargs):
266 val = apply(htmlc.wxHtmlWinTagHandler_SetParser,(self,) + _args, _kwargs)
267 return val
268 def GetParser(self, *_args, **_kwargs):
269 val = apply(htmlc.wxHtmlWinTagHandler_GetParser,(self,) + _args, _kwargs)
270 if val: val = wxHtmlWinParserPtr(val)
271 return val
272 def ParseInner(self, *_args, **_kwargs):
273 val = apply(htmlc.wxHtmlWinTagHandler_ParseInner,(self,) + _args, _kwargs)
274 return val
275 def __repr__(self):
276 return "<C wxHtmlWinTagHandler instance at %s>" % (self.this,)
277 class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr):
278 def __init__(self,*_args,**_kwargs):
279 self.this = apply(htmlc.new_wxHtmlWinTagHandler,_args,_kwargs)
280 self.thisown = 1
281 self._setSelf(self)
282
283
284
285
286 class wxHtmlCellPtr :
287 def __init__(self,this):
288 self.this = this
289 self.thisown = 0
290 def SetParent(self, *_args, **_kwargs):
291 val = apply(htmlc.wxHtmlCell_SetParent,(self,) + _args, _kwargs)
292 return val
293 def GetParent(self, *_args, **_kwargs):
294 val = apply(htmlc.wxHtmlCell_GetParent,(self,) + _args, _kwargs)
295 if val: val = wxHtmlContainerCellPtr(val)
296 return val
297 def GetPosX(self, *_args, **_kwargs):
298 val = apply(htmlc.wxHtmlCell_GetPosX,(self,) + _args, _kwargs)
299 return val
300 def GetPosY(self, *_args, **_kwargs):
301 val = apply(htmlc.wxHtmlCell_GetPosY,(self,) + _args, _kwargs)
302 return val
303 def GetWidth(self, *_args, **_kwargs):
304 val = apply(htmlc.wxHtmlCell_GetWidth,(self,) + _args, _kwargs)
305 return val
306 def GetHeight(self, *_args, **_kwargs):
307 val = apply(htmlc.wxHtmlCell_GetHeight,(self,) + _args, _kwargs)
308 return val
309 def GetDescent(self, *_args, **_kwargs):
310 val = apply(htmlc.wxHtmlCell_GetDescent,(self,) + _args, _kwargs)
311 return val
312 def GetLink(self, *_args, **_kwargs):
313 val = apply(htmlc.wxHtmlCell_GetLink,(self,) + _args, _kwargs)
314 return val
315 def GetNext(self, *_args, **_kwargs):
316 val = apply(htmlc.wxHtmlCell_GetNext,(self,) + _args, _kwargs)
317 if val: val = wxHtmlCellPtr(val)
318 return val
319 def SetPos(self, *_args, **_kwargs):
320 val = apply(htmlc.wxHtmlCell_SetPos,(self,) + _args, _kwargs)
321 return val
322 def SetLink(self, *_args, **_kwargs):
323 val = apply(htmlc.wxHtmlCell_SetLink,(self,) + _args, _kwargs)
324 return val
325 def SetNext(self, *_args, **_kwargs):
326 val = apply(htmlc.wxHtmlCell_SetNext,(self,) + _args, _kwargs)
327 return val
328 def Layout(self, *_args, **_kwargs):
329 val = apply(htmlc.wxHtmlCell_Layout,(self,) + _args, _kwargs)
330 return val
331 def Draw(self, *_args, **_kwargs):
332 val = apply(htmlc.wxHtmlCell_Draw,(self,) + _args, _kwargs)
333 return val
334 def DrawInvisible(self, *_args, **_kwargs):
335 val = apply(htmlc.wxHtmlCell_DrawInvisible,(self,) + _args, _kwargs)
336 return val
337 def Find(self, *_args, **_kwargs):
338 val = apply(htmlc.wxHtmlCell_Find,(self,) + _args, _kwargs)
339 if val: val = wxHtmlCellPtr(val)
340 return val
341 def AdjustPagebreak(self, *_args, **_kwargs):
342 val = apply(htmlc.wxHtmlCell_AdjustPagebreak,(self,) + _args, _kwargs)
343 return val
344 def SetCanLiveOnPagebreak(self, *_args, **_kwargs):
345 val = apply(htmlc.wxHtmlCell_SetCanLiveOnPagebreak,(self,) + _args, _kwargs)
346 return val
347 def __repr__(self):
348 return "<C wxHtmlCell instance at %s>" % (self.this,)
349 class wxHtmlCell(wxHtmlCellPtr):
350 def __init__(self,*_args,**_kwargs):
351 self.this = apply(htmlc.new_wxHtmlCell,_args,_kwargs)
352 self.thisown = 1
353
354
355
356
357 class wxHtmlContainerCellPtr(wxHtmlCellPtr):
358 def __init__(self,this):
359 self.this = this
360 self.thisown = 0
361 def InsertCell(self, *_args, **_kwargs):
362 val = apply(htmlc.wxHtmlContainerCell_InsertCell,(self,) + _args, _kwargs)
363 return val
364 def SetAlignHor(self, *_args, **_kwargs):
365 val = apply(htmlc.wxHtmlContainerCell_SetAlignHor,(self,) + _args, _kwargs)
366 return val
367 def GetAlignHor(self, *_args, **_kwargs):
368 val = apply(htmlc.wxHtmlContainerCell_GetAlignHor,(self,) + _args, _kwargs)
369 return val
370 def SetAlignVer(self, *_args, **_kwargs):
371 val = apply(htmlc.wxHtmlContainerCell_SetAlignVer,(self,) + _args, _kwargs)
372 return val
373 def GetAlignVer(self, *_args, **_kwargs):
374 val = apply(htmlc.wxHtmlContainerCell_GetAlignVer,(self,) + _args, _kwargs)
375 return val
376 def SetIndent(self, *_args, **_kwargs):
377 val = apply(htmlc.wxHtmlContainerCell_SetIndent,(self,) + _args, _kwargs)
378 return val
379 def GetIndent(self, *_args, **_kwargs):
380 val = apply(htmlc.wxHtmlContainerCell_GetIndent,(self,) + _args, _kwargs)
381 return val
382 def GetIndentUnits(self, *_args, **_kwargs):
383 val = apply(htmlc.wxHtmlContainerCell_GetIndentUnits,(self,) + _args, _kwargs)
384 return val
385 def SetAlign(self, *_args, **_kwargs):
386 val = apply(htmlc.wxHtmlContainerCell_SetAlign,(self,) + _args, _kwargs)
387 return val
388 def SetWidthFloat(self, *_args, **_kwargs):
389 val = apply(htmlc.wxHtmlContainerCell_SetWidthFloat,(self,) + _args, _kwargs)
390 return val
391 def SetWidthFloatFromTag(self, *_args, **_kwargs):
392 val = apply(htmlc.wxHtmlContainerCell_SetWidthFloatFromTag,(self,) + _args, _kwargs)
393 return val
394 def SetMinHeight(self, *_args, **_kwargs):
395 val = apply(htmlc.wxHtmlContainerCell_SetMinHeight,(self,) + _args, _kwargs)
396 return val
397 def GetMaxLineWidth(self, *_args, **_kwargs):
398 val = apply(htmlc.wxHtmlContainerCell_GetMaxLineWidth,(self,) + _args, _kwargs)
399 return val
400 def SetBackgroundColour(self, *_args, **_kwargs):
401 val = apply(htmlc.wxHtmlContainerCell_SetBackgroundColour,(self,) + _args, _kwargs)
402 return val
403 def SetBorder(self, *_args, **_kwargs):
404 val = apply(htmlc.wxHtmlContainerCell_SetBorder,(self,) + _args, _kwargs)
405 return val
406 def GetFirstCell(self, *_args, **_kwargs):
407 val = apply(htmlc.wxHtmlContainerCell_GetFirstCell,(self,) + _args, _kwargs)
408 if val: val = wxHtmlCellPtr(val)
409 return val
410 def __repr__(self):
411 return "<C wxHtmlContainerCell instance at %s>" % (self.this,)
412 class wxHtmlContainerCell(wxHtmlContainerCellPtr):
413 def __init__(self,*_args,**_kwargs):
414 self.this = apply(htmlc.new_wxHtmlContainerCell,_args,_kwargs)
415 self.thisown = 1
416
417
418
419
420 class wxHtmlWidgetCellPtr(wxHtmlCellPtr):
421 def __init__(self,this):
422 self.this = this
423 self.thisown = 0
424 def __repr__(self):
425 return "<C wxHtmlWidgetCell instance at %s>" % (self.this,)
426 class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
427 def __init__(self,*_args,**_kwargs):
428 self.this = apply(htmlc.new_wxHtmlWidgetCell,_args,_kwargs)
429 self.thisown = 1
430
431
432
433
434 class HtmlHistoryItemPtr :
435 def __init__(self,this):
436 self.this = this
437 self.thisown = 0
438 def GetPos(self, *_args, **_kwargs):
439 val = apply(htmlc.HtmlHistoryItem_GetPos,(self,) + _args, _kwargs)
440 return val
441 def SetPos(self, *_args, **_kwargs):
442 val = apply(htmlc.HtmlHistoryItem_SetPos,(self,) + _args, _kwargs)
443 return val
444 def GetPage(self, *_args, **_kwargs):
445 val = apply(htmlc.HtmlHistoryItem_GetPage,(self,) + _args, _kwargs)
446 return val
447 def GetAnchor(self, *_args, **_kwargs):
448 val = apply(htmlc.HtmlHistoryItem_GetAnchor,(self,) + _args, _kwargs)
449 return val
450 def __repr__(self):
451 return "<C HtmlHistoryItem instance at %s>" % (self.this,)
452 class HtmlHistoryItem(HtmlHistoryItemPtr):
453 def __init__(self,*_args,**_kwargs):
454 self.this = apply(htmlc.new_HtmlHistoryItem,_args,_kwargs)
455 self.thisown = 1
456
457
458
459
460 class wxHtmlWindowPtr(wxScrolledWindowPtr):
461 def __init__(self,this):
462 self.this = this
463 self.thisown = 0
464 def _setSelf(self, *_args, **_kwargs):
465 val = apply(htmlc.wxHtmlWindow__setSelf,(self,) + _args, _kwargs)
466 return val
467 def SetPage(self, *_args, **_kwargs):
468 val = apply(htmlc.wxHtmlWindow_SetPage,(self,) + _args, _kwargs)
469 return val
470 def LoadPage(self, *_args, **_kwargs):
471 val = apply(htmlc.wxHtmlWindow_LoadPage,(self,) + _args, _kwargs)
472 return val
473 def GetOpenedPage(self, *_args, **_kwargs):
474 val = apply(htmlc.wxHtmlWindow_GetOpenedPage,(self,) + _args, _kwargs)
475 return val
476 def SetRelatedFrame(self, *_args, **_kwargs):
477 val = apply(htmlc.wxHtmlWindow_SetRelatedFrame,(self,) + _args, _kwargs)
478 return val
479 def GetRelatedFrame(self, *_args, **_kwargs):
480 val = apply(htmlc.wxHtmlWindow_GetRelatedFrame,(self,) + _args, _kwargs)
481 if val: val = wxFramePtr(val)
482 return val
483 def SetRelatedStatusBar(self, *_args, **_kwargs):
484 val = apply(htmlc.wxHtmlWindow_SetRelatedStatusBar,(self,) + _args, _kwargs)
485 return val
486 def SetFonts(self, *_args, **_kwargs):
487 val = apply(htmlc.wxHtmlWindow_SetFonts,(self,) + _args, _kwargs)
488 return val
489 def SetTitle(self, *_args, **_kwargs):
490 val = apply(htmlc.wxHtmlWindow_SetTitle,(self,) + _args, _kwargs)
491 return val
492 def SetBorders(self, *_args, **_kwargs):
493 val = apply(htmlc.wxHtmlWindow_SetBorders,(self,) + _args, _kwargs)
494 return val
495 def ReadCustomization(self, *_args, **_kwargs):
496 val = apply(htmlc.wxHtmlWindow_ReadCustomization,(self,) + _args, _kwargs)
497 return val
498 def WriteCustomization(self, *_args, **_kwargs):
499 val = apply(htmlc.wxHtmlWindow_WriteCustomization,(self,) + _args, _kwargs)
500 return val
501 def HistoryBack(self, *_args, **_kwargs):
502 val = apply(htmlc.wxHtmlWindow_HistoryBack,(self,) + _args, _kwargs)
503 return val
504 def HistoryForward(self, *_args, **_kwargs):
505 val = apply(htmlc.wxHtmlWindow_HistoryForward,(self,) + _args, _kwargs)
506 return val
507 def HistoryClear(self, *_args, **_kwargs):
508 val = apply(htmlc.wxHtmlWindow_HistoryClear,(self,) + _args, _kwargs)
509 return val
510 def GetInternalRepresentation(self, *_args, **_kwargs):
511 val = apply(htmlc.wxHtmlWindow_GetInternalRepresentation,(self,) + _args, _kwargs)
512 if val: val = wxHtmlContainerCellPtr(val)
513 return val
514 def GetParser(self, *_args, **_kwargs):
515 val = apply(htmlc.wxHtmlWindow_GetParser,(self,) + _args, _kwargs)
516 if val: val = wxHtmlWinParserPtr(val)
517 return val
518 def base_OnLinkClicked(self, *_args, **_kwargs):
519 val = apply(htmlc.wxHtmlWindow_base_OnLinkClicked,(self,) + _args, _kwargs)
520 return val
521 def __repr__(self):
522 return "<C wxHtmlWindow instance at %s>" % (self.this,)
523 class wxHtmlWindow(wxHtmlWindowPtr):
524 def __init__(self,*_args,**_kwargs):
525 self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs)
526 self.thisown = 1
527 self._setSelf(self)
528 wx._StdWindowCallbacks(self)
529 wx._StdOnScrollCallbacks(self)
530
531
532
533
534 class wxHtmlDCRendererPtr :
535 def __init__(self,this):
536 self.this = this
537 self.thisown = 0
538 def __del__(self,htmlc=htmlc):
539 if self.thisown == 1 :
540 htmlc.delete_wxHtmlDCRenderer(self)
541 def SetDC(self, *_args, **_kwargs):
542 val = apply(htmlc.wxHtmlDCRenderer_SetDC,(self,) + _args, _kwargs)
543 return val
544 def SetSize(self, *_args, **_kwargs):
545 val = apply(htmlc.wxHtmlDCRenderer_SetSize,(self,) + _args, _kwargs)
546 return val
547 def SetHtmlText(self, *_args, **_kwargs):
548 val = apply(htmlc.wxHtmlDCRenderer_SetHtmlText,(self,) + _args, _kwargs)
549 return val
550 def Render(self, *_args, **_kwargs):
551 val = apply(htmlc.wxHtmlDCRenderer_Render,(self,) + _args, _kwargs)
552 return val
553 def GetTotalHeight(self, *_args, **_kwargs):
554 val = apply(htmlc.wxHtmlDCRenderer_GetTotalHeight,(self,) + _args, _kwargs)
555 return val
556 def __repr__(self):
557 return "<C wxHtmlDCRenderer instance at %s>" % (self.this,)
558 class wxHtmlDCRenderer(wxHtmlDCRendererPtr):
559 def __init__(self,*_args,**_kwargs):
560 self.this = apply(htmlc.new_wxHtmlDCRenderer,_args,_kwargs)
561 self.thisown = 1
562
563
564
565
566 class wxHtmlPrintoutPtr(wxPrintoutPtr):
567 def __init__(self,this):
568 self.this = this
569 self.thisown = 0
570 def __del__(self,htmlc=htmlc):
571 if self.thisown == 1 :
572 htmlc.delete_wxHtmlPrintout(self)
573 def SetHtmlText(self, *_args, **_kwargs):
574 val = apply(htmlc.wxHtmlPrintout_SetHtmlText,(self,) + _args, _kwargs)
575 return val
576 def SetHtmlFile(self, *_args, **_kwargs):
577 val = apply(htmlc.wxHtmlPrintout_SetHtmlFile,(self,) + _args, _kwargs)
578 return val
579 def SetHeader(self, *_args, **_kwargs):
580 val = apply(htmlc.wxHtmlPrintout_SetHeader,(self,) + _args, _kwargs)
581 return val
582 def SetFooter(self, *_args, **_kwargs):
583 val = apply(htmlc.wxHtmlPrintout_SetFooter,(self,) + _args, _kwargs)
584 return val
585 def SetMargins(self, *_args, **_kwargs):
586 val = apply(htmlc.wxHtmlPrintout_SetMargins,(self,) + _args, _kwargs)
587 return val
588 def __repr__(self):
589 return "<C wxHtmlPrintout instance at %s>" % (self.this,)
590 class wxHtmlPrintout(wxHtmlPrintoutPtr):
591 def __init__(self,*_args,**_kwargs):
592 self.this = apply(htmlc.new_wxHtmlPrintout,_args,_kwargs)
593 self.thisown = 1
594
595
596
597
598 class wxHtmlEasyPrintingPtr :
599 def __init__(self,this):
600 self.this = this
601 self.thisown = 0
602 def __del__(self,htmlc=htmlc):
603 if self.thisown == 1 :
604 htmlc.delete_wxHtmlEasyPrinting(self)
605 def PreviewFile(self, *_args, **_kwargs):
606 val = apply(htmlc.wxHtmlEasyPrinting_PreviewFile,(self,) + _args, _kwargs)
607 return val
608 def PreviewText(self, *_args, **_kwargs):
609 val = apply(htmlc.wxHtmlEasyPrinting_PreviewText,(self,) + _args, _kwargs)
610 return val
611 def PrintFile(self, *_args, **_kwargs):
612 val = apply(htmlc.wxHtmlEasyPrinting_PrintFile,(self,) + _args, _kwargs)
613 return val
614 def PrintText(self, *_args, **_kwargs):
615 val = apply(htmlc.wxHtmlEasyPrinting_PrintText,(self,) + _args, _kwargs)
616 return val
617 def PrinterSetup(self, *_args, **_kwargs):
618 val = apply(htmlc.wxHtmlEasyPrinting_PrinterSetup,(self,) + _args, _kwargs)
619 return val
620 def PageSetup(self, *_args, **_kwargs):
621 val = apply(htmlc.wxHtmlEasyPrinting_PageSetup,(self,) + _args, _kwargs)
622 return val
623 def SetHeader(self, *_args, **_kwargs):
624 val = apply(htmlc.wxHtmlEasyPrinting_SetHeader,(self,) + _args, _kwargs)
625 return val
626 def SetFooter(self, *_args, **_kwargs):
627 val = apply(htmlc.wxHtmlEasyPrinting_SetFooter,(self,) + _args, _kwargs)
628 return val
629 def GetPrintData(self, *_args, **_kwargs):
630 val = apply(htmlc.wxHtmlEasyPrinting_GetPrintData,(self,) + _args, _kwargs)
631 if val: val = wxPrintDataPtr(val)
632 return val
633 def GetPageSetupData(self, *_args, **_kwargs):
634 val = apply(htmlc.wxHtmlEasyPrinting_GetPageSetupData,(self,) + _args, _kwargs)
635 if val: val = wxPageSetupDialogDataPtr(val)
636 return val
637 def __repr__(self):
638 return "<C wxHtmlEasyPrinting instance at %s>" % (self.this,)
639 class wxHtmlEasyPrinting(wxHtmlEasyPrintingPtr):
640 def __init__(self,*_args,**_kwargs):
641 self.this = apply(htmlc.new_wxHtmlEasyPrinting,_args,_kwargs)
642 self.thisown = 1
643
644
645
646
647
648
649 #-------------- FUNCTION WRAPPERS ------------------
650
651 wxHtmlWinParser_AddTagHandler = htmlc.wxHtmlWinParser_AddTagHandler
652
653 wxHtmlWindow_AddFilter = htmlc.wxHtmlWindow_AddFilter
654
655
656
657 #-------------- VARIABLE WRAPPERS ------------------
658
659 wxHTML_ALIGN_LEFT = htmlc.wxHTML_ALIGN_LEFT
660 wxHTML_ALIGN_CENTER = htmlc.wxHTML_ALIGN_CENTER
661 wxHTML_ALIGN_RIGHT = htmlc.wxHTML_ALIGN_RIGHT
662 wxHTML_ALIGN_BOTTOM = htmlc.wxHTML_ALIGN_BOTTOM
663 wxHTML_ALIGN_TOP = htmlc.wxHTML_ALIGN_TOP
664 wxHTML_CLR_FOREGROUND = htmlc.wxHTML_CLR_FOREGROUND
665 wxHTML_CLR_BACKGROUND = htmlc.wxHTML_CLR_BACKGROUND
666 wxHTML_UNITS_PIXELS = htmlc.wxHTML_UNITS_PIXELS
667 wxHTML_UNITS_PERCENT = htmlc.wxHTML_UNITS_PERCENT
668 wxHTML_INDENT_LEFT = htmlc.wxHTML_INDENT_LEFT
669 wxHTML_INDENT_RIGHT = htmlc.wxHTML_INDENT_RIGHT
670 wxHTML_INDENT_TOP = htmlc.wxHTML_INDENT_TOP
671 wxHTML_INDENT_BOTTOM = htmlc.wxHTML_INDENT_BOTTOM
672 wxHTML_INDENT_HORIZONTAL = htmlc.wxHTML_INDENT_HORIZONTAL
673 wxHTML_INDENT_VERTICAL = htmlc.wxHTML_INDENT_VERTICAL
674 wxHTML_INDENT_ALL = htmlc.wxHTML_INDENT_ALL
675 wxHTML_COND_ISANCHOR = htmlc.wxHTML_COND_ISANCHOR
676 wxHTML_COND_ISIMAGEMAP = htmlc.wxHTML_COND_ISIMAGEMAP
677 wxHTML_COND_USER = htmlc.wxHTML_COND_USER
678 wxPAGE_ODD = htmlc.wxPAGE_ODD
679 wxPAGE_EVEN = htmlc.wxPAGE_EVEN
680 wxPAGE_ALL = htmlc.wxPAGE_ALL
681
682
683 #-------------- USER INCLUDE -----------------------
684
685
686 # Stuff these names into the wx namespace so wxPyConstructObject can find them
687 import wx
688 wx.wxHtmlTagPtr = wxHtmlTag
689 wx.wxHtmlParserPtr = wxHtmlParserPtr
690 wx.wxHtmlWinParserPtr = wxHtmlWinParserPtr
691 wx.wxHtmlTagHandlerPtr = wxHtmlTagHandlerPtr
692 wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr
693 wx.wxHtmlCellPtr = wxHtmlCellPtr
694 wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr
695 wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr
696 wx.HtmlHistoryItemPtr = HtmlHistoryItemPtr
697 wx.wxHtmlWindowPtr = wxHtmlWindowPtr