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