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