]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/html.cpp
ecba04ab38c7449e978a41f7c3dc24f529a0522d
[wxWidgets.git] / wxPython / src / msw / html.cpp
1 /*
2 * FILE : src/msw/html.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init inithtmlc
55
56 #define SWIG_name "htmlc"
57
58 #include "export.h"
59 #include <wx/html/htmlwin.h>
60 #include <wx/html/htmprint.h>
61 #include <wx/image.h>
62 #include <wx/fs_zip.h>
63 #include <wx/fs_inet.h>
64 #include <wx/wfstream.h>
65
66 #include "printfw.h"
67
68
69 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
70 PyObject* o2;
71 PyObject* o3;
72
73 if (!target) {
74 target = o;
75 } else if (target == Py_None) {
76 Py_DECREF(Py_None);
77 target = o;
78 } else {
79 if (!PyTuple_Check(target)) {
80 o2 = target;
81 target = PyTuple_New(1);
82 PyTuple_SetItem(target, 0, o2);
83 }
84 o3 = PyTuple_New(1);
85 PyTuple_SetItem(o3, 0, o);
86
87 o2 = target;
88 target = PySequence_Concat(o2, o3);
89 Py_DECREF(o2);
90 Py_DECREF(o3);
91 }
92 return target;
93 }
94
95 #if PYTHON_API_VERSION >= 1009
96 static char* wxStringErrorMsg = "String or Unicode type required";
97 #else
98 static char* wxStringErrorMsg = "String type required";
99 #endif
100
101 class wxPyHtmlTagHandler : public wxHtmlTagHandler {
102 DECLARE_DYNAMIC_CLASS(wxPyHtmlTagHandler);
103 public:
104 wxPyHtmlTagHandler() : wxHtmlTagHandler() {};
105
106 wxHtmlParser* GetParser() { return m_Parser; }
107 void ParseInner(const wxHtmlTag& tag) { wxHtmlTagHandler::ParseInner(tag); }
108
109 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
110 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
111
112 PYPRIVATE;
113 };
114
115 IMPLEMENT_DYNAMIC_CLASS(wxPyHtmlTagHandler, wxHtmlTagHandler);
116
117 IMP_PYCALLBACK_STRING__pure(wxPyHtmlTagHandler, wxHtmlTagHandler, GetSupportedTags);
118 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlTagHandler, wxHtmlTagHandler, HandleTag);
119
120 class wxPyHtmlWinTagHandler : public wxHtmlWinTagHandler {
121 DECLARE_DYNAMIC_CLASS(wxPyHtmlWinTagHandler);
122 public:
123 wxPyHtmlWinTagHandler() : wxHtmlWinTagHandler() {};
124
125 wxHtmlWinParser* GetParser() { return m_WParser; }
126 void ParseInner(const wxHtmlTag& tag)
127 { wxHtmlWinTagHandler::ParseInner(tag); }
128
129 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
130 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
131
132 PYPRIVATE;
133 };
134
135 IMPLEMENT_DYNAMIC_CLASS( wxPyHtmlWinTagHandler, wxHtmlWinTagHandler);
136
137 IMP_PYCALLBACK_STRING__pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, GetSupportedTags);
138 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, HandleTag);
139
140
141 class wxPyHtmlTagsModule : public wxHtmlTagsModule {
142 public:
143 wxPyHtmlTagsModule(PyObject* thc) : wxHtmlTagsModule() {
144 m_tagHandlerClass = thc;
145 Py_INCREF(m_tagHandlerClass);
146 RegisterModule(this);
147 wxHtmlWinParser::AddModule(this);
148 }
149
150 void OnExit() {
151 wxPyBeginBlockThreads();
152 Py_DECREF(m_tagHandlerClass);
153 m_tagHandlerClass = NULL;
154 for (size_t x=0; x < m_objArray.GetCount(); x++) {
155 PyObject* obj = (PyObject*)m_objArray.Item(x);
156 Py_DECREF(obj);
157 }
158 wxPyEndBlockThreads();
159 };
160
161 void FillHandlersTable(wxHtmlWinParser *parser) {
162 // Wave our magic wand... (if it works it's a miracle! ;-)
163
164 // First, make a new instance of the tag handler
165 wxPyBeginBlockThreads();
166 PyObject* arg = Py_BuildValue("()");
167 PyObject* obj = PyInstance_New(m_tagHandlerClass, arg, NULL);
168 Py_DECREF(arg);
169 wxPyEndBlockThreads();
170
171 // now figure out where it's C++ object is...
172 wxPyHtmlWinTagHandler* thPtr;
173 if (SWIG_GetPtrObj(obj, (void **)&thPtr, "_wxPyHtmlWinTagHandler_p"))
174 return;
175
176 // add it,
177 parser->AddTagHandler(thPtr);
178
179 // and track it.
180 m_objArray.Add(obj);
181 }
182
183 private:
184 PyObject* m_tagHandlerClass;
185 wxArrayPtrVoid m_objArray;
186
187 };
188
189 void wxHtmlWinParser_AddTagHandler(PyObject* tagHandlerClass) {
190 // Dynamically create a new wxModule. Refcounts tagHandlerClass
191 // and adds itself to the wxModules list and to the wxHtmlWinParser.
192 new wxPyHtmlTagsModule(tagHandlerClass);
193 }
194
195 class wxPyHtmlWindow : public wxHtmlWindow {
196 DECLARE_ABSTRACT_CLASS(wxPyHtmlWindow);
197 public:
198 wxPyHtmlWindow(wxWindow *parent, wxWindowID id = -1,
199 const wxPoint& pos = wxDefaultPosition,
200 const wxSize& size = wxDefaultSize,
201 long style = wxHW_SCROLLBAR_AUTO,
202 const wxString& name = "htmlWindow")
203 : wxHtmlWindow(parent, id, pos, size, style, name) {};
204 wxPyHtmlWindow() : wxHtmlWindow() {};
205
206 void OnLinkClicked(const wxHtmlLinkInfo& link);
207 void base_OnLinkClicked(const wxHtmlLinkInfo& link);
208
209 DEC_PYCALLBACK__STRING(OnSetTitle);
210 DEC_PYCALLBACK__CELLINTINT(OnCellMouseHover);
211 DEC_PYCALLBACK__CELLINTINTME(OnCellClicked);
212 DEC_PYCALLBACK_BOOL_STRING(OnOpeningURL);
213 PYPRIVATE;
214 };
215
216 IMPLEMENT_ABSTRACT_CLASS( wxPyHtmlWindow, wxHtmlWindow );
217 IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle);
218 IMP_PYCALLBACK__CELLINTINT(wxPyHtmlWindow, wxHtmlWindow, OnCellMouseHover);
219 IMP_PYCALLBACK__CELLINTINTME(wxPyHtmlWindow, wxHtmlWindow, OnCellClicked);
220 IMP_PYCALLBACK_BOOL_STRING(wxPyHtmlWindow, wxHtmlWindow, OnOpeningURL);
221
222
223 void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
224 bool found;
225 wxPyBeginBlockThreads();
226 if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) {
227 PyObject* obj = wxPyConstructObject((void*)&link, "wxHtmlLinkInfo", 0);
228 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
229 Py_DECREF(obj);
230 }
231 wxPyEndBlockThreads();
232 if (! found)
233 wxHtmlWindow::OnLinkClicked(link);
234 }
235 void wxPyHtmlWindow::base_OnLinkClicked(const wxHtmlLinkInfo& link) {
236 wxHtmlWindow::OnLinkClicked(link);
237 }
238
239
240 void wxHtmlWindow_AddFilter(wxHtmlFilter *filter) {
241 wxHtmlWindow::AddFilter(filter);
242 }
243
244 extern "C" SWIGEXPORT(void) inithtmlhelpc();
245 #ifdef __cplusplus
246 extern "C" {
247 #endif
248 static PyObject *_wrap_wxHtmlWinParser_AddTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
249 PyObject * _resultobj;
250 PyObject * _arg0;
251 PyObject * _obj0 = 0;
252 char *_kwnames[] = { "tagHandlerClass", NULL };
253
254 self = self;
255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_AddTagHandler",_kwnames,&_obj0))
256 return NULL;
257 {
258 _arg0 = _obj0;
259 }
260 {
261 PyThreadState* __tstate = wxPyBeginAllowThreads();
262 wxHtmlWinParser_AddTagHandler(_arg0);
263
264 wxPyEndAllowThreads(__tstate);
265 if (PyErr_Occurred()) return NULL;
266 } Py_INCREF(Py_None);
267 _resultobj = Py_None;
268 return _resultobj;
269 }
270
271 static PyObject *_wrap_wxHtmlWindow_AddFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
272 PyObject * _resultobj;
273 wxHtmlFilter * _arg0;
274 PyObject * _argo0 = 0;
275 char *_kwnames[] = { "filter", NULL };
276
277 self = self;
278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_AddFilter",_kwnames,&_argo0))
279 return NULL;
280 if (_argo0) {
281 if (_argo0 == Py_None) { _arg0 = NULL; }
282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlFilter_p")) {
283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_AddFilter. Expected _wxHtmlFilter_p.");
284 return NULL;
285 }
286 }
287 {
288 PyThreadState* __tstate = wxPyBeginAllowThreads();
289 wxHtmlWindow_AddFilter(_arg0);
290
291 wxPyEndAllowThreads(__tstate);
292 if (PyErr_Occurred()) return NULL;
293 } Py_INCREF(Py_None);
294 _resultobj = Py_None;
295 return _resultobj;
296 }
297
298 static void *SwigwxHtmlLinkInfoTowxObject(void *ptr) {
299 wxHtmlLinkInfo *src;
300 wxObject *dest;
301 src = (wxHtmlLinkInfo *) ptr;
302 dest = (wxObject *) src;
303 return (void *) dest;
304 }
305
306 #define new_wxHtmlLinkInfo(_swigarg0,_swigarg1) (new wxHtmlLinkInfo(_swigarg0,_swigarg1))
307 static PyObject *_wrap_new_wxHtmlLinkInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
308 PyObject * _resultobj;
309 wxHtmlLinkInfo * _result;
310 wxString * _arg0;
311 wxString * _arg1 = (wxString *) &wxEmptyString;
312 PyObject * _obj0 = 0;
313 PyObject * _obj1 = 0;
314 char *_kwnames[] = { "href","target", NULL };
315 char _ptemp[128];
316
317 self = self;
318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxHtmlLinkInfo",_kwnames,&_obj0,&_obj1))
319 return NULL;
320 {
321 #if PYTHON_API_VERSION >= 1009
322 char* tmpPtr; int tmpSize;
323 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
324 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
325 return NULL;
326 }
327 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
328 return NULL;
329 _arg0 = new wxString(tmpPtr, tmpSize);
330 #else
331 if (!PyString_Check(_obj0)) {
332 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
333 return NULL;
334 }
335 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
336 #endif
337 }
338 if (_obj1)
339 {
340 #if PYTHON_API_VERSION >= 1009
341 char* tmpPtr; int tmpSize;
342 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
343 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
344 return NULL;
345 }
346 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
347 return NULL;
348 _arg1 = new wxString(tmpPtr, tmpSize);
349 #else
350 if (!PyString_Check(_obj1)) {
351 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
352 return NULL;
353 }
354 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
355 #endif
356 }
357 {
358 PyThreadState* __tstate = wxPyBeginAllowThreads();
359 _result = (wxHtmlLinkInfo *)new_wxHtmlLinkInfo(*_arg0,*_arg1);
360
361 wxPyEndAllowThreads(__tstate);
362 if (PyErr_Occurred()) return NULL;
363 } if (_result) {
364 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlLinkInfo_p");
365 _resultobj = Py_BuildValue("s",_ptemp);
366 } else {
367 Py_INCREF(Py_None);
368 _resultobj = Py_None;
369 }
370 {
371 if (_obj0)
372 delete _arg0;
373 }
374 {
375 if (_obj1)
376 delete _arg1;
377 }
378 return _resultobj;
379 }
380
381 #define wxHtmlLinkInfo_GetHref(_swigobj) (_swigobj->GetHref())
382 static PyObject *_wrap_wxHtmlLinkInfo_GetHref(PyObject *self, PyObject *args, PyObject *kwargs) {
383 PyObject * _resultobj;
384 wxString * _result;
385 wxHtmlLinkInfo * _arg0;
386 PyObject * _argo0 = 0;
387 char *_kwnames[] = { "self", NULL };
388
389 self = self;
390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlLinkInfo_GetHref",_kwnames,&_argo0))
391 return NULL;
392 if (_argo0) {
393 if (_argo0 == Py_None) { _arg0 = NULL; }
394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_GetHref. Expected _wxHtmlLinkInfo_p.");
396 return NULL;
397 }
398 }
399 {
400 PyThreadState* __tstate = wxPyBeginAllowThreads();
401 _result = new wxString (wxHtmlLinkInfo_GetHref(_arg0));
402
403 wxPyEndAllowThreads(__tstate);
404 if (PyErr_Occurred()) return NULL;
405 }{
406 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
407 }
408 {
409 delete _result;
410 }
411 return _resultobj;
412 }
413
414 #define wxHtmlLinkInfo_GetTarget(_swigobj) (_swigobj->GetTarget())
415 static PyObject *_wrap_wxHtmlLinkInfo_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
416 PyObject * _resultobj;
417 wxString * _result;
418 wxHtmlLinkInfo * _arg0;
419 PyObject * _argo0 = 0;
420 char *_kwnames[] = { "self", NULL };
421
422 self = self;
423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlLinkInfo_GetTarget",_kwnames,&_argo0))
424 return NULL;
425 if (_argo0) {
426 if (_argo0 == Py_None) { _arg0 = NULL; }
427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_GetTarget. Expected _wxHtmlLinkInfo_p.");
429 return NULL;
430 }
431 }
432 {
433 PyThreadState* __tstate = wxPyBeginAllowThreads();
434 _result = new wxString (wxHtmlLinkInfo_GetTarget(_arg0));
435
436 wxPyEndAllowThreads(__tstate);
437 if (PyErr_Occurred()) return NULL;
438 }{
439 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
440 }
441 {
442 delete _result;
443 }
444 return _resultobj;
445 }
446
447 #define wxHtmlLinkInfo_GetEvent(_swigobj) (_swigobj->GetEvent())
448 static PyObject *_wrap_wxHtmlLinkInfo_GetEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
449 PyObject * _resultobj;
450 wxMouseEvent * _result;
451 wxHtmlLinkInfo * _arg0;
452 PyObject * _argo0 = 0;
453 char *_kwnames[] = { "self", NULL };
454
455 self = self;
456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlLinkInfo_GetEvent",_kwnames,&_argo0))
457 return NULL;
458 if (_argo0) {
459 if (_argo0 == Py_None) { _arg0 = NULL; }
460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_GetEvent. Expected _wxHtmlLinkInfo_p.");
462 return NULL;
463 }
464 }
465 {
466 PyThreadState* __tstate = wxPyBeginAllowThreads();
467 _result = (wxMouseEvent *)wxHtmlLinkInfo_GetEvent(_arg0);
468
469 wxPyEndAllowThreads(__tstate);
470 if (PyErr_Occurred()) return NULL;
471 }{ _resultobj = wxPyMake_wxObject(_result); }
472 return _resultobj;
473 }
474
475 #define wxHtmlLinkInfo_GetHtmlCell(_swigobj) (_swigobj->GetHtmlCell())
476 static PyObject *_wrap_wxHtmlLinkInfo_GetHtmlCell(PyObject *self, PyObject *args, PyObject *kwargs) {
477 PyObject * _resultobj;
478 wxHtmlCell * _result;
479 wxHtmlLinkInfo * _arg0;
480 PyObject * _argo0 = 0;
481 char *_kwnames[] = { "self", NULL };
482 char _ptemp[128];
483
484 self = self;
485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlLinkInfo_GetHtmlCell",_kwnames,&_argo0))
486 return NULL;
487 if (_argo0) {
488 if (_argo0 == Py_None) { _arg0 = NULL; }
489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_GetHtmlCell. Expected _wxHtmlLinkInfo_p.");
491 return NULL;
492 }
493 }
494 {
495 PyThreadState* __tstate = wxPyBeginAllowThreads();
496 _result = (wxHtmlCell *)wxHtmlLinkInfo_GetHtmlCell(_arg0);
497
498 wxPyEndAllowThreads(__tstate);
499 if (PyErr_Occurred()) return NULL;
500 } if (_result) {
501 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlCell_p");
502 _resultobj = Py_BuildValue("s",_ptemp);
503 } else {
504 Py_INCREF(Py_None);
505 _resultobj = Py_None;
506 }
507 return _resultobj;
508 }
509
510 #define wxHtmlLinkInfo_SetEvent(_swigobj,_swigarg0) (_swigobj->SetEvent(_swigarg0))
511 static PyObject *_wrap_wxHtmlLinkInfo_SetEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
512 PyObject * _resultobj;
513 wxHtmlLinkInfo * _arg0;
514 wxMouseEvent * _arg1;
515 PyObject * _argo0 = 0;
516 PyObject * _argo1 = 0;
517 char *_kwnames[] = { "self","e", NULL };
518
519 self = self;
520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlLinkInfo_SetEvent",_kwnames,&_argo0,&_argo1))
521 return NULL;
522 if (_argo0) {
523 if (_argo0 == Py_None) { _arg0 = NULL; }
524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_SetEvent. Expected _wxHtmlLinkInfo_p.");
526 return NULL;
527 }
528 }
529 if (_argo1) {
530 if (_argo1 == Py_None) { _arg1 = NULL; }
531 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMouseEvent_p")) {
532 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlLinkInfo_SetEvent. Expected _wxMouseEvent_p.");
533 return NULL;
534 }
535 }
536 {
537 PyThreadState* __tstate = wxPyBeginAllowThreads();
538 wxHtmlLinkInfo_SetEvent(_arg0,_arg1);
539
540 wxPyEndAllowThreads(__tstate);
541 if (PyErr_Occurred()) return NULL;
542 } Py_INCREF(Py_None);
543 _resultobj = Py_None;
544 return _resultobj;
545 }
546
547 #define wxHtmlLinkInfo_SetHtmlCell(_swigobj,_swigarg0) (_swigobj->SetHtmlCell(_swigarg0))
548 static PyObject *_wrap_wxHtmlLinkInfo_SetHtmlCell(PyObject *self, PyObject *args, PyObject *kwargs) {
549 PyObject * _resultobj;
550 wxHtmlLinkInfo * _arg0;
551 wxHtmlCell * _arg1;
552 PyObject * _argo0 = 0;
553 PyObject * _argo1 = 0;
554 char *_kwnames[] = { "self","e", NULL };
555
556 self = self;
557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlLinkInfo_SetHtmlCell",_kwnames,&_argo0,&_argo1))
558 return NULL;
559 if (_argo0) {
560 if (_argo0 == Py_None) { _arg0 = NULL; }
561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlLinkInfo_p")) {
562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlLinkInfo_SetHtmlCell. Expected _wxHtmlLinkInfo_p.");
563 return NULL;
564 }
565 }
566 if (_argo1) {
567 if (_argo1 == Py_None) { _arg1 = NULL; }
568 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlCell_p")) {
569 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlLinkInfo_SetHtmlCell. Expected _wxHtmlCell_p.");
570 return NULL;
571 }
572 }
573 {
574 PyThreadState* __tstate = wxPyBeginAllowThreads();
575 wxHtmlLinkInfo_SetHtmlCell(_arg0,_arg1);
576
577 wxPyEndAllowThreads(__tstate);
578 if (PyErr_Occurred()) return NULL;
579 } Py_INCREF(Py_None);
580 _resultobj = Py_None;
581 return _resultobj;
582 }
583
584 static void *SwigwxHtmlTagTowxObject(void *ptr) {
585 wxHtmlTag *src;
586 wxObject *dest;
587 src = (wxHtmlTag *) ptr;
588 dest = (wxObject *) src;
589 return (void *) dest;
590 }
591
592 #define wxHtmlTag_GetName(_swigobj) (_swigobj->GetName())
593 static PyObject *_wrap_wxHtmlTag_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
594 PyObject * _resultobj;
595 wxString * _result;
596 wxHtmlTag * _arg0;
597 PyObject * _argo0 = 0;
598 char *_kwnames[] = { "self", NULL };
599
600 self = self;
601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_GetName",_kwnames,&_argo0))
602 return NULL;
603 if (_argo0) {
604 if (_argo0 == Py_None) { _arg0 = NULL; }
605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetName. Expected _wxHtmlTag_p.");
607 return NULL;
608 }
609 }
610 {
611 PyThreadState* __tstate = wxPyBeginAllowThreads();
612 _result = new wxString (wxHtmlTag_GetName(_arg0));
613
614 wxPyEndAllowThreads(__tstate);
615 if (PyErr_Occurred()) return NULL;
616 }{
617 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
618 }
619 {
620 delete _result;
621 }
622 return _resultobj;
623 }
624
625 #define wxHtmlTag_HasParam(_swigobj,_swigarg0) (_swigobj->HasParam(_swigarg0))
626 static PyObject *_wrap_wxHtmlTag_HasParam(PyObject *self, PyObject *args, PyObject *kwargs) {
627 PyObject * _resultobj;
628 bool _result;
629 wxHtmlTag * _arg0;
630 wxString * _arg1;
631 PyObject * _argo0 = 0;
632 PyObject * _obj1 = 0;
633 char *_kwnames[] = { "self","par", NULL };
634
635 self = self;
636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlTag_HasParam",_kwnames,&_argo0,&_obj1))
637 return NULL;
638 if (_argo0) {
639 if (_argo0 == Py_None) { _arg0 = NULL; }
640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_HasParam. Expected _wxHtmlTag_p.");
642 return NULL;
643 }
644 }
645 {
646 #if PYTHON_API_VERSION >= 1009
647 char* tmpPtr; int tmpSize;
648 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
649 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
650 return NULL;
651 }
652 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
653 return NULL;
654 _arg1 = new wxString(tmpPtr, tmpSize);
655 #else
656 if (!PyString_Check(_obj1)) {
657 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
658 return NULL;
659 }
660 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
661 #endif
662 }
663 {
664 PyThreadState* __tstate = wxPyBeginAllowThreads();
665 _result = (bool )wxHtmlTag_HasParam(_arg0,*_arg1);
666
667 wxPyEndAllowThreads(__tstate);
668 if (PyErr_Occurred()) return NULL;
669 } _resultobj = Py_BuildValue("i",_result);
670 {
671 if (_obj1)
672 delete _arg1;
673 }
674 return _resultobj;
675 }
676
677 #define wxHtmlTag_GetParam(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetParam(_swigarg0,_swigarg1))
678 static PyObject *_wrap_wxHtmlTag_GetParam(PyObject *self, PyObject *args, PyObject *kwargs) {
679 PyObject * _resultobj;
680 wxString * _result;
681 wxHtmlTag * _arg0;
682 wxString * _arg1;
683 int _arg2 = (int ) FALSE;
684 PyObject * _argo0 = 0;
685 PyObject * _obj1 = 0;
686 char *_kwnames[] = { "self","par","with_commas", NULL };
687
688 self = self;
689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlTag_GetParam",_kwnames,&_argo0,&_obj1,&_arg2))
690 return NULL;
691 if (_argo0) {
692 if (_argo0 == Py_None) { _arg0 = NULL; }
693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetParam. Expected _wxHtmlTag_p.");
695 return NULL;
696 }
697 }
698 {
699 #if PYTHON_API_VERSION >= 1009
700 char* tmpPtr; int tmpSize;
701 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
703 return NULL;
704 }
705 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
706 return NULL;
707 _arg1 = new wxString(tmpPtr, tmpSize);
708 #else
709 if (!PyString_Check(_obj1)) {
710 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
711 return NULL;
712 }
713 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
714 #endif
715 }
716 {
717 PyThreadState* __tstate = wxPyBeginAllowThreads();
718 _result = new wxString (wxHtmlTag_GetParam(_arg0,*_arg1,_arg2));
719
720 wxPyEndAllowThreads(__tstate);
721 if (PyErr_Occurred()) return NULL;
722 }{
723 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
724 }
725 {
726 if (_obj1)
727 delete _arg1;
728 }
729 {
730 delete _result;
731 }
732 return _resultobj;
733 }
734
735 #define wxHtmlTag_GetAllParams(_swigobj) (_swigobj->GetAllParams())
736 static PyObject *_wrap_wxHtmlTag_GetAllParams(PyObject *self, PyObject *args, PyObject *kwargs) {
737 PyObject * _resultobj;
738 wxString * _result;
739 wxHtmlTag * _arg0;
740 PyObject * _argo0 = 0;
741 char *_kwnames[] = { "self", NULL };
742
743 self = self;
744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_GetAllParams",_kwnames,&_argo0))
745 return NULL;
746 if (_argo0) {
747 if (_argo0 == Py_None) { _arg0 = NULL; }
748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetAllParams. Expected _wxHtmlTag_p.");
750 return NULL;
751 }
752 }
753 {
754 PyThreadState* __tstate = wxPyBeginAllowThreads();
755 _result = new wxString (wxHtmlTag_GetAllParams(_arg0));
756
757 wxPyEndAllowThreads(__tstate);
758 if (PyErr_Occurred()) return NULL;
759 }{
760 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
761 }
762 {
763 delete _result;
764 }
765 return _resultobj;
766 }
767
768 #define wxHtmlTag_HasEnding(_swigobj) (_swigobj->HasEnding())
769 static PyObject *_wrap_wxHtmlTag_HasEnding(PyObject *self, PyObject *args, PyObject *kwargs) {
770 PyObject * _resultobj;
771 bool _result;
772 wxHtmlTag * _arg0;
773 PyObject * _argo0 = 0;
774 char *_kwnames[] = { "self", NULL };
775
776 self = self;
777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_HasEnding",_kwnames,&_argo0))
778 return NULL;
779 if (_argo0) {
780 if (_argo0 == Py_None) { _arg0 = NULL; }
781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_HasEnding. Expected _wxHtmlTag_p.");
783 return NULL;
784 }
785 }
786 {
787 PyThreadState* __tstate = wxPyBeginAllowThreads();
788 _result = (bool )wxHtmlTag_HasEnding(_arg0);
789
790 wxPyEndAllowThreads(__tstate);
791 if (PyErr_Occurred()) return NULL;
792 } _resultobj = Py_BuildValue("i",_result);
793 return _resultobj;
794 }
795
796 #define wxHtmlTag_GetBeginPos(_swigobj) (_swigobj->GetBeginPos())
797 static PyObject *_wrap_wxHtmlTag_GetBeginPos(PyObject *self, PyObject *args, PyObject *kwargs) {
798 PyObject * _resultobj;
799 int _result;
800 wxHtmlTag * _arg0;
801 PyObject * _argo0 = 0;
802 char *_kwnames[] = { "self", NULL };
803
804 self = self;
805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_GetBeginPos",_kwnames,&_argo0))
806 return NULL;
807 if (_argo0) {
808 if (_argo0 == Py_None) { _arg0 = NULL; }
809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetBeginPos. Expected _wxHtmlTag_p.");
811 return NULL;
812 }
813 }
814 {
815 PyThreadState* __tstate = wxPyBeginAllowThreads();
816 _result = (int )wxHtmlTag_GetBeginPos(_arg0);
817
818 wxPyEndAllowThreads(__tstate);
819 if (PyErr_Occurred()) return NULL;
820 } _resultobj = Py_BuildValue("i",_result);
821 return _resultobj;
822 }
823
824 #define wxHtmlTag_GetEndPos1(_swigobj) (_swigobj->GetEndPos1())
825 static PyObject *_wrap_wxHtmlTag_GetEndPos1(PyObject *self, PyObject *args, PyObject *kwargs) {
826 PyObject * _resultobj;
827 int _result;
828 wxHtmlTag * _arg0;
829 PyObject * _argo0 = 0;
830 char *_kwnames[] = { "self", NULL };
831
832 self = self;
833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_GetEndPos1",_kwnames,&_argo0))
834 return NULL;
835 if (_argo0) {
836 if (_argo0 == Py_None) { _arg0 = NULL; }
837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetEndPos1. Expected _wxHtmlTag_p.");
839 return NULL;
840 }
841 }
842 {
843 PyThreadState* __tstate = wxPyBeginAllowThreads();
844 _result = (int )wxHtmlTag_GetEndPos1(_arg0);
845
846 wxPyEndAllowThreads(__tstate);
847 if (PyErr_Occurred()) return NULL;
848 } _resultobj = Py_BuildValue("i",_result);
849 return _resultobj;
850 }
851
852 #define wxHtmlTag_GetEndPos2(_swigobj) (_swigobj->GetEndPos2())
853 static PyObject *_wrap_wxHtmlTag_GetEndPos2(PyObject *self, PyObject *args, PyObject *kwargs) {
854 PyObject * _resultobj;
855 int _result;
856 wxHtmlTag * _arg0;
857 PyObject * _argo0 = 0;
858 char *_kwnames[] = { "self", NULL };
859
860 self = self;
861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTag_GetEndPos2",_kwnames,&_argo0))
862 return NULL;
863 if (_argo0) {
864 if (_argo0 == Py_None) { _arg0 = NULL; }
865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlTag_p")) {
866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTag_GetEndPos2. Expected _wxHtmlTag_p.");
867 return NULL;
868 }
869 }
870 {
871 PyThreadState* __tstate = wxPyBeginAllowThreads();
872 _result = (int )wxHtmlTag_GetEndPos2(_arg0);
873
874 wxPyEndAllowThreads(__tstate);
875 if (PyErr_Occurred()) return NULL;
876 } _resultobj = Py_BuildValue("i",_result);
877 return _resultobj;
878 }
879
880 static void *SwigwxHtmlParserTowxObject(void *ptr) {
881 wxHtmlParser *src;
882 wxObject *dest;
883 src = (wxHtmlParser *) ptr;
884 dest = (wxObject *) src;
885 return (void *) dest;
886 }
887
888 #define wxHtmlParser_SetFS(_swigobj,_swigarg0) (_swigobj->SetFS(_swigarg0))
889 static PyObject *_wrap_wxHtmlParser_SetFS(PyObject *self, PyObject *args, PyObject *kwargs) {
890 PyObject * _resultobj;
891 wxHtmlParser * _arg0;
892 wxFileSystem * _arg1;
893 PyObject * _argo0 = 0;
894 PyObject * _argo1 = 0;
895 char *_kwnames[] = { "self","fs", NULL };
896
897 self = self;
898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_SetFS",_kwnames,&_argo0,&_argo1))
899 return NULL;
900 if (_argo0) {
901 if (_argo0 == Py_None) { _arg0 = NULL; }
902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_SetFS. Expected _wxHtmlParser_p.");
904 return NULL;
905 }
906 }
907 if (_argo1) {
908 if (_argo1 == Py_None) { _arg1 = NULL; }
909 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileSystem_p")) {
910 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlParser_SetFS. Expected _wxFileSystem_p.");
911 return NULL;
912 }
913 }
914 {
915 PyThreadState* __tstate = wxPyBeginAllowThreads();
916 wxHtmlParser_SetFS(_arg0,_arg1);
917
918 wxPyEndAllowThreads(__tstate);
919 if (PyErr_Occurred()) return NULL;
920 } Py_INCREF(Py_None);
921 _resultobj = Py_None;
922 return _resultobj;
923 }
924
925 #define wxHtmlParser_GetFS(_swigobj) (_swigobj->GetFS())
926 static PyObject *_wrap_wxHtmlParser_GetFS(PyObject *self, PyObject *args, PyObject *kwargs) {
927 PyObject * _resultobj;
928 wxFileSystem * _result;
929 wxHtmlParser * _arg0;
930 PyObject * _argo0 = 0;
931 char *_kwnames[] = { "self", NULL };
932
933 self = self;
934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlParser_GetFS",_kwnames,&_argo0))
935 return NULL;
936 if (_argo0) {
937 if (_argo0 == Py_None) { _arg0 = NULL; }
938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_GetFS. Expected _wxHtmlParser_p.");
940 return NULL;
941 }
942 }
943 {
944 PyThreadState* __tstate = wxPyBeginAllowThreads();
945 _result = (wxFileSystem *)wxHtmlParser_GetFS(_arg0);
946
947 wxPyEndAllowThreads(__tstate);
948 if (PyErr_Occurred()) return NULL;
949 }{ _resultobj = wxPyMake_wxObject(_result); }
950 return _resultobj;
951 }
952
953 #define wxHtmlParser_Parse(_swigobj,_swigarg0) (_swigobj->Parse(_swigarg0))
954 static PyObject *_wrap_wxHtmlParser_Parse(PyObject *self, PyObject *args, PyObject *kwargs) {
955 PyObject * _resultobj;
956 wxObject * _result;
957 wxHtmlParser * _arg0;
958 wxString * _arg1;
959 PyObject * _argo0 = 0;
960 PyObject * _obj1 = 0;
961 char *_kwnames[] = { "self","source", NULL };
962
963 self = self;
964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_Parse",_kwnames,&_argo0,&_obj1))
965 return NULL;
966 if (_argo0) {
967 if (_argo0 == Py_None) { _arg0 = NULL; }
968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_Parse. Expected _wxHtmlParser_p.");
970 return NULL;
971 }
972 }
973 {
974 #if PYTHON_API_VERSION >= 1009
975 char* tmpPtr; int tmpSize;
976 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
977 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
978 return NULL;
979 }
980 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
981 return NULL;
982 _arg1 = new wxString(tmpPtr, tmpSize);
983 #else
984 if (!PyString_Check(_obj1)) {
985 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
986 return NULL;
987 }
988 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
989 #endif
990 }
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 _result = (wxObject *)wxHtmlParser_Parse(_arg0,*_arg1);
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) return NULL;
997 }{ _resultobj = wxPyMake_wxObject(_result); }
998 {
999 if (_obj1)
1000 delete _arg1;
1001 }
1002 return _resultobj;
1003 }
1004
1005 #define wxHtmlParser_InitParser(_swigobj,_swigarg0) (_swigobj->InitParser(_swigarg0))
1006 static PyObject *_wrap_wxHtmlParser_InitParser(PyObject *self, PyObject *args, PyObject *kwargs) {
1007 PyObject * _resultobj;
1008 wxHtmlParser * _arg0;
1009 wxString * _arg1;
1010 PyObject * _argo0 = 0;
1011 PyObject * _obj1 = 0;
1012 char *_kwnames[] = { "self","source", NULL };
1013
1014 self = self;
1015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_InitParser",_kwnames,&_argo0,&_obj1))
1016 return NULL;
1017 if (_argo0) {
1018 if (_argo0 == Py_None) { _arg0 = NULL; }
1019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_InitParser. Expected _wxHtmlParser_p.");
1021 return NULL;
1022 }
1023 }
1024 {
1025 #if PYTHON_API_VERSION >= 1009
1026 char* tmpPtr; int tmpSize;
1027 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1028 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1029 return NULL;
1030 }
1031 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1032 return NULL;
1033 _arg1 = new wxString(tmpPtr, tmpSize);
1034 #else
1035 if (!PyString_Check(_obj1)) {
1036 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1037 return NULL;
1038 }
1039 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1040 #endif
1041 }
1042 {
1043 PyThreadState* __tstate = wxPyBeginAllowThreads();
1044 wxHtmlParser_InitParser(_arg0,*_arg1);
1045
1046 wxPyEndAllowThreads(__tstate);
1047 if (PyErr_Occurred()) return NULL;
1048 } Py_INCREF(Py_None);
1049 _resultobj = Py_None;
1050 {
1051 if (_obj1)
1052 delete _arg1;
1053 }
1054 return _resultobj;
1055 }
1056
1057 #define wxHtmlParser_DoneParser(_swigobj) (_swigobj->DoneParser())
1058 static PyObject *_wrap_wxHtmlParser_DoneParser(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxHtmlParser * _arg0;
1061 PyObject * _argo0 = 0;
1062 char *_kwnames[] = { "self", NULL };
1063
1064 self = self;
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlParser_DoneParser",_kwnames,&_argo0))
1066 return NULL;
1067 if (_argo0) {
1068 if (_argo0 == Py_None) { _arg0 = NULL; }
1069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_DoneParser. Expected _wxHtmlParser_p.");
1071 return NULL;
1072 }
1073 }
1074 {
1075 PyThreadState* __tstate = wxPyBeginAllowThreads();
1076 wxHtmlParser_DoneParser(_arg0);
1077
1078 wxPyEndAllowThreads(__tstate);
1079 if (PyErr_Occurred()) return NULL;
1080 } Py_INCREF(Py_None);
1081 _resultobj = Py_None;
1082 return _resultobj;
1083 }
1084
1085 #define wxHtmlParser_DoParsing(_swigobj,_swigarg0,_swigarg1) (_swigobj->DoParsing(_swigarg0,_swigarg1))
1086 static PyObject *_wrap_wxHtmlParser_DoParsing(PyObject *self, PyObject *args, PyObject *kwargs) {
1087 PyObject * _resultobj;
1088 wxHtmlParser * _arg0;
1089 int _arg1;
1090 int _arg2;
1091 PyObject * _argo0 = 0;
1092 char *_kwnames[] = { "self","begin_pos","end_pos", NULL };
1093
1094 self = self;
1095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxHtmlParser_DoParsing",_kwnames,&_argo0,&_arg1,&_arg2))
1096 return NULL;
1097 if (_argo0) {
1098 if (_argo0 == Py_None) { _arg0 = NULL; }
1099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_DoParsing. Expected _wxHtmlParser_p.");
1101 return NULL;
1102 }
1103 }
1104 {
1105 PyThreadState* __tstate = wxPyBeginAllowThreads();
1106 wxHtmlParser_DoParsing(_arg0,_arg1,_arg2);
1107
1108 wxPyEndAllowThreads(__tstate);
1109 if (PyErr_Occurred()) return NULL;
1110 } Py_INCREF(Py_None);
1111 _resultobj = Py_None;
1112 return _resultobj;
1113 }
1114
1115 #define wxHtmlParser_AddTagHandler(_swigobj,_swigarg0) (_swigobj->AddTagHandler(_swigarg0))
1116 static PyObject *_wrap_wxHtmlParser_AddTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1117 PyObject * _resultobj;
1118 wxHtmlParser * _arg0;
1119 wxHtmlTagHandler * _arg1;
1120 PyObject * _argo0 = 0;
1121 PyObject * _argo1 = 0;
1122 char *_kwnames[] = { "self","handler", NULL };
1123
1124 self = self;
1125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_AddTagHandler",_kwnames,&_argo0,&_argo1))
1126 return NULL;
1127 if (_argo0) {
1128 if (_argo0 == Py_None) { _arg0 = NULL; }
1129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_AddTagHandler. Expected _wxHtmlParser_p.");
1131 return NULL;
1132 }
1133 }
1134 if (_argo1) {
1135 if (_argo1 == Py_None) { _arg1 = NULL; }
1136 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTagHandler_p")) {
1137 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlParser_AddTagHandler. Expected _wxHtmlTagHandler_p.");
1138 return NULL;
1139 }
1140 }
1141 {
1142 PyThreadState* __tstate = wxPyBeginAllowThreads();
1143 wxHtmlParser_AddTagHandler(_arg0,_arg1);
1144
1145 wxPyEndAllowThreads(__tstate);
1146 if (PyErr_Occurred()) return NULL;
1147 } Py_INCREF(Py_None);
1148 _resultobj = Py_None;
1149 return _resultobj;
1150 }
1151
1152 #define wxHtmlParser_GetSource(_swigobj) (_swigobj->GetSource())
1153 static PyObject *_wrap_wxHtmlParser_GetSource(PyObject *self, PyObject *args, PyObject *kwargs) {
1154 PyObject * _resultobj;
1155 wxString * _result;
1156 wxHtmlParser * _arg0;
1157 PyObject * _argo0 = 0;
1158 char *_kwnames[] = { "self", NULL };
1159
1160 self = self;
1161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlParser_GetSource",_kwnames,&_argo0))
1162 return NULL;
1163 if (_argo0) {
1164 if (_argo0 == Py_None) { _arg0 = NULL; }
1165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_GetSource. Expected _wxHtmlParser_p.");
1167 return NULL;
1168 }
1169 }
1170 {
1171 PyThreadState* __tstate = wxPyBeginAllowThreads();
1172 _result = (wxString *)wxHtmlParser_GetSource(_arg0);
1173
1174 wxPyEndAllowThreads(__tstate);
1175 if (PyErr_Occurred()) return NULL;
1176 }{
1177 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1178 }
1179 return _resultobj;
1180 }
1181
1182 #define wxHtmlParser_PushTagHandler(_swigobj,_swigarg0,_swigarg1) (_swigobj->PushTagHandler(_swigarg0,_swigarg1))
1183 static PyObject *_wrap_wxHtmlParser_PushTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1184 PyObject * _resultobj;
1185 wxHtmlParser * _arg0;
1186 wxHtmlTagHandler * _arg1;
1187 wxString * _arg2;
1188 PyObject * _argo0 = 0;
1189 PyObject * _argo1 = 0;
1190 PyObject * _obj2 = 0;
1191 char *_kwnames[] = { "self","handler","tags", NULL };
1192
1193 self = self;
1194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlParser_PushTagHandler",_kwnames,&_argo0,&_argo1,&_obj2))
1195 return NULL;
1196 if (_argo0) {
1197 if (_argo0 == Py_None) { _arg0 = NULL; }
1198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_PushTagHandler. Expected _wxHtmlParser_p.");
1200 return NULL;
1201 }
1202 }
1203 if (_argo1) {
1204 if (_argo1 == Py_None) { _arg1 = NULL; }
1205 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTagHandler_p")) {
1206 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlParser_PushTagHandler. Expected _wxHtmlTagHandler_p.");
1207 return NULL;
1208 }
1209 }
1210 {
1211 #if PYTHON_API_VERSION >= 1009
1212 char* tmpPtr; int tmpSize;
1213 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1214 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1215 return NULL;
1216 }
1217 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1218 return NULL;
1219 _arg2 = new wxString(tmpPtr, tmpSize);
1220 #else
1221 if (!PyString_Check(_obj2)) {
1222 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1223 return NULL;
1224 }
1225 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1226 #endif
1227 }
1228 {
1229 PyThreadState* __tstate = wxPyBeginAllowThreads();
1230 wxHtmlParser_PushTagHandler(_arg0,_arg1,*_arg2);
1231
1232 wxPyEndAllowThreads(__tstate);
1233 if (PyErr_Occurred()) return NULL;
1234 } Py_INCREF(Py_None);
1235 _resultobj = Py_None;
1236 {
1237 if (_obj2)
1238 delete _arg2;
1239 }
1240 return _resultobj;
1241 }
1242
1243 #define wxHtmlParser_PopTagHandler(_swigobj) (_swigobj->PopTagHandler())
1244 static PyObject *_wrap_wxHtmlParser_PopTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1245 PyObject * _resultobj;
1246 wxHtmlParser * _arg0;
1247 PyObject * _argo0 = 0;
1248 char *_kwnames[] = { "self", NULL };
1249
1250 self = self;
1251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlParser_PopTagHandler",_kwnames,&_argo0))
1252 return NULL;
1253 if (_argo0) {
1254 if (_argo0 == Py_None) { _arg0 = NULL; }
1255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_PopTagHandler. Expected _wxHtmlParser_p.");
1257 return NULL;
1258 }
1259 }
1260 {
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 wxHtmlParser_PopTagHandler(_arg0);
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) return NULL;
1266 } Py_INCREF(Py_None);
1267 _resultobj = Py_None;
1268 return _resultobj;
1269 }
1270
1271 #define wxHtmlParser_CanOpenURL(_swigobj,_swigarg0) (_swigobj->CanOpenURL(_swigarg0))
1272 static PyObject *_wrap_wxHtmlParser_CanOpenURL(PyObject *self, PyObject *args, PyObject *kwargs) {
1273 PyObject * _resultobj;
1274 bool _result;
1275 wxHtmlParser * _arg0;
1276 wxString * _arg1;
1277 PyObject * _argo0 = 0;
1278 PyObject * _obj1 = 0;
1279 char *_kwnames[] = { "self","url", NULL };
1280
1281 self = self;
1282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_CanOpenURL",_kwnames,&_argo0,&_obj1))
1283 return NULL;
1284 if (_argo0) {
1285 if (_argo0 == Py_None) { _arg0 = NULL; }
1286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlParser_p")) {
1287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlParser_CanOpenURL. Expected _wxHtmlParser_p.");
1288 return NULL;
1289 }
1290 }
1291 {
1292 #if PYTHON_API_VERSION >= 1009
1293 char* tmpPtr; int tmpSize;
1294 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1295 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1296 return NULL;
1297 }
1298 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1299 return NULL;
1300 _arg1 = new wxString(tmpPtr, tmpSize);
1301 #else
1302 if (!PyString_Check(_obj1)) {
1303 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1304 return NULL;
1305 }
1306 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1307 #endif
1308 }
1309 {
1310 PyThreadState* __tstate = wxPyBeginAllowThreads();
1311 _result = (bool )wxHtmlParser_CanOpenURL(_arg0,*_arg1);
1312
1313 wxPyEndAllowThreads(__tstate);
1314 if (PyErr_Occurred()) return NULL;
1315 } _resultobj = Py_BuildValue("i",_result);
1316 {
1317 if (_obj1)
1318 delete _arg1;
1319 }
1320 return _resultobj;
1321 }
1322
1323 static void *SwigwxHtmlWinParserTowxHtmlParser(void *ptr) {
1324 wxHtmlWinParser *src;
1325 wxHtmlParser *dest;
1326 src = (wxHtmlWinParser *) ptr;
1327 dest = (wxHtmlParser *) src;
1328 return (void *) dest;
1329 }
1330
1331 static void *SwigwxHtmlWinParserTowxObject(void *ptr) {
1332 wxHtmlWinParser *src;
1333 wxObject *dest;
1334 src = (wxHtmlWinParser *) ptr;
1335 dest = (wxObject *) src;
1336 return (void *) dest;
1337 }
1338
1339 #define new_wxHtmlWinParser(_swigarg0) (new wxHtmlWinParser(_swigarg0))
1340 static PyObject *_wrap_new_wxHtmlWinParser(PyObject *self, PyObject *args, PyObject *kwargs) {
1341 PyObject * _resultobj;
1342 wxHtmlWinParser * _result;
1343 wxHtmlWindow * _arg0 = (wxHtmlWindow *) NULL;
1344 PyObject * _argo0 = 0;
1345 char *_kwnames[] = { "wnd", NULL };
1346 char _ptemp[128];
1347
1348 self = self;
1349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxHtmlWinParser",_kwnames,&_argo0))
1350 return NULL;
1351 if (_argo0) {
1352 if (_argo0 == Py_None) { _arg0 = NULL; }
1353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWindow_p")) {
1354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWinParser. Expected _wxHtmlWindow_p.");
1355 return NULL;
1356 }
1357 }
1358 {
1359 PyThreadState* __tstate = wxPyBeginAllowThreads();
1360 _result = (wxHtmlWinParser *)new_wxHtmlWinParser(_arg0);
1361
1362 wxPyEndAllowThreads(__tstate);
1363 if (PyErr_Occurred()) return NULL;
1364 } if (_result) {
1365 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWinParser_p");
1366 _resultobj = Py_BuildValue("s",_ptemp);
1367 } else {
1368 Py_INCREF(Py_None);
1369 _resultobj = Py_None;
1370 }
1371 return _resultobj;
1372 }
1373
1374 #define wxHtmlWinParser_SetDC(_swigobj,_swigarg0) (_swigobj->SetDC(_swigarg0))
1375 static PyObject *_wrap_wxHtmlWinParser_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
1376 PyObject * _resultobj;
1377 wxHtmlWinParser * _arg0;
1378 wxDC * _arg1;
1379 PyObject * _argo0 = 0;
1380 PyObject * _argo1 = 0;
1381 char *_kwnames[] = { "self","dc", NULL };
1382
1383 self = self;
1384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinParser_SetDC",_kwnames,&_argo0,&_argo1))
1385 return NULL;
1386 if (_argo0) {
1387 if (_argo0 == Py_None) { _arg0 = NULL; }
1388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetDC. Expected _wxHtmlWinParser_p.");
1390 return NULL;
1391 }
1392 }
1393 if (_argo1) {
1394 if (_argo1 == Py_None) { _arg1 = NULL; }
1395 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
1396 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWinParser_SetDC. Expected _wxDC_p.");
1397 return NULL;
1398 }
1399 }
1400 {
1401 PyThreadState* __tstate = wxPyBeginAllowThreads();
1402 wxHtmlWinParser_SetDC(_arg0,_arg1);
1403
1404 wxPyEndAllowThreads(__tstate);
1405 if (PyErr_Occurred()) return NULL;
1406 } Py_INCREF(Py_None);
1407 _resultobj = Py_None;
1408 return _resultobj;
1409 }
1410
1411 #define wxHtmlWinParser_GetDC(_swigobj) (_swigobj->GetDC())
1412 static PyObject *_wrap_wxHtmlWinParser_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
1413 PyObject * _resultobj;
1414 wxDC * _result;
1415 wxHtmlWinParser * _arg0;
1416 PyObject * _argo0 = 0;
1417 char *_kwnames[] = { "self", NULL };
1418
1419 self = self;
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetDC",_kwnames,&_argo0))
1421 return NULL;
1422 if (_argo0) {
1423 if (_argo0 == Py_None) { _arg0 = NULL; }
1424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetDC. Expected _wxHtmlWinParser_p.");
1426 return NULL;
1427 }
1428 }
1429 {
1430 PyThreadState* __tstate = wxPyBeginAllowThreads();
1431 _result = (wxDC *)wxHtmlWinParser_GetDC(_arg0);
1432
1433 wxPyEndAllowThreads(__tstate);
1434 if (PyErr_Occurred()) return NULL;
1435 }{ _resultobj = wxPyMake_wxObject(_result); }
1436 return _resultobj;
1437 }
1438
1439 #define wxHtmlWinParser_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1440 static PyObject *_wrap_wxHtmlWinParser_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1441 PyObject * _resultobj;
1442 int _result;
1443 wxHtmlWinParser * _arg0;
1444 PyObject * _argo0 = 0;
1445 char *_kwnames[] = { "self", NULL };
1446
1447 self = self;
1448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetCharHeight",_kwnames,&_argo0))
1449 return NULL;
1450 if (_argo0) {
1451 if (_argo0 == Py_None) { _arg0 = NULL; }
1452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetCharHeight. Expected _wxHtmlWinParser_p.");
1454 return NULL;
1455 }
1456 }
1457 {
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 _result = (int )wxHtmlWinParser_GetCharHeight(_arg0);
1460
1461 wxPyEndAllowThreads(__tstate);
1462 if (PyErr_Occurred()) return NULL;
1463 } _resultobj = Py_BuildValue("i",_result);
1464 return _resultobj;
1465 }
1466
1467 #define wxHtmlWinParser_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1468 static PyObject *_wrap_wxHtmlWinParser_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1469 PyObject * _resultobj;
1470 int _result;
1471 wxHtmlWinParser * _arg0;
1472 PyObject * _argo0 = 0;
1473 char *_kwnames[] = { "self", NULL };
1474
1475 self = self;
1476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetCharWidth",_kwnames,&_argo0))
1477 return NULL;
1478 if (_argo0) {
1479 if (_argo0 == Py_None) { _arg0 = NULL; }
1480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetCharWidth. Expected _wxHtmlWinParser_p.");
1482 return NULL;
1483 }
1484 }
1485 {
1486 PyThreadState* __tstate = wxPyBeginAllowThreads();
1487 _result = (int )wxHtmlWinParser_GetCharWidth(_arg0);
1488
1489 wxPyEndAllowThreads(__tstate);
1490 if (PyErr_Occurred()) return NULL;
1491 } _resultobj = Py_BuildValue("i",_result);
1492 return _resultobj;
1493 }
1494
1495 #define wxHtmlWinParser_GetWindow(_swigobj) (_swigobj->GetWindow())
1496 static PyObject *_wrap_wxHtmlWinParser_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1497 PyObject * _resultobj;
1498 wxHtmlWindow * _result;
1499 wxHtmlWinParser * _arg0;
1500 PyObject * _argo0 = 0;
1501 char *_kwnames[] = { "self", NULL };
1502
1503 self = self;
1504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetWindow",_kwnames,&_argo0))
1505 return NULL;
1506 if (_argo0) {
1507 if (_argo0 == Py_None) { _arg0 = NULL; }
1508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetWindow. Expected _wxHtmlWinParser_p.");
1510 return NULL;
1511 }
1512 }
1513 {
1514 PyThreadState* __tstate = wxPyBeginAllowThreads();
1515 _result = (wxHtmlWindow *)wxHtmlWinParser_GetWindow(_arg0);
1516
1517 wxPyEndAllowThreads(__tstate);
1518 if (PyErr_Occurred()) return NULL;
1519 }{ _resultobj = wxPyMake_wxObject(_result); }
1520 return _resultobj;
1521 }
1522
1523 static void wxHtmlWinParser_SetFonts(wxHtmlWinParser *self,wxString normal_face,wxString fixed_face,PyObject * sizes) {
1524 int* temp = int_LIST_helper(sizes);
1525 if (temp) {
1526 self->SetFonts(normal_face, fixed_face, temp);
1527 delete [] temp;
1528 }
1529 }
1530 static PyObject *_wrap_wxHtmlWinParser_SetFonts(PyObject *self, PyObject *args, PyObject *kwargs) {
1531 PyObject * _resultobj;
1532 wxHtmlWinParser * _arg0;
1533 wxString * _arg1;
1534 wxString * _arg2;
1535 PyObject * _arg3;
1536 PyObject * _argo0 = 0;
1537 PyObject * _obj1 = 0;
1538 PyObject * _obj2 = 0;
1539 PyObject * _obj3 = 0;
1540 char *_kwnames[] = { "self","normal_face","fixed_face","sizes", NULL };
1541
1542 self = self;
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxHtmlWinParser_SetFonts",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
1544 return NULL;
1545 if (_argo0) {
1546 if (_argo0 == Py_None) { _arg0 = NULL; }
1547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFonts. Expected _wxHtmlWinParser_p.");
1549 return NULL;
1550 }
1551 }
1552 {
1553 #if PYTHON_API_VERSION >= 1009
1554 char* tmpPtr; int tmpSize;
1555 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1556 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1557 return NULL;
1558 }
1559 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1560 return NULL;
1561 _arg1 = new wxString(tmpPtr, tmpSize);
1562 #else
1563 if (!PyString_Check(_obj1)) {
1564 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1565 return NULL;
1566 }
1567 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1568 #endif
1569 }
1570 {
1571 #if PYTHON_API_VERSION >= 1009
1572 char* tmpPtr; int tmpSize;
1573 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1574 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1575 return NULL;
1576 }
1577 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1578 return NULL;
1579 _arg2 = new wxString(tmpPtr, tmpSize);
1580 #else
1581 if (!PyString_Check(_obj2)) {
1582 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1583 return NULL;
1584 }
1585 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1586 #endif
1587 }
1588 {
1589 _arg3 = _obj3;
1590 }
1591 {
1592 PyThreadState* __tstate = wxPyBeginAllowThreads();
1593 wxHtmlWinParser_SetFonts(_arg0,*_arg1,*_arg2,_arg3);
1594
1595 wxPyEndAllowThreads(__tstate);
1596 if (PyErr_Occurred()) return NULL;
1597 } Py_INCREF(Py_None);
1598 _resultobj = Py_None;
1599 {
1600 if (_obj1)
1601 delete _arg1;
1602 }
1603 {
1604 if (_obj2)
1605 delete _arg2;
1606 }
1607 return _resultobj;
1608 }
1609
1610 #define wxHtmlWinParser_GetContainer(_swigobj) (_swigobj->GetContainer())
1611 static PyObject *_wrap_wxHtmlWinParser_GetContainer(PyObject *self, PyObject *args, PyObject *kwargs) {
1612 PyObject * _resultobj;
1613 wxHtmlContainerCell * _result;
1614 wxHtmlWinParser * _arg0;
1615 PyObject * _argo0 = 0;
1616 char *_kwnames[] = { "self", NULL };
1617 char _ptemp[128];
1618
1619 self = self;
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetContainer",_kwnames,&_argo0))
1621 return NULL;
1622 if (_argo0) {
1623 if (_argo0 == Py_None) { _arg0 = NULL; }
1624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetContainer. Expected _wxHtmlWinParser_p.");
1626 return NULL;
1627 }
1628 }
1629 {
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 _result = (wxHtmlContainerCell *)wxHtmlWinParser_GetContainer(_arg0);
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) return NULL;
1635 } if (_result) {
1636 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
1637 _resultobj = Py_BuildValue("s",_ptemp);
1638 } else {
1639 Py_INCREF(Py_None);
1640 _resultobj = Py_None;
1641 }
1642 return _resultobj;
1643 }
1644
1645 #define wxHtmlWinParser_OpenContainer(_swigobj) (_swigobj->OpenContainer())
1646 static PyObject *_wrap_wxHtmlWinParser_OpenContainer(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject * _resultobj;
1648 wxHtmlContainerCell * _result;
1649 wxHtmlWinParser * _arg0;
1650 PyObject * _argo0 = 0;
1651 char *_kwnames[] = { "self", NULL };
1652 char _ptemp[128];
1653
1654 self = self;
1655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_OpenContainer",_kwnames,&_argo0))
1656 return NULL;
1657 if (_argo0) {
1658 if (_argo0 == Py_None) { _arg0 = NULL; }
1659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_OpenContainer. Expected _wxHtmlWinParser_p.");
1661 return NULL;
1662 }
1663 }
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 _result = (wxHtmlContainerCell *)wxHtmlWinParser_OpenContainer(_arg0);
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) return NULL;
1670 } if (_result) {
1671 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
1672 _resultobj = Py_BuildValue("s",_ptemp);
1673 } else {
1674 Py_INCREF(Py_None);
1675 _resultobj = Py_None;
1676 }
1677 return _resultobj;
1678 }
1679
1680 #define wxHtmlWinParser_SetContainer(_swigobj,_swigarg0) (_swigobj->SetContainer(_swigarg0))
1681 static PyObject *_wrap_wxHtmlWinParser_SetContainer(PyObject *self, PyObject *args, PyObject *kwargs) {
1682 PyObject * _resultobj;
1683 wxHtmlContainerCell * _result;
1684 wxHtmlWinParser * _arg0;
1685 wxHtmlContainerCell * _arg1;
1686 PyObject * _argo0 = 0;
1687 PyObject * _argo1 = 0;
1688 char *_kwnames[] = { "self","c", NULL };
1689 char _ptemp[128];
1690
1691 self = self;
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinParser_SetContainer",_kwnames,&_argo0,&_argo1))
1693 return NULL;
1694 if (_argo0) {
1695 if (_argo0 == Py_None) { _arg0 = NULL; }
1696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetContainer. Expected _wxHtmlWinParser_p.");
1698 return NULL;
1699 }
1700 }
1701 if (_argo1) {
1702 if (_argo1 == Py_None) { _arg1 = NULL; }
1703 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlContainerCell_p")) {
1704 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWinParser_SetContainer. Expected _wxHtmlContainerCell_p.");
1705 return NULL;
1706 }
1707 }
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 _result = (wxHtmlContainerCell *)wxHtmlWinParser_SetContainer(_arg0,_arg1);
1711
1712 wxPyEndAllowThreads(__tstate);
1713 if (PyErr_Occurred()) return NULL;
1714 } if (_result) {
1715 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
1716 _resultobj = Py_BuildValue("s",_ptemp);
1717 } else {
1718 Py_INCREF(Py_None);
1719 _resultobj = Py_None;
1720 }
1721 return _resultobj;
1722 }
1723
1724 #define wxHtmlWinParser_CloseContainer(_swigobj) (_swigobj->CloseContainer())
1725 static PyObject *_wrap_wxHtmlWinParser_CloseContainer(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject * _resultobj;
1727 wxHtmlContainerCell * _result;
1728 wxHtmlWinParser * _arg0;
1729 PyObject * _argo0 = 0;
1730 char *_kwnames[] = { "self", NULL };
1731 char _ptemp[128];
1732
1733 self = self;
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_CloseContainer",_kwnames,&_argo0))
1735 return NULL;
1736 if (_argo0) {
1737 if (_argo0 == Py_None) { _arg0 = NULL; }
1738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_CloseContainer. Expected _wxHtmlWinParser_p.");
1740 return NULL;
1741 }
1742 }
1743 {
1744 PyThreadState* __tstate = wxPyBeginAllowThreads();
1745 _result = (wxHtmlContainerCell *)wxHtmlWinParser_CloseContainer(_arg0);
1746
1747 wxPyEndAllowThreads(__tstate);
1748 if (PyErr_Occurred()) return NULL;
1749 } if (_result) {
1750 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
1751 _resultobj = Py_BuildValue("s",_ptemp);
1752 } else {
1753 Py_INCREF(Py_None);
1754 _resultobj = Py_None;
1755 }
1756 return _resultobj;
1757 }
1758
1759 #define wxHtmlWinParser_GetFontSize(_swigobj) (_swigobj->GetFontSize())
1760 static PyObject *_wrap_wxHtmlWinParser_GetFontSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject * _resultobj;
1762 int _result;
1763 wxHtmlWinParser * _arg0;
1764 PyObject * _argo0 = 0;
1765 char *_kwnames[] = { "self", NULL };
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetFontSize",_kwnames,&_argo0))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetFontSize. Expected _wxHtmlWinParser_p.");
1774 return NULL;
1775 }
1776 }
1777 {
1778 PyThreadState* __tstate = wxPyBeginAllowThreads();
1779 _result = (int )wxHtmlWinParser_GetFontSize(_arg0);
1780
1781 wxPyEndAllowThreads(__tstate);
1782 if (PyErr_Occurred()) return NULL;
1783 } _resultobj = Py_BuildValue("i",_result);
1784 return _resultobj;
1785 }
1786
1787 #define wxHtmlWinParser_SetFontSize(_swigobj,_swigarg0) (_swigobj->SetFontSize(_swigarg0))
1788 static PyObject *_wrap_wxHtmlWinParser_SetFontSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1789 PyObject * _resultobj;
1790 wxHtmlWinParser * _arg0;
1791 int _arg1;
1792 PyObject * _argo0 = 0;
1793 char *_kwnames[] = { "self","s", NULL };
1794
1795 self = self;
1796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetFontSize",_kwnames,&_argo0,&_arg1))
1797 return NULL;
1798 if (_argo0) {
1799 if (_argo0 == Py_None) { _arg0 = NULL; }
1800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFontSize. Expected _wxHtmlWinParser_p.");
1802 return NULL;
1803 }
1804 }
1805 {
1806 PyThreadState* __tstate = wxPyBeginAllowThreads();
1807 wxHtmlWinParser_SetFontSize(_arg0,_arg1);
1808
1809 wxPyEndAllowThreads(__tstate);
1810 if (PyErr_Occurred()) return NULL;
1811 } Py_INCREF(Py_None);
1812 _resultobj = Py_None;
1813 return _resultobj;
1814 }
1815
1816 #define wxHtmlWinParser_GetFontBold(_swigobj) (_swigobj->GetFontBold())
1817 static PyObject *_wrap_wxHtmlWinParser_GetFontBold(PyObject *self, PyObject *args, PyObject *kwargs) {
1818 PyObject * _resultobj;
1819 int _result;
1820 wxHtmlWinParser * _arg0;
1821 PyObject * _argo0 = 0;
1822 char *_kwnames[] = { "self", NULL };
1823
1824 self = self;
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetFontBold",_kwnames,&_argo0))
1826 return NULL;
1827 if (_argo0) {
1828 if (_argo0 == Py_None) { _arg0 = NULL; }
1829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetFontBold. Expected _wxHtmlWinParser_p.");
1831 return NULL;
1832 }
1833 }
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 _result = (int )wxHtmlWinParser_GetFontBold(_arg0);
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) return NULL;
1840 } _resultobj = Py_BuildValue("i",_result);
1841 return _resultobj;
1842 }
1843
1844 #define wxHtmlWinParser_SetFontBold(_swigobj,_swigarg0) (_swigobj->SetFontBold(_swigarg0))
1845 static PyObject *_wrap_wxHtmlWinParser_SetFontBold(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject * _resultobj;
1847 wxHtmlWinParser * _arg0;
1848 int _arg1;
1849 PyObject * _argo0 = 0;
1850 char *_kwnames[] = { "self","x", NULL };
1851
1852 self = self;
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetFontBold",_kwnames,&_argo0,&_arg1))
1854 return NULL;
1855 if (_argo0) {
1856 if (_argo0 == Py_None) { _arg0 = NULL; }
1857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFontBold. Expected _wxHtmlWinParser_p.");
1859 return NULL;
1860 }
1861 }
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 wxHtmlWinParser_SetFontBold(_arg0,_arg1);
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) return NULL;
1868 } Py_INCREF(Py_None);
1869 _resultobj = Py_None;
1870 return _resultobj;
1871 }
1872
1873 #define wxHtmlWinParser_GetFontItalic(_swigobj) (_swigobj->GetFontItalic())
1874 static PyObject *_wrap_wxHtmlWinParser_GetFontItalic(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject * _resultobj;
1876 int _result;
1877 wxHtmlWinParser * _arg0;
1878 PyObject * _argo0 = 0;
1879 char *_kwnames[] = { "self", NULL };
1880
1881 self = self;
1882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetFontItalic",_kwnames,&_argo0))
1883 return NULL;
1884 if (_argo0) {
1885 if (_argo0 == Py_None) { _arg0 = NULL; }
1886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetFontItalic. Expected _wxHtmlWinParser_p.");
1888 return NULL;
1889 }
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 _result = (int )wxHtmlWinParser_GetFontItalic(_arg0);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) return NULL;
1897 } _resultobj = Py_BuildValue("i",_result);
1898 return _resultobj;
1899 }
1900
1901 #define wxHtmlWinParser_SetFontItalic(_swigobj,_swigarg0) (_swigobj->SetFontItalic(_swigarg0))
1902 static PyObject *_wrap_wxHtmlWinParser_SetFontItalic(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject * _resultobj;
1904 wxHtmlWinParser * _arg0;
1905 int _arg1;
1906 PyObject * _argo0 = 0;
1907 char *_kwnames[] = { "self","x", NULL };
1908
1909 self = self;
1910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetFontItalic",_kwnames,&_argo0,&_arg1))
1911 return NULL;
1912 if (_argo0) {
1913 if (_argo0 == Py_None) { _arg0 = NULL; }
1914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFontItalic. Expected _wxHtmlWinParser_p.");
1916 return NULL;
1917 }
1918 }
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 wxHtmlWinParser_SetFontItalic(_arg0,_arg1);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) return NULL;
1925 } Py_INCREF(Py_None);
1926 _resultobj = Py_None;
1927 return _resultobj;
1928 }
1929
1930 #define wxHtmlWinParser_GetFontUnderlined(_swigobj) (_swigobj->GetFontUnderlined())
1931 static PyObject *_wrap_wxHtmlWinParser_GetFontUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject * _resultobj;
1933 int _result;
1934 wxHtmlWinParser * _arg0;
1935 PyObject * _argo0 = 0;
1936 char *_kwnames[] = { "self", NULL };
1937
1938 self = self;
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetFontUnderlined",_kwnames,&_argo0))
1940 return NULL;
1941 if (_argo0) {
1942 if (_argo0 == Py_None) { _arg0 = NULL; }
1943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetFontUnderlined. Expected _wxHtmlWinParser_p.");
1945 return NULL;
1946 }
1947 }
1948 {
1949 PyThreadState* __tstate = wxPyBeginAllowThreads();
1950 _result = (int )wxHtmlWinParser_GetFontUnderlined(_arg0);
1951
1952 wxPyEndAllowThreads(__tstate);
1953 if (PyErr_Occurred()) return NULL;
1954 } _resultobj = Py_BuildValue("i",_result);
1955 return _resultobj;
1956 }
1957
1958 #define wxHtmlWinParser_SetFontUnderlined(_swigobj,_swigarg0) (_swigobj->SetFontUnderlined(_swigarg0))
1959 static PyObject *_wrap_wxHtmlWinParser_SetFontUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
1960 PyObject * _resultobj;
1961 wxHtmlWinParser * _arg0;
1962 int _arg1;
1963 PyObject * _argo0 = 0;
1964 char *_kwnames[] = { "self","x", NULL };
1965
1966 self = self;
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetFontUnderlined",_kwnames,&_argo0,&_arg1))
1968 return NULL;
1969 if (_argo0) {
1970 if (_argo0 == Py_None) { _arg0 = NULL; }
1971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
1972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFontUnderlined. Expected _wxHtmlWinParser_p.");
1973 return NULL;
1974 }
1975 }
1976 {
1977 PyThreadState* __tstate = wxPyBeginAllowThreads();
1978 wxHtmlWinParser_SetFontUnderlined(_arg0,_arg1);
1979
1980 wxPyEndAllowThreads(__tstate);
1981 if (PyErr_Occurred()) return NULL;
1982 } Py_INCREF(Py_None);
1983 _resultobj = Py_None;
1984 return _resultobj;
1985 }
1986
1987 #define wxHtmlWinParser_GetFontFixed(_swigobj) (_swigobj->GetFontFixed())
1988 static PyObject *_wrap_wxHtmlWinParser_GetFontFixed(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject * _resultobj;
1990 int _result;
1991 wxHtmlWinParser * _arg0;
1992 PyObject * _argo0 = 0;
1993 char *_kwnames[] = { "self", NULL };
1994
1995 self = self;
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetFontFixed",_kwnames,&_argo0))
1997 return NULL;
1998 if (_argo0) {
1999 if (_argo0 == Py_None) { _arg0 = NULL; }
2000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetFontFixed. Expected _wxHtmlWinParser_p.");
2002 return NULL;
2003 }
2004 }
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 _result = (int )wxHtmlWinParser_GetFontFixed(_arg0);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) return NULL;
2011 } _resultobj = Py_BuildValue("i",_result);
2012 return _resultobj;
2013 }
2014
2015 #define wxHtmlWinParser_SetFontFixed(_swigobj,_swigarg0) (_swigobj->SetFontFixed(_swigarg0))
2016 static PyObject *_wrap_wxHtmlWinParser_SetFontFixed(PyObject *self, PyObject *args, PyObject *kwargs) {
2017 PyObject * _resultobj;
2018 wxHtmlWinParser * _arg0;
2019 int _arg1;
2020 PyObject * _argo0 = 0;
2021 char *_kwnames[] = { "self","x", NULL };
2022
2023 self = self;
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetFontFixed",_kwnames,&_argo0,&_arg1))
2025 return NULL;
2026 if (_argo0) {
2027 if (_argo0 == Py_None) { _arg0 = NULL; }
2028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetFontFixed. Expected _wxHtmlWinParser_p.");
2030 return NULL;
2031 }
2032 }
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 wxHtmlWinParser_SetFontFixed(_arg0,_arg1);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) return NULL;
2039 } Py_INCREF(Py_None);
2040 _resultobj = Py_None;
2041 return _resultobj;
2042 }
2043
2044 #define wxHtmlWinParser_GetAlign(_swigobj) (_swigobj->GetAlign())
2045 static PyObject *_wrap_wxHtmlWinParser_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject * _resultobj;
2047 int _result;
2048 wxHtmlWinParser * _arg0;
2049 PyObject * _argo0 = 0;
2050 char *_kwnames[] = { "self", NULL };
2051
2052 self = self;
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetAlign",_kwnames,&_argo0))
2054 return NULL;
2055 if (_argo0) {
2056 if (_argo0 == Py_None) { _arg0 = NULL; }
2057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetAlign. Expected _wxHtmlWinParser_p.");
2059 return NULL;
2060 }
2061 }
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 _result = (int )wxHtmlWinParser_GetAlign(_arg0);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) return NULL;
2068 } _resultobj = Py_BuildValue("i",_result);
2069 return _resultobj;
2070 }
2071
2072 #define wxHtmlWinParser_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0))
2073 static PyObject *_wrap_wxHtmlWinParser_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
2074 PyObject * _resultobj;
2075 wxHtmlWinParser * _arg0;
2076 int _arg1;
2077 PyObject * _argo0 = 0;
2078 char *_kwnames[] = { "self","a", NULL };
2079
2080 self = self;
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWinParser_SetAlign",_kwnames,&_argo0,&_arg1))
2082 return NULL;
2083 if (_argo0) {
2084 if (_argo0 == Py_None) { _arg0 = NULL; }
2085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetAlign. Expected _wxHtmlWinParser_p.");
2087 return NULL;
2088 }
2089 }
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 wxHtmlWinParser_SetAlign(_arg0,_arg1);
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) return NULL;
2096 } Py_INCREF(Py_None);
2097 _resultobj = Py_None;
2098 return _resultobj;
2099 }
2100
2101 #define wxHtmlWinParser_GetLinkColor(_swigobj) (_swigobj->GetLinkColor())
2102 static PyObject *_wrap_wxHtmlWinParser_GetLinkColor(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject * _resultobj;
2104 wxColour * _result;
2105 wxHtmlWinParser * _arg0;
2106 PyObject * _argo0 = 0;
2107 char *_kwnames[] = { "self", NULL };
2108 char _ptemp[128];
2109
2110 self = self;
2111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetLinkColor",_kwnames,&_argo0))
2112 return NULL;
2113 if (_argo0) {
2114 if (_argo0 == Py_None) { _arg0 = NULL; }
2115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetLinkColor. Expected _wxHtmlWinParser_p.");
2117 return NULL;
2118 }
2119 }
2120 {
2121 PyThreadState* __tstate = wxPyBeginAllowThreads();
2122 _result = new wxColour (wxHtmlWinParser_GetLinkColor(_arg0));
2123
2124 wxPyEndAllowThreads(__tstate);
2125 if (PyErr_Occurred()) return NULL;
2126 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2127 _resultobj = Py_BuildValue("s",_ptemp);
2128 return _resultobj;
2129 }
2130
2131 #define wxHtmlWinParser_SetLinkColor(_swigobj,_swigarg0) (_swigobj->SetLinkColor(_swigarg0))
2132 static PyObject *_wrap_wxHtmlWinParser_SetLinkColor(PyObject *self, PyObject *args, PyObject *kwargs) {
2133 PyObject * _resultobj;
2134 wxHtmlWinParser * _arg0;
2135 wxColour * _arg1;
2136 PyObject * _argo0 = 0;
2137 wxColour temp;
2138 PyObject * _obj1 = 0;
2139 char *_kwnames[] = { "self","clr", NULL };
2140
2141 self = self;
2142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinParser_SetLinkColor",_kwnames,&_argo0,&_obj1))
2143 return NULL;
2144 if (_argo0) {
2145 if (_argo0 == Py_None) { _arg0 = NULL; }
2146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetLinkColor. Expected _wxHtmlWinParser_p.");
2148 return NULL;
2149 }
2150 }
2151 {
2152 _arg1 = &temp;
2153 if (! wxColour_helper(_obj1, &_arg1))
2154 return NULL;
2155 }
2156 {
2157 PyThreadState* __tstate = wxPyBeginAllowThreads();
2158 wxHtmlWinParser_SetLinkColor(_arg0,*_arg1);
2159
2160 wxPyEndAllowThreads(__tstate);
2161 if (PyErr_Occurred()) return NULL;
2162 } Py_INCREF(Py_None);
2163 _resultobj = Py_None;
2164 return _resultobj;
2165 }
2166
2167 #define wxHtmlWinParser_GetActualColor(_swigobj) (_swigobj->GetActualColor())
2168 static PyObject *_wrap_wxHtmlWinParser_GetActualColor(PyObject *self, PyObject *args, PyObject *kwargs) {
2169 PyObject * _resultobj;
2170 wxColour * _result;
2171 wxHtmlWinParser * _arg0;
2172 PyObject * _argo0 = 0;
2173 char *_kwnames[] = { "self", NULL };
2174 char _ptemp[128];
2175
2176 self = self;
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetActualColor",_kwnames,&_argo0))
2178 return NULL;
2179 if (_argo0) {
2180 if (_argo0 == Py_None) { _arg0 = NULL; }
2181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetActualColor. Expected _wxHtmlWinParser_p.");
2183 return NULL;
2184 }
2185 }
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 _result = new wxColour (wxHtmlWinParser_GetActualColor(_arg0));
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) return NULL;
2192 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2193 _resultobj = Py_BuildValue("s",_ptemp);
2194 return _resultobj;
2195 }
2196
2197 #define wxHtmlWinParser_SetActualColor(_swigobj,_swigarg0) (_swigobj->SetActualColor(_swigarg0))
2198 static PyObject *_wrap_wxHtmlWinParser_SetActualColor(PyObject *self, PyObject *args, PyObject *kwargs) {
2199 PyObject * _resultobj;
2200 wxHtmlWinParser * _arg0;
2201 wxColour * _arg1;
2202 PyObject * _argo0 = 0;
2203 wxColour temp;
2204 PyObject * _obj1 = 0;
2205 char *_kwnames[] = { "self","clr", NULL };
2206
2207 self = self;
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinParser_SetActualColor",_kwnames,&_argo0,&_obj1))
2209 return NULL;
2210 if (_argo0) {
2211 if (_argo0 == Py_None) { _arg0 = NULL; }
2212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetActualColor. Expected _wxHtmlWinParser_p.");
2214 return NULL;
2215 }
2216 }
2217 {
2218 _arg1 = &temp;
2219 if (! wxColour_helper(_obj1, &_arg1))
2220 return NULL;
2221 }
2222 {
2223 PyThreadState* __tstate = wxPyBeginAllowThreads();
2224 wxHtmlWinParser_SetActualColor(_arg0,*_arg1);
2225
2226 wxPyEndAllowThreads(__tstate);
2227 if (PyErr_Occurred()) return NULL;
2228 } Py_INCREF(Py_None);
2229 _resultobj = Py_None;
2230 return _resultobj;
2231 }
2232
2233 #define wxHtmlWinParser_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
2234 static PyObject *_wrap_wxHtmlWinParser_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
2235 PyObject * _resultobj;
2236 wxHtmlWinParser * _arg0;
2237 wxString * _arg1;
2238 PyObject * _argo0 = 0;
2239 PyObject * _obj1 = 0;
2240 char *_kwnames[] = { "self","link", NULL };
2241
2242 self = self;
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinParser_SetLink",_kwnames,&_argo0,&_obj1))
2244 return NULL;
2245 if (_argo0) {
2246 if (_argo0 == Py_None) { _arg0 = NULL; }
2247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_SetLink. Expected _wxHtmlWinParser_p.");
2249 return NULL;
2250 }
2251 }
2252 {
2253 #if PYTHON_API_VERSION >= 1009
2254 char* tmpPtr; int tmpSize;
2255 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2256 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2257 return NULL;
2258 }
2259 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2260 return NULL;
2261 _arg1 = new wxString(tmpPtr, tmpSize);
2262 #else
2263 if (!PyString_Check(_obj1)) {
2264 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2265 return NULL;
2266 }
2267 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2268 #endif
2269 }
2270 {
2271 PyThreadState* __tstate = wxPyBeginAllowThreads();
2272 wxHtmlWinParser_SetLink(_arg0,*_arg1);
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) return NULL;
2276 } Py_INCREF(Py_None);
2277 _resultobj = Py_None;
2278 {
2279 if (_obj1)
2280 delete _arg1;
2281 }
2282 return _resultobj;
2283 }
2284
2285 #define wxHtmlWinParser_CreateCurrentFont(_swigobj) (_swigobj->CreateCurrentFont())
2286 static PyObject *_wrap_wxHtmlWinParser_CreateCurrentFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2287 PyObject * _resultobj;
2288 wxFont * _result;
2289 wxHtmlWinParser * _arg0;
2290 PyObject * _argo0 = 0;
2291 char *_kwnames[] = { "self", NULL };
2292 char _ptemp[128];
2293
2294 self = self;
2295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_CreateCurrentFont",_kwnames,&_argo0))
2296 return NULL;
2297 if (_argo0) {
2298 if (_argo0 == Py_None) { _arg0 = NULL; }
2299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_CreateCurrentFont. Expected _wxHtmlWinParser_p.");
2301 return NULL;
2302 }
2303 }
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 _result = (wxFont *)wxHtmlWinParser_CreateCurrentFont(_arg0);
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) return NULL;
2310 } if (_result) {
2311 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
2312 _resultobj = Py_BuildValue("s",_ptemp);
2313 } else {
2314 Py_INCREF(Py_None);
2315 _resultobj = Py_None;
2316 }
2317 return _resultobj;
2318 }
2319
2320 #define wxHtmlWinParser_GetLink(_swigobj) (_swigobj->GetLink())
2321 static PyObject *_wrap_wxHtmlWinParser_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
2322 PyObject * _resultobj;
2323 wxHtmlLinkInfo * _result;
2324 wxHtmlWinParser * _arg0;
2325 PyObject * _argo0 = 0;
2326 char *_kwnames[] = { "self", NULL };
2327 char _ptemp[128];
2328
2329 self = self;
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetLink",_kwnames,&_argo0))
2331 return NULL;
2332 if (_argo0) {
2333 if (_argo0 == Py_None) { _arg0 = NULL; }
2334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlWinParser_p")) {
2335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinParser_GetLink. Expected _wxHtmlWinParser_p.");
2336 return NULL;
2337 }
2338 }
2339 {
2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
2341 _result = new wxHtmlLinkInfo (wxHtmlWinParser_GetLink(_arg0));
2342
2343 wxPyEndAllowThreads(__tstate);
2344 if (PyErr_Occurred()) return NULL;
2345 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxHtmlLinkInfo_p");
2346 _resultobj = Py_BuildValue("s",_ptemp);
2347 return _resultobj;
2348 }
2349
2350 static void *SwigwxPyHtmlTagHandlerTowxObject(void *ptr) {
2351 wxPyHtmlTagHandler *src;
2352 wxObject *dest;
2353 src = (wxPyHtmlTagHandler *) ptr;
2354 dest = (wxObject *) src;
2355 return (void *) dest;
2356 }
2357
2358 #define new_wxHtmlTagHandler() (new wxPyHtmlTagHandler())
2359 static PyObject *_wrap_new_wxHtmlTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2360 PyObject * _resultobj;
2361 wxPyHtmlTagHandler * _result;
2362 char *_kwnames[] = { NULL };
2363 char _ptemp[128];
2364
2365 self = self;
2366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlTagHandler",_kwnames))
2367 return NULL;
2368 {
2369 PyThreadState* __tstate = wxPyBeginAllowThreads();
2370 _result = (wxPyHtmlTagHandler *)new_wxHtmlTagHandler();
2371
2372 wxPyEndAllowThreads(__tstate);
2373 if (PyErr_Occurred()) return NULL;
2374 } if (_result) {
2375 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlTagHandler_p");
2376 _resultobj = Py_BuildValue("s",_ptemp);
2377 } else {
2378 Py_INCREF(Py_None);
2379 _resultobj = Py_None;
2380 }
2381 return _resultobj;
2382 }
2383
2384 #define wxHtmlTagHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2385 static PyObject *_wrap_wxHtmlTagHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2386 PyObject * _resultobj;
2387 wxPyHtmlTagHandler * _arg0;
2388 PyObject * _arg1;
2389 PyObject * _arg2;
2390 PyObject * _argo0 = 0;
2391 PyObject * _obj1 = 0;
2392 PyObject * _obj2 = 0;
2393 char *_kwnames[] = { "self","self","_class", NULL };
2394
2395 self = self;
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlTagHandler__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2397 return NULL;
2398 if (_argo0) {
2399 if (_argo0 == Py_None) { _arg0 = NULL; }
2400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlTagHandler_p")) {
2401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTagHandler__setCallbackInfo. Expected _wxPyHtmlTagHandler_p.");
2402 return NULL;
2403 }
2404 }
2405 {
2406 _arg1 = _obj1;
2407 }
2408 {
2409 _arg2 = _obj2;
2410 }
2411 {
2412 PyThreadState* __tstate = wxPyBeginAllowThreads();
2413 wxHtmlTagHandler__setCallbackInfo(_arg0,_arg1,_arg2);
2414
2415 wxPyEndAllowThreads(__tstate);
2416 if (PyErr_Occurred()) return NULL;
2417 } Py_INCREF(Py_None);
2418 _resultobj = Py_None;
2419 return _resultobj;
2420 }
2421
2422 #define wxHtmlTagHandler_SetParser(_swigobj,_swigarg0) (_swigobj->SetParser(_swigarg0))
2423 static PyObject *_wrap_wxHtmlTagHandler_SetParser(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject * _resultobj;
2425 wxPyHtmlTagHandler * _arg0;
2426 wxHtmlParser * _arg1;
2427 PyObject * _argo0 = 0;
2428 PyObject * _argo1 = 0;
2429 char *_kwnames[] = { "self","parser", NULL };
2430
2431 self = self;
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlTagHandler_SetParser",_kwnames,&_argo0,&_argo1))
2433 return NULL;
2434 if (_argo0) {
2435 if (_argo0 == Py_None) { _arg0 = NULL; }
2436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlTagHandler_p")) {
2437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTagHandler_SetParser. Expected _wxPyHtmlTagHandler_p.");
2438 return NULL;
2439 }
2440 }
2441 if (_argo1) {
2442 if (_argo1 == Py_None) { _arg1 = NULL; }
2443 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlParser_p")) {
2444 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlTagHandler_SetParser. Expected _wxHtmlParser_p.");
2445 return NULL;
2446 }
2447 }
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 wxHtmlTagHandler_SetParser(_arg0,_arg1);
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) return NULL;
2454 } Py_INCREF(Py_None);
2455 _resultobj = Py_None;
2456 return _resultobj;
2457 }
2458
2459 #define wxHtmlTagHandler_GetParser(_swigobj) (_swigobj->GetParser())
2460 static PyObject *_wrap_wxHtmlTagHandler_GetParser(PyObject *self, PyObject *args, PyObject *kwargs) {
2461 PyObject * _resultobj;
2462 wxHtmlParser * _result;
2463 wxPyHtmlTagHandler * _arg0;
2464 PyObject * _argo0 = 0;
2465 char *_kwnames[] = { "self", NULL };
2466 char _ptemp[128];
2467
2468 self = self;
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlTagHandler_GetParser",_kwnames,&_argo0))
2470 return NULL;
2471 if (_argo0) {
2472 if (_argo0 == Py_None) { _arg0 = NULL; }
2473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlTagHandler_p")) {
2474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTagHandler_GetParser. Expected _wxPyHtmlTagHandler_p.");
2475 return NULL;
2476 }
2477 }
2478 {
2479 PyThreadState* __tstate = wxPyBeginAllowThreads();
2480 _result = (wxHtmlParser *)wxHtmlTagHandler_GetParser(_arg0);
2481
2482 wxPyEndAllowThreads(__tstate);
2483 if (PyErr_Occurred()) return NULL;
2484 } if (_result) {
2485 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlParser_p");
2486 _resultobj = Py_BuildValue("s",_ptemp);
2487 } else {
2488 Py_INCREF(Py_None);
2489 _resultobj = Py_None;
2490 }
2491 return _resultobj;
2492 }
2493
2494 #define wxHtmlTagHandler_ParseInner(_swigobj,_swigarg0) (_swigobj->ParseInner(_swigarg0))
2495 static PyObject *_wrap_wxHtmlTagHandler_ParseInner(PyObject *self, PyObject *args, PyObject *kwargs) {
2496 PyObject * _resultobj;
2497 wxPyHtmlTagHandler * _arg0;
2498 wxHtmlTag * _arg1;
2499 PyObject * _argo0 = 0;
2500 PyObject * _argo1 = 0;
2501 char *_kwnames[] = { "self","tag", NULL };
2502
2503 self = self;
2504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlTagHandler_ParseInner",_kwnames,&_argo0,&_argo1))
2505 return NULL;
2506 if (_argo0) {
2507 if (_argo0 == Py_None) { _arg0 = NULL; }
2508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlTagHandler_p")) {
2509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlTagHandler_ParseInner. Expected _wxPyHtmlTagHandler_p.");
2510 return NULL;
2511 }
2512 }
2513 if (_argo1) {
2514 if (_argo1 == Py_None) { _arg1 = NULL; }
2515 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTag_p")) {
2516 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlTagHandler_ParseInner. Expected _wxHtmlTag_p.");
2517 return NULL;
2518 }
2519 }
2520 {
2521 PyThreadState* __tstate = wxPyBeginAllowThreads();
2522 wxHtmlTagHandler_ParseInner(_arg0,*_arg1);
2523
2524 wxPyEndAllowThreads(__tstate);
2525 if (PyErr_Occurred()) return NULL;
2526 } Py_INCREF(Py_None);
2527 _resultobj = Py_None;
2528 return _resultobj;
2529 }
2530
2531 static void *SwigwxPyHtmlWinTagHandlerTowxPyHtmlTagHandler(void *ptr) {
2532 wxPyHtmlWinTagHandler *src;
2533 wxPyHtmlTagHandler *dest;
2534 src = (wxPyHtmlWinTagHandler *) ptr;
2535 dest = (wxPyHtmlTagHandler *) src;
2536 return (void *) dest;
2537 }
2538
2539 static void *SwigwxPyHtmlWinTagHandlerTowxObject(void *ptr) {
2540 wxPyHtmlWinTagHandler *src;
2541 wxObject *dest;
2542 src = (wxPyHtmlWinTagHandler *) ptr;
2543 dest = (wxObject *) src;
2544 return (void *) dest;
2545 }
2546
2547 #define new_wxHtmlWinTagHandler() (new wxPyHtmlWinTagHandler())
2548 static PyObject *_wrap_new_wxHtmlWinTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2549 PyObject * _resultobj;
2550 wxPyHtmlWinTagHandler * _result;
2551 char *_kwnames[] = { NULL };
2552 char _ptemp[128];
2553
2554 self = self;
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlWinTagHandler",_kwnames))
2556 return NULL;
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 _result = (wxPyHtmlWinTagHandler *)new_wxHtmlWinTagHandler();
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) return NULL;
2563 } if (_result) {
2564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlWinTagHandler_p");
2565 _resultobj = Py_BuildValue("s",_ptemp);
2566 } else {
2567 Py_INCREF(Py_None);
2568 _resultobj = Py_None;
2569 }
2570 return _resultobj;
2571 }
2572
2573 #define wxHtmlWinTagHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2574 static PyObject *_wrap_wxHtmlWinTagHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject * _resultobj;
2576 wxPyHtmlWinTagHandler * _arg0;
2577 PyObject * _arg1;
2578 PyObject * _arg2;
2579 PyObject * _argo0 = 0;
2580 PyObject * _obj1 = 0;
2581 PyObject * _obj2 = 0;
2582 char *_kwnames[] = { "self","self","_class", NULL };
2583
2584 self = self;
2585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlWinTagHandler__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2586 return NULL;
2587 if (_argo0) {
2588 if (_argo0 == Py_None) { _arg0 = NULL; }
2589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWinTagHandler_p")) {
2590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinTagHandler__setCallbackInfo. Expected _wxPyHtmlWinTagHandler_p.");
2591 return NULL;
2592 }
2593 }
2594 {
2595 _arg1 = _obj1;
2596 }
2597 {
2598 _arg2 = _obj2;
2599 }
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 wxHtmlWinTagHandler__setCallbackInfo(_arg0,_arg1,_arg2);
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) return NULL;
2606 } Py_INCREF(Py_None);
2607 _resultobj = Py_None;
2608 return _resultobj;
2609 }
2610
2611 #define wxHtmlWinTagHandler_SetParser(_swigobj,_swigarg0) (_swigobj->SetParser(_swigarg0))
2612 static PyObject *_wrap_wxHtmlWinTagHandler_SetParser(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject * _resultobj;
2614 wxPyHtmlWinTagHandler * _arg0;
2615 wxHtmlParser * _arg1;
2616 PyObject * _argo0 = 0;
2617 PyObject * _argo1 = 0;
2618 char *_kwnames[] = { "self","parser", NULL };
2619
2620 self = self;
2621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinTagHandler_SetParser",_kwnames,&_argo0,&_argo1))
2622 return NULL;
2623 if (_argo0) {
2624 if (_argo0 == Py_None) { _arg0 = NULL; }
2625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWinTagHandler_p")) {
2626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinTagHandler_SetParser. Expected _wxPyHtmlWinTagHandler_p.");
2627 return NULL;
2628 }
2629 }
2630 if (_argo1) {
2631 if (_argo1 == Py_None) { _arg1 = NULL; }
2632 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlParser_p")) {
2633 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWinTagHandler_SetParser. Expected _wxHtmlParser_p.");
2634 return NULL;
2635 }
2636 }
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 wxHtmlWinTagHandler_SetParser(_arg0,_arg1);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) return NULL;
2643 } Py_INCREF(Py_None);
2644 _resultobj = Py_None;
2645 return _resultobj;
2646 }
2647
2648 #define wxHtmlWinTagHandler_GetParser(_swigobj) (_swigobj->GetParser())
2649 static PyObject *_wrap_wxHtmlWinTagHandler_GetParser(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject * _resultobj;
2651 wxHtmlWinParser * _result;
2652 wxPyHtmlWinTagHandler * _arg0;
2653 PyObject * _argo0 = 0;
2654 char *_kwnames[] = { "self", NULL };
2655 char _ptemp[128];
2656
2657 self = self;
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinTagHandler_GetParser",_kwnames,&_argo0))
2659 return NULL;
2660 if (_argo0) {
2661 if (_argo0 == Py_None) { _arg0 = NULL; }
2662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWinTagHandler_p")) {
2663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinTagHandler_GetParser. Expected _wxPyHtmlWinTagHandler_p.");
2664 return NULL;
2665 }
2666 }
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 _result = (wxHtmlWinParser *)wxHtmlWinTagHandler_GetParser(_arg0);
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) return NULL;
2673 } if (_result) {
2674 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWinParser_p");
2675 _resultobj = Py_BuildValue("s",_ptemp);
2676 } else {
2677 Py_INCREF(Py_None);
2678 _resultobj = Py_None;
2679 }
2680 return _resultobj;
2681 }
2682
2683 #define wxHtmlWinTagHandler_ParseInner(_swigobj,_swigarg0) (_swigobj->ParseInner(_swigarg0))
2684 static PyObject *_wrap_wxHtmlWinTagHandler_ParseInner(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject * _resultobj;
2686 wxPyHtmlWinTagHandler * _arg0;
2687 wxHtmlTag * _arg1;
2688 PyObject * _argo0 = 0;
2689 PyObject * _argo1 = 0;
2690 char *_kwnames[] = { "self","tag", NULL };
2691
2692 self = self;
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWinTagHandler_ParseInner",_kwnames,&_argo0,&_argo1))
2694 return NULL;
2695 if (_argo0) {
2696 if (_argo0 == Py_None) { _arg0 = NULL; }
2697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWinTagHandler_p")) {
2698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWinTagHandler_ParseInner. Expected _wxPyHtmlWinTagHandler_p.");
2699 return NULL;
2700 }
2701 }
2702 if (_argo1) {
2703 if (_argo1 == Py_None) { _arg1 = NULL; }
2704 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTag_p")) {
2705 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWinTagHandler_ParseInner. Expected _wxHtmlTag_p.");
2706 return NULL;
2707 }
2708 }
2709 {
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 wxHtmlWinTagHandler_ParseInner(_arg0,*_arg1);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) return NULL;
2715 } Py_INCREF(Py_None);
2716 _resultobj = Py_None;
2717 return _resultobj;
2718 }
2719
2720 static void *SwigwxHtmlCellTowxObject(void *ptr) {
2721 wxHtmlCell *src;
2722 wxObject *dest;
2723 src = (wxHtmlCell *) ptr;
2724 dest = (wxObject *) src;
2725 return (void *) dest;
2726 }
2727
2728 #define new_wxHtmlCell() (new wxHtmlCell())
2729 static PyObject *_wrap_new_wxHtmlCell(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 wxHtmlCell * _result;
2732 char *_kwnames[] = { NULL };
2733 char _ptemp[128];
2734
2735 self = self;
2736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlCell",_kwnames))
2737 return NULL;
2738 {
2739 PyThreadState* __tstate = wxPyBeginAllowThreads();
2740 _result = (wxHtmlCell *)new_wxHtmlCell();
2741
2742 wxPyEndAllowThreads(__tstate);
2743 if (PyErr_Occurred()) return NULL;
2744 } if (_result) {
2745 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlCell_p");
2746 _resultobj = Py_BuildValue("s",_ptemp);
2747 } else {
2748 Py_INCREF(Py_None);
2749 _resultobj = Py_None;
2750 }
2751 return _resultobj;
2752 }
2753
2754 #define wxHtmlCell_GetPosX(_swigobj) (_swigobj->GetPosX())
2755 static PyObject *_wrap_wxHtmlCell_GetPosX(PyObject *self, PyObject *args, PyObject *kwargs) {
2756 PyObject * _resultobj;
2757 int _result;
2758 wxHtmlCell * _arg0;
2759 PyObject * _argo0 = 0;
2760 char *_kwnames[] = { "self", NULL };
2761
2762 self = self;
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetPosX",_kwnames,&_argo0))
2764 return NULL;
2765 if (_argo0) {
2766 if (_argo0 == Py_None) { _arg0 = NULL; }
2767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetPosX. Expected _wxHtmlCell_p.");
2769 return NULL;
2770 }
2771 }
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 _result = (int )wxHtmlCell_GetPosX(_arg0);
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) return NULL;
2778 } _resultobj = Py_BuildValue("i",_result);
2779 return _resultobj;
2780 }
2781
2782 #define wxHtmlCell_GetPosY(_swigobj) (_swigobj->GetPosY())
2783 static PyObject *_wrap_wxHtmlCell_GetPosY(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject * _resultobj;
2785 int _result;
2786 wxHtmlCell * _arg0;
2787 PyObject * _argo0 = 0;
2788 char *_kwnames[] = { "self", NULL };
2789
2790 self = self;
2791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetPosY",_kwnames,&_argo0))
2792 return NULL;
2793 if (_argo0) {
2794 if (_argo0 == Py_None) { _arg0 = NULL; }
2795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetPosY. Expected _wxHtmlCell_p.");
2797 return NULL;
2798 }
2799 }
2800 {
2801 PyThreadState* __tstate = wxPyBeginAllowThreads();
2802 _result = (int )wxHtmlCell_GetPosY(_arg0);
2803
2804 wxPyEndAllowThreads(__tstate);
2805 if (PyErr_Occurred()) return NULL;
2806 } _resultobj = Py_BuildValue("i",_result);
2807 return _resultobj;
2808 }
2809
2810 #define wxHtmlCell_GetWidth(_swigobj) (_swigobj->GetWidth())
2811 static PyObject *_wrap_wxHtmlCell_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2812 PyObject * _resultobj;
2813 int _result;
2814 wxHtmlCell * _arg0;
2815 PyObject * _argo0 = 0;
2816 char *_kwnames[] = { "self", NULL };
2817
2818 self = self;
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetWidth",_kwnames,&_argo0))
2820 return NULL;
2821 if (_argo0) {
2822 if (_argo0 == Py_None) { _arg0 = NULL; }
2823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetWidth. Expected _wxHtmlCell_p.");
2825 return NULL;
2826 }
2827 }
2828 {
2829 PyThreadState* __tstate = wxPyBeginAllowThreads();
2830 _result = (int )wxHtmlCell_GetWidth(_arg0);
2831
2832 wxPyEndAllowThreads(__tstate);
2833 if (PyErr_Occurred()) return NULL;
2834 } _resultobj = Py_BuildValue("i",_result);
2835 return _resultobj;
2836 }
2837
2838 #define wxHtmlCell_GetHeight(_swigobj) (_swigobj->GetHeight())
2839 static PyObject *_wrap_wxHtmlCell_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject * _resultobj;
2841 int _result;
2842 wxHtmlCell * _arg0;
2843 PyObject * _argo0 = 0;
2844 char *_kwnames[] = { "self", NULL };
2845
2846 self = self;
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetHeight",_kwnames,&_argo0))
2848 return NULL;
2849 if (_argo0) {
2850 if (_argo0 == Py_None) { _arg0 = NULL; }
2851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetHeight. Expected _wxHtmlCell_p.");
2853 return NULL;
2854 }
2855 }
2856 {
2857 PyThreadState* __tstate = wxPyBeginAllowThreads();
2858 _result = (int )wxHtmlCell_GetHeight(_arg0);
2859
2860 wxPyEndAllowThreads(__tstate);
2861 if (PyErr_Occurred()) return NULL;
2862 } _resultobj = Py_BuildValue("i",_result);
2863 return _resultobj;
2864 }
2865
2866 #define wxHtmlCell_GetDescent(_swigobj) (_swigobj->GetDescent())
2867 static PyObject *_wrap_wxHtmlCell_GetDescent(PyObject *self, PyObject *args, PyObject *kwargs) {
2868 PyObject * _resultobj;
2869 int _result;
2870 wxHtmlCell * _arg0;
2871 PyObject * _argo0 = 0;
2872 char *_kwnames[] = { "self", NULL };
2873
2874 self = self;
2875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetDescent",_kwnames,&_argo0))
2876 return NULL;
2877 if (_argo0) {
2878 if (_argo0 == Py_None) { _arg0 = NULL; }
2879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetDescent. Expected _wxHtmlCell_p.");
2881 return NULL;
2882 }
2883 }
2884 {
2885 PyThreadState* __tstate = wxPyBeginAllowThreads();
2886 _result = (int )wxHtmlCell_GetDescent(_arg0);
2887
2888 wxPyEndAllowThreads(__tstate);
2889 if (PyErr_Occurred()) return NULL;
2890 } _resultobj = Py_BuildValue("i",_result);
2891 return _resultobj;
2892 }
2893
2894 #define wxHtmlCell_GetLink(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLink(_swigarg0,_swigarg1))
2895 static PyObject *_wrap_wxHtmlCell_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject * _resultobj;
2897 wxHtmlLinkInfo * _result;
2898 wxHtmlCell * _arg0;
2899 int _arg1 = (int ) 0;
2900 int _arg2 = (int ) 0;
2901 PyObject * _argo0 = 0;
2902 char *_kwnames[] = { "self","x","y", NULL };
2903 char _ptemp[128];
2904
2905 self = self;
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxHtmlCell_GetLink",_kwnames,&_argo0,&_arg1,&_arg2))
2907 return NULL;
2908 if (_argo0) {
2909 if (_argo0 == Py_None) { _arg0 = NULL; }
2910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetLink. Expected _wxHtmlCell_p.");
2912 return NULL;
2913 }
2914 }
2915 {
2916 PyThreadState* __tstate = wxPyBeginAllowThreads();
2917 _result = (wxHtmlLinkInfo *)wxHtmlCell_GetLink(_arg0,_arg1,_arg2);
2918
2919 wxPyEndAllowThreads(__tstate);
2920 if (PyErr_Occurred()) return NULL;
2921 } if (_result) {
2922 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlLinkInfo_p");
2923 _resultobj = Py_BuildValue("s",_ptemp);
2924 } else {
2925 Py_INCREF(Py_None);
2926 _resultobj = Py_None;
2927 }
2928 return _resultobj;
2929 }
2930
2931 #define wxHtmlCell_GetNext(_swigobj) (_swigobj->GetNext())
2932 static PyObject *_wrap_wxHtmlCell_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxHtmlCell * _result;
2935 wxHtmlCell * _arg0;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self", NULL };
2938 char _ptemp[128];
2939
2940 self = self;
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetNext",_kwnames,&_argo0))
2942 return NULL;
2943 if (_argo0) {
2944 if (_argo0 == Py_None) { _arg0 = NULL; }
2945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetNext. Expected _wxHtmlCell_p.");
2947 return NULL;
2948 }
2949 }
2950 {
2951 PyThreadState* __tstate = wxPyBeginAllowThreads();
2952 _result = (wxHtmlCell *)wxHtmlCell_GetNext(_arg0);
2953
2954 wxPyEndAllowThreads(__tstate);
2955 if (PyErr_Occurred()) return NULL;
2956 } if (_result) {
2957 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlCell_p");
2958 _resultobj = Py_BuildValue("s",_ptemp);
2959 } else {
2960 Py_INCREF(Py_None);
2961 _resultobj = Py_None;
2962 }
2963 return _resultobj;
2964 }
2965
2966 #define wxHtmlCell_GetParent(_swigobj) (_swigobj->GetParent())
2967 static PyObject *_wrap_wxHtmlCell_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2968 PyObject * _resultobj;
2969 wxHtmlContainerCell * _result;
2970 wxHtmlCell * _arg0;
2971 PyObject * _argo0 = 0;
2972 char *_kwnames[] = { "self", NULL };
2973 char _ptemp[128];
2974
2975 self = self;
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlCell_GetParent",_kwnames,&_argo0))
2977 return NULL;
2978 if (_argo0) {
2979 if (_argo0 == Py_None) { _arg0 = NULL; }
2980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
2981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_GetParent. Expected _wxHtmlCell_p.");
2982 return NULL;
2983 }
2984 }
2985 {
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 _result = (wxHtmlContainerCell *)wxHtmlCell_GetParent(_arg0);
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) return NULL;
2991 } if (_result) {
2992 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
2993 _resultobj = Py_BuildValue("s",_ptemp);
2994 } else {
2995 Py_INCREF(Py_None);
2996 _resultobj = Py_None;
2997 }
2998 return _resultobj;
2999 }
3000
3001 #define wxHtmlCell_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
3002 static PyObject *_wrap_wxHtmlCell_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
3003 PyObject * _resultobj;
3004 wxHtmlCell * _arg0;
3005 wxHtmlLinkInfo * _arg1;
3006 PyObject * _argo0 = 0;
3007 PyObject * _argo1 = 0;
3008 char *_kwnames[] = { "self","link", NULL };
3009
3010 self = self;
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_SetLink",_kwnames,&_argo0,&_argo1))
3012 return NULL;
3013 if (_argo0) {
3014 if (_argo0 == Py_None) { _arg0 = NULL; }
3015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_SetLink. Expected _wxHtmlCell_p.");
3017 return NULL;
3018 }
3019 }
3020 if (_argo1) {
3021 if (_argo1 == Py_None) { _arg1 = NULL; }
3022 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlLinkInfo_p")) {
3023 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_SetLink. Expected _wxHtmlLinkInfo_p.");
3024 return NULL;
3025 }
3026 }
3027 {
3028 PyThreadState* __tstate = wxPyBeginAllowThreads();
3029 wxHtmlCell_SetLink(_arg0,*_arg1);
3030
3031 wxPyEndAllowThreads(__tstate);
3032 if (PyErr_Occurred()) return NULL;
3033 } Py_INCREF(Py_None);
3034 _resultobj = Py_None;
3035 return _resultobj;
3036 }
3037
3038 #define wxHtmlCell_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
3039 static PyObject *_wrap_wxHtmlCell_SetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
3040 PyObject * _resultobj;
3041 wxHtmlCell * _arg0;
3042 wxHtmlCell * _arg1;
3043 PyObject * _argo0 = 0;
3044 PyObject * _argo1 = 0;
3045 char *_kwnames[] = { "self","cell", NULL };
3046
3047 self = self;
3048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_SetNext",_kwnames,&_argo0,&_argo1))
3049 return NULL;
3050 if (_argo0) {
3051 if (_argo0 == Py_None) { _arg0 = NULL; }
3052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_SetNext. Expected _wxHtmlCell_p.");
3054 return NULL;
3055 }
3056 }
3057 if (_argo1) {
3058 if (_argo1 == Py_None) { _arg1 = NULL; }
3059 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlCell_p")) {
3060 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_SetNext. Expected _wxHtmlCell_p.");
3061 return NULL;
3062 }
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 wxHtmlCell_SetNext(_arg0,_arg1);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) return NULL;
3070 } Py_INCREF(Py_None);
3071 _resultobj = Py_None;
3072 return _resultobj;
3073 }
3074
3075 #define wxHtmlCell_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
3076 static PyObject *_wrap_wxHtmlCell_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3077 PyObject * _resultobj;
3078 wxHtmlCell * _arg0;
3079 wxHtmlContainerCell * _arg1;
3080 PyObject * _argo0 = 0;
3081 PyObject * _argo1 = 0;
3082 char *_kwnames[] = { "self","p", NULL };
3083
3084 self = self;
3085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_SetParent",_kwnames,&_argo0,&_argo1))
3086 return NULL;
3087 if (_argo0) {
3088 if (_argo0 == Py_None) { _arg0 = NULL; }
3089 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3090 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_SetParent. Expected _wxHtmlCell_p.");
3091 return NULL;
3092 }
3093 }
3094 if (_argo1) {
3095 if (_argo1 == Py_None) { _arg1 = NULL; }
3096 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlContainerCell_p")) {
3097 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_SetParent. Expected _wxHtmlContainerCell_p.");
3098 return NULL;
3099 }
3100 }
3101 {
3102 PyThreadState* __tstate = wxPyBeginAllowThreads();
3103 wxHtmlCell_SetParent(_arg0,_arg1);
3104
3105 wxPyEndAllowThreads(__tstate);
3106 if (PyErr_Occurred()) return NULL;
3107 } Py_INCREF(Py_None);
3108 _resultobj = Py_None;
3109 return _resultobj;
3110 }
3111
3112 #define wxHtmlCell_SetPos(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPos(_swigarg0,_swigarg1))
3113 static PyObject *_wrap_wxHtmlCell_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
3114 PyObject * _resultobj;
3115 wxHtmlCell * _arg0;
3116 int _arg1;
3117 int _arg2;
3118 PyObject * _argo0 = 0;
3119 char *_kwnames[] = { "self","x","y", NULL };
3120
3121 self = self;
3122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxHtmlCell_SetPos",_kwnames,&_argo0,&_arg1,&_arg2))
3123 return NULL;
3124 if (_argo0) {
3125 if (_argo0 == Py_None) { _arg0 = NULL; }
3126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_SetPos. Expected _wxHtmlCell_p.");
3128 return NULL;
3129 }
3130 }
3131 {
3132 PyThreadState* __tstate = wxPyBeginAllowThreads();
3133 wxHtmlCell_SetPos(_arg0,_arg1,_arg2);
3134
3135 wxPyEndAllowThreads(__tstate);
3136 if (PyErr_Occurred()) return NULL;
3137 } Py_INCREF(Py_None);
3138 _resultobj = Py_None;
3139 return _resultobj;
3140 }
3141
3142 #define wxHtmlCell_Layout(_swigobj,_swigarg0) (_swigobj->Layout(_swigarg0))
3143 static PyObject *_wrap_wxHtmlCell_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
3144 PyObject * _resultobj;
3145 wxHtmlCell * _arg0;
3146 int _arg1;
3147 PyObject * _argo0 = 0;
3148 char *_kwnames[] = { "self","w", NULL };
3149
3150 self = self;
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlCell_Layout",_kwnames,&_argo0,&_arg1))
3152 return NULL;
3153 if (_argo0) {
3154 if (_argo0 == Py_None) { _arg0 = NULL; }
3155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_Layout. Expected _wxHtmlCell_p.");
3157 return NULL;
3158 }
3159 }
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 wxHtmlCell_Layout(_arg0,_arg1);
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) return NULL;
3166 } Py_INCREF(Py_None);
3167 _resultobj = Py_None;
3168 return _resultobj;
3169 }
3170
3171 #define wxHtmlCell_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3172 static PyObject *_wrap_wxHtmlCell_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
3173 PyObject * _resultobj;
3174 wxHtmlCell * _arg0;
3175 wxDC * _arg1;
3176 int _arg2;
3177 int _arg3;
3178 int _arg4;
3179 int _arg5;
3180 PyObject * _argo0 = 0;
3181 PyObject * _argo1 = 0;
3182 char *_kwnames[] = { "self","dc","x","y","view_y1","view_y2", NULL };
3183
3184 self = self;
3185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiii:wxHtmlCell_Draw",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4,&_arg5))
3186 return NULL;
3187 if (_argo0) {
3188 if (_argo0 == Py_None) { _arg0 = NULL; }
3189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_Draw. Expected _wxHtmlCell_p.");
3191 return NULL;
3192 }
3193 }
3194 if (_argo1) {
3195 if (_argo1 == Py_None) { _arg1 = NULL; }
3196 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
3197 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_Draw. Expected _wxDC_p.");
3198 return NULL;
3199 }
3200 }
3201 {
3202 PyThreadState* __tstate = wxPyBeginAllowThreads();
3203 wxHtmlCell_Draw(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
3204
3205 wxPyEndAllowThreads(__tstate);
3206 if (PyErr_Occurred()) return NULL;
3207 } Py_INCREF(Py_None);
3208 _resultobj = Py_None;
3209 return _resultobj;
3210 }
3211
3212 #define wxHtmlCell_DrawInvisible(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawInvisible(_swigarg0,_swigarg1,_swigarg2))
3213 static PyObject *_wrap_wxHtmlCell_DrawInvisible(PyObject *self, PyObject *args, PyObject *kwargs) {
3214 PyObject * _resultobj;
3215 wxHtmlCell * _arg0;
3216 wxDC * _arg1;
3217 int _arg2;
3218 int _arg3;
3219 PyObject * _argo0 = 0;
3220 PyObject * _argo1 = 0;
3221 char *_kwnames[] = { "self","dc","x","y", NULL };
3222
3223 self = self;
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxHtmlCell_DrawInvisible",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
3225 return NULL;
3226 if (_argo0) {
3227 if (_argo0 == Py_None) { _arg0 = NULL; }
3228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_DrawInvisible. Expected _wxHtmlCell_p.");
3230 return NULL;
3231 }
3232 }
3233 if (_argo1) {
3234 if (_argo1 == Py_None) { _arg1 = NULL; }
3235 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
3236 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_DrawInvisible. Expected _wxDC_p.");
3237 return NULL;
3238 }
3239 }
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 wxHtmlCell_DrawInvisible(_arg0,*_arg1,_arg2,_arg3);
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) return NULL;
3246 } Py_INCREF(Py_None);
3247 _resultobj = Py_None;
3248 return _resultobj;
3249 }
3250
3251 #define wxHtmlCell_Find(_swigobj,_swigarg0,_swigarg1) (_swigobj->Find(_swigarg0,_swigarg1))
3252 static PyObject *_wrap_wxHtmlCell_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
3253 PyObject * _resultobj;
3254 wxHtmlCell * _result;
3255 wxHtmlCell * _arg0;
3256 int _arg1;
3257 void * _arg2;
3258 PyObject * _argo0 = 0;
3259 PyObject * _argo2 = 0;
3260 char *_kwnames[] = { "self","condition","param", NULL };
3261 char _ptemp[128];
3262
3263 self = self;
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxHtmlCell_Find",_kwnames,&_argo0,&_arg1,&_argo2))
3265 return NULL;
3266 if (_argo0) {
3267 if (_argo0 == Py_None) { _arg0 = NULL; }
3268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_Find. Expected _wxHtmlCell_p.");
3270 return NULL;
3271 }
3272 }
3273 if (_argo2) {
3274 if (_argo2 == Py_None) { _arg2 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,(char *) 0 )) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxHtmlCell_Find. Expected _void_p.");
3277 return NULL;
3278 }
3279 }
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 _result = (wxHtmlCell *)wxHtmlCell_Find(_arg0,_arg1,_arg2);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) return NULL;
3286 } if (_result) {
3287 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlCell_p");
3288 _resultobj = Py_BuildValue("s",_ptemp);
3289 } else {
3290 Py_INCREF(Py_None);
3291 _resultobj = Py_None;
3292 }
3293 return _resultobj;
3294 }
3295
3296 #define wxHtmlCell_AdjustPagebreak(_swigobj,_swigarg0) (_swigobj->AdjustPagebreak(_swigarg0))
3297 static PyObject *_wrap_wxHtmlCell_AdjustPagebreak(PyObject *self, PyObject *args, PyObject *kwargs) {
3298 PyObject * _resultobj;
3299 bool _result;
3300 wxHtmlCell * _arg0;
3301 int * _arg1;
3302 PyObject * _argo0 = 0;
3303 PyObject * _argo1 = 0;
3304 char *_kwnames[] = { "self","pagebreak", NULL };
3305
3306 self = self;
3307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlCell_AdjustPagebreak",_kwnames,&_argo0,&_argo1))
3308 return NULL;
3309 if (_argo0) {
3310 if (_argo0 == Py_None) { _arg0 = NULL; }
3311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_AdjustPagebreak. Expected _wxHtmlCell_p.");
3313 return NULL;
3314 }
3315 }
3316 if (_argo1) {
3317 if (_argo1 == Py_None) { _arg1 = NULL; }
3318 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_int_p")) {
3319 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlCell_AdjustPagebreak. Expected _int_p.");
3320 return NULL;
3321 }
3322 }
3323 {
3324 PyThreadState* __tstate = wxPyBeginAllowThreads();
3325 _result = (bool )wxHtmlCell_AdjustPagebreak(_arg0,_arg1);
3326
3327 wxPyEndAllowThreads(__tstate);
3328 if (PyErr_Occurred()) return NULL;
3329 } _resultobj = Py_BuildValue("i",_result);
3330 return _resultobj;
3331 }
3332
3333 #define wxHtmlCell_SetCanLiveOnPagebreak(_swigobj,_swigarg0) (_swigobj->SetCanLiveOnPagebreak(_swigarg0))
3334 static PyObject *_wrap_wxHtmlCell_SetCanLiveOnPagebreak(PyObject *self, PyObject *args, PyObject *kwargs) {
3335 PyObject * _resultobj;
3336 wxHtmlCell * _arg0;
3337 bool _arg1;
3338 PyObject * _argo0 = 0;
3339 int tempbool1;
3340 char *_kwnames[] = { "self","can", NULL };
3341
3342 self = self;
3343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlCell_SetCanLiveOnPagebreak",_kwnames,&_argo0,&tempbool1))
3344 return NULL;
3345 if (_argo0) {
3346 if (_argo0 == Py_None) { _arg0 = NULL; }
3347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlCell_p")) {
3348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlCell_SetCanLiveOnPagebreak. Expected _wxHtmlCell_p.");
3349 return NULL;
3350 }
3351 }
3352 _arg1 = (bool ) tempbool1;
3353 {
3354 PyThreadState* __tstate = wxPyBeginAllowThreads();
3355 wxHtmlCell_SetCanLiveOnPagebreak(_arg0,_arg1);
3356
3357 wxPyEndAllowThreads(__tstate);
3358 if (PyErr_Occurred()) return NULL;
3359 } Py_INCREF(Py_None);
3360 _resultobj = Py_None;
3361 return _resultobj;
3362 }
3363
3364 static void *SwigwxHtmlWordCellTowxHtmlCell(void *ptr) {
3365 wxHtmlWordCell *src;
3366 wxHtmlCell *dest;
3367 src = (wxHtmlWordCell *) ptr;
3368 dest = (wxHtmlCell *) src;
3369 return (void *) dest;
3370 }
3371
3372 static void *SwigwxHtmlWordCellTowxObject(void *ptr) {
3373 wxHtmlWordCell *src;
3374 wxObject *dest;
3375 src = (wxHtmlWordCell *) ptr;
3376 dest = (wxObject *) src;
3377 return (void *) dest;
3378 }
3379
3380 #define new_wxHtmlWordCell(_swigarg0,_swigarg1) (new wxHtmlWordCell(_swigarg0,_swigarg1))
3381 static PyObject *_wrap_new_wxHtmlWordCell(PyObject *self, PyObject *args, PyObject *kwargs) {
3382 PyObject * _resultobj;
3383 wxHtmlWordCell * _result;
3384 wxString * _arg0;
3385 wxDC * _arg1;
3386 PyObject * _obj0 = 0;
3387 PyObject * _argo1 = 0;
3388 char *_kwnames[] = { "word","dc", NULL };
3389 char _ptemp[128];
3390
3391 self = self;
3392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxHtmlWordCell",_kwnames,&_obj0,&_argo1))
3393 return NULL;
3394 {
3395 #if PYTHON_API_VERSION >= 1009
3396 char* tmpPtr; int tmpSize;
3397 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
3398 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3399 return NULL;
3400 }
3401 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
3402 return NULL;
3403 _arg0 = new wxString(tmpPtr, tmpSize);
3404 #else
3405 if (!PyString_Check(_obj0)) {
3406 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3407 return NULL;
3408 }
3409 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
3410 #endif
3411 }
3412 if (_argo1) {
3413 if (_argo1 == Py_None) { _arg1 = NULL; }
3414 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
3415 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxHtmlWordCell. Expected _wxDC_p.");
3416 return NULL;
3417 }
3418 }
3419 {
3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
3421 _result = (wxHtmlWordCell *)new_wxHtmlWordCell(*_arg0,*_arg1);
3422
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) return NULL;
3425 } if (_result) {
3426 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWordCell_p");
3427 _resultobj = Py_BuildValue("s",_ptemp);
3428 } else {
3429 Py_INCREF(Py_None);
3430 _resultobj = Py_None;
3431 }
3432 {
3433 if (_obj0)
3434 delete _arg0;
3435 }
3436 return _resultobj;
3437 }
3438
3439 static void *SwigwxHtmlContainerCellTowxHtmlCell(void *ptr) {
3440 wxHtmlContainerCell *src;
3441 wxHtmlCell *dest;
3442 src = (wxHtmlContainerCell *) ptr;
3443 dest = (wxHtmlCell *) src;
3444 return (void *) dest;
3445 }
3446
3447 static void *SwigwxHtmlContainerCellTowxObject(void *ptr) {
3448 wxHtmlContainerCell *src;
3449 wxObject *dest;
3450 src = (wxHtmlContainerCell *) ptr;
3451 dest = (wxObject *) src;
3452 return (void *) dest;
3453 }
3454
3455 #define new_wxHtmlContainerCell(_swigarg0) (new wxHtmlContainerCell(_swigarg0))
3456 static PyObject *_wrap_new_wxHtmlContainerCell(PyObject *self, PyObject *args, PyObject *kwargs) {
3457 PyObject * _resultobj;
3458 wxHtmlContainerCell * _result;
3459 wxHtmlContainerCell * _arg0;
3460 PyObject * _argo0 = 0;
3461 char *_kwnames[] = { "parent", NULL };
3462 char _ptemp[128];
3463
3464 self = self;
3465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxHtmlContainerCell",_kwnames,&_argo0))
3466 return NULL;
3467 if (_argo0) {
3468 if (_argo0 == Py_None) { _arg0 = NULL; }
3469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlContainerCell. Expected _wxHtmlContainerCell_p.");
3471 return NULL;
3472 }
3473 }
3474 {
3475 PyThreadState* __tstate = wxPyBeginAllowThreads();
3476 _result = (wxHtmlContainerCell *)new_wxHtmlContainerCell(_arg0);
3477
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) return NULL;
3480 } if (_result) {
3481 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
3482 _resultobj = Py_BuildValue("s",_ptemp);
3483 } else {
3484 Py_INCREF(Py_None);
3485 _resultobj = Py_None;
3486 }
3487 return _resultobj;
3488 }
3489
3490 #define wxHtmlContainerCell_InsertCell(_swigobj,_swigarg0) (_swigobj->InsertCell(_swigarg0))
3491 static PyObject *_wrap_wxHtmlContainerCell_InsertCell(PyObject *self, PyObject *args, PyObject *kwargs) {
3492 PyObject * _resultobj;
3493 wxHtmlContainerCell * _arg0;
3494 wxHtmlCell * _arg1;
3495 PyObject * _argo0 = 0;
3496 PyObject * _argo1 = 0;
3497 char *_kwnames[] = { "self","cell", NULL };
3498
3499 self = self;
3500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlContainerCell_InsertCell",_kwnames,&_argo0,&_argo1))
3501 return NULL;
3502 if (_argo0) {
3503 if (_argo0 == Py_None) { _arg0 = NULL; }
3504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_InsertCell. Expected _wxHtmlContainerCell_p.");
3506 return NULL;
3507 }
3508 }
3509 if (_argo1) {
3510 if (_argo1 == Py_None) { _arg1 = NULL; }
3511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlCell_p")) {
3512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlContainerCell_InsertCell. Expected _wxHtmlCell_p.");
3513 return NULL;
3514 }
3515 }
3516 {
3517 PyThreadState* __tstate = wxPyBeginAllowThreads();
3518 wxHtmlContainerCell_InsertCell(_arg0,_arg1);
3519
3520 wxPyEndAllowThreads(__tstate);
3521 if (PyErr_Occurred()) return NULL;
3522 } Py_INCREF(Py_None);
3523 _resultobj = Py_None;
3524 return _resultobj;
3525 }
3526
3527 #define wxHtmlContainerCell_SetAlignHor(_swigobj,_swigarg0) (_swigobj->SetAlignHor(_swigarg0))
3528 static PyObject *_wrap_wxHtmlContainerCell_SetAlignHor(PyObject *self, PyObject *args, PyObject *kwargs) {
3529 PyObject * _resultobj;
3530 wxHtmlContainerCell * _arg0;
3531 int _arg1;
3532 PyObject * _argo0 = 0;
3533 char *_kwnames[] = { "self","al", NULL };
3534
3535 self = self;
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlContainerCell_SetAlignHor",_kwnames,&_argo0,&_arg1))
3537 return NULL;
3538 if (_argo0) {
3539 if (_argo0 == Py_None) { _arg0 = NULL; }
3540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetAlignHor. Expected _wxHtmlContainerCell_p.");
3542 return NULL;
3543 }
3544 }
3545 {
3546 PyThreadState* __tstate = wxPyBeginAllowThreads();
3547 wxHtmlContainerCell_SetAlignHor(_arg0,_arg1);
3548
3549 wxPyEndAllowThreads(__tstate);
3550 if (PyErr_Occurred()) return NULL;
3551 } Py_INCREF(Py_None);
3552 _resultobj = Py_None;
3553 return _resultobj;
3554 }
3555
3556 #define wxHtmlContainerCell_GetAlignHor(_swigobj) (_swigobj->GetAlignHor())
3557 static PyObject *_wrap_wxHtmlContainerCell_GetAlignHor(PyObject *self, PyObject *args, PyObject *kwargs) {
3558 PyObject * _resultobj;
3559 int _result;
3560 wxHtmlContainerCell * _arg0;
3561 PyObject * _argo0 = 0;
3562 char *_kwnames[] = { "self", NULL };
3563
3564 self = self;
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContainerCell_GetAlignHor",_kwnames,&_argo0))
3566 return NULL;
3567 if (_argo0) {
3568 if (_argo0 == Py_None) { _arg0 = NULL; }
3569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetAlignHor. Expected _wxHtmlContainerCell_p.");
3571 return NULL;
3572 }
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 _result = (int )wxHtmlContainerCell_GetAlignHor(_arg0);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) return NULL;
3580 } _resultobj = Py_BuildValue("i",_result);
3581 return _resultobj;
3582 }
3583
3584 #define wxHtmlContainerCell_SetAlignVer(_swigobj,_swigarg0) (_swigobj->SetAlignVer(_swigarg0))
3585 static PyObject *_wrap_wxHtmlContainerCell_SetAlignVer(PyObject *self, PyObject *args, PyObject *kwargs) {
3586 PyObject * _resultobj;
3587 wxHtmlContainerCell * _arg0;
3588 int _arg1;
3589 PyObject * _argo0 = 0;
3590 char *_kwnames[] = { "self","al", NULL };
3591
3592 self = self;
3593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlContainerCell_SetAlignVer",_kwnames,&_argo0,&_arg1))
3594 return NULL;
3595 if (_argo0) {
3596 if (_argo0 == Py_None) { _arg0 = NULL; }
3597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetAlignVer. Expected _wxHtmlContainerCell_p.");
3599 return NULL;
3600 }
3601 }
3602 {
3603 PyThreadState* __tstate = wxPyBeginAllowThreads();
3604 wxHtmlContainerCell_SetAlignVer(_arg0,_arg1);
3605
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) return NULL;
3608 } Py_INCREF(Py_None);
3609 _resultobj = Py_None;
3610 return _resultobj;
3611 }
3612
3613 #define wxHtmlContainerCell_GetAlignVer(_swigobj) (_swigobj->GetAlignVer())
3614 static PyObject *_wrap_wxHtmlContainerCell_GetAlignVer(PyObject *self, PyObject *args, PyObject *kwargs) {
3615 PyObject * _resultobj;
3616 int _result;
3617 wxHtmlContainerCell * _arg0;
3618 PyObject * _argo0 = 0;
3619 char *_kwnames[] = { "self", NULL };
3620
3621 self = self;
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContainerCell_GetAlignVer",_kwnames,&_argo0))
3623 return NULL;
3624 if (_argo0) {
3625 if (_argo0 == Py_None) { _arg0 = NULL; }
3626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetAlignVer. Expected _wxHtmlContainerCell_p.");
3628 return NULL;
3629 }
3630 }
3631 {
3632 PyThreadState* __tstate = wxPyBeginAllowThreads();
3633 _result = (int )wxHtmlContainerCell_GetAlignVer(_arg0);
3634
3635 wxPyEndAllowThreads(__tstate);
3636 if (PyErr_Occurred()) return NULL;
3637 } _resultobj = Py_BuildValue("i",_result);
3638 return _resultobj;
3639 }
3640
3641 #define wxHtmlContainerCell_SetIndent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetIndent(_swigarg0,_swigarg1,_swigarg2))
3642 static PyObject *_wrap_wxHtmlContainerCell_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject * _resultobj;
3644 wxHtmlContainerCell * _arg0;
3645 int _arg1;
3646 int _arg2;
3647 int _arg3 = (int ) (wxHTML_UNITS_PIXELS);
3648 PyObject * _argo0 = 0;
3649 char *_kwnames[] = { "self","i","what","units", NULL };
3650
3651 self = self;
3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxHtmlContainerCell_SetIndent",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3653 return NULL;
3654 if (_argo0) {
3655 if (_argo0 == Py_None) { _arg0 = NULL; }
3656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetIndent. Expected _wxHtmlContainerCell_p.");
3658 return NULL;
3659 }
3660 }
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 wxHtmlContainerCell_SetIndent(_arg0,_arg1,_arg2,_arg3);
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) return NULL;
3667 } Py_INCREF(Py_None);
3668 _resultobj = Py_None;
3669 return _resultobj;
3670 }
3671
3672 #define wxHtmlContainerCell_GetIndent(_swigobj,_swigarg0) (_swigobj->GetIndent(_swigarg0))
3673 static PyObject *_wrap_wxHtmlContainerCell_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject * _resultobj;
3675 int _result;
3676 wxHtmlContainerCell * _arg0;
3677 int _arg1;
3678 PyObject * _argo0 = 0;
3679 char *_kwnames[] = { "self","ind", NULL };
3680
3681 self = self;
3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlContainerCell_GetIndent",_kwnames,&_argo0,&_arg1))
3683 return NULL;
3684 if (_argo0) {
3685 if (_argo0 == Py_None) { _arg0 = NULL; }
3686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetIndent. Expected _wxHtmlContainerCell_p.");
3688 return NULL;
3689 }
3690 }
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 _result = (int )wxHtmlContainerCell_GetIndent(_arg0,_arg1);
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) return NULL;
3697 } _resultobj = Py_BuildValue("i",_result);
3698 return _resultobj;
3699 }
3700
3701 #define wxHtmlContainerCell_GetIndentUnits(_swigobj,_swigarg0) (_swigobj->GetIndentUnits(_swigarg0))
3702 static PyObject *_wrap_wxHtmlContainerCell_GetIndentUnits(PyObject *self, PyObject *args, PyObject *kwargs) {
3703 PyObject * _resultobj;
3704 int _result;
3705 wxHtmlContainerCell * _arg0;
3706 int _arg1;
3707 PyObject * _argo0 = 0;
3708 char *_kwnames[] = { "self","ind", NULL };
3709
3710 self = self;
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlContainerCell_GetIndentUnits",_kwnames,&_argo0,&_arg1))
3712 return NULL;
3713 if (_argo0) {
3714 if (_argo0 == Py_None) { _arg0 = NULL; }
3715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetIndentUnits. Expected _wxHtmlContainerCell_p.");
3717 return NULL;
3718 }
3719 }
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 _result = (int )wxHtmlContainerCell_GetIndentUnits(_arg0,_arg1);
3723
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) return NULL;
3726 } _resultobj = Py_BuildValue("i",_result);
3727 return _resultobj;
3728 }
3729
3730 #define wxHtmlContainerCell_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0))
3731 static PyObject *_wrap_wxHtmlContainerCell_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject * _resultobj;
3733 wxHtmlContainerCell * _arg0;
3734 wxHtmlTag * _arg1;
3735 PyObject * _argo0 = 0;
3736 PyObject * _argo1 = 0;
3737 char *_kwnames[] = { "self","tag", NULL };
3738
3739 self = self;
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlContainerCell_SetAlign",_kwnames,&_argo0,&_argo1))
3741 return NULL;
3742 if (_argo0) {
3743 if (_argo0 == Py_None) { _arg0 = NULL; }
3744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetAlign. Expected _wxHtmlContainerCell_p.");
3746 return NULL;
3747 }
3748 }
3749 if (_argo1) {
3750 if (_argo1 == Py_None) { _arg1 = NULL; }
3751 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTag_p")) {
3752 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlContainerCell_SetAlign. Expected _wxHtmlTag_p.");
3753 return NULL;
3754 }
3755 }
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 wxHtmlContainerCell_SetAlign(_arg0,*_arg1);
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) return NULL;
3762 } Py_INCREF(Py_None);
3763 _resultobj = Py_None;
3764 return _resultobj;
3765 }
3766
3767 #define wxHtmlContainerCell_SetWidthFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetWidthFloat(_swigarg0,_swigarg1))
3768 static PyObject *_wrap_wxHtmlContainerCell_SetWidthFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
3769 PyObject * _resultobj;
3770 wxHtmlContainerCell * _arg0;
3771 int _arg1;
3772 int _arg2;
3773 PyObject * _argo0 = 0;
3774 char *_kwnames[] = { "self","w","units", NULL };
3775
3776 self = self;
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxHtmlContainerCell_SetWidthFloat",_kwnames,&_argo0,&_arg1,&_arg2))
3778 return NULL;
3779 if (_argo0) {
3780 if (_argo0 == Py_None) { _arg0 = NULL; }
3781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetWidthFloat. Expected _wxHtmlContainerCell_p.");
3783 return NULL;
3784 }
3785 }
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 wxHtmlContainerCell_SetWidthFloat(_arg0,_arg1,_arg2);
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) return NULL;
3792 } Py_INCREF(Py_None);
3793 _resultobj = Py_None;
3794 return _resultobj;
3795 }
3796
3797 #define wxHtmlContainerCell_SetWidthFloatFromTag(_swigobj,_swigarg0) (_swigobj->SetWidthFloat(_swigarg0))
3798 static PyObject *_wrap_wxHtmlContainerCell_SetWidthFloatFromTag(PyObject *self, PyObject *args, PyObject *kwargs) {
3799 PyObject * _resultobj;
3800 wxHtmlContainerCell * _arg0;
3801 wxHtmlTag * _arg1;
3802 PyObject * _argo0 = 0;
3803 PyObject * _argo1 = 0;
3804 char *_kwnames[] = { "self","tag", NULL };
3805
3806 self = self;
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlContainerCell_SetWidthFloatFromTag",_kwnames,&_argo0,&_argo1))
3808 return NULL;
3809 if (_argo0) {
3810 if (_argo0 == Py_None) { _arg0 = NULL; }
3811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetWidthFloatFromTag. Expected _wxHtmlContainerCell_p.");
3813 return NULL;
3814 }
3815 }
3816 if (_argo1) {
3817 if (_argo1 == Py_None) { _arg1 = NULL; }
3818 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlTag_p")) {
3819 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlContainerCell_SetWidthFloatFromTag. Expected _wxHtmlTag_p.");
3820 return NULL;
3821 }
3822 }
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 wxHtmlContainerCell_SetWidthFloatFromTag(_arg0,*_arg1);
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) return NULL;
3829 } Py_INCREF(Py_None);
3830 _resultobj = Py_None;
3831 return _resultobj;
3832 }
3833
3834 #define wxHtmlContainerCell_SetMinHeight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMinHeight(_swigarg0,_swigarg1))
3835 static PyObject *_wrap_wxHtmlContainerCell_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject * _resultobj;
3837 wxHtmlContainerCell * _arg0;
3838 int _arg1;
3839 int _arg2 = (int ) (wxHTML_ALIGN_TOP);
3840 PyObject * _argo0 = 0;
3841 char *_kwnames[] = { "self","h","align", NULL };
3842
3843 self = self;
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxHtmlContainerCell_SetMinHeight",_kwnames,&_argo0,&_arg1,&_arg2))
3845 return NULL;
3846 if (_argo0) {
3847 if (_argo0 == Py_None) { _arg0 = NULL; }
3848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetMinHeight. Expected _wxHtmlContainerCell_p.");
3850 return NULL;
3851 }
3852 }
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 wxHtmlContainerCell_SetMinHeight(_arg0,_arg1,_arg2);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) return NULL;
3859 } Py_INCREF(Py_None);
3860 _resultobj = Py_None;
3861 return _resultobj;
3862 }
3863
3864 #define wxHtmlContainerCell_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3865 static PyObject *_wrap_wxHtmlContainerCell_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject * _resultobj;
3867 wxHtmlContainerCell * _arg0;
3868 wxColour * _arg1;
3869 PyObject * _argo0 = 0;
3870 wxColour temp;
3871 PyObject * _obj1 = 0;
3872 char *_kwnames[] = { "self","clr", NULL };
3873
3874 self = self;
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlContainerCell_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
3876 return NULL;
3877 if (_argo0) {
3878 if (_argo0 == Py_None) { _arg0 = NULL; }
3879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetBackgroundColour. Expected _wxHtmlContainerCell_p.");
3881 return NULL;
3882 }
3883 }
3884 {
3885 _arg1 = &temp;
3886 if (! wxColour_helper(_obj1, &_arg1))
3887 return NULL;
3888 }
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 wxHtmlContainerCell_SetBackgroundColour(_arg0,*_arg1);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) return NULL;
3895 } Py_INCREF(Py_None);
3896 _resultobj = Py_None;
3897 return _resultobj;
3898 }
3899
3900 #define wxHtmlContainerCell_SetBorder(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBorder(_swigarg0,_swigarg1))
3901 static PyObject *_wrap_wxHtmlContainerCell_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
3902 PyObject * _resultobj;
3903 wxHtmlContainerCell * _arg0;
3904 wxColour * _arg1;
3905 wxColour * _arg2;
3906 PyObject * _argo0 = 0;
3907 wxColour temp;
3908 PyObject * _obj1 = 0;
3909 wxColour temp0;
3910 PyObject * _obj2 = 0;
3911 char *_kwnames[] = { "self","clr1","clr2", NULL };
3912
3913 self = self;
3914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlContainerCell_SetBorder",_kwnames,&_argo0,&_obj1,&_obj2))
3915 return NULL;
3916 if (_argo0) {
3917 if (_argo0 == Py_None) { _arg0 = NULL; }
3918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_SetBorder. Expected _wxHtmlContainerCell_p.");
3920 return NULL;
3921 }
3922 }
3923 {
3924 _arg1 = &temp;
3925 if (! wxColour_helper(_obj1, &_arg1))
3926 return NULL;
3927 }
3928 {
3929 _arg2 = &temp0;
3930 if (! wxColour_helper(_obj2, &_arg2))
3931 return NULL;
3932 }
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 wxHtmlContainerCell_SetBorder(_arg0,*_arg1,*_arg2);
3936
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) return NULL;
3939 } Py_INCREF(Py_None);
3940 _resultobj = Py_None;
3941 return _resultobj;
3942 }
3943
3944 #define wxHtmlContainerCell_GetFirstCell(_swigobj) (_swigobj->GetFirstCell())
3945 static PyObject *_wrap_wxHtmlContainerCell_GetFirstCell(PyObject *self, PyObject *args, PyObject *kwargs) {
3946 PyObject * _resultobj;
3947 wxHtmlCell * _result;
3948 wxHtmlContainerCell * _arg0;
3949 PyObject * _argo0 = 0;
3950 char *_kwnames[] = { "self", NULL };
3951 char _ptemp[128];
3952
3953 self = self;
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContainerCell_GetFirstCell",_kwnames,&_argo0))
3955 return NULL;
3956 if (_argo0) {
3957 if (_argo0 == Py_None) { _arg0 = NULL; }
3958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) {
3959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetFirstCell. Expected _wxHtmlContainerCell_p.");
3960 return NULL;
3961 }
3962 }
3963 {
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 _result = (wxHtmlCell *)wxHtmlContainerCell_GetFirstCell(_arg0);
3966
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) return NULL;
3969 } if (_result) {
3970 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlCell_p");
3971 _resultobj = Py_BuildValue("s",_ptemp);
3972 } else {
3973 Py_INCREF(Py_None);
3974 _resultobj = Py_None;
3975 }
3976 return _resultobj;
3977 }
3978
3979 static void *SwigwxHtmlColourCellTowxHtmlCell(void *ptr) {
3980 wxHtmlColourCell *src;
3981 wxHtmlCell *dest;
3982 src = (wxHtmlColourCell *) ptr;
3983 dest = (wxHtmlCell *) src;
3984 return (void *) dest;
3985 }
3986
3987 static void *SwigwxHtmlColourCellTowxObject(void *ptr) {
3988 wxHtmlColourCell *src;
3989 wxObject *dest;
3990 src = (wxHtmlColourCell *) ptr;
3991 dest = (wxObject *) src;
3992 return (void *) dest;
3993 }
3994
3995 #define new_wxHtmlColourCell(_swigarg0,_swigarg1) (new wxHtmlColourCell(_swigarg0,_swigarg1))
3996 static PyObject *_wrap_new_wxHtmlColourCell(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject * _resultobj;
3998 wxHtmlColourCell * _result;
3999 wxColour * _arg0;
4000 int _arg1 = (int ) (wxHTML_CLR_FOREGROUND);
4001 wxColour temp;
4002 PyObject * _obj0 = 0;
4003 char *_kwnames[] = { "clr","flags", NULL };
4004 char _ptemp[128];
4005
4006 self = self;
4007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxHtmlColourCell",_kwnames,&_obj0,&_arg1))
4008 return NULL;
4009 {
4010 _arg0 = &temp;
4011 if (! wxColour_helper(_obj0, &_arg0))
4012 return NULL;
4013 }
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 _result = (wxHtmlColourCell *)new_wxHtmlColourCell(*_arg0,_arg1);
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) return NULL;
4020 } if (_result) {
4021 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlColourCell_p");
4022 _resultobj = Py_BuildValue("s",_ptemp);
4023 } else {
4024 Py_INCREF(Py_None);
4025 _resultobj = Py_None;
4026 }
4027 return _resultobj;
4028 }
4029
4030 static void *SwigwxHtmlFontCellTowxHtmlCell(void *ptr) {
4031 wxHtmlFontCell *src;
4032 wxHtmlCell *dest;
4033 src = (wxHtmlFontCell *) ptr;
4034 dest = (wxHtmlCell *) src;
4035 return (void *) dest;
4036 }
4037
4038 static void *SwigwxHtmlFontCellTowxObject(void *ptr) {
4039 wxHtmlFontCell *src;
4040 wxObject *dest;
4041 src = (wxHtmlFontCell *) ptr;
4042 dest = (wxObject *) src;
4043 return (void *) dest;
4044 }
4045
4046 #define new_wxHtmlFontCell(_swigarg0) (new wxHtmlFontCell(_swigarg0))
4047 static PyObject *_wrap_new_wxHtmlFontCell(PyObject *self, PyObject *args, PyObject *kwargs) {
4048 PyObject * _resultobj;
4049 wxHtmlFontCell * _result;
4050 wxFont * _arg0;
4051 PyObject * _argo0 = 0;
4052 char *_kwnames[] = { "font", NULL };
4053 char _ptemp[128];
4054
4055 self = self;
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxHtmlFontCell",_kwnames,&_argo0))
4057 return NULL;
4058 if (_argo0) {
4059 if (_argo0 == Py_None) { _arg0 = NULL; }
4060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlFontCell. Expected _wxFont_p.");
4062 return NULL;
4063 }
4064 }
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 _result = (wxHtmlFontCell *)new_wxHtmlFontCell(_arg0);
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) return NULL;
4071 } if (_result) {
4072 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlFontCell_p");
4073 _resultobj = Py_BuildValue("s",_ptemp);
4074 } else {
4075 Py_INCREF(Py_None);
4076 _resultobj = Py_None;
4077 }
4078 return _resultobj;
4079 }
4080
4081 static void *SwigwxHtmlWidgetCellTowxHtmlCell(void *ptr) {
4082 wxHtmlWidgetCell *src;
4083 wxHtmlCell *dest;
4084 src = (wxHtmlWidgetCell *) ptr;
4085 dest = (wxHtmlCell *) src;
4086 return (void *) dest;
4087 }
4088
4089 static void *SwigwxHtmlWidgetCellTowxObject(void *ptr) {
4090 wxHtmlWidgetCell *src;
4091 wxObject *dest;
4092 src = (wxHtmlWidgetCell *) ptr;
4093 dest = (wxObject *) src;
4094 return (void *) dest;
4095 }
4096
4097 #define new_wxHtmlWidgetCell(_swigarg0,_swigarg1) (new wxHtmlWidgetCell(_swigarg0,_swigarg1))
4098 static PyObject *_wrap_new_wxHtmlWidgetCell(PyObject *self, PyObject *args, PyObject *kwargs) {
4099 PyObject * _resultobj;
4100 wxHtmlWidgetCell * _result;
4101 wxWindow * _arg0;
4102 int _arg1 = (int ) 0;
4103 PyObject * _argo0 = 0;
4104 char *_kwnames[] = { "wnd","w", NULL };
4105 char _ptemp[128];
4106
4107 self = self;
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxHtmlWidgetCell",_kwnames,&_argo0,&_arg1))
4109 return NULL;
4110 if (_argo0) {
4111 if (_argo0 == Py_None) { _arg0 = NULL; }
4112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWidgetCell. Expected _wxWindow_p.");
4114 return NULL;
4115 }
4116 }
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 _result = (wxHtmlWidgetCell *)new_wxHtmlWidgetCell(_arg0,_arg1);
4120
4121 wxPyEndAllowThreads(__tstate);
4122 if (PyErr_Occurred()) return NULL;
4123 } if (_result) {
4124 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWidgetCell_p");
4125 _resultobj = Py_BuildValue("s",_ptemp);
4126 } else {
4127 Py_INCREF(Py_None);
4128 _resultobj = Py_None;
4129 }
4130 return _resultobj;
4131 }
4132
4133 static void *SwigwxPyHtmlWindowTowxScrolledWindow(void *ptr) {
4134 wxPyHtmlWindow *src;
4135 wxScrolledWindow *dest;
4136 src = (wxPyHtmlWindow *) ptr;
4137 dest = (wxScrolledWindow *) src;
4138 return (void *) dest;
4139 }
4140
4141 static void *SwigwxPyHtmlWindowTowxPanel(void *ptr) {
4142 wxPyHtmlWindow *src;
4143 wxPanel *dest;
4144 src = (wxPyHtmlWindow *) ptr;
4145 dest = (wxPanel *) src;
4146 return (void *) dest;
4147 }
4148
4149 static void *SwigwxPyHtmlWindowTowxWindow(void *ptr) {
4150 wxPyHtmlWindow *src;
4151 wxWindow *dest;
4152 src = (wxPyHtmlWindow *) ptr;
4153 dest = (wxWindow *) src;
4154 return (void *) dest;
4155 }
4156
4157 static void *SwigwxPyHtmlWindowTowxEvtHandler(void *ptr) {
4158 wxPyHtmlWindow *src;
4159 wxEvtHandler *dest;
4160 src = (wxPyHtmlWindow *) ptr;
4161 dest = (wxEvtHandler *) src;
4162 return (void *) dest;
4163 }
4164
4165 static void *SwigwxPyHtmlWindowTowxObject(void *ptr) {
4166 wxPyHtmlWindow *src;
4167 wxObject *dest;
4168 src = (wxPyHtmlWindow *) ptr;
4169 dest = (wxObject *) src;
4170 return (void *) dest;
4171 }
4172
4173 #define new_wxHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4174 static PyObject *_wrap_new_wxHtmlWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject * _resultobj;
4176 wxPyHtmlWindow * _result;
4177 wxWindow * _arg0;
4178 int _arg1 = (int ) -1;
4179 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
4180 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4181 int _arg4 = (int ) wxHW_SCROLLBAR_AUTO;
4182 char * _arg5 = (char *) "htmlWindow";
4183 PyObject * _argo0 = 0;
4184 wxPoint temp;
4185 PyObject * _obj2 = 0;
4186 wxSize temp0;
4187 PyObject * _obj3 = 0;
4188 char *_kwnames[] = { "parent","id","pos","size","flags","name", NULL };
4189 char _ptemp[128];
4190
4191 self = self;
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOis:new_wxHtmlWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
4193 return NULL;
4194 if (_argo0) {
4195 if (_argo0 == Py_None) { _arg0 = NULL; }
4196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlWindow. Expected _wxWindow_p.");
4198 return NULL;
4199 }
4200 }
4201 if (_obj2)
4202 {
4203 _arg2 = &temp;
4204 if (! wxPoint_helper(_obj2, &_arg2))
4205 return NULL;
4206 }
4207 if (_obj3)
4208 {
4209 _arg3 = &temp0;
4210 if (! wxSize_helper(_obj3, &_arg3))
4211 return NULL;
4212 }
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 _result = (wxPyHtmlWindow *)new_wxHtmlWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) return NULL;
4219 } if (_result) {
4220 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlWindow_p");
4221 _resultobj = Py_BuildValue("s",_ptemp);
4222 } else {
4223 Py_INCREF(Py_None);
4224 _resultobj = Py_None;
4225 }
4226 return _resultobj;
4227 }
4228
4229 #define new_wxPreHtmlWindow() (new wxPyHtmlWindow())
4230 static PyObject *_wrap_new_wxPreHtmlWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4231 PyObject * _resultobj;
4232 wxPyHtmlWindow * _result;
4233 char *_kwnames[] = { NULL };
4234 char _ptemp[128];
4235
4236 self = self;
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreHtmlWindow",_kwnames))
4238 return NULL;
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 _result = (wxPyHtmlWindow *)new_wxPreHtmlWindow();
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) return NULL;
4245 } if (_result) {
4246 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlWindow_p");
4247 _resultobj = Py_BuildValue("s",_ptemp);
4248 } else {
4249 Py_INCREF(Py_None);
4250 _resultobj = Py_None;
4251 }
4252 return _resultobj;
4253 }
4254
4255 #define wxHtmlWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4256 static PyObject *_wrap_wxHtmlWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
4257 PyObject * _resultobj;
4258 bool _result;
4259 wxPyHtmlWindow * _arg0;
4260 wxWindow * _arg1;
4261 int _arg2 = (int ) -1;
4262 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
4263 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
4264 int _arg5 = (int ) wxHW_SCROLLBAR_AUTO;
4265 char * _arg6 = (char *) "htmlWindow";
4266 PyObject * _argo0 = 0;
4267 PyObject * _argo1 = 0;
4268 wxPoint temp;
4269 PyObject * _obj3 = 0;
4270 wxSize temp0;
4271 PyObject * _obj4 = 0;
4272 char *_kwnames[] = { "self","parent","id","pos","size","flags","name", NULL };
4273
4274 self = self;
4275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOis:wxHtmlWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
4276 return NULL;
4277 if (_argo0) {
4278 if (_argo0 == Py_None) { _arg0 = NULL; }
4279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_Create. Expected _wxPyHtmlWindow_p.");
4281 return NULL;
4282 }
4283 }
4284 if (_argo1) {
4285 if (_argo1 == Py_None) { _arg1 = NULL; }
4286 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4287 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_Create. Expected _wxWindow_p.");
4288 return NULL;
4289 }
4290 }
4291 if (_obj3)
4292 {
4293 _arg3 = &temp;
4294 if (! wxPoint_helper(_obj3, &_arg3))
4295 return NULL;
4296 }
4297 if (_obj4)
4298 {
4299 _arg4 = &temp0;
4300 if (! wxSize_helper(_obj4, &_arg4))
4301 return NULL;
4302 }
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 _result = (bool )wxHtmlWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
4306
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) return NULL;
4309 } _resultobj = Py_BuildValue("i",_result);
4310 return _resultobj;
4311 }
4312
4313 #define wxHtmlWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
4314 static PyObject *_wrap_wxHtmlWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject * _resultobj;
4316 wxPyHtmlWindow * _arg0;
4317 PyObject * _arg1;
4318 PyObject * _arg2;
4319 PyObject * _argo0 = 0;
4320 PyObject * _obj1 = 0;
4321 PyObject * _obj2 = 0;
4322 char *_kwnames[] = { "self","self","_class", NULL };
4323
4324 self = self;
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
4326 return NULL;
4327 if (_argo0) {
4328 if (_argo0 == Py_None) { _arg0 = NULL; }
4329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow__setCallbackInfo. Expected _wxPyHtmlWindow_p.");
4331 return NULL;
4332 }
4333 }
4334 {
4335 _arg1 = _obj1;
4336 }
4337 {
4338 _arg2 = _obj2;
4339 }
4340 {
4341 PyThreadState* __tstate = wxPyBeginAllowThreads();
4342 wxHtmlWindow__setCallbackInfo(_arg0,_arg1,_arg2);
4343
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) return NULL;
4346 } Py_INCREF(Py_None);
4347 _resultobj = Py_None;
4348 return _resultobj;
4349 }
4350
4351 #define wxHtmlWindow_SetPage(_swigobj,_swigarg0) (_swigobj->SetPage(_swigarg0))
4352 static PyObject *_wrap_wxHtmlWindow_SetPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4353 PyObject * _resultobj;
4354 bool _result;
4355 wxPyHtmlWindow * _arg0;
4356 wxString * _arg1;
4357 PyObject * _argo0 = 0;
4358 PyObject * _obj1 = 0;
4359 char *_kwnames[] = { "self","source", NULL };
4360
4361 self = self;
4362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_SetPage",_kwnames,&_argo0,&_obj1))
4363 return NULL;
4364 if (_argo0) {
4365 if (_argo0 == Py_None) { _arg0 = NULL; }
4366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetPage. Expected _wxPyHtmlWindow_p.");
4368 return NULL;
4369 }
4370 }
4371 {
4372 #if PYTHON_API_VERSION >= 1009
4373 char* tmpPtr; int tmpSize;
4374 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4375 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4376 return NULL;
4377 }
4378 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4379 return NULL;
4380 _arg1 = new wxString(tmpPtr, tmpSize);
4381 #else
4382 if (!PyString_Check(_obj1)) {
4383 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4384 return NULL;
4385 }
4386 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4387 #endif
4388 }
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 _result = (bool )wxHtmlWindow_SetPage(_arg0,*_arg1);
4392
4393 wxPyEndAllowThreads(__tstate);
4394 if (PyErr_Occurred()) return NULL;
4395 } _resultobj = Py_BuildValue("i",_result);
4396 {
4397 if (_obj1)
4398 delete _arg1;
4399 }
4400 return _resultobj;
4401 }
4402
4403 #define wxHtmlWindow_LoadPage(_swigobj,_swigarg0) (_swigobj->LoadPage(_swigarg0))
4404 static PyObject *_wrap_wxHtmlWindow_LoadPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4405 PyObject * _resultobj;
4406 bool _result;
4407 wxPyHtmlWindow * _arg0;
4408 wxString * _arg1;
4409 PyObject * _argo0 = 0;
4410 PyObject * _obj1 = 0;
4411 char *_kwnames[] = { "self","location", NULL };
4412
4413 self = self;
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_LoadPage",_kwnames,&_argo0,&_obj1))
4415 return NULL;
4416 if (_argo0) {
4417 if (_argo0 == Py_None) { _arg0 = NULL; }
4418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_LoadPage. Expected _wxPyHtmlWindow_p.");
4420 return NULL;
4421 }
4422 }
4423 {
4424 #if PYTHON_API_VERSION >= 1009
4425 char* tmpPtr; int tmpSize;
4426 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4427 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4428 return NULL;
4429 }
4430 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4431 return NULL;
4432 _arg1 = new wxString(tmpPtr, tmpSize);
4433 #else
4434 if (!PyString_Check(_obj1)) {
4435 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4436 return NULL;
4437 }
4438 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4439 #endif
4440 }
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 _result = (bool )wxHtmlWindow_LoadPage(_arg0,*_arg1);
4444
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) return NULL;
4447 } _resultobj = Py_BuildValue("i",_result);
4448 {
4449 if (_obj1)
4450 delete _arg1;
4451 }
4452 return _resultobj;
4453 }
4454
4455 #define wxHtmlWindow_AppendToPage(_swigobj,_swigarg0) (_swigobj->AppendToPage(_swigarg0))
4456 static PyObject *_wrap_wxHtmlWindow_AppendToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject * _resultobj;
4458 bool _result;
4459 wxPyHtmlWindow * _arg0;
4460 wxString * _arg1;
4461 PyObject * _argo0 = 0;
4462 PyObject * _obj1 = 0;
4463 char *_kwnames[] = { "self","source", NULL };
4464
4465 self = self;
4466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_AppendToPage",_kwnames,&_argo0,&_obj1))
4467 return NULL;
4468 if (_argo0) {
4469 if (_argo0 == Py_None) { _arg0 = NULL; }
4470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_AppendToPage. Expected _wxPyHtmlWindow_p.");
4472 return NULL;
4473 }
4474 }
4475 {
4476 #if PYTHON_API_VERSION >= 1009
4477 char* tmpPtr; int tmpSize;
4478 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4479 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4480 return NULL;
4481 }
4482 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4483 return NULL;
4484 _arg1 = new wxString(tmpPtr, tmpSize);
4485 #else
4486 if (!PyString_Check(_obj1)) {
4487 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4488 return NULL;
4489 }
4490 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4491 #endif
4492 }
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 _result = (bool )wxHtmlWindow_AppendToPage(_arg0,*_arg1);
4496
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) return NULL;
4499 } _resultobj = Py_BuildValue("i",_result);
4500 {
4501 if (_obj1)
4502 delete _arg1;
4503 }
4504 return _resultobj;
4505 }
4506
4507 #define wxHtmlWindow_GetOpenedPage(_swigobj) (_swigobj->GetOpenedPage())
4508 static PyObject *_wrap_wxHtmlWindow_GetOpenedPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject * _resultobj;
4510 wxString * _result;
4511 wxPyHtmlWindow * _arg0;
4512 PyObject * _argo0 = 0;
4513 char *_kwnames[] = { "self", NULL };
4514
4515 self = self;
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetOpenedPage",_kwnames,&_argo0))
4517 return NULL;
4518 if (_argo0) {
4519 if (_argo0 == Py_None) { _arg0 = NULL; }
4520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetOpenedPage. Expected _wxPyHtmlWindow_p.");
4522 return NULL;
4523 }
4524 }
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 _result = new wxString (wxHtmlWindow_GetOpenedPage(_arg0));
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) return NULL;
4531 }{
4532 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4533 }
4534 {
4535 delete _result;
4536 }
4537 return _resultobj;
4538 }
4539
4540 #define wxHtmlWindow_GetOpenedAnchor(_swigobj) (_swigobj->GetOpenedAnchor())
4541 static PyObject *_wrap_wxHtmlWindow_GetOpenedAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject * _resultobj;
4543 wxString * _result;
4544 wxPyHtmlWindow * _arg0;
4545 PyObject * _argo0 = 0;
4546 char *_kwnames[] = { "self", NULL };
4547
4548 self = self;
4549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetOpenedAnchor",_kwnames,&_argo0))
4550 return NULL;
4551 if (_argo0) {
4552 if (_argo0 == Py_None) { _arg0 = NULL; }
4553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetOpenedAnchor. Expected _wxPyHtmlWindow_p.");
4555 return NULL;
4556 }
4557 }
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 _result = new wxString (wxHtmlWindow_GetOpenedAnchor(_arg0));
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) return NULL;
4564 }{
4565 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4566 }
4567 {
4568 delete _result;
4569 }
4570 return _resultobj;
4571 }
4572
4573 #define wxHtmlWindow_GetOpenedPageTitle(_swigobj) (_swigobj->GetOpenedPageTitle())
4574 static PyObject *_wrap_wxHtmlWindow_GetOpenedPageTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4575 PyObject * _resultobj;
4576 wxString * _result;
4577 wxPyHtmlWindow * _arg0;
4578 PyObject * _argo0 = 0;
4579 char *_kwnames[] = { "self", NULL };
4580
4581 self = self;
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetOpenedPageTitle",_kwnames,&_argo0))
4583 return NULL;
4584 if (_argo0) {
4585 if (_argo0 == Py_None) { _arg0 = NULL; }
4586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetOpenedPageTitle. Expected _wxPyHtmlWindow_p.");
4588 return NULL;
4589 }
4590 }
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 _result = new wxString (wxHtmlWindow_GetOpenedPageTitle(_arg0));
4594
4595 wxPyEndAllowThreads(__tstate);
4596 if (PyErr_Occurred()) return NULL;
4597 }{
4598 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4599 }
4600 {
4601 delete _result;
4602 }
4603 return _resultobj;
4604 }
4605
4606 #define wxHtmlWindow_SetRelatedFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRelatedFrame(_swigarg0,_swigarg1))
4607 static PyObject *_wrap_wxHtmlWindow_SetRelatedFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
4608 PyObject * _resultobj;
4609 wxPyHtmlWindow * _arg0;
4610 wxFrame * _arg1;
4611 char * _arg2;
4612 PyObject * _argo0 = 0;
4613 PyObject * _argo1 = 0;
4614 char *_kwnames[] = { "self","frame","format", NULL };
4615
4616 self = self;
4617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOs:wxHtmlWindow_SetRelatedFrame",_kwnames,&_argo0,&_argo1,&_arg2))
4618 return NULL;
4619 if (_argo0) {
4620 if (_argo0 == Py_None) { _arg0 = NULL; }
4621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetRelatedFrame. Expected _wxPyHtmlWindow_p.");
4623 return NULL;
4624 }
4625 }
4626 if (_argo1) {
4627 if (_argo1 == Py_None) { _arg1 = NULL; }
4628 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
4629 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_SetRelatedFrame. Expected _wxFrame_p.");
4630 return NULL;
4631 }
4632 }
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 wxHtmlWindow_SetRelatedFrame(_arg0,_arg1,_arg2);
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) return NULL;
4639 } Py_INCREF(Py_None);
4640 _resultobj = Py_None;
4641 return _resultobj;
4642 }
4643
4644 #define wxHtmlWindow_GetRelatedFrame(_swigobj) (_swigobj->GetRelatedFrame())
4645 static PyObject *_wrap_wxHtmlWindow_GetRelatedFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
4646 PyObject * _resultobj;
4647 wxFrame * _result;
4648 wxPyHtmlWindow * _arg0;
4649 PyObject * _argo0 = 0;
4650 char *_kwnames[] = { "self", NULL };
4651
4652 self = self;
4653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetRelatedFrame",_kwnames,&_argo0))
4654 return NULL;
4655 if (_argo0) {
4656 if (_argo0 == Py_None) { _arg0 = NULL; }
4657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetRelatedFrame. Expected _wxPyHtmlWindow_p.");
4659 return NULL;
4660 }
4661 }
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 _result = (wxFrame *)wxHtmlWindow_GetRelatedFrame(_arg0);
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) return NULL;
4668 }{ _resultobj = wxPyMake_wxObject(_result); }
4669 return _resultobj;
4670 }
4671
4672 #define wxHtmlWindow_SetRelatedStatusBar(_swigobj,_swigarg0) (_swigobj->SetRelatedStatusBar(_swigarg0))
4673 static PyObject *_wrap_wxHtmlWindow_SetRelatedStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
4674 PyObject * _resultobj;
4675 wxPyHtmlWindow * _arg0;
4676 int _arg1;
4677 PyObject * _argo0 = 0;
4678 char *_kwnames[] = { "self","bar", NULL };
4679
4680 self = self;
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWindow_SetRelatedStatusBar",_kwnames,&_argo0,&_arg1))
4682 return NULL;
4683 if (_argo0) {
4684 if (_argo0 == Py_None) { _arg0 = NULL; }
4685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetRelatedStatusBar. Expected _wxPyHtmlWindow_p.");
4687 return NULL;
4688 }
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 wxHtmlWindow_SetRelatedStatusBar(_arg0,_arg1);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) return NULL;
4696 } Py_INCREF(Py_None);
4697 _resultobj = Py_None;
4698 return _resultobj;
4699 }
4700
4701 static void wxPyHtmlWindow_SetFonts(wxPyHtmlWindow *self,wxString normal_face,wxString fixed_face,PyObject * sizes) {
4702 int* temp = int_LIST_helper(sizes);
4703 if (temp) {
4704 self->SetFonts(normal_face, fixed_face, temp);
4705 delete [] temp;
4706 }
4707 }
4708 static PyObject *_wrap_wxHtmlWindow_SetFonts(PyObject *self, PyObject *args, PyObject *kwargs) {
4709 PyObject * _resultobj;
4710 wxPyHtmlWindow * _arg0;
4711 wxString * _arg1;
4712 wxString * _arg2;
4713 PyObject * _arg3;
4714 PyObject * _argo0 = 0;
4715 PyObject * _obj1 = 0;
4716 PyObject * _obj2 = 0;
4717 PyObject * _obj3 = 0;
4718 char *_kwnames[] = { "self","normal_face","fixed_face","sizes", NULL };
4719
4720 self = self;
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxHtmlWindow_SetFonts",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3))
4722 return NULL;
4723 if (_argo0) {
4724 if (_argo0 == Py_None) { _arg0 = NULL; }
4725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetFonts. Expected _wxPyHtmlWindow_p.");
4727 return NULL;
4728 }
4729 }
4730 {
4731 #if PYTHON_API_VERSION >= 1009
4732 char* tmpPtr; int tmpSize;
4733 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4734 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4735 return NULL;
4736 }
4737 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4738 return NULL;
4739 _arg1 = new wxString(tmpPtr, tmpSize);
4740 #else
4741 if (!PyString_Check(_obj1)) {
4742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4743 return NULL;
4744 }
4745 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4746 #endif
4747 }
4748 {
4749 #if PYTHON_API_VERSION >= 1009
4750 char* tmpPtr; int tmpSize;
4751 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4752 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4753 return NULL;
4754 }
4755 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4756 return NULL;
4757 _arg2 = new wxString(tmpPtr, tmpSize);
4758 #else
4759 if (!PyString_Check(_obj2)) {
4760 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4761 return NULL;
4762 }
4763 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4764 #endif
4765 }
4766 {
4767 _arg3 = _obj3;
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 wxPyHtmlWindow_SetFonts(_arg0,*_arg1,*_arg2,_arg3);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) return NULL;
4775 } Py_INCREF(Py_None);
4776 _resultobj = Py_None;
4777 {
4778 if (_obj1)
4779 delete _arg1;
4780 }
4781 {
4782 if (_obj2)
4783 delete _arg2;
4784 }
4785 return _resultobj;
4786 }
4787
4788 #define wxHtmlWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4789 static PyObject *_wrap_wxHtmlWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject * _resultobj;
4791 wxPyHtmlWindow * _arg0;
4792 wxString * _arg1;
4793 PyObject * _argo0 = 0;
4794 PyObject * _obj1 = 0;
4795 char *_kwnames[] = { "self","title", NULL };
4796
4797 self = self;
4798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_SetTitle",_kwnames,&_argo0,&_obj1))
4799 return NULL;
4800 if (_argo0) {
4801 if (_argo0 == Py_None) { _arg0 = NULL; }
4802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetTitle. Expected _wxPyHtmlWindow_p.");
4804 return NULL;
4805 }
4806 }
4807 {
4808 #if PYTHON_API_VERSION >= 1009
4809 char* tmpPtr; int tmpSize;
4810 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4811 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4812 return NULL;
4813 }
4814 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4815 return NULL;
4816 _arg1 = new wxString(tmpPtr, tmpSize);
4817 #else
4818 if (!PyString_Check(_obj1)) {
4819 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4820 return NULL;
4821 }
4822 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4823 #endif
4824 }
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 wxHtmlWindow_SetTitle(_arg0,*_arg1);
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) return NULL;
4831 } Py_INCREF(Py_None);
4832 _resultobj = Py_None;
4833 {
4834 if (_obj1)
4835 delete _arg1;
4836 }
4837 return _resultobj;
4838 }
4839
4840 #define wxHtmlWindow_SetBorders(_swigobj,_swigarg0) (_swigobj->SetBorders(_swigarg0))
4841 static PyObject *_wrap_wxHtmlWindow_SetBorders(PyObject *self, PyObject *args, PyObject *kwargs) {
4842 PyObject * _resultobj;
4843 wxPyHtmlWindow * _arg0;
4844 int _arg1;
4845 PyObject * _argo0 = 0;
4846 char *_kwnames[] = { "self","b", NULL };
4847
4848 self = self;
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlWindow_SetBorders",_kwnames,&_argo0,&_arg1))
4850 return NULL;
4851 if (_argo0) {
4852 if (_argo0 == Py_None) { _arg0 = NULL; }
4853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_SetBorders. Expected _wxPyHtmlWindow_p.");
4855 return NULL;
4856 }
4857 }
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 wxHtmlWindow_SetBorders(_arg0,_arg1);
4861
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) return NULL;
4864 } Py_INCREF(Py_None);
4865 _resultobj = Py_None;
4866 return _resultobj;
4867 }
4868
4869 #define wxHtmlWindow_ReadCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadCustomization(_swigarg0,_swigarg1))
4870 static PyObject *_wrap_wxHtmlWindow_ReadCustomization(PyObject *self, PyObject *args, PyObject *kwargs) {
4871 PyObject * _resultobj;
4872 wxPyHtmlWindow * _arg0;
4873 wxConfigBase * _arg1;
4874 wxString * _arg2 = (wxString *) &wxEmptyString;
4875 PyObject * _argo0 = 0;
4876 PyObject * _argo1 = 0;
4877 PyObject * _obj2 = 0;
4878 char *_kwnames[] = { "self","cfg","path", NULL };
4879
4880 self = self;
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlWindow_ReadCustomization",_kwnames,&_argo0,&_argo1,&_obj2))
4882 return NULL;
4883 if (_argo0) {
4884 if (_argo0 == Py_None) { _arg0 = NULL; }
4885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_ReadCustomization. Expected _wxPyHtmlWindow_p.");
4887 return NULL;
4888 }
4889 }
4890 if (_argo1) {
4891 if (_argo1 == Py_None) { _arg1 = NULL; }
4892 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4893 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_ReadCustomization. Expected _wxConfigBase_p.");
4894 return NULL;
4895 }
4896 }
4897 if (_obj2)
4898 {
4899 #if PYTHON_API_VERSION >= 1009
4900 char* tmpPtr; int tmpSize;
4901 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4902 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4903 return NULL;
4904 }
4905 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4906 return NULL;
4907 _arg2 = new wxString(tmpPtr, tmpSize);
4908 #else
4909 if (!PyString_Check(_obj2)) {
4910 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4911 return NULL;
4912 }
4913 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4914 #endif
4915 }
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 wxHtmlWindow_ReadCustomization(_arg0,_arg1,*_arg2);
4919
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) return NULL;
4922 } Py_INCREF(Py_None);
4923 _resultobj = Py_None;
4924 {
4925 if (_obj2)
4926 delete _arg2;
4927 }
4928 return _resultobj;
4929 }
4930
4931 #define wxHtmlWindow_WriteCustomization(_swigobj,_swigarg0,_swigarg1) (_swigobj->WriteCustomization(_swigarg0,_swigarg1))
4932 static PyObject *_wrap_wxHtmlWindow_WriteCustomization(PyObject *self, PyObject *args, PyObject *kwargs) {
4933 PyObject * _resultobj;
4934 wxPyHtmlWindow * _arg0;
4935 wxConfigBase * _arg1;
4936 wxString * _arg2 = (wxString *) &wxEmptyString;
4937 PyObject * _argo0 = 0;
4938 PyObject * _argo1 = 0;
4939 PyObject * _obj2 = 0;
4940 char *_kwnames[] = { "self","cfg","path", NULL };
4941
4942 self = self;
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlWindow_WriteCustomization",_kwnames,&_argo0,&_argo1,&_obj2))
4944 return NULL;
4945 if (_argo0) {
4946 if (_argo0 == Py_None) { _arg0 = NULL; }
4947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
4948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_WriteCustomization. Expected _wxPyHtmlWindow_p.");
4949 return NULL;
4950 }
4951 }
4952 if (_argo1) {
4953 if (_argo1 == Py_None) { _arg1 = NULL; }
4954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
4955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_WriteCustomization. Expected _wxConfigBase_p.");
4956 return NULL;
4957 }
4958 }
4959 if (_obj2)
4960 {
4961 #if PYTHON_API_VERSION >= 1009
4962 char* tmpPtr; int tmpSize;
4963 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4964 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4965 return NULL;
4966 }
4967 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4968 return NULL;
4969 _arg2 = new wxString(tmpPtr, tmpSize);
4970 #else
4971 if (!PyString_Check(_obj2)) {
4972 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4973 return NULL;
4974 }
4975 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4976 #endif
4977 }
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 wxHtmlWindow_WriteCustomization(_arg0,_arg1,*_arg2);
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) return NULL;
4984 } Py_INCREF(Py_None);
4985 _resultobj = Py_None;
4986 {
4987 if (_obj2)
4988 delete _arg2;
4989 }
4990 return _resultobj;
4991 }
4992
4993 #define wxHtmlWindow_HistoryBack(_swigobj) (_swigobj->HistoryBack())
4994 static PyObject *_wrap_wxHtmlWindow_HistoryBack(PyObject *self, PyObject *args, PyObject *kwargs) {
4995 PyObject * _resultobj;
4996 bool _result;
4997 wxPyHtmlWindow * _arg0;
4998 PyObject * _argo0 = 0;
4999 char *_kwnames[] = { "self", NULL };
5000
5001 self = self;
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_HistoryBack",_kwnames,&_argo0))
5003 return NULL;
5004 if (_argo0) {
5005 if (_argo0 == Py_None) { _arg0 = NULL; }
5006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryBack. Expected _wxPyHtmlWindow_p.");
5008 return NULL;
5009 }
5010 }
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 _result = (bool )wxHtmlWindow_HistoryBack(_arg0);
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) return NULL;
5017 } _resultobj = Py_BuildValue("i",_result);
5018 return _resultobj;
5019 }
5020
5021 #define wxHtmlWindow_HistoryForward(_swigobj) (_swigobj->HistoryForward())
5022 static PyObject *_wrap_wxHtmlWindow_HistoryForward(PyObject *self, PyObject *args, PyObject *kwargs) {
5023 PyObject * _resultobj;
5024 bool _result;
5025 wxPyHtmlWindow * _arg0;
5026 PyObject * _argo0 = 0;
5027 char *_kwnames[] = { "self", NULL };
5028
5029 self = self;
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_HistoryForward",_kwnames,&_argo0))
5031 return NULL;
5032 if (_argo0) {
5033 if (_argo0 == Py_None) { _arg0 = NULL; }
5034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryForward. Expected _wxPyHtmlWindow_p.");
5036 return NULL;
5037 }
5038 }
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 _result = (bool )wxHtmlWindow_HistoryForward(_arg0);
5042
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) return NULL;
5045 } _resultobj = Py_BuildValue("i",_result);
5046 return _resultobj;
5047 }
5048
5049 #define wxHtmlWindow_HistoryCanBack(_swigobj) (_swigobj->HistoryCanBack())
5050 static PyObject *_wrap_wxHtmlWindow_HistoryCanBack(PyObject *self, PyObject *args, PyObject *kwargs) {
5051 PyObject * _resultobj;
5052 bool _result;
5053 wxPyHtmlWindow * _arg0;
5054 PyObject * _argo0 = 0;
5055 char *_kwnames[] = { "self", NULL };
5056
5057 self = self;
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_HistoryCanBack",_kwnames,&_argo0))
5059 return NULL;
5060 if (_argo0) {
5061 if (_argo0 == Py_None) { _arg0 = NULL; }
5062 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5063 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryCanBack. Expected _wxPyHtmlWindow_p.");
5064 return NULL;
5065 }
5066 }
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 _result = (bool )wxHtmlWindow_HistoryCanBack(_arg0);
5070
5071 wxPyEndAllowThreads(__tstate);
5072 if (PyErr_Occurred()) return NULL;
5073 } _resultobj = Py_BuildValue("i",_result);
5074 return _resultobj;
5075 }
5076
5077 #define wxHtmlWindow_HistoryCanForward(_swigobj) (_swigobj->HistoryCanForward())
5078 static PyObject *_wrap_wxHtmlWindow_HistoryCanForward(PyObject *self, PyObject *args, PyObject *kwargs) {
5079 PyObject * _resultobj;
5080 bool _result;
5081 wxPyHtmlWindow * _arg0;
5082 PyObject * _argo0 = 0;
5083 char *_kwnames[] = { "self", NULL };
5084
5085 self = self;
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_HistoryCanForward",_kwnames,&_argo0))
5087 return NULL;
5088 if (_argo0) {
5089 if (_argo0 == Py_None) { _arg0 = NULL; }
5090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryCanForward. Expected _wxPyHtmlWindow_p.");
5092 return NULL;
5093 }
5094 }
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 _result = (bool )wxHtmlWindow_HistoryCanForward(_arg0);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) return NULL;
5101 } _resultobj = Py_BuildValue("i",_result);
5102 return _resultobj;
5103 }
5104
5105 #define wxHtmlWindow_HistoryClear(_swigobj) (_swigobj->HistoryClear())
5106 static PyObject *_wrap_wxHtmlWindow_HistoryClear(PyObject *self, PyObject *args, PyObject *kwargs) {
5107 PyObject * _resultobj;
5108 wxPyHtmlWindow * _arg0;
5109 PyObject * _argo0 = 0;
5110 char *_kwnames[] = { "self", NULL };
5111
5112 self = self;
5113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_HistoryClear",_kwnames,&_argo0))
5114 return NULL;
5115 if (_argo0) {
5116 if (_argo0 == Py_None) { _arg0 = NULL; }
5117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_HistoryClear. Expected _wxPyHtmlWindow_p.");
5119 return NULL;
5120 }
5121 }
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 wxHtmlWindow_HistoryClear(_arg0);
5125
5126 wxPyEndAllowThreads(__tstate);
5127 if (PyErr_Occurred()) return NULL;
5128 } Py_INCREF(Py_None);
5129 _resultobj = Py_None;
5130 return _resultobj;
5131 }
5132
5133 #define wxHtmlWindow_GetInternalRepresentation(_swigobj) (_swigobj->GetInternalRepresentation())
5134 static PyObject *_wrap_wxHtmlWindow_GetInternalRepresentation(PyObject *self, PyObject *args, PyObject *kwargs) {
5135 PyObject * _resultobj;
5136 wxHtmlContainerCell * _result;
5137 wxPyHtmlWindow * _arg0;
5138 PyObject * _argo0 = 0;
5139 char *_kwnames[] = { "self", NULL };
5140 char _ptemp[128];
5141
5142 self = self;
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetInternalRepresentation",_kwnames,&_argo0))
5144 return NULL;
5145 if (_argo0) {
5146 if (_argo0 == Py_None) { _arg0 = NULL; }
5147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetInternalRepresentation. Expected _wxPyHtmlWindow_p.");
5149 return NULL;
5150 }
5151 }
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 _result = (wxHtmlContainerCell *)wxHtmlWindow_GetInternalRepresentation(_arg0);
5155
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) return NULL;
5158 } if (_result) {
5159 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlContainerCell_p");
5160 _resultobj = Py_BuildValue("s",_ptemp);
5161 } else {
5162 Py_INCREF(Py_None);
5163 _resultobj = Py_None;
5164 }
5165 return _resultobj;
5166 }
5167
5168 #define wxHtmlWindow_GetParser(_swigobj) (_swigobj->GetParser())
5169 static PyObject *_wrap_wxHtmlWindow_GetParser(PyObject *self, PyObject *args, PyObject *kwargs) {
5170 PyObject * _resultobj;
5171 wxHtmlWinParser * _result;
5172 wxPyHtmlWindow * _arg0;
5173 PyObject * _argo0 = 0;
5174 char *_kwnames[] = { "self", NULL };
5175 char _ptemp[128];
5176
5177 self = self;
5178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetParser",_kwnames,&_argo0))
5179 return NULL;
5180 if (_argo0) {
5181 if (_argo0 == Py_None) { _arg0 = NULL; }
5182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_GetParser. Expected _wxPyHtmlWindow_p.");
5184 return NULL;
5185 }
5186 }
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 _result = (wxHtmlWinParser *)wxHtmlWindow_GetParser(_arg0);
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) return NULL;
5193 } if (_result) {
5194 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWinParser_p");
5195 _resultobj = Py_BuildValue("s",_ptemp);
5196 } else {
5197 Py_INCREF(Py_None);
5198 _resultobj = Py_None;
5199 }
5200 return _resultobj;
5201 }
5202
5203 #define wxHtmlWindow_base_OnLinkClicked(_swigobj,_swigarg0) (_swigobj->base_OnLinkClicked(_swigarg0))
5204 static PyObject *_wrap_wxHtmlWindow_base_OnLinkClicked(PyObject *self, PyObject *args, PyObject *kwargs) {
5205 PyObject * _resultobj;
5206 wxPyHtmlWindow * _arg0;
5207 wxHtmlLinkInfo * _arg1;
5208 PyObject * _argo0 = 0;
5209 PyObject * _argo1 = 0;
5210 char *_kwnames[] = { "self","link", NULL };
5211
5212 self = self;
5213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlWindow_base_OnLinkClicked",_kwnames,&_argo0,&_argo1))
5214 return NULL;
5215 if (_argo0) {
5216 if (_argo0 == Py_None) { _arg0 = NULL; }
5217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_base_OnLinkClicked. Expected _wxPyHtmlWindow_p.");
5219 return NULL;
5220 }
5221 }
5222 if (_argo1) {
5223 if (_argo1 == Py_None) { _arg1 = NULL; }
5224 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlLinkInfo_p")) {
5225 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_base_OnLinkClicked. Expected _wxHtmlLinkInfo_p.");
5226 return NULL;
5227 }
5228 }
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 wxHtmlWindow_base_OnLinkClicked(_arg0,*_arg1);
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) return NULL;
5235 } Py_INCREF(Py_None);
5236 _resultobj = Py_None;
5237 return _resultobj;
5238 }
5239
5240 #define wxHtmlWindow_base_OnSetTitle(_swigobj,_swigarg0) (_swigobj->base_OnSetTitle(_swigarg0))
5241 static PyObject *_wrap_wxHtmlWindow_base_OnSetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject * _resultobj;
5243 wxPyHtmlWindow * _arg0;
5244 char * _arg1;
5245 PyObject * _argo0 = 0;
5246 char *_kwnames[] = { "self","title", NULL };
5247
5248 self = self;
5249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxHtmlWindow_base_OnSetTitle",_kwnames,&_argo0,&_arg1))
5250 return NULL;
5251 if (_argo0) {
5252 if (_argo0 == Py_None) { _arg0 = NULL; }
5253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_base_OnSetTitle. Expected _wxPyHtmlWindow_p.");
5255 return NULL;
5256 }
5257 }
5258 {
5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
5260 wxHtmlWindow_base_OnSetTitle(_arg0,_arg1);
5261
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) return NULL;
5264 } Py_INCREF(Py_None);
5265 _resultobj = Py_None;
5266 return _resultobj;
5267 }
5268
5269 #define wxHtmlWindow_base_OnCellMouseHover(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnCellMouseHover(_swigarg0,_swigarg1,_swigarg2))
5270 static PyObject *_wrap_wxHtmlWindow_base_OnCellMouseHover(PyObject *self, PyObject *args, PyObject *kwargs) {
5271 PyObject * _resultobj;
5272 wxPyHtmlWindow * _arg0;
5273 wxHtmlCell * _arg1;
5274 wxCoord _arg2;
5275 wxCoord _arg3;
5276 PyObject * _argo0 = 0;
5277 PyObject * _argo1 = 0;
5278 char *_kwnames[] = { "self","cell","x","y", NULL };
5279
5280 self = self;
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxHtmlWindow_base_OnCellMouseHover",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
5282 return NULL;
5283 if (_argo0) {
5284 if (_argo0 == Py_None) { _arg0 = NULL; }
5285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_base_OnCellMouseHover. Expected _wxPyHtmlWindow_p.");
5287 return NULL;
5288 }
5289 }
5290 if (_argo1) {
5291 if (_argo1 == Py_None) { _arg1 = NULL; }
5292 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlCell_p")) {
5293 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_base_OnCellMouseHover. Expected _wxHtmlCell_p.");
5294 return NULL;
5295 }
5296 }
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 wxHtmlWindow_base_OnCellMouseHover(_arg0,_arg1,_arg2,_arg3);
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) return NULL;
5303 } Py_INCREF(Py_None);
5304 _resultobj = Py_None;
5305 return _resultobj;
5306 }
5307
5308 #define wxHtmlWindow_base_OnCellClicked(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_OnCellClicked(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5309 static PyObject *_wrap_wxHtmlWindow_base_OnCellClicked(PyObject *self, PyObject *args, PyObject *kwargs) {
5310 PyObject * _resultobj;
5311 wxPyHtmlWindow * _arg0;
5312 wxHtmlCell * _arg1;
5313 wxCoord _arg2;
5314 wxCoord _arg3;
5315 wxMouseEvent * _arg4;
5316 PyObject * _argo0 = 0;
5317 PyObject * _argo1 = 0;
5318 PyObject * _argo4 = 0;
5319 char *_kwnames[] = { "self","cell","x","y","event", NULL };
5320
5321 self = self;
5322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiiO:wxHtmlWindow_base_OnCellClicked",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_argo4))
5323 return NULL;
5324 if (_argo0) {
5325 if (_argo0 == Py_None) { _arg0 = NULL; }
5326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlWindow_p")) {
5327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlWindow_base_OnCellClicked. Expected _wxPyHtmlWindow_p.");
5328 return NULL;
5329 }
5330 }
5331 if (_argo1) {
5332 if (_argo1 == Py_None) { _arg1 = NULL; }
5333 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxHtmlCell_p")) {
5334 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlWindow_base_OnCellClicked. Expected _wxHtmlCell_p.");
5335 return NULL;
5336 }
5337 }
5338 if (_argo4) {
5339 if (_argo4 == Py_None) { _arg4 = NULL; }
5340 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMouseEvent_p")) {
5341 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxHtmlWindow_base_OnCellClicked. Expected _wxMouseEvent_p.");
5342 return NULL;
5343 }
5344 }
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 wxHtmlWindow_base_OnCellClicked(_arg0,_arg1,_arg2,_arg3,*_arg4);
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) return NULL;
5351 } Py_INCREF(Py_None);
5352 _resultobj = Py_None;
5353 return _resultobj;
5354 }
5355
5356 static void *SwigwxHtmlDCRendererTowxObject(void *ptr) {
5357 wxHtmlDCRenderer *src;
5358 wxObject *dest;
5359 src = (wxHtmlDCRenderer *) ptr;
5360 dest = (wxObject *) src;
5361 return (void *) dest;
5362 }
5363
5364 #define new_wxHtmlDCRenderer() (new wxHtmlDCRenderer())
5365 static PyObject *_wrap_new_wxHtmlDCRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject * _resultobj;
5367 wxHtmlDCRenderer * _result;
5368 char *_kwnames[] = { NULL };
5369 char _ptemp[128];
5370
5371 self = self;
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxHtmlDCRenderer",_kwnames))
5373 return NULL;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 _result = (wxHtmlDCRenderer *)new_wxHtmlDCRenderer();
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) return NULL;
5380 } if (_result) {
5381 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlDCRenderer_p");
5382 _resultobj = Py_BuildValue("s",_ptemp);
5383 } else {
5384 Py_INCREF(Py_None);
5385 _resultobj = Py_None;
5386 }
5387 return _resultobj;
5388 }
5389
5390 #define delete_wxHtmlDCRenderer(_swigobj) (delete _swigobj)
5391 static PyObject *_wrap_delete_wxHtmlDCRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject * _resultobj;
5393 wxHtmlDCRenderer * _arg0;
5394 PyObject * _argo0 = 0;
5395 char *_kwnames[] = { "self", NULL };
5396
5397 self = self;
5398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxHtmlDCRenderer",_kwnames,&_argo0))
5399 return NULL;
5400 if (_argo0) {
5401 if (_argo0 == Py_None) { _arg0 = NULL; }
5402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxHtmlDCRenderer. Expected _wxHtmlDCRenderer_p.");
5404 return NULL;
5405 }
5406 }
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 delete_wxHtmlDCRenderer(_arg0);
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) return NULL;
5413 } Py_INCREF(Py_None);
5414 _resultobj = Py_None;
5415 return _resultobj;
5416 }
5417
5418 #define wxHtmlDCRenderer_SetDC(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDC(_swigarg0,_swigarg1))
5419 static PyObject *_wrap_wxHtmlDCRenderer_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5420 PyObject * _resultobj;
5421 wxHtmlDCRenderer * _arg0;
5422 wxDC * _arg1;
5423 int _arg2;
5424 PyObject * _argo0 = 0;
5425 PyObject * _argo1 = 0;
5426 char *_kwnames[] = { "self","dc","maxwidth", NULL };
5427
5428 self = self;
5429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxHtmlDCRenderer_SetDC",_kwnames,&_argo0,&_argo1,&_arg2))
5430 return NULL;
5431 if (_argo0) {
5432 if (_argo0 == Py_None) { _arg0 = NULL; }
5433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlDCRenderer_SetDC. Expected _wxHtmlDCRenderer_p.");
5435 return NULL;
5436 }
5437 }
5438 if (_argo1) {
5439 if (_argo1 == Py_None) { _arg1 = NULL; }
5440 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
5441 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlDCRenderer_SetDC. Expected _wxDC_p.");
5442 return NULL;
5443 }
5444 }
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 wxHtmlDCRenderer_SetDC(_arg0,_arg1,_arg2);
5448
5449 wxPyEndAllowThreads(__tstate);
5450 if (PyErr_Occurred()) return NULL;
5451 } Py_INCREF(Py_None);
5452 _resultobj = Py_None;
5453 return _resultobj;
5454 }
5455
5456 #define wxHtmlDCRenderer_SetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1))
5457 static PyObject *_wrap_wxHtmlDCRenderer_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject * _resultobj;
5459 wxHtmlDCRenderer * _arg0;
5460 int _arg1;
5461 int _arg2;
5462 PyObject * _argo0 = 0;
5463 char *_kwnames[] = { "self","width","height", NULL };
5464
5465 self = self;
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxHtmlDCRenderer_SetSize",_kwnames,&_argo0,&_arg1,&_arg2))
5467 return NULL;
5468 if (_argo0) {
5469 if (_argo0 == Py_None) { _arg0 = NULL; }
5470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlDCRenderer_SetSize. Expected _wxHtmlDCRenderer_p.");
5472 return NULL;
5473 }
5474 }
5475 {
5476 PyThreadState* __tstate = wxPyBeginAllowThreads();
5477 wxHtmlDCRenderer_SetSize(_arg0,_arg1,_arg2);
5478
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) return NULL;
5481 } Py_INCREF(Py_None);
5482 _resultobj = Py_None;
5483 return _resultobj;
5484 }
5485
5486 #define wxHtmlDCRenderer_SetHtmlText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetHtmlText(_swigarg0,_swigarg1,_swigarg2))
5487 static PyObject *_wrap_wxHtmlDCRenderer_SetHtmlText(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject * _resultobj;
5489 wxHtmlDCRenderer * _arg0;
5490 wxString * _arg1;
5491 wxString * _arg2 = (wxString *) &wxEmptyString;
5492 bool _arg3 = (bool ) TRUE;
5493 PyObject * _argo0 = 0;
5494 PyObject * _obj1 = 0;
5495 PyObject * _obj2 = 0;
5496 int tempbool3 = (int) TRUE;
5497 char *_kwnames[] = { "self","html","basepath","isdir", NULL };
5498
5499 self = self;
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxHtmlDCRenderer_SetHtmlText",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
5501 return NULL;
5502 if (_argo0) {
5503 if (_argo0 == Py_None) { _arg0 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlDCRenderer_SetHtmlText. Expected _wxHtmlDCRenderer_p.");
5506 return NULL;
5507 }
5508 }
5509 {
5510 #if PYTHON_API_VERSION >= 1009
5511 char* tmpPtr; int tmpSize;
5512 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5513 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5514 return NULL;
5515 }
5516 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5517 return NULL;
5518 _arg1 = new wxString(tmpPtr, tmpSize);
5519 #else
5520 if (!PyString_Check(_obj1)) {
5521 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5522 return NULL;
5523 }
5524 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5525 #endif
5526 }
5527 if (_obj2)
5528 {
5529 #if PYTHON_API_VERSION >= 1009
5530 char* tmpPtr; int tmpSize;
5531 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5533 return NULL;
5534 }
5535 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5536 return NULL;
5537 _arg2 = new wxString(tmpPtr, tmpSize);
5538 #else
5539 if (!PyString_Check(_obj2)) {
5540 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5541 return NULL;
5542 }
5543 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5544 #endif
5545 }
5546 _arg3 = (bool ) tempbool3;
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 wxHtmlDCRenderer_SetHtmlText(_arg0,*_arg1,*_arg2,_arg3);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) return NULL;
5553 } Py_INCREF(Py_None);
5554 _resultobj = Py_None;
5555 {
5556 if (_obj1)
5557 delete _arg1;
5558 }
5559 {
5560 if (_obj2)
5561 delete _arg2;
5562 }
5563 return _resultobj;
5564 }
5565
5566 #define wxHtmlDCRenderer_Render(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Render(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5567 static PyObject *_wrap_wxHtmlDCRenderer_Render(PyObject *self, PyObject *args, PyObject *kwargs) {
5568 PyObject * _resultobj;
5569 int _result;
5570 wxHtmlDCRenderer * _arg0;
5571 int _arg1;
5572 int _arg2;
5573 int _arg3 = (int ) 0;
5574 int _arg4 = (int ) FALSE;
5575 PyObject * _argo0 = 0;
5576 char *_kwnames[] = { "self","x","y","from","dont_render", NULL };
5577
5578 self = self;
5579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxHtmlDCRenderer_Render",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5580 return NULL;
5581 if (_argo0) {
5582 if (_argo0 == Py_None) { _arg0 = NULL; }
5583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlDCRenderer_Render. Expected _wxHtmlDCRenderer_p.");
5585 return NULL;
5586 }
5587 }
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 _result = (int )wxHtmlDCRenderer_Render(_arg0,_arg1,_arg2,_arg3,_arg4);
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) return NULL;
5594 } _resultobj = Py_BuildValue("i",_result);
5595 return _resultobj;
5596 }
5597
5598 #define wxHtmlDCRenderer_GetTotalHeight(_swigobj) (_swigobj->GetTotalHeight())
5599 static PyObject *_wrap_wxHtmlDCRenderer_GetTotalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject * _resultobj;
5601 int _result;
5602 wxHtmlDCRenderer * _arg0;
5603 PyObject * _argo0 = 0;
5604 char *_kwnames[] = { "self", NULL };
5605
5606 self = self;
5607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlDCRenderer_GetTotalHeight",_kwnames,&_argo0))
5608 return NULL;
5609 if (_argo0) {
5610 if (_argo0 == Py_None) { _arg0 = NULL; }
5611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlDCRenderer_p")) {
5612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlDCRenderer_GetTotalHeight. Expected _wxHtmlDCRenderer_p.");
5613 return NULL;
5614 }
5615 }
5616 {
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 _result = (int )wxHtmlDCRenderer_GetTotalHeight(_arg0);
5619
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) return NULL;
5622 } _resultobj = Py_BuildValue("i",_result);
5623 return _resultobj;
5624 }
5625
5626 static void *SwigwxHtmlPrintoutTowxPyPrintout(void *ptr) {
5627 wxHtmlPrintout *src;
5628 wxPyPrintout *dest;
5629 src = (wxHtmlPrintout *) ptr;
5630 dest = (wxPyPrintout *) src;
5631 return (void *) dest;
5632 }
5633
5634 static void *SwigwxHtmlPrintoutTowxObject(void *ptr) {
5635 wxHtmlPrintout *src;
5636 wxObject *dest;
5637 src = (wxHtmlPrintout *) ptr;
5638 dest = (wxObject *) src;
5639 return (void *) dest;
5640 }
5641
5642 #define new_wxHtmlPrintout(_swigarg0) (new wxHtmlPrintout(_swigarg0))
5643 static PyObject *_wrap_new_wxHtmlPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
5644 PyObject * _resultobj;
5645 wxHtmlPrintout * _result;
5646 char * _arg0 = (char *) "Printout";
5647 char *_kwnames[] = { "title", NULL };
5648 char _ptemp[128];
5649
5650 self = self;
5651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|s:new_wxHtmlPrintout",_kwnames,&_arg0))
5652 return NULL;
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 _result = (wxHtmlPrintout *)new_wxHtmlPrintout(_arg0);
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) return NULL;
5659 } if (_result) {
5660 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlPrintout_p");
5661 _resultobj = Py_BuildValue("s",_ptemp);
5662 } else {
5663 Py_INCREF(Py_None);
5664 _resultobj = Py_None;
5665 }
5666 return _resultobj;
5667 }
5668
5669 #define wxHtmlPrintout_SetHtmlText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetHtmlText(_swigarg0,_swigarg1,_swigarg2))
5670 static PyObject *_wrap_wxHtmlPrintout_SetHtmlText(PyObject *self, PyObject *args, PyObject *kwargs) {
5671 PyObject * _resultobj;
5672 wxHtmlPrintout * _arg0;
5673 wxString * _arg1;
5674 wxString * _arg2 = (wxString *) &wxEmptyString;
5675 bool _arg3 = (bool ) TRUE;
5676 PyObject * _argo0 = 0;
5677 PyObject * _obj1 = 0;
5678 PyObject * _obj2 = 0;
5679 int tempbool3 = (int) TRUE;
5680 char *_kwnames[] = { "self","html","basepath","isdir", NULL };
5681
5682 self = self;
5683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|Oi:wxHtmlPrintout_SetHtmlText",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
5684 return NULL;
5685 if (_argo0) {
5686 if (_argo0 == Py_None) { _arg0 = NULL; }
5687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlPrintout_p")) {
5688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlPrintout_SetHtmlText. Expected _wxHtmlPrintout_p.");
5689 return NULL;
5690 }
5691 }
5692 {
5693 #if PYTHON_API_VERSION >= 1009
5694 char* tmpPtr; int tmpSize;
5695 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5696 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5697 return NULL;
5698 }
5699 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5700 return NULL;
5701 _arg1 = new wxString(tmpPtr, tmpSize);
5702 #else
5703 if (!PyString_Check(_obj1)) {
5704 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5705 return NULL;
5706 }
5707 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5708 #endif
5709 }
5710 if (_obj2)
5711 {
5712 #if PYTHON_API_VERSION >= 1009
5713 char* tmpPtr; int tmpSize;
5714 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5715 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5716 return NULL;
5717 }
5718 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5719 return NULL;
5720 _arg2 = new wxString(tmpPtr, tmpSize);
5721 #else
5722 if (!PyString_Check(_obj2)) {
5723 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5724 return NULL;
5725 }
5726 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5727 #endif
5728 }
5729 _arg3 = (bool ) tempbool3;
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 wxHtmlPrintout_SetHtmlText(_arg0,*_arg1,*_arg2,_arg3);
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) return NULL;
5736 } Py_INCREF(Py_None);
5737 _resultobj = Py_None;
5738 {
5739 if (_obj1)
5740 delete _arg1;
5741 }
5742 {
5743 if (_obj2)
5744 delete _arg2;
5745 }
5746 return _resultobj;
5747 }
5748
5749 #define wxHtmlPrintout_SetHtmlFile(_swigobj,_swigarg0) (_swigobj->SetHtmlFile(_swigarg0))
5750 static PyObject *_wrap_wxHtmlPrintout_SetHtmlFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject * _resultobj;
5752 wxHtmlPrintout * _arg0;
5753 wxString * _arg1;
5754 PyObject * _argo0 = 0;
5755 PyObject * _obj1 = 0;
5756 char *_kwnames[] = { "self","htmlfile", NULL };
5757
5758 self = self;
5759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlPrintout_SetHtmlFile",_kwnames,&_argo0,&_obj1))
5760 return NULL;
5761 if (_argo0) {
5762 if (_argo0 == Py_None) { _arg0 = NULL; }
5763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlPrintout_p")) {
5764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlPrintout_SetHtmlFile. Expected _wxHtmlPrintout_p.");
5765 return NULL;
5766 }
5767 }
5768 {
5769 #if PYTHON_API_VERSION >= 1009
5770 char* tmpPtr; int tmpSize;
5771 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5772 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5773 return NULL;
5774 }
5775 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5776 return NULL;
5777 _arg1 = new wxString(tmpPtr, tmpSize);
5778 #else
5779 if (!PyString_Check(_obj1)) {
5780 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5781 return NULL;
5782 }
5783 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5784 #endif
5785 }
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 wxHtmlPrintout_SetHtmlFile(_arg0,*_arg1);
5789
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) return NULL;
5792 } Py_INCREF(Py_None);
5793 _resultobj = Py_None;
5794 {
5795 if (_obj1)
5796 delete _arg1;
5797 }
5798 return _resultobj;
5799 }
5800
5801 #define wxHtmlPrintout_SetHeader(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeader(_swigarg0,_swigarg1))
5802 static PyObject *_wrap_wxHtmlPrintout_SetHeader(PyObject *self, PyObject *args, PyObject *kwargs) {
5803 PyObject * _resultobj;
5804 wxHtmlPrintout * _arg0;
5805 wxString * _arg1;
5806 int _arg2 = (int ) (wxPAGE_ALL);
5807 PyObject * _argo0 = 0;
5808 PyObject * _obj1 = 0;
5809 char *_kwnames[] = { "self","header","pg", NULL };
5810
5811 self = self;
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlPrintout_SetHeader",_kwnames,&_argo0,&_obj1,&_arg2))
5813 return NULL;
5814 if (_argo0) {
5815 if (_argo0 == Py_None) { _arg0 = NULL; }
5816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlPrintout_p")) {
5817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlPrintout_SetHeader. Expected _wxHtmlPrintout_p.");
5818 return NULL;
5819 }
5820 }
5821 {
5822 #if PYTHON_API_VERSION >= 1009
5823 char* tmpPtr; int tmpSize;
5824 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5825 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5826 return NULL;
5827 }
5828 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5829 return NULL;
5830 _arg1 = new wxString(tmpPtr, tmpSize);
5831 #else
5832 if (!PyString_Check(_obj1)) {
5833 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5834 return NULL;
5835 }
5836 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5837 #endif
5838 }
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 wxHtmlPrintout_SetHeader(_arg0,*_arg1,_arg2);
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) return NULL;
5845 } Py_INCREF(Py_None);
5846 _resultobj = Py_None;
5847 {
5848 if (_obj1)
5849 delete _arg1;
5850 }
5851 return _resultobj;
5852 }
5853
5854 #define wxHtmlPrintout_SetFooter(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFooter(_swigarg0,_swigarg1))
5855 static PyObject *_wrap_wxHtmlPrintout_SetFooter(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject * _resultobj;
5857 wxHtmlPrintout * _arg0;
5858 wxString * _arg1;
5859 int _arg2 = (int ) (wxPAGE_ALL);
5860 PyObject * _argo0 = 0;
5861 PyObject * _obj1 = 0;
5862 char *_kwnames[] = { "self","footer","pg", NULL };
5863
5864 self = self;
5865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlPrintout_SetFooter",_kwnames,&_argo0,&_obj1,&_arg2))
5866 return NULL;
5867 if (_argo0) {
5868 if (_argo0 == Py_None) { _arg0 = NULL; }
5869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlPrintout_p")) {
5870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlPrintout_SetFooter. Expected _wxHtmlPrintout_p.");
5871 return NULL;
5872 }
5873 }
5874 {
5875 #if PYTHON_API_VERSION >= 1009
5876 char* tmpPtr; int tmpSize;
5877 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5878 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5879 return NULL;
5880 }
5881 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5882 return NULL;
5883 _arg1 = new wxString(tmpPtr, tmpSize);
5884 #else
5885 if (!PyString_Check(_obj1)) {
5886 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5887 return NULL;
5888 }
5889 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5890 #endif
5891 }
5892 {
5893 PyThreadState* __tstate = wxPyBeginAllowThreads();
5894 wxHtmlPrintout_SetFooter(_arg0,*_arg1,_arg2);
5895
5896 wxPyEndAllowThreads(__tstate);
5897 if (PyErr_Occurred()) return NULL;
5898 } Py_INCREF(Py_None);
5899 _resultobj = Py_None;
5900 {
5901 if (_obj1)
5902 delete _arg1;
5903 }
5904 return _resultobj;
5905 }
5906
5907 #define wxHtmlPrintout_SetMargins(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetMargins(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5908 static PyObject *_wrap_wxHtmlPrintout_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
5909 PyObject * _resultobj;
5910 wxHtmlPrintout * _arg0;
5911 float _arg1 = (float ) 25.2;
5912 float _arg2 = (float ) 25.2;
5913 float _arg3 = (float ) 25.2;
5914 float _arg4 = (float ) 25.2;
5915 float _arg5 = (float ) 5;
5916 PyObject * _argo0 = 0;
5917 char *_kwnames[] = { "self","top","bottom","left","right","spaces", NULL };
5918
5919 self = self;
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|fffff:wxHtmlPrintout_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
5921 return NULL;
5922 if (_argo0) {
5923 if (_argo0 == Py_None) { _arg0 = NULL; }
5924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlPrintout_p")) {
5925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlPrintout_SetMargins. Expected _wxHtmlPrintout_p.");
5926 return NULL;
5927 }
5928 }
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 wxHtmlPrintout_SetMargins(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
5932
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) return NULL;
5935 } Py_INCREF(Py_None);
5936 _resultobj = Py_None;
5937 return _resultobj;
5938 }
5939
5940 static void *SwigwxHtmlEasyPrintingTowxObject(void *ptr) {
5941 wxHtmlEasyPrinting *src;
5942 wxObject *dest;
5943 src = (wxHtmlEasyPrinting *) ptr;
5944 dest = (wxObject *) src;
5945 return (void *) dest;
5946 }
5947
5948 #define new_wxHtmlEasyPrinting(_swigarg0,_swigarg1) (new wxHtmlEasyPrinting(_swigarg0,_swigarg1))
5949 static PyObject *_wrap_new_wxHtmlEasyPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
5950 PyObject * _resultobj;
5951 wxHtmlEasyPrinting * _result;
5952 char * _arg0 = (char *) "Printing";
5953 wxFrame * _arg1 = (wxFrame *) NULL;
5954 PyObject * _argo1 = 0;
5955 char *_kwnames[] = { "name","parent_frame", NULL };
5956 char _ptemp[128];
5957
5958 self = self;
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|sO:new_wxHtmlEasyPrinting",_kwnames,&_arg0,&_argo1))
5960 return NULL;
5961 if (_argo1) {
5962 if (_argo1 == Py_None) { _arg1 = NULL; }
5963 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
5964 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxHtmlEasyPrinting. Expected _wxFrame_p.");
5965 return NULL;
5966 }
5967 }
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 _result = (wxHtmlEasyPrinting *)new_wxHtmlEasyPrinting(_arg0,_arg1);
5971
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) return NULL;
5974 } if (_result) {
5975 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlEasyPrinting_p");
5976 _resultobj = Py_BuildValue("s",_ptemp);
5977 } else {
5978 Py_INCREF(Py_None);
5979 _resultobj = Py_None;
5980 }
5981 return _resultobj;
5982 }
5983
5984 #define delete_wxHtmlEasyPrinting(_swigobj) (delete _swigobj)
5985 static PyObject *_wrap_delete_wxHtmlEasyPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
5986 PyObject * _resultobj;
5987 wxHtmlEasyPrinting * _arg0;
5988 PyObject * _argo0 = 0;
5989 char *_kwnames[] = { "self", NULL };
5990
5991 self = self;
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxHtmlEasyPrinting",_kwnames,&_argo0))
5993 return NULL;
5994 if (_argo0) {
5995 if (_argo0 == Py_None) { _arg0 = NULL; }
5996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
5997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxHtmlEasyPrinting. Expected _wxHtmlEasyPrinting_p.");
5998 return NULL;
5999 }
6000 }
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 delete_wxHtmlEasyPrinting(_arg0);
6004
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) return NULL;
6007 } Py_INCREF(Py_None);
6008 _resultobj = Py_None;
6009 return _resultobj;
6010 }
6011
6012 #define wxHtmlEasyPrinting_PreviewFile(_swigobj,_swigarg0) (_swigobj->PreviewFile(_swigarg0))
6013 static PyObject *_wrap_wxHtmlEasyPrinting_PreviewFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject * _resultobj;
6015 wxHtmlEasyPrinting * _arg0;
6016 wxString * _arg1;
6017 PyObject * _argo0 = 0;
6018 PyObject * _obj1 = 0;
6019 char *_kwnames[] = { "self","htmlfile", NULL };
6020
6021 self = self;
6022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlEasyPrinting_PreviewFile",_kwnames,&_argo0,&_obj1))
6023 return NULL;
6024 if (_argo0) {
6025 if (_argo0 == Py_None) { _arg0 = NULL; }
6026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PreviewFile. Expected _wxHtmlEasyPrinting_p.");
6028 return NULL;
6029 }
6030 }
6031 {
6032 #if PYTHON_API_VERSION >= 1009
6033 char* tmpPtr; int tmpSize;
6034 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6035 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6036 return NULL;
6037 }
6038 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6039 return NULL;
6040 _arg1 = new wxString(tmpPtr, tmpSize);
6041 #else
6042 if (!PyString_Check(_obj1)) {
6043 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6044 return NULL;
6045 }
6046 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6047 #endif
6048 }
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 wxHtmlEasyPrinting_PreviewFile(_arg0,*_arg1);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) return NULL;
6055 } Py_INCREF(Py_None);
6056 _resultobj = Py_None;
6057 {
6058 if (_obj1)
6059 delete _arg1;
6060 }
6061 return _resultobj;
6062 }
6063
6064 #define wxHtmlEasyPrinting_PreviewText(_swigobj,_swigarg0,_swigarg1) (_swigobj->PreviewText(_swigarg0,_swigarg1))
6065 static PyObject *_wrap_wxHtmlEasyPrinting_PreviewText(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject * _resultobj;
6067 wxHtmlEasyPrinting * _arg0;
6068 wxString * _arg1;
6069 wxString * _arg2 = (wxString *) &wxEmptyString;
6070 PyObject * _argo0 = 0;
6071 PyObject * _obj1 = 0;
6072 PyObject * _obj2 = 0;
6073 char *_kwnames[] = { "self","htmltext","basepath", NULL };
6074
6075 self = self;
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlEasyPrinting_PreviewText",_kwnames,&_argo0,&_obj1,&_obj2))
6077 return NULL;
6078 if (_argo0) {
6079 if (_argo0 == Py_None) { _arg0 = NULL; }
6080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PreviewText. Expected _wxHtmlEasyPrinting_p.");
6082 return NULL;
6083 }
6084 }
6085 {
6086 #if PYTHON_API_VERSION >= 1009
6087 char* tmpPtr; int tmpSize;
6088 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6089 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6090 return NULL;
6091 }
6092 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6093 return NULL;
6094 _arg1 = new wxString(tmpPtr, tmpSize);
6095 #else
6096 if (!PyString_Check(_obj1)) {
6097 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6098 return NULL;
6099 }
6100 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6101 #endif
6102 }
6103 if (_obj2)
6104 {
6105 #if PYTHON_API_VERSION >= 1009
6106 char* tmpPtr; int tmpSize;
6107 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6108 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6109 return NULL;
6110 }
6111 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6112 return NULL;
6113 _arg2 = new wxString(tmpPtr, tmpSize);
6114 #else
6115 if (!PyString_Check(_obj2)) {
6116 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6117 return NULL;
6118 }
6119 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6120 #endif
6121 }
6122 {
6123 PyThreadState* __tstate = wxPyBeginAllowThreads();
6124 wxHtmlEasyPrinting_PreviewText(_arg0,*_arg1,*_arg2);
6125
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) return NULL;
6128 } Py_INCREF(Py_None);
6129 _resultobj = Py_None;
6130 {
6131 if (_obj1)
6132 delete _arg1;
6133 }
6134 {
6135 if (_obj2)
6136 delete _arg2;
6137 }
6138 return _resultobj;
6139 }
6140
6141 #define wxHtmlEasyPrinting_PrintFile(_swigobj,_swigarg0) (_swigobj->PrintFile(_swigarg0))
6142 static PyObject *_wrap_wxHtmlEasyPrinting_PrintFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6143 PyObject * _resultobj;
6144 wxHtmlEasyPrinting * _arg0;
6145 wxString * _arg1;
6146 PyObject * _argo0 = 0;
6147 PyObject * _obj1 = 0;
6148 char *_kwnames[] = { "self","htmlfile", NULL };
6149
6150 self = self;
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlEasyPrinting_PrintFile",_kwnames,&_argo0,&_obj1))
6152 return NULL;
6153 if (_argo0) {
6154 if (_argo0 == Py_None) { _arg0 = NULL; }
6155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PrintFile. Expected _wxHtmlEasyPrinting_p.");
6157 return NULL;
6158 }
6159 }
6160 {
6161 #if PYTHON_API_VERSION >= 1009
6162 char* tmpPtr; int tmpSize;
6163 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6164 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6165 return NULL;
6166 }
6167 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6168 return NULL;
6169 _arg1 = new wxString(tmpPtr, tmpSize);
6170 #else
6171 if (!PyString_Check(_obj1)) {
6172 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6173 return NULL;
6174 }
6175 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6176 #endif
6177 }
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 wxHtmlEasyPrinting_PrintFile(_arg0,*_arg1);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) return NULL;
6184 } Py_INCREF(Py_None);
6185 _resultobj = Py_None;
6186 {
6187 if (_obj1)
6188 delete _arg1;
6189 }
6190 return _resultobj;
6191 }
6192
6193 #define wxHtmlEasyPrinting_PrintText(_swigobj,_swigarg0,_swigarg1) (_swigobj->PrintText(_swigarg0,_swigarg1))
6194 static PyObject *_wrap_wxHtmlEasyPrinting_PrintText(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject * _resultobj;
6196 wxHtmlEasyPrinting * _arg0;
6197 wxString * _arg1;
6198 wxString * _arg2 = (wxString *) &wxEmptyString;
6199 PyObject * _argo0 = 0;
6200 PyObject * _obj1 = 0;
6201 PyObject * _obj2 = 0;
6202 char *_kwnames[] = { "self","htmltext","basepath", NULL };
6203
6204 self = self;
6205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxHtmlEasyPrinting_PrintText",_kwnames,&_argo0,&_obj1,&_obj2))
6206 return NULL;
6207 if (_argo0) {
6208 if (_argo0 == Py_None) { _arg0 = NULL; }
6209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PrintText. Expected _wxHtmlEasyPrinting_p.");
6211 return NULL;
6212 }
6213 }
6214 {
6215 #if PYTHON_API_VERSION >= 1009
6216 char* tmpPtr; int tmpSize;
6217 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6218 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6219 return NULL;
6220 }
6221 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6222 return NULL;
6223 _arg1 = new wxString(tmpPtr, tmpSize);
6224 #else
6225 if (!PyString_Check(_obj1)) {
6226 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6227 return NULL;
6228 }
6229 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6230 #endif
6231 }
6232 if (_obj2)
6233 {
6234 #if PYTHON_API_VERSION >= 1009
6235 char* tmpPtr; int tmpSize;
6236 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6237 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6238 return NULL;
6239 }
6240 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6241 return NULL;
6242 _arg2 = new wxString(tmpPtr, tmpSize);
6243 #else
6244 if (!PyString_Check(_obj2)) {
6245 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6246 return NULL;
6247 }
6248 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6249 #endif
6250 }
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 wxHtmlEasyPrinting_PrintText(_arg0,*_arg1,*_arg2);
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) return NULL;
6257 } Py_INCREF(Py_None);
6258 _resultobj = Py_None;
6259 {
6260 if (_obj1)
6261 delete _arg1;
6262 }
6263 {
6264 if (_obj2)
6265 delete _arg2;
6266 }
6267 return _resultobj;
6268 }
6269
6270 #define wxHtmlEasyPrinting_PrinterSetup(_swigobj) (_swigobj->PrinterSetup())
6271 static PyObject *_wrap_wxHtmlEasyPrinting_PrinterSetup(PyObject *self, PyObject *args, PyObject *kwargs) {
6272 PyObject * _resultobj;
6273 wxHtmlEasyPrinting * _arg0;
6274 PyObject * _argo0 = 0;
6275 char *_kwnames[] = { "self", NULL };
6276
6277 self = self;
6278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlEasyPrinting_PrinterSetup",_kwnames,&_argo0))
6279 return NULL;
6280 if (_argo0) {
6281 if (_argo0 == Py_None) { _arg0 = NULL; }
6282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PrinterSetup. Expected _wxHtmlEasyPrinting_p.");
6284 return NULL;
6285 }
6286 }
6287 {
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 wxHtmlEasyPrinting_PrinterSetup(_arg0);
6290
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) return NULL;
6293 } Py_INCREF(Py_None);
6294 _resultobj = Py_None;
6295 return _resultobj;
6296 }
6297
6298 #define wxHtmlEasyPrinting_PageSetup(_swigobj) (_swigobj->PageSetup())
6299 static PyObject *_wrap_wxHtmlEasyPrinting_PageSetup(PyObject *self, PyObject *args, PyObject *kwargs) {
6300 PyObject * _resultobj;
6301 wxHtmlEasyPrinting * _arg0;
6302 PyObject * _argo0 = 0;
6303 char *_kwnames[] = { "self", NULL };
6304
6305 self = self;
6306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlEasyPrinting_PageSetup",_kwnames,&_argo0))
6307 return NULL;
6308 if (_argo0) {
6309 if (_argo0 == Py_None) { _arg0 = NULL; }
6310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_PageSetup. Expected _wxHtmlEasyPrinting_p.");
6312 return NULL;
6313 }
6314 }
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 wxHtmlEasyPrinting_PageSetup(_arg0);
6318
6319 wxPyEndAllowThreads(__tstate);
6320 if (PyErr_Occurred()) return NULL;
6321 } Py_INCREF(Py_None);
6322 _resultobj = Py_None;
6323 return _resultobj;
6324 }
6325
6326 #define wxHtmlEasyPrinting_SetHeader(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHeader(_swigarg0,_swigarg1))
6327 static PyObject *_wrap_wxHtmlEasyPrinting_SetHeader(PyObject *self, PyObject *args, PyObject *kwargs) {
6328 PyObject * _resultobj;
6329 wxHtmlEasyPrinting * _arg0;
6330 wxString * _arg1;
6331 int _arg2 = (int ) (wxPAGE_ALL);
6332 PyObject * _argo0 = 0;
6333 PyObject * _obj1 = 0;
6334 char *_kwnames[] = { "self","header","pg", NULL };
6335
6336 self = self;
6337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlEasyPrinting_SetHeader",_kwnames,&_argo0,&_obj1,&_arg2))
6338 return NULL;
6339 if (_argo0) {
6340 if (_argo0 == Py_None) { _arg0 = NULL; }
6341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_SetHeader. Expected _wxHtmlEasyPrinting_p.");
6343 return NULL;
6344 }
6345 }
6346 {
6347 #if PYTHON_API_VERSION >= 1009
6348 char* tmpPtr; int tmpSize;
6349 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6350 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6351 return NULL;
6352 }
6353 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6354 return NULL;
6355 _arg1 = new wxString(tmpPtr, tmpSize);
6356 #else
6357 if (!PyString_Check(_obj1)) {
6358 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6359 return NULL;
6360 }
6361 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6362 #endif
6363 }
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 wxHtmlEasyPrinting_SetHeader(_arg0,*_arg1,_arg2);
6367
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) return NULL;
6370 } Py_INCREF(Py_None);
6371 _resultobj = Py_None;
6372 {
6373 if (_obj1)
6374 delete _arg1;
6375 }
6376 return _resultobj;
6377 }
6378
6379 #define wxHtmlEasyPrinting_SetFooter(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFooter(_swigarg0,_swigarg1))
6380 static PyObject *_wrap_wxHtmlEasyPrinting_SetFooter(PyObject *self, PyObject *args, PyObject *kwargs) {
6381 PyObject * _resultobj;
6382 wxHtmlEasyPrinting * _arg0;
6383 wxString * _arg1;
6384 int _arg2 = (int ) (wxPAGE_ALL);
6385 PyObject * _argo0 = 0;
6386 PyObject * _obj1 = 0;
6387 char *_kwnames[] = { "self","footer","pg", NULL };
6388
6389 self = self;
6390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxHtmlEasyPrinting_SetFooter",_kwnames,&_argo0,&_obj1,&_arg2))
6391 return NULL;
6392 if (_argo0) {
6393 if (_argo0 == Py_None) { _arg0 = NULL; }
6394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_SetFooter. Expected _wxHtmlEasyPrinting_p.");
6396 return NULL;
6397 }
6398 }
6399 {
6400 #if PYTHON_API_VERSION >= 1009
6401 char* tmpPtr; int tmpSize;
6402 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6403 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6404 return NULL;
6405 }
6406 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6407 return NULL;
6408 _arg1 = new wxString(tmpPtr, tmpSize);
6409 #else
6410 if (!PyString_Check(_obj1)) {
6411 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6412 return NULL;
6413 }
6414 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6415 #endif
6416 }
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 wxHtmlEasyPrinting_SetFooter(_arg0,*_arg1,_arg2);
6420
6421 wxPyEndAllowThreads(__tstate);
6422 if (PyErr_Occurred()) return NULL;
6423 } Py_INCREF(Py_None);
6424 _resultobj = Py_None;
6425 {
6426 if (_obj1)
6427 delete _arg1;
6428 }
6429 return _resultobj;
6430 }
6431
6432 #define wxHtmlEasyPrinting_GetPrintData(_swigobj) (_swigobj->GetPrintData())
6433 static PyObject *_wrap_wxHtmlEasyPrinting_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
6434 PyObject * _resultobj;
6435 wxPrintData * _result;
6436 wxHtmlEasyPrinting * _arg0;
6437 PyObject * _argo0 = 0;
6438 char *_kwnames[] = { "self", NULL };
6439 char _ptemp[128];
6440
6441 self = self;
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlEasyPrinting_GetPrintData",_kwnames,&_argo0))
6443 return NULL;
6444 if (_argo0) {
6445 if (_argo0 == Py_None) { _arg0 = NULL; }
6446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_GetPrintData. Expected _wxHtmlEasyPrinting_p.");
6448 return NULL;
6449 }
6450 }
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 _result = (wxPrintData *)wxHtmlEasyPrinting_GetPrintData(_arg0);
6454
6455 wxPyEndAllowThreads(__tstate);
6456 if (PyErr_Occurred()) return NULL;
6457 } if (_result) {
6458 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
6459 _resultobj = Py_BuildValue("s",_ptemp);
6460 } else {
6461 Py_INCREF(Py_None);
6462 _resultobj = Py_None;
6463 }
6464 return _resultobj;
6465 }
6466
6467 #define wxHtmlEasyPrinting_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData())
6468 static PyObject *_wrap_wxHtmlEasyPrinting_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) {
6469 PyObject * _resultobj;
6470 wxPageSetupDialogData * _result;
6471 wxHtmlEasyPrinting * _arg0;
6472 PyObject * _argo0 = 0;
6473 char *_kwnames[] = { "self", NULL };
6474 char _ptemp[128];
6475
6476 self = self;
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlEasyPrinting_GetPageSetupData",_kwnames,&_argo0))
6478 return NULL;
6479 if (_argo0) {
6480 if (_argo0 == Py_None) { _arg0 = NULL; }
6481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlEasyPrinting_p")) {
6482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlEasyPrinting_GetPageSetupData. Expected _wxHtmlEasyPrinting_p.");
6483 return NULL;
6484 }
6485 }
6486 {
6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
6488 _result = (wxPageSetupDialogData *)wxHtmlEasyPrinting_GetPageSetupData(_arg0);
6489
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) return NULL;
6492 } if (_result) {
6493 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
6494 _resultobj = Py_BuildValue("s",_ptemp);
6495 } else {
6496 Py_INCREF(Py_None);
6497 _resultobj = Py_None;
6498 }
6499 return _resultobj;
6500 }
6501
6502 static PyMethodDef htmlcMethods[] = {
6503 { "wxHtmlEasyPrinting_GetPageSetupData", (PyCFunction) _wrap_wxHtmlEasyPrinting_GetPageSetupData, METH_VARARGS | METH_KEYWORDS },
6504 { "wxHtmlEasyPrinting_GetPrintData", (PyCFunction) _wrap_wxHtmlEasyPrinting_GetPrintData, METH_VARARGS | METH_KEYWORDS },
6505 { "wxHtmlEasyPrinting_SetFooter", (PyCFunction) _wrap_wxHtmlEasyPrinting_SetFooter, METH_VARARGS | METH_KEYWORDS },
6506 { "wxHtmlEasyPrinting_SetHeader", (PyCFunction) _wrap_wxHtmlEasyPrinting_SetHeader, METH_VARARGS | METH_KEYWORDS },
6507 { "wxHtmlEasyPrinting_PageSetup", (PyCFunction) _wrap_wxHtmlEasyPrinting_PageSetup, METH_VARARGS | METH_KEYWORDS },
6508 { "wxHtmlEasyPrinting_PrinterSetup", (PyCFunction) _wrap_wxHtmlEasyPrinting_PrinterSetup, METH_VARARGS | METH_KEYWORDS },
6509 { "wxHtmlEasyPrinting_PrintText", (PyCFunction) _wrap_wxHtmlEasyPrinting_PrintText, METH_VARARGS | METH_KEYWORDS },
6510 { "wxHtmlEasyPrinting_PrintFile", (PyCFunction) _wrap_wxHtmlEasyPrinting_PrintFile, METH_VARARGS | METH_KEYWORDS },
6511 { "wxHtmlEasyPrinting_PreviewText", (PyCFunction) _wrap_wxHtmlEasyPrinting_PreviewText, METH_VARARGS | METH_KEYWORDS },
6512 { "wxHtmlEasyPrinting_PreviewFile", (PyCFunction) _wrap_wxHtmlEasyPrinting_PreviewFile, METH_VARARGS | METH_KEYWORDS },
6513 { "delete_wxHtmlEasyPrinting", (PyCFunction) _wrap_delete_wxHtmlEasyPrinting, METH_VARARGS | METH_KEYWORDS },
6514 { "new_wxHtmlEasyPrinting", (PyCFunction) _wrap_new_wxHtmlEasyPrinting, METH_VARARGS | METH_KEYWORDS },
6515 { "wxHtmlPrintout_SetMargins", (PyCFunction) _wrap_wxHtmlPrintout_SetMargins, METH_VARARGS | METH_KEYWORDS },
6516 { "wxHtmlPrintout_SetFooter", (PyCFunction) _wrap_wxHtmlPrintout_SetFooter, METH_VARARGS | METH_KEYWORDS },
6517 { "wxHtmlPrintout_SetHeader", (PyCFunction) _wrap_wxHtmlPrintout_SetHeader, METH_VARARGS | METH_KEYWORDS },
6518 { "wxHtmlPrintout_SetHtmlFile", (PyCFunction) _wrap_wxHtmlPrintout_SetHtmlFile, METH_VARARGS | METH_KEYWORDS },
6519 { "wxHtmlPrintout_SetHtmlText", (PyCFunction) _wrap_wxHtmlPrintout_SetHtmlText, METH_VARARGS | METH_KEYWORDS },
6520 { "new_wxHtmlPrintout", (PyCFunction) _wrap_new_wxHtmlPrintout, METH_VARARGS | METH_KEYWORDS },
6521 { "wxHtmlDCRenderer_GetTotalHeight", (PyCFunction) _wrap_wxHtmlDCRenderer_GetTotalHeight, METH_VARARGS | METH_KEYWORDS },
6522 { "wxHtmlDCRenderer_Render", (PyCFunction) _wrap_wxHtmlDCRenderer_Render, METH_VARARGS | METH_KEYWORDS },
6523 { "wxHtmlDCRenderer_SetHtmlText", (PyCFunction) _wrap_wxHtmlDCRenderer_SetHtmlText, METH_VARARGS | METH_KEYWORDS },
6524 { "wxHtmlDCRenderer_SetSize", (PyCFunction) _wrap_wxHtmlDCRenderer_SetSize, METH_VARARGS | METH_KEYWORDS },
6525 { "wxHtmlDCRenderer_SetDC", (PyCFunction) _wrap_wxHtmlDCRenderer_SetDC, METH_VARARGS | METH_KEYWORDS },
6526 { "delete_wxHtmlDCRenderer", (PyCFunction) _wrap_delete_wxHtmlDCRenderer, METH_VARARGS | METH_KEYWORDS },
6527 { "new_wxHtmlDCRenderer", (PyCFunction) _wrap_new_wxHtmlDCRenderer, METH_VARARGS | METH_KEYWORDS },
6528 { "wxHtmlWindow_base_OnCellClicked", (PyCFunction) _wrap_wxHtmlWindow_base_OnCellClicked, METH_VARARGS | METH_KEYWORDS },
6529 { "wxHtmlWindow_base_OnCellMouseHover", (PyCFunction) _wrap_wxHtmlWindow_base_OnCellMouseHover, METH_VARARGS | METH_KEYWORDS },
6530 { "wxHtmlWindow_base_OnSetTitle", (PyCFunction) _wrap_wxHtmlWindow_base_OnSetTitle, METH_VARARGS | METH_KEYWORDS },
6531 { "wxHtmlWindow_base_OnLinkClicked", (PyCFunction) _wrap_wxHtmlWindow_base_OnLinkClicked, METH_VARARGS | METH_KEYWORDS },
6532 { "wxHtmlWindow_GetParser", (PyCFunction) _wrap_wxHtmlWindow_GetParser, METH_VARARGS | METH_KEYWORDS },
6533 { "wxHtmlWindow_GetInternalRepresentation", (PyCFunction) _wrap_wxHtmlWindow_GetInternalRepresentation, METH_VARARGS | METH_KEYWORDS },
6534 { "wxHtmlWindow_HistoryClear", (PyCFunction) _wrap_wxHtmlWindow_HistoryClear, METH_VARARGS | METH_KEYWORDS },
6535 { "wxHtmlWindow_HistoryCanForward", (PyCFunction) _wrap_wxHtmlWindow_HistoryCanForward, METH_VARARGS | METH_KEYWORDS },
6536 { "wxHtmlWindow_HistoryCanBack", (PyCFunction) _wrap_wxHtmlWindow_HistoryCanBack, METH_VARARGS | METH_KEYWORDS },
6537 { "wxHtmlWindow_HistoryForward", (PyCFunction) _wrap_wxHtmlWindow_HistoryForward, METH_VARARGS | METH_KEYWORDS },
6538 { "wxHtmlWindow_HistoryBack", (PyCFunction) _wrap_wxHtmlWindow_HistoryBack, METH_VARARGS | METH_KEYWORDS },
6539 { "wxHtmlWindow_WriteCustomization", (PyCFunction) _wrap_wxHtmlWindow_WriteCustomization, METH_VARARGS | METH_KEYWORDS },
6540 { "wxHtmlWindow_ReadCustomization", (PyCFunction) _wrap_wxHtmlWindow_ReadCustomization, METH_VARARGS | METH_KEYWORDS },
6541 { "wxHtmlWindow_SetBorders", (PyCFunction) _wrap_wxHtmlWindow_SetBorders, METH_VARARGS | METH_KEYWORDS },
6542 { "wxHtmlWindow_SetTitle", (PyCFunction) _wrap_wxHtmlWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
6543 { "wxHtmlWindow_SetFonts", (PyCFunction) _wrap_wxHtmlWindow_SetFonts, METH_VARARGS | METH_KEYWORDS },
6544 { "wxHtmlWindow_SetRelatedStatusBar", (PyCFunction) _wrap_wxHtmlWindow_SetRelatedStatusBar, METH_VARARGS | METH_KEYWORDS },
6545 { "wxHtmlWindow_GetRelatedFrame", (PyCFunction) _wrap_wxHtmlWindow_GetRelatedFrame, METH_VARARGS | METH_KEYWORDS },
6546 { "wxHtmlWindow_SetRelatedFrame", (PyCFunction) _wrap_wxHtmlWindow_SetRelatedFrame, METH_VARARGS | METH_KEYWORDS },
6547 { "wxHtmlWindow_GetOpenedPageTitle", (PyCFunction) _wrap_wxHtmlWindow_GetOpenedPageTitle, METH_VARARGS | METH_KEYWORDS },
6548 { "wxHtmlWindow_GetOpenedAnchor", (PyCFunction) _wrap_wxHtmlWindow_GetOpenedAnchor, METH_VARARGS | METH_KEYWORDS },
6549 { "wxHtmlWindow_GetOpenedPage", (PyCFunction) _wrap_wxHtmlWindow_GetOpenedPage, METH_VARARGS | METH_KEYWORDS },
6550 { "wxHtmlWindow_AppendToPage", (PyCFunction) _wrap_wxHtmlWindow_AppendToPage, METH_VARARGS | METH_KEYWORDS },
6551 { "wxHtmlWindow_LoadPage", (PyCFunction) _wrap_wxHtmlWindow_LoadPage, METH_VARARGS | METH_KEYWORDS },
6552 { "wxHtmlWindow_SetPage", (PyCFunction) _wrap_wxHtmlWindow_SetPage, METH_VARARGS | METH_KEYWORDS },
6553 { "wxHtmlWindow__setCallbackInfo", (PyCFunction) _wrap_wxHtmlWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
6554 { "wxHtmlWindow_Create", (PyCFunction) _wrap_wxHtmlWindow_Create, METH_VARARGS | METH_KEYWORDS },
6555 { "new_wxPreHtmlWindow", (PyCFunction) _wrap_new_wxPreHtmlWindow, METH_VARARGS | METH_KEYWORDS },
6556 { "new_wxHtmlWindow", (PyCFunction) _wrap_new_wxHtmlWindow, METH_VARARGS | METH_KEYWORDS },
6557 { "new_wxHtmlWidgetCell", (PyCFunction) _wrap_new_wxHtmlWidgetCell, METH_VARARGS | METH_KEYWORDS },
6558 { "new_wxHtmlFontCell", (PyCFunction) _wrap_new_wxHtmlFontCell, METH_VARARGS | METH_KEYWORDS },
6559 { "new_wxHtmlColourCell", (PyCFunction) _wrap_new_wxHtmlColourCell, METH_VARARGS | METH_KEYWORDS },
6560 { "wxHtmlContainerCell_GetFirstCell", (PyCFunction) _wrap_wxHtmlContainerCell_GetFirstCell, METH_VARARGS | METH_KEYWORDS },
6561 { "wxHtmlContainerCell_SetBorder", (PyCFunction) _wrap_wxHtmlContainerCell_SetBorder, METH_VARARGS | METH_KEYWORDS },
6562 { "wxHtmlContainerCell_SetBackgroundColour", (PyCFunction) _wrap_wxHtmlContainerCell_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6563 { "wxHtmlContainerCell_SetMinHeight", (PyCFunction) _wrap_wxHtmlContainerCell_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
6564 { "wxHtmlContainerCell_SetWidthFloatFromTag", (PyCFunction) _wrap_wxHtmlContainerCell_SetWidthFloatFromTag, METH_VARARGS | METH_KEYWORDS },
6565 { "wxHtmlContainerCell_SetWidthFloat", (PyCFunction) _wrap_wxHtmlContainerCell_SetWidthFloat, METH_VARARGS | METH_KEYWORDS },
6566 { "wxHtmlContainerCell_SetAlign", (PyCFunction) _wrap_wxHtmlContainerCell_SetAlign, METH_VARARGS | METH_KEYWORDS },
6567 { "wxHtmlContainerCell_GetIndentUnits", (PyCFunction) _wrap_wxHtmlContainerCell_GetIndentUnits, METH_VARARGS | METH_KEYWORDS },
6568 { "wxHtmlContainerCell_GetIndent", (PyCFunction) _wrap_wxHtmlContainerCell_GetIndent, METH_VARARGS | METH_KEYWORDS },
6569 { "wxHtmlContainerCell_SetIndent", (PyCFunction) _wrap_wxHtmlContainerCell_SetIndent, METH_VARARGS | METH_KEYWORDS },
6570 { "wxHtmlContainerCell_GetAlignVer", (PyCFunction) _wrap_wxHtmlContainerCell_GetAlignVer, METH_VARARGS | METH_KEYWORDS },
6571 { "wxHtmlContainerCell_SetAlignVer", (PyCFunction) _wrap_wxHtmlContainerCell_SetAlignVer, METH_VARARGS | METH_KEYWORDS },
6572 { "wxHtmlContainerCell_GetAlignHor", (PyCFunction) _wrap_wxHtmlContainerCell_GetAlignHor, METH_VARARGS | METH_KEYWORDS },
6573 { "wxHtmlContainerCell_SetAlignHor", (PyCFunction) _wrap_wxHtmlContainerCell_SetAlignHor, METH_VARARGS | METH_KEYWORDS },
6574 { "wxHtmlContainerCell_InsertCell", (PyCFunction) _wrap_wxHtmlContainerCell_InsertCell, METH_VARARGS | METH_KEYWORDS },
6575 { "new_wxHtmlContainerCell", (PyCFunction) _wrap_new_wxHtmlContainerCell, METH_VARARGS | METH_KEYWORDS },
6576 { "new_wxHtmlWordCell", (PyCFunction) _wrap_new_wxHtmlWordCell, METH_VARARGS | METH_KEYWORDS },
6577 { "wxHtmlCell_SetCanLiveOnPagebreak", (PyCFunction) _wrap_wxHtmlCell_SetCanLiveOnPagebreak, METH_VARARGS | METH_KEYWORDS },
6578 { "wxHtmlCell_AdjustPagebreak", (PyCFunction) _wrap_wxHtmlCell_AdjustPagebreak, METH_VARARGS | METH_KEYWORDS },
6579 { "wxHtmlCell_Find", (PyCFunction) _wrap_wxHtmlCell_Find, METH_VARARGS | METH_KEYWORDS },
6580 { "wxHtmlCell_DrawInvisible", (PyCFunction) _wrap_wxHtmlCell_DrawInvisible, METH_VARARGS | METH_KEYWORDS },
6581 { "wxHtmlCell_Draw", (PyCFunction) _wrap_wxHtmlCell_Draw, METH_VARARGS | METH_KEYWORDS },
6582 { "wxHtmlCell_Layout", (PyCFunction) _wrap_wxHtmlCell_Layout, METH_VARARGS | METH_KEYWORDS },
6583 { "wxHtmlCell_SetPos", (PyCFunction) _wrap_wxHtmlCell_SetPos, METH_VARARGS | METH_KEYWORDS },
6584 { "wxHtmlCell_SetParent", (PyCFunction) _wrap_wxHtmlCell_SetParent, METH_VARARGS | METH_KEYWORDS },
6585 { "wxHtmlCell_SetNext", (PyCFunction) _wrap_wxHtmlCell_SetNext, METH_VARARGS | METH_KEYWORDS },
6586 { "wxHtmlCell_SetLink", (PyCFunction) _wrap_wxHtmlCell_SetLink, METH_VARARGS | METH_KEYWORDS },
6587 { "wxHtmlCell_GetParent", (PyCFunction) _wrap_wxHtmlCell_GetParent, METH_VARARGS | METH_KEYWORDS },
6588 { "wxHtmlCell_GetNext", (PyCFunction) _wrap_wxHtmlCell_GetNext, METH_VARARGS | METH_KEYWORDS },
6589 { "wxHtmlCell_GetLink", (PyCFunction) _wrap_wxHtmlCell_GetLink, METH_VARARGS | METH_KEYWORDS },
6590 { "wxHtmlCell_GetDescent", (PyCFunction) _wrap_wxHtmlCell_GetDescent, METH_VARARGS | METH_KEYWORDS },
6591 { "wxHtmlCell_GetHeight", (PyCFunction) _wrap_wxHtmlCell_GetHeight, METH_VARARGS | METH_KEYWORDS },
6592 { "wxHtmlCell_GetWidth", (PyCFunction) _wrap_wxHtmlCell_GetWidth, METH_VARARGS | METH_KEYWORDS },
6593 { "wxHtmlCell_GetPosY", (PyCFunction) _wrap_wxHtmlCell_GetPosY, METH_VARARGS | METH_KEYWORDS },
6594 { "wxHtmlCell_GetPosX", (PyCFunction) _wrap_wxHtmlCell_GetPosX, METH_VARARGS | METH_KEYWORDS },
6595 { "new_wxHtmlCell", (PyCFunction) _wrap_new_wxHtmlCell, METH_VARARGS | METH_KEYWORDS },
6596 { "wxHtmlWinTagHandler_ParseInner", (PyCFunction) _wrap_wxHtmlWinTagHandler_ParseInner, METH_VARARGS | METH_KEYWORDS },
6597 { "wxHtmlWinTagHandler_GetParser", (PyCFunction) _wrap_wxHtmlWinTagHandler_GetParser, METH_VARARGS | METH_KEYWORDS },
6598 { "wxHtmlWinTagHandler_SetParser", (PyCFunction) _wrap_wxHtmlWinTagHandler_SetParser, METH_VARARGS | METH_KEYWORDS },
6599 { "wxHtmlWinTagHandler__setCallbackInfo", (PyCFunction) _wrap_wxHtmlWinTagHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
6600 { "new_wxHtmlWinTagHandler", (PyCFunction) _wrap_new_wxHtmlWinTagHandler, METH_VARARGS | METH_KEYWORDS },
6601 { "wxHtmlTagHandler_ParseInner", (PyCFunction) _wrap_wxHtmlTagHandler_ParseInner, METH_VARARGS | METH_KEYWORDS },
6602 { "wxHtmlTagHandler_GetParser", (PyCFunction) _wrap_wxHtmlTagHandler_GetParser, METH_VARARGS | METH_KEYWORDS },
6603 { "wxHtmlTagHandler_SetParser", (PyCFunction) _wrap_wxHtmlTagHandler_SetParser, METH_VARARGS | METH_KEYWORDS },
6604 { "wxHtmlTagHandler__setCallbackInfo", (PyCFunction) _wrap_wxHtmlTagHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
6605 { "new_wxHtmlTagHandler", (PyCFunction) _wrap_new_wxHtmlTagHandler, METH_VARARGS | METH_KEYWORDS },
6606 { "wxHtmlWinParser_GetLink", (PyCFunction) _wrap_wxHtmlWinParser_GetLink, METH_VARARGS | METH_KEYWORDS },
6607 { "wxHtmlWinParser_CreateCurrentFont", (PyCFunction) _wrap_wxHtmlWinParser_CreateCurrentFont, METH_VARARGS | METH_KEYWORDS },
6608 { "wxHtmlWinParser_SetLink", (PyCFunction) _wrap_wxHtmlWinParser_SetLink, METH_VARARGS | METH_KEYWORDS },
6609 { "wxHtmlWinParser_SetActualColor", (PyCFunction) _wrap_wxHtmlWinParser_SetActualColor, METH_VARARGS | METH_KEYWORDS },
6610 { "wxHtmlWinParser_GetActualColor", (PyCFunction) _wrap_wxHtmlWinParser_GetActualColor, METH_VARARGS | METH_KEYWORDS },
6611 { "wxHtmlWinParser_SetLinkColor", (PyCFunction) _wrap_wxHtmlWinParser_SetLinkColor, METH_VARARGS | METH_KEYWORDS },
6612 { "wxHtmlWinParser_GetLinkColor", (PyCFunction) _wrap_wxHtmlWinParser_GetLinkColor, METH_VARARGS | METH_KEYWORDS },
6613 { "wxHtmlWinParser_SetAlign", (PyCFunction) _wrap_wxHtmlWinParser_SetAlign, METH_VARARGS | METH_KEYWORDS },
6614 { "wxHtmlWinParser_GetAlign", (PyCFunction) _wrap_wxHtmlWinParser_GetAlign, METH_VARARGS | METH_KEYWORDS },
6615 { "wxHtmlWinParser_SetFontFixed", (PyCFunction) _wrap_wxHtmlWinParser_SetFontFixed, METH_VARARGS | METH_KEYWORDS },
6616 { "wxHtmlWinParser_GetFontFixed", (PyCFunction) _wrap_wxHtmlWinParser_GetFontFixed, METH_VARARGS | METH_KEYWORDS },
6617 { "wxHtmlWinParser_SetFontUnderlined", (PyCFunction) _wrap_wxHtmlWinParser_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS },
6618 { "wxHtmlWinParser_GetFontUnderlined", (PyCFunction) _wrap_wxHtmlWinParser_GetFontUnderlined, METH_VARARGS | METH_KEYWORDS },
6619 { "wxHtmlWinParser_SetFontItalic", (PyCFunction) _wrap_wxHtmlWinParser_SetFontItalic, METH_VARARGS | METH_KEYWORDS },
6620 { "wxHtmlWinParser_GetFontItalic", (PyCFunction) _wrap_wxHtmlWinParser_GetFontItalic, METH_VARARGS | METH_KEYWORDS },
6621 { "wxHtmlWinParser_SetFontBold", (PyCFunction) _wrap_wxHtmlWinParser_SetFontBold, METH_VARARGS | METH_KEYWORDS },
6622 { "wxHtmlWinParser_GetFontBold", (PyCFunction) _wrap_wxHtmlWinParser_GetFontBold, METH_VARARGS | METH_KEYWORDS },
6623 { "wxHtmlWinParser_SetFontSize", (PyCFunction) _wrap_wxHtmlWinParser_SetFontSize, METH_VARARGS | METH_KEYWORDS },
6624 { "wxHtmlWinParser_GetFontSize", (PyCFunction) _wrap_wxHtmlWinParser_GetFontSize, METH_VARARGS | METH_KEYWORDS },
6625 { "wxHtmlWinParser_CloseContainer", (PyCFunction) _wrap_wxHtmlWinParser_CloseContainer, METH_VARARGS | METH_KEYWORDS },
6626 { "wxHtmlWinParser_SetContainer", (PyCFunction) _wrap_wxHtmlWinParser_SetContainer, METH_VARARGS | METH_KEYWORDS },
6627 { "wxHtmlWinParser_OpenContainer", (PyCFunction) _wrap_wxHtmlWinParser_OpenContainer, METH_VARARGS | METH_KEYWORDS },
6628 { "wxHtmlWinParser_GetContainer", (PyCFunction) _wrap_wxHtmlWinParser_GetContainer, METH_VARARGS | METH_KEYWORDS },
6629 { "wxHtmlWinParser_SetFonts", (PyCFunction) _wrap_wxHtmlWinParser_SetFonts, METH_VARARGS | METH_KEYWORDS },
6630 { "wxHtmlWinParser_GetWindow", (PyCFunction) _wrap_wxHtmlWinParser_GetWindow, METH_VARARGS | METH_KEYWORDS },
6631 { "wxHtmlWinParser_GetCharWidth", (PyCFunction) _wrap_wxHtmlWinParser_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
6632 { "wxHtmlWinParser_GetCharHeight", (PyCFunction) _wrap_wxHtmlWinParser_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
6633 { "wxHtmlWinParser_GetDC", (PyCFunction) _wrap_wxHtmlWinParser_GetDC, METH_VARARGS | METH_KEYWORDS },
6634 { "wxHtmlWinParser_SetDC", (PyCFunction) _wrap_wxHtmlWinParser_SetDC, METH_VARARGS | METH_KEYWORDS },
6635 { "new_wxHtmlWinParser", (PyCFunction) _wrap_new_wxHtmlWinParser, METH_VARARGS | METH_KEYWORDS },
6636 { "wxHtmlParser_CanOpenURL", (PyCFunction) _wrap_wxHtmlParser_CanOpenURL, METH_VARARGS | METH_KEYWORDS },
6637 { "wxHtmlParser_PopTagHandler", (PyCFunction) _wrap_wxHtmlParser_PopTagHandler, METH_VARARGS | METH_KEYWORDS },
6638 { "wxHtmlParser_PushTagHandler", (PyCFunction) _wrap_wxHtmlParser_PushTagHandler, METH_VARARGS | METH_KEYWORDS },
6639 { "wxHtmlParser_GetSource", (PyCFunction) _wrap_wxHtmlParser_GetSource, METH_VARARGS | METH_KEYWORDS },
6640 { "wxHtmlParser_AddTagHandler", (PyCFunction) _wrap_wxHtmlParser_AddTagHandler, METH_VARARGS | METH_KEYWORDS },
6641 { "wxHtmlParser_DoParsing", (PyCFunction) _wrap_wxHtmlParser_DoParsing, METH_VARARGS | METH_KEYWORDS },
6642 { "wxHtmlParser_DoneParser", (PyCFunction) _wrap_wxHtmlParser_DoneParser, METH_VARARGS | METH_KEYWORDS },
6643 { "wxHtmlParser_InitParser", (PyCFunction) _wrap_wxHtmlParser_InitParser, METH_VARARGS | METH_KEYWORDS },
6644 { "wxHtmlParser_Parse", (PyCFunction) _wrap_wxHtmlParser_Parse, METH_VARARGS | METH_KEYWORDS },
6645 { "wxHtmlParser_GetFS", (PyCFunction) _wrap_wxHtmlParser_GetFS, METH_VARARGS | METH_KEYWORDS },
6646 { "wxHtmlParser_SetFS", (PyCFunction) _wrap_wxHtmlParser_SetFS, METH_VARARGS | METH_KEYWORDS },
6647 { "wxHtmlTag_GetEndPos2", (PyCFunction) _wrap_wxHtmlTag_GetEndPos2, METH_VARARGS | METH_KEYWORDS },
6648 { "wxHtmlTag_GetEndPos1", (PyCFunction) _wrap_wxHtmlTag_GetEndPos1, METH_VARARGS | METH_KEYWORDS },
6649 { "wxHtmlTag_GetBeginPos", (PyCFunction) _wrap_wxHtmlTag_GetBeginPos, METH_VARARGS | METH_KEYWORDS },
6650 { "wxHtmlTag_HasEnding", (PyCFunction) _wrap_wxHtmlTag_HasEnding, METH_VARARGS | METH_KEYWORDS },
6651 { "wxHtmlTag_GetAllParams", (PyCFunction) _wrap_wxHtmlTag_GetAllParams, METH_VARARGS | METH_KEYWORDS },
6652 { "wxHtmlTag_GetParam", (PyCFunction) _wrap_wxHtmlTag_GetParam, METH_VARARGS | METH_KEYWORDS },
6653 { "wxHtmlTag_HasParam", (PyCFunction) _wrap_wxHtmlTag_HasParam, METH_VARARGS | METH_KEYWORDS },
6654 { "wxHtmlTag_GetName", (PyCFunction) _wrap_wxHtmlTag_GetName, METH_VARARGS | METH_KEYWORDS },
6655 { "wxHtmlLinkInfo_SetHtmlCell", (PyCFunction) _wrap_wxHtmlLinkInfo_SetHtmlCell, METH_VARARGS | METH_KEYWORDS },
6656 { "wxHtmlLinkInfo_SetEvent", (PyCFunction) _wrap_wxHtmlLinkInfo_SetEvent, METH_VARARGS | METH_KEYWORDS },
6657 { "wxHtmlLinkInfo_GetHtmlCell", (PyCFunction) _wrap_wxHtmlLinkInfo_GetHtmlCell, METH_VARARGS | METH_KEYWORDS },
6658 { "wxHtmlLinkInfo_GetEvent", (PyCFunction) _wrap_wxHtmlLinkInfo_GetEvent, METH_VARARGS | METH_KEYWORDS },
6659 { "wxHtmlLinkInfo_GetTarget", (PyCFunction) _wrap_wxHtmlLinkInfo_GetTarget, METH_VARARGS | METH_KEYWORDS },
6660 { "wxHtmlLinkInfo_GetHref", (PyCFunction) _wrap_wxHtmlLinkInfo_GetHref, METH_VARARGS | METH_KEYWORDS },
6661 { "new_wxHtmlLinkInfo", (PyCFunction) _wrap_new_wxHtmlLinkInfo, METH_VARARGS | METH_KEYWORDS },
6662 { "wxHtmlWindow_AddFilter", (PyCFunction) _wrap_wxHtmlWindow_AddFilter, METH_VARARGS | METH_KEYWORDS },
6663 { "wxHtmlWinParser_AddTagHandler", (PyCFunction) _wrap_wxHtmlWinParser_AddTagHandler, METH_VARARGS | METH_KEYWORDS },
6664 { NULL, NULL }
6665 };
6666 #ifdef __cplusplus
6667 }
6668 #endif
6669 /*
6670 * This table is used by the pointer type-checker
6671 */
6672 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
6673 { "_signed_long","_long",0},
6674 { "_wxPrintQuality","_wxCoord",0},
6675 { "_wxPrintQuality","_int",0},
6676 { "_wxPrintQuality","_signed_int",0},
6677 { "_wxPrintQuality","_unsigned_int",0},
6678 { "_wxPrintQuality","_wxWindowID",0},
6679 { "_wxPrintQuality","_uint",0},
6680 { "_wxPrintQuality","_EBool",0},
6681 { "_wxPrintQuality","_size_t",0},
6682 { "_wxPrintQuality","_time_t",0},
6683 { "_byte","_unsigned_char",0},
6684 { "_wxPyPrintout","_wxHtmlPrintout",SwigwxHtmlPrintoutTowxPyPrintout},
6685 { "_long","_unsigned_long",0},
6686 { "_long","_signed_long",0},
6687 { "_size_t","_wxCoord",0},
6688 { "_size_t","_wxPrintQuality",0},
6689 { "_size_t","_time_t",0},
6690 { "_size_t","_unsigned_int",0},
6691 { "_size_t","_int",0},
6692 { "_size_t","_wxWindowID",0},
6693 { "_size_t","_uint",0},
6694 { "_wxPanel","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxPanel},
6695 { "_uint","_wxCoord",0},
6696 { "_uint","_wxPrintQuality",0},
6697 { "_uint","_time_t",0},
6698 { "_uint","_size_t",0},
6699 { "_uint","_unsigned_int",0},
6700 { "_uint","_int",0},
6701 { "_uint","_wxWindowID",0},
6702 { "_wxChar","_char",0},
6703 { "_wxHtmlCell","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxHtmlCell},
6704 { "_wxHtmlCell","_wxHtmlFontCell",SwigwxHtmlFontCellTowxHtmlCell},
6705 { "_wxHtmlCell","_wxHtmlColourCell",SwigwxHtmlColourCellTowxHtmlCell},
6706 { "_wxHtmlCell","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxHtmlCell},
6707 { "_wxHtmlCell","_wxHtmlWordCell",SwigwxHtmlWordCellTowxHtmlCell},
6708 { "_char","_wxChar",0},
6709 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
6710 { "_wxPyHtmlTagHandler","_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxPyHtmlTagHandler},
6711 { "_EBool","_wxCoord",0},
6712 { "_EBool","_wxPrintQuality",0},
6713 { "_EBool","_signed_int",0},
6714 { "_EBool","_int",0},
6715 { "_EBool","_wxWindowID",0},
6716 { "_unsigned_long","_long",0},
6717 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
6718 { "_signed_int","_wxCoord",0},
6719 { "_signed_int","_wxPrintQuality",0},
6720 { "_signed_int","_EBool",0},
6721 { "_signed_int","_wxWindowID",0},
6722 { "_signed_int","_int",0},
6723 { "_WXTYPE","_wxDateTime_t",0},
6724 { "_WXTYPE","_short",0},
6725 { "_WXTYPE","_signed_short",0},
6726 { "_WXTYPE","_unsigned_short",0},
6727 { "_unsigned_short","_wxDateTime_t",0},
6728 { "_unsigned_short","_WXTYPE",0},
6729 { "_unsigned_short","_short",0},
6730 { "_wxObject","_wxHtmlEasyPrinting",SwigwxHtmlEasyPrintingTowxObject},
6731 { "_wxObject","_wxHtmlPrintout",SwigwxHtmlPrintoutTowxObject},
6732 { "_wxObject","_wxHtmlDCRenderer",SwigwxHtmlDCRendererTowxObject},
6733 { "_wxObject","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxObject},
6734 { "_wxObject","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxObject},
6735 { "_wxObject","_wxHtmlFontCell",SwigwxHtmlFontCellTowxObject},
6736 { "_wxObject","_wxHtmlColourCell",SwigwxHtmlColourCellTowxObject},
6737 { "_wxObject","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxObject},
6738 { "_wxObject","_wxHtmlWordCell",SwigwxHtmlWordCellTowxObject},
6739 { "_wxObject","_wxHtmlCell",SwigwxHtmlCellTowxObject},
6740 { "_wxObject","_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxObject},
6741 { "_wxObject","_wxPyHtmlTagHandler",SwigwxPyHtmlTagHandlerTowxObject},
6742 { "_wxObject","_wxHtmlWinParser",SwigwxHtmlWinParserTowxObject},
6743 { "_wxObject","_wxHtmlParser",SwigwxHtmlParserTowxObject},
6744 { "_wxObject","_wxHtmlTag",SwigwxHtmlTagTowxObject},
6745 { "_wxObject","_wxHtmlLinkInfo",SwigwxHtmlLinkInfoTowxObject},
6746 { "_signed_short","_WXTYPE",0},
6747 { "_signed_short","_short",0},
6748 { "_wxScrolledWindow","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxScrolledWindow},
6749 { "_unsigned_char","_byte",0},
6750 { "_unsigned_int","_wxCoord",0},
6751 { "_unsigned_int","_wxPrintQuality",0},
6752 { "_unsigned_int","_time_t",0},
6753 { "_unsigned_int","_size_t",0},
6754 { "_unsigned_int","_uint",0},
6755 { "_unsigned_int","_wxWindowID",0},
6756 { "_unsigned_int","_int",0},
6757 { "_short","_wxDateTime_t",0},
6758 { "_short","_WXTYPE",0},
6759 { "_short","_unsigned_short",0},
6760 { "_short","_signed_short",0},
6761 { "_wxWindowID","_wxCoord",0},
6762 { "_wxWindowID","_wxPrintQuality",0},
6763 { "_wxWindowID","_time_t",0},
6764 { "_wxWindowID","_size_t",0},
6765 { "_wxWindowID","_EBool",0},
6766 { "_wxWindowID","_uint",0},
6767 { "_wxWindowID","_int",0},
6768 { "_wxWindowID","_signed_int",0},
6769 { "_wxWindowID","_unsigned_int",0},
6770 { "_int","_wxCoord",0},
6771 { "_int","_wxPrintQuality",0},
6772 { "_int","_time_t",0},
6773 { "_int","_size_t",0},
6774 { "_int","_EBool",0},
6775 { "_int","_uint",0},
6776 { "_int","_wxWindowID",0},
6777 { "_int","_unsigned_int",0},
6778 { "_int","_signed_int",0},
6779 { "_wxDateTime_t","_unsigned_short",0},
6780 { "_wxDateTime_t","_short",0},
6781 { "_wxDateTime_t","_WXTYPE",0},
6782 { "_time_t","_wxCoord",0},
6783 { "_time_t","_wxPrintQuality",0},
6784 { "_time_t","_unsigned_int",0},
6785 { "_time_t","_int",0},
6786 { "_time_t","_wxWindowID",0},
6787 { "_time_t","_uint",0},
6788 { "_time_t","_size_t",0},
6789 { "_wxCoord","_int",0},
6790 { "_wxCoord","_signed_int",0},
6791 { "_wxCoord","_unsigned_int",0},
6792 { "_wxCoord","_wxWindowID",0},
6793 { "_wxCoord","_uint",0},
6794 { "_wxCoord","_EBool",0},
6795 { "_wxCoord","_size_t",0},
6796 { "_wxCoord","_time_t",0},
6797 { "_wxCoord","_wxPrintQuality",0},
6798 { "_wxHtmlParser","_wxHtmlWinParser",SwigwxHtmlWinParserTowxHtmlParser},
6799 { "_wxEvtHandler","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxEvtHandler},
6800 { "_wxWindow","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxWindow},
6801 {0,0,0}};
6802
6803 static PyObject *SWIG_globals;
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 SWIGEXPORT(void) inithtmlc() {
6808 PyObject *m, *d;
6809 SWIG_globals = SWIG_newvarlink();
6810 m = Py_InitModule("htmlc", htmlcMethods);
6811 d = PyModule_GetDict(m);
6812 PyDict_SetItemString(d,"wxHTML_ALIGN_LEFT", PyInt_FromLong((long) wxHTML_ALIGN_LEFT));
6813 PyDict_SetItemString(d,"wxHTML_ALIGN_CENTER", PyInt_FromLong((long) wxHTML_ALIGN_CENTER));
6814 PyDict_SetItemString(d,"wxHTML_ALIGN_RIGHT", PyInt_FromLong((long) wxHTML_ALIGN_RIGHT));
6815 PyDict_SetItemString(d,"wxHTML_ALIGN_BOTTOM", PyInt_FromLong((long) wxHTML_ALIGN_BOTTOM));
6816 PyDict_SetItemString(d,"wxHTML_ALIGN_TOP", PyInt_FromLong((long) wxHTML_ALIGN_TOP));
6817 PyDict_SetItemString(d,"wxHTML_CLR_FOREGROUND", PyInt_FromLong((long) wxHTML_CLR_FOREGROUND));
6818 PyDict_SetItemString(d,"wxHTML_CLR_BACKGROUND", PyInt_FromLong((long) wxHTML_CLR_BACKGROUND));
6819 PyDict_SetItemString(d,"wxHTML_UNITS_PIXELS", PyInt_FromLong((long) wxHTML_UNITS_PIXELS));
6820 PyDict_SetItemString(d,"wxHTML_UNITS_PERCENT", PyInt_FromLong((long) wxHTML_UNITS_PERCENT));
6821 PyDict_SetItemString(d,"wxHTML_INDENT_LEFT", PyInt_FromLong((long) wxHTML_INDENT_LEFT));
6822 PyDict_SetItemString(d,"wxHTML_INDENT_RIGHT", PyInt_FromLong((long) wxHTML_INDENT_RIGHT));
6823 PyDict_SetItemString(d,"wxHTML_INDENT_TOP", PyInt_FromLong((long) wxHTML_INDENT_TOP));
6824 PyDict_SetItemString(d,"wxHTML_INDENT_BOTTOM", PyInt_FromLong((long) wxHTML_INDENT_BOTTOM));
6825 PyDict_SetItemString(d,"wxHTML_INDENT_HORIZONTAL", PyInt_FromLong((long) wxHTML_INDENT_HORIZONTAL));
6826 PyDict_SetItemString(d,"wxHTML_INDENT_VERTICAL", PyInt_FromLong((long) wxHTML_INDENT_VERTICAL));
6827 PyDict_SetItemString(d,"wxHTML_INDENT_ALL", PyInt_FromLong((long) wxHTML_INDENT_ALL));
6828 PyDict_SetItemString(d,"wxHTML_COND_ISANCHOR", PyInt_FromLong((long) wxHTML_COND_ISANCHOR));
6829 PyDict_SetItemString(d,"wxHTML_COND_ISIMAGEMAP", PyInt_FromLong((long) wxHTML_COND_ISIMAGEMAP));
6830 PyDict_SetItemString(d,"wxHTML_COND_USER", PyInt_FromLong((long) wxHTML_COND_USER));
6831 PyDict_SetItemString(d,"wxPAGE_ODD", PyInt_FromLong((long) wxPAGE_ODD));
6832 PyDict_SetItemString(d,"wxPAGE_EVEN", PyInt_FromLong((long) wxPAGE_EVEN));
6833 PyDict_SetItemString(d,"wxPAGE_ALL", PyInt_FromLong((long) wxPAGE_ALL));
6834
6835
6836 inithtmlhelpc();
6837
6838 wxClassInfo::CleanUpClasses();
6839 wxClassInfo::InitializeClasses();
6840
6841 wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
6842 wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");
6843 wxPyPtrTypeMap_Add("wxHtmlWindow", "wxPyHtmlWindow");
6844 {
6845 int i;
6846 for (i = 0; _swig_mapping[i].n1; i++)
6847 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
6848 }
6849 }