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