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