]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/html.py
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / html.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 """
5 Classes for a simple HTML rendering window, HTML Help Window, etc.
6 """
7
8 import _html
9
10 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
11 if (name == "this"):
12 if isinstance(value, class_type):
13 self.__dict__[name] = value.this
14 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
15 del value.thisown
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
19 if (not static) or hasattr(self,name) or (name == "thisown"):
20 self.__dict__[name] = value
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24 def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
27 def _swig_getattr(self,class_type,name):
28 method = class_type.__swig_getmethods__.get(name,None)
29 if method: return method(self)
30 raise AttributeError,name
31
32 import types
33 try:
34 _object = types.ObjectType
35 _newclass = 1
36 except AttributeError:
37 class _object : pass
38 _newclass = 0
39 del types
40
41
42 def _swig_setattr_nondynamic_method(set):
43 def set_attr(self,name,value):
44 if hasattr(self,name) or (name in ("this", "thisown")):
45 set(self,name,value)
46 else:
47 raise AttributeError("You cannot add attributes to %s" % self)
48 return set_attr
49
50
51 import _windows
52 import _core
53 wx = _core
54 __docfilter__ = wx.__DocFilter(globals())
55 #---------------------------------------------------------------------------
56
57 HTML_ALIGN_LEFT = _html.HTML_ALIGN_LEFT
58 HTML_ALIGN_CENTER = _html.HTML_ALIGN_CENTER
59 HTML_ALIGN_RIGHT = _html.HTML_ALIGN_RIGHT
60 HTML_ALIGN_BOTTOM = _html.HTML_ALIGN_BOTTOM
61 HTML_ALIGN_TOP = _html.HTML_ALIGN_TOP
62 HTML_CLR_FOREGROUND = _html.HTML_CLR_FOREGROUND
63 HTML_CLR_BACKGROUND = _html.HTML_CLR_BACKGROUND
64 HTML_UNITS_PIXELS = _html.HTML_UNITS_PIXELS
65 HTML_UNITS_PERCENT = _html.HTML_UNITS_PERCENT
66 HTML_INDENT_LEFT = _html.HTML_INDENT_LEFT
67 HTML_INDENT_RIGHT = _html.HTML_INDENT_RIGHT
68 HTML_INDENT_TOP = _html.HTML_INDENT_TOP
69 HTML_INDENT_BOTTOM = _html.HTML_INDENT_BOTTOM
70 HTML_INDENT_HORIZONTAL = _html.HTML_INDENT_HORIZONTAL
71 HTML_INDENT_VERTICAL = _html.HTML_INDENT_VERTICAL
72 HTML_INDENT_ALL = _html.HTML_INDENT_ALL
73 HTML_COND_ISANCHOR = _html.HTML_COND_ISANCHOR
74 HTML_COND_ISIMAGEMAP = _html.HTML_COND_ISIMAGEMAP
75 HTML_COND_USER = _html.HTML_COND_USER
76 HTML_FONT_SIZE_1 = _html.HTML_FONT_SIZE_1
77 HTML_FONT_SIZE_2 = _html.HTML_FONT_SIZE_2
78 HTML_FONT_SIZE_3 = _html.HTML_FONT_SIZE_3
79 HTML_FONT_SIZE_4 = _html.HTML_FONT_SIZE_4
80 HTML_FONT_SIZE_5 = _html.HTML_FONT_SIZE_5
81 HTML_FONT_SIZE_6 = _html.HTML_FONT_SIZE_6
82 HTML_FONT_SIZE_7 = _html.HTML_FONT_SIZE_7
83 HW_SCROLLBAR_NEVER = _html.HW_SCROLLBAR_NEVER
84 HW_SCROLLBAR_AUTO = _html.HW_SCROLLBAR_AUTO
85 HW_NO_SELECTION = _html.HW_NO_SELECTION
86 HW_DEFAULT_STYLE = _html.HW_DEFAULT_STYLE
87 HTML_OPEN = _html.HTML_OPEN
88 HTML_BLOCK = _html.HTML_BLOCK
89 HTML_REDIRECT = _html.HTML_REDIRECT
90 HTML_URL_PAGE = _html.HTML_URL_PAGE
91 HTML_URL_IMAGE = _html.HTML_URL_IMAGE
92 HTML_URL_OTHER = _html.HTML_URL_OTHER
93 class HtmlLinkInfo(_core.Object):
94 """Proxy of C++ HtmlLinkInfo class"""
95 def __repr__(self):
96 return "<%s.%s; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
97 def __init__(self, *args, **kwargs):
98 """__init__(self, String href, String target=EmptyString) -> HtmlLinkInfo"""
99 newobj = _html.new_HtmlLinkInfo(*args, **kwargs)
100 self.this = newobj.this
101 self.thisown = 1
102 del newobj.thisown
103 def GetHref(*args, **kwargs):
104 """GetHref(self) -> String"""
105 return _html.HtmlLinkInfo_GetHref(*args, **kwargs)
106
107 def GetTarget(*args, **kwargs):
108 """GetTarget(self) -> String"""
109 return _html.HtmlLinkInfo_GetTarget(*args, **kwargs)
110
111 def GetEvent(*args, **kwargs):
112 """GetEvent(self) -> MouseEvent"""
113 return _html.HtmlLinkInfo_GetEvent(*args, **kwargs)
114
115 def GetHtmlCell(*args, **kwargs):
116 """GetHtmlCell(self) -> HtmlCell"""
117 return _html.HtmlLinkInfo_GetHtmlCell(*args, **kwargs)
118
119 def SetEvent(*args, **kwargs):
120 """SetEvent(self, MouseEvent e)"""
121 return _html.HtmlLinkInfo_SetEvent(*args, **kwargs)
122
123 def SetHtmlCell(*args, **kwargs):
124 """SetHtmlCell(self, HtmlCell e)"""
125 return _html.HtmlLinkInfo_SetHtmlCell(*args, **kwargs)
126
127
128 class HtmlLinkInfoPtr(HtmlLinkInfo):
129 def __init__(self, this):
130 self.this = this
131 if not hasattr(self,"thisown"): self.thisown = 0
132 self.__class__ = HtmlLinkInfo
133 _html.HtmlLinkInfo_swigregister(HtmlLinkInfoPtr)
134 cvar = _html.cvar
135 HtmlWindowNameStr = cvar.HtmlWindowNameStr
136 HtmlPrintoutTitleStr = cvar.HtmlPrintoutTitleStr
137 HtmlPrintingTitleStr = cvar.HtmlPrintingTitleStr
138
139 class HtmlTag(_core.Object):
140 """Proxy of C++ HtmlTag class"""
141 def __init__(self): raise RuntimeError, "No constructor defined"
142 def __repr__(self):
143 return "<%s.%s; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
144 def GetName(*args, **kwargs):
145 """GetName(self) -> String"""
146 return _html.HtmlTag_GetName(*args, **kwargs)
147
148 def HasParam(*args, **kwargs):
149 """HasParam(self, String par) -> bool"""
150 return _html.HtmlTag_HasParam(*args, **kwargs)
151
152 def GetParam(*args, **kwargs):
153 """GetParam(self, String par, int with_commas=False) -> String"""
154 return _html.HtmlTag_GetParam(*args, **kwargs)
155
156 def GetAllParams(*args, **kwargs):
157 """GetAllParams(self) -> String"""
158 return _html.HtmlTag_GetAllParams(*args, **kwargs)
159
160 def HasEnding(*args, **kwargs):
161 """HasEnding(self) -> bool"""
162 return _html.HtmlTag_HasEnding(*args, **kwargs)
163
164 def GetBeginPos(*args, **kwargs):
165 """GetBeginPos(self) -> int"""
166 return _html.HtmlTag_GetBeginPos(*args, **kwargs)
167
168 def GetEndPos1(*args, **kwargs):
169 """GetEndPos1(self) -> int"""
170 return _html.HtmlTag_GetEndPos1(*args, **kwargs)
171
172 def GetEndPos2(*args, **kwargs):
173 """GetEndPos2(self) -> int"""
174 return _html.HtmlTag_GetEndPos2(*args, **kwargs)
175
176
177 class HtmlTagPtr(HtmlTag):
178 def __init__(self, this):
179 self.this = this
180 if not hasattr(self,"thisown"): self.thisown = 0
181 self.__class__ = HtmlTag
182 _html.HtmlTag_swigregister(HtmlTagPtr)
183
184 class HtmlParser(_core.Object):
185 """Proxy of C++ HtmlParser class"""
186 def __init__(self): raise RuntimeError, "No constructor defined"
187 def __repr__(self):
188 return "<%s.%s; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
189 def SetFS(*args, **kwargs):
190 """SetFS(self, FileSystem fs)"""
191 return _html.HtmlParser_SetFS(*args, **kwargs)
192
193 def GetFS(*args, **kwargs):
194 """GetFS(self) -> FileSystem"""
195 return _html.HtmlParser_GetFS(*args, **kwargs)
196
197 def Parse(*args, **kwargs):
198 """Parse(self, String source) -> Object"""
199 return _html.HtmlParser_Parse(*args, **kwargs)
200
201 def InitParser(*args, **kwargs):
202 """InitParser(self, String source)"""
203 return _html.HtmlParser_InitParser(*args, **kwargs)
204
205 def DoneParser(*args, **kwargs):
206 """DoneParser(self)"""
207 return _html.HtmlParser_DoneParser(*args, **kwargs)
208
209 def DoParsing(*args, **kwargs):
210 """DoParsing(self, int begin_pos, int end_pos)"""
211 return _html.HtmlParser_DoParsing(*args, **kwargs)
212
213 def StopParsing(*args, **kwargs):
214 """StopParsing(self)"""
215 return _html.HtmlParser_StopParsing(*args, **kwargs)
216
217 def AddTagHandler(*args, **kwargs):
218 """AddTagHandler(self, HtmlTagHandler handler)"""
219 return _html.HtmlParser_AddTagHandler(*args, **kwargs)
220
221 def GetSource(*args, **kwargs):
222 """GetSource(self) -> String"""
223 return _html.HtmlParser_GetSource(*args, **kwargs)
224
225 def PushTagHandler(*args, **kwargs):
226 """PushTagHandler(self, HtmlTagHandler handler, String tags)"""
227 return _html.HtmlParser_PushTagHandler(*args, **kwargs)
228
229 def PopTagHandler(*args, **kwargs):
230 """PopTagHandler(self)"""
231 return _html.HtmlParser_PopTagHandler(*args, **kwargs)
232
233
234 class HtmlParserPtr(HtmlParser):
235 def __init__(self, this):
236 self.this = this
237 if not hasattr(self,"thisown"): self.thisown = 0
238 self.__class__ = HtmlParser
239 _html.HtmlParser_swigregister(HtmlParserPtr)
240
241 class HtmlWinParser(HtmlParser):
242 """Proxy of C++ HtmlWinParser class"""
243 def __repr__(self):
244 return "<%s.%s; proxy of C++ wxHtmlWinParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
245 def __init__(self, *args, **kwargs):
246 """__init__(self, HtmlWindow wnd=None) -> HtmlWinParser"""
247 newobj = _html.new_HtmlWinParser(*args, **kwargs)
248 self.this = newobj.this
249 self.thisown = 1
250 del newobj.thisown
251 def SetDC(*args, **kwargs):
252 """SetDC(self, DC dc)"""
253 return _html.HtmlWinParser_SetDC(*args, **kwargs)
254
255 def GetDC(*args, **kwargs):
256 """GetDC(self) -> DC"""
257 return _html.HtmlWinParser_GetDC(*args, **kwargs)
258
259 def GetCharHeight(*args, **kwargs):
260 """GetCharHeight(self) -> int"""
261 return _html.HtmlWinParser_GetCharHeight(*args, **kwargs)
262
263 def GetCharWidth(*args, **kwargs):
264 """GetCharWidth(self) -> int"""
265 return _html.HtmlWinParser_GetCharWidth(*args, **kwargs)
266
267 def GetWindow(*args, **kwargs):
268 """GetWindow(self) -> HtmlWindow"""
269 return _html.HtmlWinParser_GetWindow(*args, **kwargs)
270
271 def SetFonts(*args, **kwargs):
272 """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
273 return _html.HtmlWinParser_SetFonts(*args, **kwargs)
274
275 def SetStandardFonts(*args, **kwargs):
276 """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
277 return _html.HtmlWinParser_SetStandardFonts(*args, **kwargs)
278
279 def GetContainer(*args, **kwargs):
280 """GetContainer(self) -> HtmlContainerCell"""
281 return _html.HtmlWinParser_GetContainer(*args, **kwargs)
282
283 def OpenContainer(*args, **kwargs):
284 """OpenContainer(self) -> HtmlContainerCell"""
285 return _html.HtmlWinParser_OpenContainer(*args, **kwargs)
286
287 def SetContainer(*args, **kwargs):
288 """SetContainer(self, HtmlContainerCell c) -> HtmlContainerCell"""
289 return _html.HtmlWinParser_SetContainer(*args, **kwargs)
290
291 def CloseContainer(*args, **kwargs):
292 """CloseContainer(self) -> HtmlContainerCell"""
293 return _html.HtmlWinParser_CloseContainer(*args, **kwargs)
294
295 def GetFontSize(*args, **kwargs):
296 """GetFontSize(self) -> int"""
297 return _html.HtmlWinParser_GetFontSize(*args, **kwargs)
298
299 def SetFontSize(*args, **kwargs):
300 """SetFontSize(self, int s)"""
301 return _html.HtmlWinParser_SetFontSize(*args, **kwargs)
302
303 def GetFontBold(*args, **kwargs):
304 """GetFontBold(self) -> int"""
305 return _html.HtmlWinParser_GetFontBold(*args, **kwargs)
306
307 def SetFontBold(*args, **kwargs):
308 """SetFontBold(self, int x)"""
309 return _html.HtmlWinParser_SetFontBold(*args, **kwargs)
310
311 def GetFontItalic(*args, **kwargs):
312 """GetFontItalic(self) -> int"""
313 return _html.HtmlWinParser_GetFontItalic(*args, **kwargs)
314
315 def SetFontItalic(*args, **kwargs):
316 """SetFontItalic(self, int x)"""
317 return _html.HtmlWinParser_SetFontItalic(*args, **kwargs)
318
319 def GetFontUnderlined(*args, **kwargs):
320 """GetFontUnderlined(self) -> int"""
321 return _html.HtmlWinParser_GetFontUnderlined(*args, **kwargs)
322
323 def SetFontUnderlined(*args, **kwargs):
324 """SetFontUnderlined(self, int x)"""
325 return _html.HtmlWinParser_SetFontUnderlined(*args, **kwargs)
326
327 def GetFontFixed(*args, **kwargs):
328 """GetFontFixed(self) -> int"""
329 return _html.HtmlWinParser_GetFontFixed(*args, **kwargs)
330
331 def SetFontFixed(*args, **kwargs):
332 """SetFontFixed(self, int x)"""
333 return _html.HtmlWinParser_SetFontFixed(*args, **kwargs)
334
335 def GetAlign(*args, **kwargs):
336 """GetAlign(self) -> int"""
337 return _html.HtmlWinParser_GetAlign(*args, **kwargs)
338
339 def SetAlign(*args, **kwargs):
340 """SetAlign(self, int a)"""
341 return _html.HtmlWinParser_SetAlign(*args, **kwargs)
342
343 def GetLinkColor(*args, **kwargs):
344 """GetLinkColor(self) -> Colour"""
345 return _html.HtmlWinParser_GetLinkColor(*args, **kwargs)
346
347 def SetLinkColor(*args, **kwargs):
348 """SetLinkColor(self, Colour clr)"""
349 return _html.HtmlWinParser_SetLinkColor(*args, **kwargs)
350
351 def GetActualColor(*args, **kwargs):
352 """GetActualColor(self) -> Colour"""
353 return _html.HtmlWinParser_GetActualColor(*args, **kwargs)
354
355 def SetActualColor(*args, **kwargs):
356 """SetActualColor(self, Colour clr)"""
357 return _html.HtmlWinParser_SetActualColor(*args, **kwargs)
358
359 def SetLink(*args, **kwargs):
360 """SetLink(self, String link)"""
361 return _html.HtmlWinParser_SetLink(*args, **kwargs)
362
363 def CreateCurrentFont(*args, **kwargs):
364 """CreateCurrentFont(self) -> Font"""
365 return _html.HtmlWinParser_CreateCurrentFont(*args, **kwargs)
366
367 def GetLink(*args, **kwargs):
368 """GetLink(self) -> HtmlLinkInfo"""
369 return _html.HtmlWinParser_GetLink(*args, **kwargs)
370
371
372 class HtmlWinParserPtr(HtmlWinParser):
373 def __init__(self, this):
374 self.this = this
375 if not hasattr(self,"thisown"): self.thisown = 0
376 self.__class__ = HtmlWinParser
377 _html.HtmlWinParser_swigregister(HtmlWinParserPtr)
378
379 class HtmlTagHandler(_core.Object):
380 """Proxy of C++ HtmlTagHandler class"""
381 def __repr__(self):
382 return "<%s.%s; proxy of C++ wxPyHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
383 def __init__(self, *args, **kwargs):
384 """__init__(self) -> HtmlTagHandler"""
385 newobj = _html.new_HtmlTagHandler(*args, **kwargs)
386 self.this = newobj.this
387 self.thisown = 1
388 del newobj.thisown
389 self._setCallbackInfo(self, HtmlTagHandler)
390
391 def _setCallbackInfo(*args, **kwargs):
392 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
393 return _html.HtmlTagHandler__setCallbackInfo(*args, **kwargs)
394
395 def SetParser(*args, **kwargs):
396 """SetParser(self, HtmlParser parser)"""
397 return _html.HtmlTagHandler_SetParser(*args, **kwargs)
398
399 def GetParser(*args, **kwargs):
400 """GetParser(self) -> HtmlParser"""
401 return _html.HtmlTagHandler_GetParser(*args, **kwargs)
402
403 def ParseInner(*args, **kwargs):
404 """ParseInner(self, HtmlTag tag)"""
405 return _html.HtmlTagHandler_ParseInner(*args, **kwargs)
406
407
408 class HtmlTagHandlerPtr(HtmlTagHandler):
409 def __init__(self, this):
410 self.this = this
411 if not hasattr(self,"thisown"): self.thisown = 0
412 self.__class__ = HtmlTagHandler
413 _html.HtmlTagHandler_swigregister(HtmlTagHandlerPtr)
414
415 class HtmlWinTagHandler(HtmlTagHandler):
416 """Proxy of C++ HtmlWinTagHandler class"""
417 def __repr__(self):
418 return "<%s.%s; proxy of C++ wxPyHtmlWinTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
419 def __init__(self, *args, **kwargs):
420 """__init__(self) -> HtmlWinTagHandler"""
421 newobj = _html.new_HtmlWinTagHandler(*args, **kwargs)
422 self.this = newobj.this
423 self.thisown = 1
424 del newobj.thisown
425 self._setCallbackInfo(self, HtmlWinTagHandler)
426
427 def _setCallbackInfo(*args, **kwargs):
428 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
429 return _html.HtmlWinTagHandler__setCallbackInfo(*args, **kwargs)
430
431 def SetParser(*args, **kwargs):
432 """SetParser(self, HtmlParser parser)"""
433 return _html.HtmlWinTagHandler_SetParser(*args, **kwargs)
434
435 def GetParser(*args, **kwargs):
436 """GetParser(self) -> HtmlWinParser"""
437 return _html.HtmlWinTagHandler_GetParser(*args, **kwargs)
438
439 def ParseInner(*args, **kwargs):
440 """ParseInner(self, HtmlTag tag)"""
441 return _html.HtmlWinTagHandler_ParseInner(*args, **kwargs)
442
443
444 class HtmlWinTagHandlerPtr(HtmlWinTagHandler):
445 def __init__(self, this):
446 self.this = this
447 if not hasattr(self,"thisown"): self.thisown = 0
448 self.__class__ = HtmlWinTagHandler
449 _html.HtmlWinTagHandler_swigregister(HtmlWinTagHandlerPtr)
450
451
452 def HtmlWinParser_AddTagHandler(*args, **kwargs):
453 """HtmlWinParser_AddTagHandler(PyObject tagHandlerClass)"""
454 return _html.HtmlWinParser_AddTagHandler(*args, **kwargs)
455 #---------------------------------------------------------------------------
456
457 class HtmlSelection(object):
458 """Proxy of C++ HtmlSelection class"""
459 def __repr__(self):
460 return "<%s.%s; proxy of C++ wxHtmlSelection instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
461 def __init__(self, *args, **kwargs):
462 """__init__(self) -> HtmlSelection"""
463 newobj = _html.new_HtmlSelection(*args, **kwargs)
464 self.this = newobj.this
465 self.thisown = 1
466 del newobj.thisown
467 def __del__(self, destroy=_html.delete_HtmlSelection):
468 """__del__(self)"""
469 try:
470 if self.thisown: destroy(self)
471 except: pass
472
473 def Set(*args, **kwargs):
474 """Set(self, Point fromPos, HtmlCell fromCell, Point toPos, HtmlCell toCell)"""
475 return _html.HtmlSelection_Set(*args, **kwargs)
476
477 def SetCells(*args, **kwargs):
478 """SetCells(self, HtmlCell fromCell, HtmlCell toCell)"""
479 return _html.HtmlSelection_SetCells(*args, **kwargs)
480
481 def GetFromCell(*args, **kwargs):
482 """GetFromCell(self) -> HtmlCell"""
483 return _html.HtmlSelection_GetFromCell(*args, **kwargs)
484
485 def GetToCell(*args, **kwargs):
486 """GetToCell(self) -> HtmlCell"""
487 return _html.HtmlSelection_GetToCell(*args, **kwargs)
488
489 def GetFromPos(*args, **kwargs):
490 """GetFromPos(self) -> Point"""
491 return _html.HtmlSelection_GetFromPos(*args, **kwargs)
492
493 def GetToPos(*args, **kwargs):
494 """GetToPos(self) -> Point"""
495 return _html.HtmlSelection_GetToPos(*args, **kwargs)
496
497 def GetFromPrivPos(*args, **kwargs):
498 """GetFromPrivPos(self) -> Point"""
499 return _html.HtmlSelection_GetFromPrivPos(*args, **kwargs)
500
501 def GetToPrivPos(*args, **kwargs):
502 """GetToPrivPos(self) -> Point"""
503 return _html.HtmlSelection_GetToPrivPos(*args, **kwargs)
504
505 def SetFromPrivPos(*args, **kwargs):
506 """SetFromPrivPos(self, Point pos)"""
507 return _html.HtmlSelection_SetFromPrivPos(*args, **kwargs)
508
509 def SetToPrivPos(*args, **kwargs):
510 """SetToPrivPos(self, Point pos)"""
511 return _html.HtmlSelection_SetToPrivPos(*args, **kwargs)
512
513 def ClearPrivPos(*args, **kwargs):
514 """ClearPrivPos(self)"""
515 return _html.HtmlSelection_ClearPrivPos(*args, **kwargs)
516
517 def IsEmpty(*args, **kwargs):
518 """IsEmpty(self) -> bool"""
519 return _html.HtmlSelection_IsEmpty(*args, **kwargs)
520
521
522 class HtmlSelectionPtr(HtmlSelection):
523 def __init__(self, this):
524 self.this = this
525 if not hasattr(self,"thisown"): self.thisown = 0
526 self.__class__ = HtmlSelection
527 _html.HtmlSelection_swigregister(HtmlSelectionPtr)
528
529 HTML_SEL_OUT = _html.HTML_SEL_OUT
530 HTML_SEL_IN = _html.HTML_SEL_IN
531 HTML_SEL_CHANGING = _html.HTML_SEL_CHANGING
532 class HtmlRenderingState(object):
533 """Proxy of C++ HtmlRenderingState class"""
534 def __repr__(self):
535 return "<%s.%s; proxy of C++ wxHtmlRenderingState instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
536 def __init__(self, *args, **kwargs):
537 """__init__(self) -> HtmlRenderingState"""
538 newobj = _html.new_HtmlRenderingState(*args, **kwargs)
539 self.this = newobj.this
540 self.thisown = 1
541 del newobj.thisown
542 def __del__(self, destroy=_html.delete_HtmlRenderingState):
543 """__del__(self)"""
544 try:
545 if self.thisown: destroy(self)
546 except: pass
547
548 def SetSelectionState(*args, **kwargs):
549 """SetSelectionState(self, int s)"""
550 return _html.HtmlRenderingState_SetSelectionState(*args, **kwargs)
551
552 def GetSelectionState(*args, **kwargs):
553 """GetSelectionState(self) -> int"""
554 return _html.HtmlRenderingState_GetSelectionState(*args, **kwargs)
555
556 def SetFgColour(*args, **kwargs):
557 """SetFgColour(self, Colour c)"""
558 return _html.HtmlRenderingState_SetFgColour(*args, **kwargs)
559
560 def GetFgColour(*args, **kwargs):
561 """GetFgColour(self) -> Colour"""
562 return _html.HtmlRenderingState_GetFgColour(*args, **kwargs)
563
564 def SetBgColour(*args, **kwargs):
565 """SetBgColour(self, Colour c)"""
566 return _html.HtmlRenderingState_SetBgColour(*args, **kwargs)
567
568 def GetBgColour(*args, **kwargs):
569 """GetBgColour(self) -> Colour"""
570 return _html.HtmlRenderingState_GetBgColour(*args, **kwargs)
571
572
573 class HtmlRenderingStatePtr(HtmlRenderingState):
574 def __init__(self, this):
575 self.this = this
576 if not hasattr(self,"thisown"): self.thisown = 0
577 self.__class__ = HtmlRenderingState
578 _html.HtmlRenderingState_swigregister(HtmlRenderingStatePtr)
579
580 class HtmlRenderingStyle(object):
581 """Proxy of C++ HtmlRenderingStyle class"""
582 def __init__(self): raise RuntimeError, "No constructor defined"
583 def __repr__(self):
584 return "<%s.%s; proxy of C++ wxHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
585 def GetSelectedTextColour(*args, **kwargs):
586 """GetSelectedTextColour(self, Colour clr) -> Colour"""
587 return _html.HtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs)
588
589 def GetSelectedTextBgColour(*args, **kwargs):
590 """GetSelectedTextBgColour(self, Colour clr) -> Colour"""
591 return _html.HtmlRenderingStyle_GetSelectedTextBgColour(*args, **kwargs)
592
593
594 class HtmlRenderingStylePtr(HtmlRenderingStyle):
595 def __init__(self, this):
596 self.this = this
597 if not hasattr(self,"thisown"): self.thisown = 0
598 self.__class__ = HtmlRenderingStyle
599 _html.HtmlRenderingStyle_swigregister(HtmlRenderingStylePtr)
600
601 class DefaultHtmlRenderingStyle(HtmlRenderingStyle):
602 """Proxy of C++ DefaultHtmlRenderingStyle class"""
603 def __init__(self): raise RuntimeError, "No constructor defined"
604 def __repr__(self):
605 return "<%s.%s; proxy of C++ wxDefaultHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
606 def GetSelectedTextColour(*args, **kwargs):
607 """GetSelectedTextColour(self, Colour clr) -> Colour"""
608 return _html.DefaultHtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs)
609
610 def GetSelectedTextBgColour(*args, **kwargs):
611 """GetSelectedTextBgColour(self, Colour clr) -> Colour"""
612 return _html.DefaultHtmlRenderingStyle_GetSelectedTextBgColour(*args, **kwargs)
613
614
615 class DefaultHtmlRenderingStylePtr(DefaultHtmlRenderingStyle):
616 def __init__(self, this):
617 self.this = this
618 if not hasattr(self,"thisown"): self.thisown = 0
619 self.__class__ = DefaultHtmlRenderingStyle
620 _html.DefaultHtmlRenderingStyle_swigregister(DefaultHtmlRenderingStylePtr)
621
622 class HtmlRenderingInfo(object):
623 """Proxy of C++ HtmlRenderingInfo class"""
624 def __repr__(self):
625 return "<%s.%s; proxy of C++ wxHtmlRenderingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
626 def __init__(self, *args, **kwargs):
627 """__init__(self) -> HtmlRenderingInfo"""
628 newobj = _html.new_HtmlRenderingInfo(*args, **kwargs)
629 self.this = newobj.this
630 self.thisown = 1
631 del newobj.thisown
632 def __del__(self, destroy=_html.delete_HtmlRenderingInfo):
633 """__del__(self)"""
634 try:
635 if self.thisown: destroy(self)
636 except: pass
637
638 def SetSelection(*args, **kwargs):
639 """SetSelection(self, HtmlSelection s)"""
640 return _html.HtmlRenderingInfo_SetSelection(*args, **kwargs)
641
642 def GetSelection(*args, **kwargs):
643 """GetSelection(self) -> HtmlSelection"""
644 return _html.HtmlRenderingInfo_GetSelection(*args, **kwargs)
645
646 def SetStyle(*args, **kwargs):
647 """SetStyle(self, HtmlRenderingStyle style)"""
648 return _html.HtmlRenderingInfo_SetStyle(*args, **kwargs)
649
650 def GetStyle(*args, **kwargs):
651 """GetStyle(self) -> HtmlRenderingStyle"""
652 return _html.HtmlRenderingInfo_GetStyle(*args, **kwargs)
653
654 def GetState(*args, **kwargs):
655 """GetState(self) -> HtmlRenderingState"""
656 return _html.HtmlRenderingInfo_GetState(*args, **kwargs)
657
658
659 class HtmlRenderingInfoPtr(HtmlRenderingInfo):
660 def __init__(self, this):
661 self.this = this
662 if not hasattr(self,"thisown"): self.thisown = 0
663 self.__class__ = HtmlRenderingInfo
664 _html.HtmlRenderingInfo_swigregister(HtmlRenderingInfoPtr)
665
666 #---------------------------------------------------------------------------
667
668 HTML_FIND_EXACT = _html.HTML_FIND_EXACT
669 HTML_FIND_NEAREST_BEFORE = _html.HTML_FIND_NEAREST_BEFORE
670 HTML_FIND_NEAREST_AFTER = _html.HTML_FIND_NEAREST_AFTER
671 class HtmlCell(_core.Object):
672 """Proxy of C++ HtmlCell class"""
673 def __repr__(self):
674 return "<%s.%s; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
675 def __init__(self, *args, **kwargs):
676 """__init__(self) -> HtmlCell"""
677 newobj = _html.new_HtmlCell(*args, **kwargs)
678 self.this = newobj.this
679 self.thisown = 1
680 del newobj.thisown
681 def GetPosX(*args, **kwargs):
682 """GetPosX(self) -> int"""
683 return _html.HtmlCell_GetPosX(*args, **kwargs)
684
685 def GetPosY(*args, **kwargs):
686 """GetPosY(self) -> int"""
687 return _html.HtmlCell_GetPosY(*args, **kwargs)
688
689 def GetWidth(*args, **kwargs):
690 """GetWidth(self) -> int"""
691 return _html.HtmlCell_GetWidth(*args, **kwargs)
692
693 def GetHeight(*args, **kwargs):
694 """GetHeight(self) -> int"""
695 return _html.HtmlCell_GetHeight(*args, **kwargs)
696
697 def GetDescent(*args, **kwargs):
698 """GetDescent(self) -> int"""
699 return _html.HtmlCell_GetDescent(*args, **kwargs)
700
701 def GetMaxTotalWidth(*args, **kwargs):
702 """GetMaxTotalWidth(self) -> int"""
703 return _html.HtmlCell_GetMaxTotalWidth(*args, **kwargs)
704
705 def GetId(*args, **kwargs):
706 """GetId(self) -> String"""
707 return _html.HtmlCell_GetId(*args, **kwargs)
708
709 def SetId(*args, **kwargs):
710 """SetId(self, String id)"""
711 return _html.HtmlCell_SetId(*args, **kwargs)
712
713 def GetLink(*args, **kwargs):
714 """GetLink(self, int x=0, int y=0) -> HtmlLinkInfo"""
715 return _html.HtmlCell_GetLink(*args, **kwargs)
716
717 def GetNext(*args, **kwargs):
718 """GetNext(self) -> HtmlCell"""
719 return _html.HtmlCell_GetNext(*args, **kwargs)
720
721 def GetParent(*args, **kwargs):
722 """GetParent(self) -> HtmlContainerCell"""
723 return _html.HtmlCell_GetParent(*args, **kwargs)
724
725 def GetFirstChild(*args, **kwargs):
726 """GetFirstChild(self) -> HtmlCell"""
727 return _html.HtmlCell_GetFirstChild(*args, **kwargs)
728
729 def GetCursor(*args, **kwargs):
730 """GetCursor(self) -> Cursor"""
731 return _html.HtmlCell_GetCursor(*args, **kwargs)
732
733 def IsFormattingCell(*args, **kwargs):
734 """IsFormattingCell(self) -> bool"""
735 return _html.HtmlCell_IsFormattingCell(*args, **kwargs)
736
737 def SetLink(*args, **kwargs):
738 """SetLink(self, HtmlLinkInfo link)"""
739 return _html.HtmlCell_SetLink(*args, **kwargs)
740
741 def SetNext(*args, **kwargs):
742 """SetNext(self, HtmlCell cell)"""
743 return _html.HtmlCell_SetNext(*args, **kwargs)
744
745 def SetParent(*args, **kwargs):
746 """SetParent(self, HtmlContainerCell p)"""
747 return _html.HtmlCell_SetParent(*args, **kwargs)
748
749 def SetPos(*args, **kwargs):
750 """SetPos(self, int x, int y)"""
751 return _html.HtmlCell_SetPos(*args, **kwargs)
752
753 def Layout(*args, **kwargs):
754 """Layout(self, int w)"""
755 return _html.HtmlCell_Layout(*args, **kwargs)
756
757 def Draw(*args, **kwargs):
758 """Draw(self, DC dc, int x, int y, int view_y1, int view_y2, HtmlRenderingInfo info)"""
759 return _html.HtmlCell_Draw(*args, **kwargs)
760
761 def DrawInvisible(*args, **kwargs):
762 """DrawInvisible(self, DC dc, int x, int y, HtmlRenderingInfo info)"""
763 return _html.HtmlCell_DrawInvisible(*args, **kwargs)
764
765 def Find(*args, **kwargs):
766 """Find(self, int condition, void param) -> HtmlCell"""
767 return _html.HtmlCell_Find(*args, **kwargs)
768
769 def AdjustPagebreak(*args, **kwargs):
770 """AdjustPagebreak(self, int INOUT) -> bool"""
771 return _html.HtmlCell_AdjustPagebreak(*args, **kwargs)
772
773 def SetCanLiveOnPagebreak(*args, **kwargs):
774 """SetCanLiveOnPagebreak(self, bool can)"""
775 return _html.HtmlCell_SetCanLiveOnPagebreak(*args, **kwargs)
776
777 def IsLinebreakAllowed(*args, **kwargs):
778 """IsLinebreakAllowed(self) -> bool"""
779 return _html.HtmlCell_IsLinebreakAllowed(*args, **kwargs)
780
781 def IsTerminalCell(*args, **kwargs):
782 """IsTerminalCell(self) -> bool"""
783 return _html.HtmlCell_IsTerminalCell(*args, **kwargs)
784
785 def FindCellByPos(*args, **kwargs):
786 """FindCellByPos(self, int x, int y, unsigned int flags=HTML_FIND_EXACT) -> HtmlCell"""
787 return _html.HtmlCell_FindCellByPos(*args, **kwargs)
788
789 def GetAbsPos(*args, **kwargs):
790 """GetAbsPos(self) -> Point"""
791 return _html.HtmlCell_GetAbsPos(*args, **kwargs)
792
793 def GetFirstTerminal(*args, **kwargs):
794 """GetFirstTerminal(self) -> HtmlCell"""
795 return _html.HtmlCell_GetFirstTerminal(*args, **kwargs)
796
797 def GetLastTerminal(*args, **kwargs):
798 """GetLastTerminal(self) -> HtmlCell"""
799 return _html.HtmlCell_GetLastTerminal(*args, **kwargs)
800
801 def GetDepth(*args, **kwargs):
802 """GetDepth(self) -> unsigned int"""
803 return _html.HtmlCell_GetDepth(*args, **kwargs)
804
805 def IsBefore(*args, **kwargs):
806 """IsBefore(self, HtmlCell cell) -> bool"""
807 return _html.HtmlCell_IsBefore(*args, **kwargs)
808
809 def ConvertToText(*args, **kwargs):
810 """ConvertToText(self, HtmlSelection sel) -> String"""
811 return _html.HtmlCell_ConvertToText(*args, **kwargs)
812
813
814 class HtmlCellPtr(HtmlCell):
815 def __init__(self, this):
816 self.this = this
817 if not hasattr(self,"thisown"): self.thisown = 0
818 self.__class__ = HtmlCell
819 _html.HtmlCell_swigregister(HtmlCellPtr)
820
821 class HtmlWordCell(HtmlCell):
822 """Proxy of C++ HtmlWordCell class"""
823 def __repr__(self):
824 return "<%s.%s; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
825 def __init__(self, *args, **kwargs):
826 """__init__(self, String word, DC dc) -> HtmlWordCell"""
827 newobj = _html.new_HtmlWordCell(*args, **kwargs)
828 self.this = newobj.this
829 self.thisown = 1
830 del newobj.thisown
831
832 class HtmlWordCellPtr(HtmlWordCell):
833 def __init__(self, this):
834 self.this = this
835 if not hasattr(self,"thisown"): self.thisown = 0
836 self.__class__ = HtmlWordCell
837 _html.HtmlWordCell_swigregister(HtmlWordCellPtr)
838
839 class HtmlContainerCell(HtmlCell):
840 """Proxy of C++ HtmlContainerCell class"""
841 def __repr__(self):
842 return "<%s.%s; proxy of C++ wxHtmlContainerCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
843 def __init__(self, *args, **kwargs):
844 """__init__(self, HtmlContainerCell parent) -> HtmlContainerCell"""
845 newobj = _html.new_HtmlContainerCell(*args, **kwargs)
846 self.this = newobj.this
847 self.thisown = 1
848 del newobj.thisown
849 def InsertCell(*args, **kwargs):
850 """InsertCell(self, HtmlCell cell)"""
851 return _html.HtmlContainerCell_InsertCell(*args, **kwargs)
852
853 def SetAlignHor(*args, **kwargs):
854 """SetAlignHor(self, int al)"""
855 return _html.HtmlContainerCell_SetAlignHor(*args, **kwargs)
856
857 def GetAlignHor(*args, **kwargs):
858 """GetAlignHor(self) -> int"""
859 return _html.HtmlContainerCell_GetAlignHor(*args, **kwargs)
860
861 def SetAlignVer(*args, **kwargs):
862 """SetAlignVer(self, int al)"""
863 return _html.HtmlContainerCell_SetAlignVer(*args, **kwargs)
864
865 def GetAlignVer(*args, **kwargs):
866 """GetAlignVer(self) -> int"""
867 return _html.HtmlContainerCell_GetAlignVer(*args, **kwargs)
868
869 def SetIndent(*args, **kwargs):
870 """SetIndent(self, int i, int what, int units=HTML_UNITS_PIXELS)"""
871 return _html.HtmlContainerCell_SetIndent(*args, **kwargs)
872
873 def GetIndent(*args, **kwargs):
874 """GetIndent(self, int ind) -> int"""
875 return _html.HtmlContainerCell_GetIndent(*args, **kwargs)
876
877 def GetIndentUnits(*args, **kwargs):
878 """GetIndentUnits(self, int ind) -> int"""
879 return _html.HtmlContainerCell_GetIndentUnits(*args, **kwargs)
880
881 def SetAlign(*args, **kwargs):
882 """SetAlign(self, HtmlTag tag)"""
883 return _html.HtmlContainerCell_SetAlign(*args, **kwargs)
884
885 def SetWidthFloat(*args, **kwargs):
886 """SetWidthFloat(self, int w, int units)"""
887 return _html.HtmlContainerCell_SetWidthFloat(*args, **kwargs)
888
889 def SetWidthFloatFromTag(*args, **kwargs):
890 """SetWidthFloatFromTag(self, HtmlTag tag)"""
891 return _html.HtmlContainerCell_SetWidthFloatFromTag(*args, **kwargs)
892
893 def SetMinHeight(*args, **kwargs):
894 """SetMinHeight(self, int h, int align=HTML_ALIGN_TOP)"""
895 return _html.HtmlContainerCell_SetMinHeight(*args, **kwargs)
896
897 def SetBackgroundColour(*args, **kwargs):
898 """SetBackgroundColour(self, Colour clr)"""
899 return _html.HtmlContainerCell_SetBackgroundColour(*args, **kwargs)
900
901 def GetBackgroundColour(*args, **kwargs):
902 """GetBackgroundColour(self) -> Colour"""
903 return _html.HtmlContainerCell_GetBackgroundColour(*args, **kwargs)
904
905 def SetBorder(*args, **kwargs):
906 """SetBorder(self, Colour clr1, Colour clr2)"""
907 return _html.HtmlContainerCell_SetBorder(*args, **kwargs)
908
909 def GetFirstChild(*args, **kwargs):
910 """GetFirstChild(self) -> HtmlCell"""
911 return _html.HtmlContainerCell_GetFirstChild(*args, **kwargs)
912
913
914 class HtmlContainerCellPtr(HtmlContainerCell):
915 def __init__(self, this):
916 self.this = this
917 if not hasattr(self,"thisown"): self.thisown = 0
918 self.__class__ = HtmlContainerCell
919 _html.HtmlContainerCell_swigregister(HtmlContainerCellPtr)
920
921 class HtmlColourCell(HtmlCell):
922 """Proxy of C++ HtmlColourCell class"""
923 def __repr__(self):
924 return "<%s.%s; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
925 def __init__(self, *args, **kwargs):
926 """__init__(self, Colour clr, int flags=HTML_CLR_FOREGROUND) -> HtmlColourCell"""
927 newobj = _html.new_HtmlColourCell(*args, **kwargs)
928 self.this = newobj.this
929 self.thisown = 1
930 del newobj.thisown
931
932 class HtmlColourCellPtr(HtmlColourCell):
933 def __init__(self, this):
934 self.this = this
935 if not hasattr(self,"thisown"): self.thisown = 0
936 self.__class__ = HtmlColourCell
937 _html.HtmlColourCell_swigregister(HtmlColourCellPtr)
938
939 class HtmlFontCell(HtmlCell):
940 """Proxy of C++ HtmlFontCell class"""
941 def __repr__(self):
942 return "<%s.%s; proxy of C++ wxHtmlFontCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
943 def __init__(self, *args, **kwargs):
944 """__init__(self, Font font) -> HtmlFontCell"""
945 newobj = _html.new_HtmlFontCell(*args, **kwargs)
946 self.this = newobj.this
947 self.thisown = 1
948 del newobj.thisown
949
950 class HtmlFontCellPtr(HtmlFontCell):
951 def __init__(self, this):
952 self.this = this
953 if not hasattr(self,"thisown"): self.thisown = 0
954 self.__class__ = HtmlFontCell
955 _html.HtmlFontCell_swigregister(HtmlFontCellPtr)
956
957 class HtmlWidgetCell(HtmlCell):
958 """Proxy of C++ HtmlWidgetCell class"""
959 def __repr__(self):
960 return "<%s.%s; proxy of C++ wxHtmlWidgetCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
961 def __init__(self, *args, **kwargs):
962 """__init__(self, Window wnd, int w=0) -> HtmlWidgetCell"""
963 newobj = _html.new_HtmlWidgetCell(*args, **kwargs)
964 self.this = newobj.this
965 self.thisown = 1
966 del newobj.thisown
967
968 class HtmlWidgetCellPtr(HtmlWidgetCell):
969 def __init__(self, this):
970 self.this = this
971 if not hasattr(self,"thisown"): self.thisown = 0
972 self.__class__ = HtmlWidgetCell
973 _html.HtmlWidgetCell_swigregister(HtmlWidgetCellPtr)
974
975 #---------------------------------------------------------------------------
976
977 class HtmlFilter(_core.Object):
978 """Proxy of C++ HtmlFilter class"""
979 def __repr__(self):
980 return "<%s.%s; proxy of C++ wxPyHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
981 def __init__(self, *args, **kwargs):
982 """__init__(self) -> HtmlFilter"""
983 newobj = _html.new_HtmlFilter(*args, **kwargs)
984 self.this = newobj.this
985 self.thisown = 1
986 del newobj.thisown
987 self._setCallbackInfo(self, HtmlFilter)
988
989 def _setCallbackInfo(*args, **kwargs):
990 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
991 return _html.HtmlFilter__setCallbackInfo(*args, **kwargs)
992
993
994 class HtmlFilterPtr(HtmlFilter):
995 def __init__(self, this):
996 self.this = this
997 if not hasattr(self,"thisown"): self.thisown = 0
998 self.__class__ = HtmlFilter
999 _html.HtmlFilter_swigregister(HtmlFilterPtr)
1000
1001 #---------------------------------------------------------------------------
1002
1003 class HtmlWindow(_windows.ScrolledWindow):
1004 """Proxy of C++ HtmlWindow class"""
1005 def __repr__(self):
1006 return "<%s.%s; proxy of C++ wxPyHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1007 def __init__(self, *args, **kwargs):
1008 """
1009 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1010 Size size=DefaultSize, int style=HW_DEFAULT_STYLE,
1011 String name=HtmlWindowNameStr) -> HtmlWindow
1012 """
1013 newobj = _html.new_HtmlWindow(*args, **kwargs)
1014 self.this = newobj.this
1015 self.thisown = 1
1016 del newobj.thisown
1017 self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)
1018
1019 def Create(*args, **kwargs):
1020 """
1021 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1022 Size size=DefaultSize, int style=HW_SCROLLBAR_AUTO,
1023 String name=HtmlWindowNameStr) -> bool
1024 """
1025 return _html.HtmlWindow_Create(*args, **kwargs)
1026
1027 def _setCallbackInfo(*args, **kwargs):
1028 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1029 return _html.HtmlWindow__setCallbackInfo(*args, **kwargs)
1030
1031 def SetPage(*args, **kwargs):
1032 """SetPage(self, String source) -> bool"""
1033 return _html.HtmlWindow_SetPage(*args, **kwargs)
1034
1035 def LoadPage(*args, **kwargs):
1036 """LoadPage(self, String location) -> bool"""
1037 return _html.HtmlWindow_LoadPage(*args, **kwargs)
1038
1039 def LoadFile(*args, **kwargs):
1040 """LoadFile(self, String filename) -> bool"""
1041 return _html.HtmlWindow_LoadFile(*args, **kwargs)
1042
1043 def AppendToPage(*args, **kwargs):
1044 """AppendToPage(self, String source) -> bool"""
1045 return _html.HtmlWindow_AppendToPage(*args, **kwargs)
1046
1047 def GetOpenedPage(*args, **kwargs):
1048 """GetOpenedPage(self) -> String"""
1049 return _html.HtmlWindow_GetOpenedPage(*args, **kwargs)
1050
1051 def GetOpenedAnchor(*args, **kwargs):
1052 """GetOpenedAnchor(self) -> String"""
1053 return _html.HtmlWindow_GetOpenedAnchor(*args, **kwargs)
1054
1055 def GetOpenedPageTitle(*args, **kwargs):
1056 """GetOpenedPageTitle(self) -> String"""
1057 return _html.HtmlWindow_GetOpenedPageTitle(*args, **kwargs)
1058
1059 def SetRelatedFrame(*args, **kwargs):
1060 """SetRelatedFrame(self, Frame frame, String format)"""
1061 return _html.HtmlWindow_SetRelatedFrame(*args, **kwargs)
1062
1063 def GetRelatedFrame(*args, **kwargs):
1064 """GetRelatedFrame(self) -> Frame"""
1065 return _html.HtmlWindow_GetRelatedFrame(*args, **kwargs)
1066
1067 def SetRelatedStatusBar(*args, **kwargs):
1068 """SetRelatedStatusBar(self, int bar)"""
1069 return _html.HtmlWindow_SetRelatedStatusBar(*args, **kwargs)
1070
1071 def SetFonts(*args, **kwargs):
1072 """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
1073 return _html.HtmlWindow_SetFonts(*args, **kwargs)
1074
1075 def SetStandardFonts(*args, **kwargs):
1076 """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
1077 return _html.HtmlWindow_SetStandardFonts(*args, **kwargs)
1078
1079 def SetTitle(*args, **kwargs):
1080 """SetTitle(self, String title)"""
1081 return _html.HtmlWindow_SetTitle(*args, **kwargs)
1082
1083 def SetBorders(*args, **kwargs):
1084 """SetBorders(self, int b)"""
1085 return _html.HtmlWindow_SetBorders(*args, **kwargs)
1086
1087 def ReadCustomization(*args, **kwargs):
1088 """ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1089 return _html.HtmlWindow_ReadCustomization(*args, **kwargs)
1090
1091 def WriteCustomization(*args, **kwargs):
1092 """WriteCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1093 return _html.HtmlWindow_WriteCustomization(*args, **kwargs)
1094
1095 def HistoryBack(*args, **kwargs):
1096 """HistoryBack(self) -> bool"""
1097 return _html.HtmlWindow_HistoryBack(*args, **kwargs)
1098
1099 def HistoryForward(*args, **kwargs):
1100 """HistoryForward(self) -> bool"""
1101 return _html.HtmlWindow_HistoryForward(*args, **kwargs)
1102
1103 def HistoryCanBack(*args, **kwargs):
1104 """HistoryCanBack(self) -> bool"""
1105 return _html.HtmlWindow_HistoryCanBack(*args, **kwargs)
1106
1107 def HistoryCanForward(*args, **kwargs):
1108 """HistoryCanForward(self) -> bool"""
1109 return _html.HtmlWindow_HistoryCanForward(*args, **kwargs)
1110
1111 def HistoryClear(*args, **kwargs):
1112 """HistoryClear(self)"""
1113 return _html.HtmlWindow_HistoryClear(*args, **kwargs)
1114
1115 def GetInternalRepresentation(*args, **kwargs):
1116 """GetInternalRepresentation(self) -> HtmlContainerCell"""
1117 return _html.HtmlWindow_GetInternalRepresentation(*args, **kwargs)
1118
1119 def GetParser(*args, **kwargs):
1120 """GetParser(self) -> HtmlWinParser"""
1121 return _html.HtmlWindow_GetParser(*args, **kwargs)
1122
1123 def ScrollToAnchor(*args, **kwargs):
1124 """ScrollToAnchor(self, String anchor) -> bool"""
1125 return _html.HtmlWindow_ScrollToAnchor(*args, **kwargs)
1126
1127 def HasAnchor(*args, **kwargs):
1128 """HasAnchor(self, String anchor) -> bool"""
1129 return _html.HtmlWindow_HasAnchor(*args, **kwargs)
1130
1131 def AddFilter(*args, **kwargs):
1132 """AddFilter(HtmlFilter filter)"""
1133 return _html.HtmlWindow_AddFilter(*args, **kwargs)
1134
1135 AddFilter = staticmethod(AddFilter)
1136 def SelectWord(*args, **kwargs):
1137 """SelectWord(self, Point pos)"""
1138 return _html.HtmlWindow_SelectWord(*args, **kwargs)
1139
1140 def SelectLine(*args, **kwargs):
1141 """SelectLine(self, Point pos)"""
1142 return _html.HtmlWindow_SelectLine(*args, **kwargs)
1143
1144 def SelectAll(*args, **kwargs):
1145 """SelectAll(self)"""
1146 return _html.HtmlWindow_SelectAll(*args, **kwargs)
1147
1148 def SelectionToText(*args, **kwargs):
1149 """SelectionToText(self) -> String"""
1150 return _html.HtmlWindow_SelectionToText(*args, **kwargs)
1151
1152 def ToText(*args, **kwargs):
1153 """ToText(self) -> String"""
1154 return _html.HtmlWindow_ToText(*args, **kwargs)
1155
1156 def base_OnLinkClicked(*args, **kwargs):
1157 """base_OnLinkClicked(self, HtmlLinkInfo link)"""
1158 return _html.HtmlWindow_base_OnLinkClicked(*args, **kwargs)
1159
1160 def base_OnSetTitle(*args, **kwargs):
1161 """base_OnSetTitle(self, String title)"""
1162 return _html.HtmlWindow_base_OnSetTitle(*args, **kwargs)
1163
1164 def base_OnCellMouseHover(*args, **kwargs):
1165 """base_OnCellMouseHover(self, HtmlCell cell, int x, int y)"""
1166 return _html.HtmlWindow_base_OnCellMouseHover(*args, **kwargs)
1167
1168 def base_OnCellClicked(*args, **kwargs):
1169 """base_OnCellClicked(self, HtmlCell cell, int x, int y, MouseEvent event)"""
1170 return _html.HtmlWindow_base_OnCellClicked(*args, **kwargs)
1171
1172 def GetClassDefaultAttributes(*args, **kwargs):
1173 """
1174 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1175
1176 Get the default attributes for this class. This is useful if you want
1177 to use the same font or colour in your own control as in a standard
1178 control -- which is a much better idea than hard coding specific
1179 colours or fonts which might look completely out of place on the
1180 user's system, especially if it uses themes.
1181
1182 The variant parameter is only relevant under Mac currently and is
1183 ignore under other platforms. Under Mac, it will change the size of
1184 the returned font. See `wx.Window.SetWindowVariant` for more about
1185 this.
1186 """
1187 return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
1188
1189 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
1190
1191 class HtmlWindowPtr(HtmlWindow):
1192 def __init__(self, this):
1193 self.this = this
1194 if not hasattr(self,"thisown"): self.thisown = 0
1195 self.__class__ = HtmlWindow
1196 _html.HtmlWindow_swigregister(HtmlWindowPtr)
1197
1198 def PreHtmlWindow(*args, **kwargs):
1199 """PreHtmlWindow() -> HtmlWindow"""
1200 val = _html.new_PreHtmlWindow(*args, **kwargs)
1201 val.thisown = 1
1202 return val
1203
1204 def HtmlWindow_AddFilter(*args, **kwargs):
1205 """HtmlWindow_AddFilter(HtmlFilter filter)"""
1206 return _html.HtmlWindow_AddFilter(*args, **kwargs)
1207
1208 def HtmlWindow_GetClassDefaultAttributes(*args, **kwargs):
1209 """
1210 HtmlWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1211
1212 Get the default attributes for this class. This is useful if you want
1213 to use the same font or colour in your own control as in a standard
1214 control -- which is a much better idea than hard coding specific
1215 colours or fonts which might look completely out of place on the
1216 user's system, especially if it uses themes.
1217
1218 The variant parameter is only relevant under Mac currently and is
1219 ignore under other platforms. Under Mac, it will change the size of
1220 the returned font. See `wx.Window.SetWindowVariant` for more about
1221 this.
1222 """
1223 return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
1224
1225 #---------------------------------------------------------------------------
1226
1227 class HtmlDCRenderer(_core.Object):
1228 """Proxy of C++ HtmlDCRenderer class"""
1229 def __repr__(self):
1230 return "<%s.%s; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1231 def __init__(self, *args, **kwargs):
1232 """__init__(self) -> HtmlDCRenderer"""
1233 newobj = _html.new_HtmlDCRenderer(*args, **kwargs)
1234 self.this = newobj.this
1235 self.thisown = 1
1236 del newobj.thisown
1237 def __del__(self, destroy=_html.delete_HtmlDCRenderer):
1238 """__del__(self)"""
1239 try:
1240 if self.thisown: destroy(self)
1241 except: pass
1242
1243 def SetDC(*args, **kwargs):
1244 """SetDC(self, DC dc, int maxwidth)"""
1245 return _html.HtmlDCRenderer_SetDC(*args, **kwargs)
1246
1247 def SetSize(*args, **kwargs):
1248 """SetSize(self, int width, int height)"""
1249 return _html.HtmlDCRenderer_SetSize(*args, **kwargs)
1250
1251 def SetHtmlText(*args, **kwargs):
1252 """SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)"""
1253 return _html.HtmlDCRenderer_SetHtmlText(*args, **kwargs)
1254
1255 def SetFonts(*args, **kwargs):
1256 """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
1257 return _html.HtmlDCRenderer_SetFonts(*args, **kwargs)
1258
1259 def SetStandardFonts(*args, **kwargs):
1260 """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
1261 return _html.HtmlDCRenderer_SetStandardFonts(*args, **kwargs)
1262
1263 def Render(*args, **kwargs):
1264 """
1265 Render(self, int x, int y, int from=0, int dont_render=False, int maxHeight=INT_MAX,
1266 int choices=None, int LCOUNT=0) -> int
1267 """
1268 return _html.HtmlDCRenderer_Render(*args, **kwargs)
1269
1270 def GetTotalHeight(*args, **kwargs):
1271 """GetTotalHeight(self) -> int"""
1272 return _html.HtmlDCRenderer_GetTotalHeight(*args, **kwargs)
1273
1274
1275 class HtmlDCRendererPtr(HtmlDCRenderer):
1276 def __init__(self, this):
1277 self.this = this
1278 if not hasattr(self,"thisown"): self.thisown = 0
1279 self.__class__ = HtmlDCRenderer
1280 _html.HtmlDCRenderer_swigregister(HtmlDCRendererPtr)
1281
1282 PAGE_ODD = _html.PAGE_ODD
1283 PAGE_EVEN = _html.PAGE_EVEN
1284 PAGE_ALL = _html.PAGE_ALL
1285 class HtmlPrintout(_windows.Printout):
1286 """Proxy of C++ HtmlPrintout class"""
1287 def __repr__(self):
1288 return "<%s.%s; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1289 def __init__(self, *args, **kwargs):
1290 """__init__(self, String title=HtmlPrintoutTitleStr) -> HtmlPrintout"""
1291 newobj = _html.new_HtmlPrintout(*args, **kwargs)
1292 self.this = newobj.this
1293 self.thisown = 1
1294 del newobj.thisown
1295 def SetHtmlText(*args, **kwargs):
1296 """SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)"""
1297 return _html.HtmlPrintout_SetHtmlText(*args, **kwargs)
1298
1299 def SetHtmlFile(*args, **kwargs):
1300 """SetHtmlFile(self, String htmlfile)"""
1301 return _html.HtmlPrintout_SetHtmlFile(*args, **kwargs)
1302
1303 def SetHeader(*args, **kwargs):
1304 """SetHeader(self, String header, int pg=PAGE_ALL)"""
1305 return _html.HtmlPrintout_SetHeader(*args, **kwargs)
1306
1307 def SetFooter(*args, **kwargs):
1308 """SetFooter(self, String footer, int pg=PAGE_ALL)"""
1309 return _html.HtmlPrintout_SetFooter(*args, **kwargs)
1310
1311 def SetFonts(*args, **kwargs):
1312 """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
1313 return _html.HtmlPrintout_SetFonts(*args, **kwargs)
1314
1315 def SetStandardFonts(*args, **kwargs):
1316 """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
1317 return _html.HtmlPrintout_SetStandardFonts(*args, **kwargs)
1318
1319 def SetMargins(*args, **kwargs):
1320 """
1321 SetMargins(self, float top=25.2, float bottom=25.2, float left=25.2,
1322 float right=25.2, float spaces=5)
1323 """
1324 return _html.HtmlPrintout_SetMargins(*args, **kwargs)
1325
1326 def AddFilter(*args, **kwargs):
1327 """AddFilter(wxHtmlFilter filter)"""
1328 return _html.HtmlPrintout_AddFilter(*args, **kwargs)
1329
1330 AddFilter = staticmethod(AddFilter)
1331 def CleanUpStatics(*args, **kwargs):
1332 """CleanUpStatics()"""
1333 return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs)
1334
1335 CleanUpStatics = staticmethod(CleanUpStatics)
1336
1337 class HtmlPrintoutPtr(HtmlPrintout):
1338 def __init__(self, this):
1339 self.this = this
1340 if not hasattr(self,"thisown"): self.thisown = 0
1341 self.__class__ = HtmlPrintout
1342 _html.HtmlPrintout_swigregister(HtmlPrintoutPtr)
1343
1344 def HtmlPrintout_AddFilter(*args, **kwargs):
1345 """HtmlPrintout_AddFilter(wxHtmlFilter filter)"""
1346 return _html.HtmlPrintout_AddFilter(*args, **kwargs)
1347
1348 def HtmlPrintout_CleanUpStatics(*args, **kwargs):
1349 """HtmlPrintout_CleanUpStatics()"""
1350 return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs)
1351
1352 class HtmlEasyPrinting(_core.Object):
1353 """Proxy of C++ HtmlEasyPrinting class"""
1354 def __repr__(self):
1355 return "<%s.%s; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1356 def __init__(self, *args, **kwargs):
1357 """__init__(self, String name=HtmlPrintingTitleStr, Window parentWindow=None) -> HtmlEasyPrinting"""
1358 newobj = _html.new_HtmlEasyPrinting(*args, **kwargs)
1359 self.this = newobj.this
1360 self.thisown = 1
1361 del newobj.thisown
1362 def __del__(self, destroy=_html.delete_HtmlEasyPrinting):
1363 """__del__(self)"""
1364 try:
1365 if self.thisown: destroy(self)
1366 except: pass
1367
1368 def PreviewFile(*args, **kwargs):
1369 """PreviewFile(self, String htmlfile)"""
1370 return _html.HtmlEasyPrinting_PreviewFile(*args, **kwargs)
1371
1372 def PreviewText(*args, **kwargs):
1373 """PreviewText(self, String htmltext, String basepath=EmptyString)"""
1374 return _html.HtmlEasyPrinting_PreviewText(*args, **kwargs)
1375
1376 def PrintFile(*args, **kwargs):
1377 """PrintFile(self, String htmlfile)"""
1378 return _html.HtmlEasyPrinting_PrintFile(*args, **kwargs)
1379
1380 def PrintText(*args, **kwargs):
1381 """PrintText(self, String htmltext, String basepath=EmptyString)"""
1382 return _html.HtmlEasyPrinting_PrintText(*args, **kwargs)
1383
1384 def PageSetup(*args, **kwargs):
1385 """PageSetup(self)"""
1386 return _html.HtmlEasyPrinting_PageSetup(*args, **kwargs)
1387
1388 def SetHeader(*args, **kwargs):
1389 """SetHeader(self, String header, int pg=PAGE_ALL)"""
1390 return _html.HtmlEasyPrinting_SetHeader(*args, **kwargs)
1391
1392 def SetFooter(*args, **kwargs):
1393 """SetFooter(self, String footer, int pg=PAGE_ALL)"""
1394 return _html.HtmlEasyPrinting_SetFooter(*args, **kwargs)
1395
1396 def SetFonts(*args, **kwargs):
1397 """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
1398 return _html.HtmlEasyPrinting_SetFonts(*args, **kwargs)
1399
1400 def SetStandardFonts(*args, **kwargs):
1401 """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
1402 return _html.HtmlEasyPrinting_SetStandardFonts(*args, **kwargs)
1403
1404 def GetPrintData(*args, **kwargs):
1405 """GetPrintData(self) -> PrintData"""
1406 return _html.HtmlEasyPrinting_GetPrintData(*args, **kwargs)
1407
1408 def GetPageSetupData(*args, **kwargs):
1409 """GetPageSetupData(self) -> PageSetupDialogData"""
1410 return _html.HtmlEasyPrinting_GetPageSetupData(*args, **kwargs)
1411
1412
1413 class HtmlEasyPrintingPtr(HtmlEasyPrinting):
1414 def __init__(self, this):
1415 self.this = this
1416 if not hasattr(self,"thisown"): self.thisown = 0
1417 self.__class__ = HtmlEasyPrinting
1418 _html.HtmlEasyPrinting_swigregister(HtmlEasyPrintingPtr)
1419
1420 #---------------------------------------------------------------------------
1421
1422 class HtmlBookRecord(object):
1423 """Proxy of C++ HtmlBookRecord class"""
1424 def __repr__(self):
1425 return "<%s.%s; proxy of C++ wxHtmlBookRecord instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1426 def __init__(self, *args, **kwargs):
1427 """__init__(self, String bookfile, String basepath, String title, String start) -> HtmlBookRecord"""
1428 newobj = _html.new_HtmlBookRecord(*args, **kwargs)
1429 self.this = newobj.this
1430 self.thisown = 1
1431 del newobj.thisown
1432 def GetBookFile(*args, **kwargs):
1433 """GetBookFile(self) -> String"""
1434 return _html.HtmlBookRecord_GetBookFile(*args, **kwargs)
1435
1436 def GetTitle(*args, **kwargs):
1437 """GetTitle(self) -> String"""
1438 return _html.HtmlBookRecord_GetTitle(*args, **kwargs)
1439
1440 def GetStart(*args, **kwargs):
1441 """GetStart(self) -> String"""
1442 return _html.HtmlBookRecord_GetStart(*args, **kwargs)
1443
1444 def GetBasePath(*args, **kwargs):
1445 """GetBasePath(self) -> String"""
1446 return _html.HtmlBookRecord_GetBasePath(*args, **kwargs)
1447
1448 def SetContentsRange(*args, **kwargs):
1449 """SetContentsRange(self, int start, int end)"""
1450 return _html.HtmlBookRecord_SetContentsRange(*args, **kwargs)
1451
1452 def GetContentsStart(*args, **kwargs):
1453 """GetContentsStart(self) -> int"""
1454 return _html.HtmlBookRecord_GetContentsStart(*args, **kwargs)
1455
1456 def GetContentsEnd(*args, **kwargs):
1457 """GetContentsEnd(self) -> int"""
1458 return _html.HtmlBookRecord_GetContentsEnd(*args, **kwargs)
1459
1460 def SetTitle(*args, **kwargs):
1461 """SetTitle(self, String title)"""
1462 return _html.HtmlBookRecord_SetTitle(*args, **kwargs)
1463
1464 def SetBasePath(*args, **kwargs):
1465 """SetBasePath(self, String path)"""
1466 return _html.HtmlBookRecord_SetBasePath(*args, **kwargs)
1467
1468 def SetStart(*args, **kwargs):
1469 """SetStart(self, String start)"""
1470 return _html.HtmlBookRecord_SetStart(*args, **kwargs)
1471
1472 def GetFullPath(*args, **kwargs):
1473 """GetFullPath(self, String page) -> String"""
1474 return _html.HtmlBookRecord_GetFullPath(*args, **kwargs)
1475
1476
1477 class HtmlBookRecordPtr(HtmlBookRecord):
1478 def __init__(self, this):
1479 self.this = this
1480 if not hasattr(self,"thisown"): self.thisown = 0
1481 self.__class__ = HtmlBookRecord
1482 _html.HtmlBookRecord_swigregister(HtmlBookRecordPtr)
1483
1484 class HtmlContentsItem(object):
1485 """Proxy of C++ HtmlContentsItem class"""
1486 def __init__(self): raise RuntimeError, "No constructor defined"
1487 def __repr__(self):
1488 return "<%s.%s; proxy of C++ wxHtmlContentsItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1489 def GetLevel(*args, **kwargs):
1490 """GetLevel(self) -> int"""
1491 return _html.HtmlContentsItem_GetLevel(*args, **kwargs)
1492
1493 def GetID(*args, **kwargs):
1494 """GetID(self) -> int"""
1495 return _html.HtmlContentsItem_GetID(*args, **kwargs)
1496
1497 def GetName(*args, **kwargs):
1498 """GetName(self) -> String"""
1499 return _html.HtmlContentsItem_GetName(*args, **kwargs)
1500
1501 def GetPage(*args, **kwargs):
1502 """GetPage(self) -> String"""
1503 return _html.HtmlContentsItem_GetPage(*args, **kwargs)
1504
1505 def GetBook(*args, **kwargs):
1506 """GetBook(self) -> HtmlBookRecord"""
1507 return _html.HtmlContentsItem_GetBook(*args, **kwargs)
1508
1509
1510 class HtmlContentsItemPtr(HtmlContentsItem):
1511 def __init__(self, this):
1512 self.this = this
1513 if not hasattr(self,"thisown"): self.thisown = 0
1514 self.__class__ = HtmlContentsItem
1515 _html.HtmlContentsItem_swigregister(HtmlContentsItemPtr)
1516
1517 class HtmlSearchStatus(object):
1518 """Proxy of C++ HtmlSearchStatus class"""
1519 def __init__(self): raise RuntimeError, "No constructor defined"
1520 def __repr__(self):
1521 return "<%s.%s; proxy of C++ wxHtmlSearchStatus instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1522 def Search(*args, **kwargs):
1523 """Search(self) -> bool"""
1524 return _html.HtmlSearchStatus_Search(*args, **kwargs)
1525
1526 def IsActive(*args, **kwargs):
1527 """IsActive(self) -> bool"""
1528 return _html.HtmlSearchStatus_IsActive(*args, **kwargs)
1529
1530 def GetCurIndex(*args, **kwargs):
1531 """GetCurIndex(self) -> int"""
1532 return _html.HtmlSearchStatus_GetCurIndex(*args, **kwargs)
1533
1534 def GetMaxIndex(*args, **kwargs):
1535 """GetMaxIndex(self) -> int"""
1536 return _html.HtmlSearchStatus_GetMaxIndex(*args, **kwargs)
1537
1538 def GetName(*args, **kwargs):
1539 """GetName(self) -> String"""
1540 return _html.HtmlSearchStatus_GetName(*args, **kwargs)
1541
1542 def GetContentsItem(*args, **kwargs):
1543 """GetContentsItem(self) -> HtmlContentsItem"""
1544 return _html.HtmlSearchStatus_GetContentsItem(*args, **kwargs)
1545
1546
1547 class HtmlSearchStatusPtr(HtmlSearchStatus):
1548 def __init__(self, this):
1549 self.this = this
1550 if not hasattr(self,"thisown"): self.thisown = 0
1551 self.__class__ = HtmlSearchStatus
1552 _html.HtmlSearchStatus_swigregister(HtmlSearchStatusPtr)
1553
1554 class HtmlHelpData(object):
1555 """Proxy of C++ HtmlHelpData class"""
1556 def __repr__(self):
1557 return "<%s.%s; proxy of C++ wxHtmlHelpData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1558 def __init__(self, *args, **kwargs):
1559 """__init__(self) -> HtmlHelpData"""
1560 newobj = _html.new_HtmlHelpData(*args, **kwargs)
1561 self.this = newobj.this
1562 self.thisown = 1
1563 del newobj.thisown
1564 def __del__(self, destroy=_html.delete_HtmlHelpData):
1565 """__del__(self)"""
1566 try:
1567 if self.thisown: destroy(self)
1568 except: pass
1569
1570 def SetTempDir(*args, **kwargs):
1571 """SetTempDir(self, String path)"""
1572 return _html.HtmlHelpData_SetTempDir(*args, **kwargs)
1573
1574 def AddBook(*args, **kwargs):
1575 """AddBook(self, String book) -> bool"""
1576 return _html.HtmlHelpData_AddBook(*args, **kwargs)
1577
1578 def FindPageByName(*args, **kwargs):
1579 """FindPageByName(self, String page) -> String"""
1580 return _html.HtmlHelpData_FindPageByName(*args, **kwargs)
1581
1582 def FindPageById(*args, **kwargs):
1583 """FindPageById(self, int id) -> String"""
1584 return _html.HtmlHelpData_FindPageById(*args, **kwargs)
1585
1586 def GetBookRecArray(*args, **kwargs):
1587 """GetBookRecArray(self) -> wxHtmlBookRecArray"""
1588 return _html.HtmlHelpData_GetBookRecArray(*args, **kwargs)
1589
1590 def GetContents(*args, **kwargs):
1591 """GetContents(self) -> HtmlContentsItem"""
1592 return _html.HtmlHelpData_GetContents(*args, **kwargs)
1593
1594 def GetContentsCnt(*args, **kwargs):
1595 """GetContentsCnt(self) -> int"""
1596 return _html.HtmlHelpData_GetContentsCnt(*args, **kwargs)
1597
1598 def GetIndex(*args, **kwargs):
1599 """GetIndex(self) -> HtmlContentsItem"""
1600 return _html.HtmlHelpData_GetIndex(*args, **kwargs)
1601
1602 def GetIndexCnt(*args, **kwargs):
1603 """GetIndexCnt(self) -> int"""
1604 return _html.HtmlHelpData_GetIndexCnt(*args, **kwargs)
1605
1606
1607 class HtmlHelpDataPtr(HtmlHelpData):
1608 def __init__(self, this):
1609 self.this = this
1610 if not hasattr(self,"thisown"): self.thisown = 0
1611 self.__class__ = HtmlHelpData
1612 _html.HtmlHelpData_swigregister(HtmlHelpDataPtr)
1613
1614 class HtmlHelpFrame(_windows.Frame):
1615 """Proxy of C++ HtmlHelpFrame class"""
1616 def __repr__(self):
1617 return "<%s.%s; proxy of C++ wxHtmlHelpFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1618 def __init__(self, *args, **kwargs):
1619 """
1620 __init__(self, Window parent, int ??, String title=EmptyString, int style=HF_DEFAULTSTYLE,
1621 HtmlHelpData data=None) -> HtmlHelpFrame
1622 """
1623 newobj = _html.new_HtmlHelpFrame(*args, **kwargs)
1624 self.this = newobj.this
1625 self.thisown = 1
1626 del newobj.thisown
1627 self._setOORInfo(self)
1628
1629 def GetData(*args, **kwargs):
1630 """GetData(self) -> HtmlHelpData"""
1631 return _html.HtmlHelpFrame_GetData(*args, **kwargs)
1632
1633 def SetTitleFormat(*args, **kwargs):
1634 """SetTitleFormat(self, String format)"""
1635 return _html.HtmlHelpFrame_SetTitleFormat(*args, **kwargs)
1636
1637 def Display(*args, **kwargs):
1638 """Display(self, String x)"""
1639 return _html.HtmlHelpFrame_Display(*args, **kwargs)
1640
1641 def DisplayID(*args, **kwargs):
1642 """DisplayID(self, int id)"""
1643 return _html.HtmlHelpFrame_DisplayID(*args, **kwargs)
1644
1645 def DisplayContents(*args, **kwargs):
1646 """DisplayContents(self)"""
1647 return _html.HtmlHelpFrame_DisplayContents(*args, **kwargs)
1648
1649 def DisplayIndex(*args, **kwargs):
1650 """DisplayIndex(self)"""
1651 return _html.HtmlHelpFrame_DisplayIndex(*args, **kwargs)
1652
1653 def KeywordSearch(*args, **kwargs):
1654 """KeywordSearch(self, String keyword) -> bool"""
1655 return _html.HtmlHelpFrame_KeywordSearch(*args, **kwargs)
1656
1657 def UseConfig(*args, **kwargs):
1658 """UseConfig(self, ConfigBase config, String rootpath=EmptyString)"""
1659 return _html.HtmlHelpFrame_UseConfig(*args, **kwargs)
1660
1661 def ReadCustomization(*args, **kwargs):
1662 """ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1663 return _html.HtmlHelpFrame_ReadCustomization(*args, **kwargs)
1664
1665 def WriteCustomization(*args, **kwargs):
1666 """WriteCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1667 return _html.HtmlHelpFrame_WriteCustomization(*args, **kwargs)
1668
1669
1670 class HtmlHelpFramePtr(HtmlHelpFrame):
1671 def __init__(self, this):
1672 self.this = this
1673 if not hasattr(self,"thisown"): self.thisown = 0
1674 self.__class__ = HtmlHelpFrame
1675 _html.HtmlHelpFrame_swigregister(HtmlHelpFramePtr)
1676
1677 HF_TOOLBAR = _html.HF_TOOLBAR
1678 HF_FLATTOOLBAR = _html.HF_FLATTOOLBAR
1679 HF_CONTENTS = _html.HF_CONTENTS
1680 HF_INDEX = _html.HF_INDEX
1681 HF_SEARCH = _html.HF_SEARCH
1682 HF_BOOKMARKS = _html.HF_BOOKMARKS
1683 HF_OPENFILES = _html.HF_OPENFILES
1684 HF_PRINT = _html.HF_PRINT
1685 HF_DEFAULTSTYLE = _html.HF_DEFAULTSTYLE
1686 class HtmlHelpController(_core.Object):
1687 """Proxy of C++ HtmlHelpController class"""
1688 def __repr__(self):
1689 return "<%s.%s; proxy of C++ wxHtmlHelpController instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1690 def __init__(self, *args, **kwargs):
1691 """__init__(self, int style=HF_DEFAULTSTYLE) -> HtmlHelpController"""
1692 newobj = _html.new_HtmlHelpController(*args, **kwargs)
1693 self.this = newobj.this
1694 self.thisown = 1
1695 del newobj.thisown
1696 def __del__(self, destroy=_html.delete_HtmlHelpController):
1697 """__del__(self)"""
1698 try:
1699 if self.thisown: destroy(self)
1700 except: pass
1701
1702 def SetTitleFormat(*args, **kwargs):
1703 """SetTitleFormat(self, String format)"""
1704 return _html.HtmlHelpController_SetTitleFormat(*args, **kwargs)
1705
1706 def SetTempDir(*args, **kwargs):
1707 """SetTempDir(self, String path)"""
1708 return _html.HtmlHelpController_SetTempDir(*args, **kwargs)
1709
1710 def AddBook(*args, **kwargs):
1711 """AddBook(self, String book, int show_wait_msg=False) -> bool"""
1712 return _html.HtmlHelpController_AddBook(*args, **kwargs)
1713
1714 def Display(*args, **kwargs):
1715 """Display(self, String x)"""
1716 return _html.HtmlHelpController_Display(*args, **kwargs)
1717
1718 def DisplayID(*args, **kwargs):
1719 """DisplayID(self, int id)"""
1720 return _html.HtmlHelpController_DisplayID(*args, **kwargs)
1721
1722 def DisplayContents(*args, **kwargs):
1723 """DisplayContents(self)"""
1724 return _html.HtmlHelpController_DisplayContents(*args, **kwargs)
1725
1726 def DisplayIndex(*args, **kwargs):
1727 """DisplayIndex(self)"""
1728 return _html.HtmlHelpController_DisplayIndex(*args, **kwargs)
1729
1730 def KeywordSearch(*args, **kwargs):
1731 """KeywordSearch(self, String keyword) -> bool"""
1732 return _html.HtmlHelpController_KeywordSearch(*args, **kwargs)
1733
1734 def UseConfig(*args, **kwargs):
1735 """UseConfig(self, ConfigBase config, String rootpath=EmptyString)"""
1736 return _html.HtmlHelpController_UseConfig(*args, **kwargs)
1737
1738 def ReadCustomization(*args, **kwargs):
1739 """ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1740 return _html.HtmlHelpController_ReadCustomization(*args, **kwargs)
1741
1742 def WriteCustomization(*args, **kwargs):
1743 """WriteCustomization(self, ConfigBase cfg, String path=EmptyString)"""
1744 return _html.HtmlHelpController_WriteCustomization(*args, **kwargs)
1745
1746 def GetFrame(*args, **kwargs):
1747 """GetFrame(self) -> HtmlHelpFrame"""
1748 return _html.HtmlHelpController_GetFrame(*args, **kwargs)
1749
1750
1751 class HtmlHelpControllerPtr(HtmlHelpController):
1752 def __init__(self, this):
1753 self.this = this
1754 if not hasattr(self,"thisown"): self.thisown = 0
1755 self.__class__ = HtmlHelpController
1756 _html.HtmlHelpController_swigregister(HtmlHelpControllerPtr)
1757
1758