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