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