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