]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/xrc/xrc.cpp
Lots of changes for wxPython to start using many of the new featues in
[wxWidgets.git] / wxPython / contrib / xrc / xrc.cpp
1 /*
2 * FILE : contrib/xrc/xrc.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initxrcc
54
55 #define SWIG_name "xrcc"
56
57 #include "wxPython.h"
58 #include "pyistream.h"
59 #include "wx/xml/xml.h"
60 #include "wx/xrc/xmlres.h"
61 #include <wx/filesys.h>
62 #include <wx/fs_mem.h>
63
64
65 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
66 PyObject* o2;
67 PyObject* o3;
68
69 if (!target) {
70 target = o;
71 } else if (target == Py_None) {
72 Py_DECREF(Py_None);
73 target = o;
74 } else {
75 if (!PyTuple_Check(target)) {
76 o2 = target;
77 target = PyTuple_New(1);
78 PyTuple_SetItem(target, 0, o2);
79 }
80 o3 = PyTuple_New(1);
81 PyTuple_SetItem(o3, 0, o);
82
83 o2 = target;
84 target = PySequence_Concat(o2, o3);
85 Py_DECREF(o2);
86 Py_DECREF(o3);
87 }
88 return target;
89 }
90
91 // Put some wx default wxChar* values into wxStrings.
92 static const wxString wxPyEmptyString(wxT(""));
93 static const wxString wxPyUTF8String(wxT("UTF-8"));
94 static const wxString wxPyStyleString(wxT("style"));
95 static const wxString wxPySizeString(wxT("size"));
96 static const wxString wxPyPosString(wxT("pos"));
97 static const wxString wxPyBitmapString(wxT("bitmap"));
98 static const wxString wxPyIconString(wxT("icon"));
99 static const wxString wxPyFontString(wxT("font"));
100
101 class wxPyXmlSubclassFactory : public wxXmlSubclassFactory
102 {
103 public:
104 wxPyXmlSubclassFactory() {}
105 DEC_PYCALLBACK_OBJECT_STRING_pure(Create);
106 PYPRIVATE;
107 };
108
109 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create);
110 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
111 // callbacks, as well as to make some protected things public so they can
112 // be wrapped.
113 class wxPyXmlResourceHandler : public wxXmlResourceHandler {
114 public:
115 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
116 //~wxPyXmlResourceHandler();
117
118 // Base class virtuals
119
120 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource);
121 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle);
122
123
124 // accessors for protected members
125
126 wxXmlResource* GetResource() { return m_resource; }
127 wxXmlNode* GetNode() { return m_node; }
128 wxString GetClass() { return m_class; }
129 wxObject* GetParent() { return m_parent; }
130 wxObject* GetInstance() { return m_instance; }
131 wxWindow* GetParentAsWindow() { return m_parentAsWindow; }
132 wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; }
133
134
135 // turn some protected methods into public via delegation
136
137 bool IsOfClass(wxXmlNode *node, const wxString& classname)
138 { return wxXmlResourceHandler::IsOfClass(node, classname); }
139
140 wxString GetNodeContent(wxXmlNode *node)
141 { return wxXmlResourceHandler::GetNodeContent(node); }
142
143 bool HasParam(const wxString& param)
144 { return wxXmlResourceHandler::HasParam(param); }
145
146 wxXmlNode *GetParamNode(const wxString& param)
147 { return wxXmlResourceHandler::GetParamNode(param); }
148
149 wxString GetParamValue(const wxString& param)
150 { return wxXmlResourceHandler::GetParamValue(param); }
151
152 void AddStyle(const wxString& name, int value)
153 { wxXmlResourceHandler::AddStyle(name, value); }
154
155 void AddWindowStyles()
156 { wxXmlResourceHandler::AddWindowStyles(); }
157
158 int GetStyle(const wxString& param = wxT("style"), int defaults = 0)
159 { return wxXmlResourceHandler::GetStyle(param, defaults); }
160
161 wxString GetText(const wxString& param, bool translate = TRUE)
162 { return wxXmlResourceHandler::GetText(param, translate); }
163
164 int GetID()
165 { return wxXmlResourceHandler::GetID(); }
166
167 wxString GetName()
168 { return wxXmlResourceHandler::GetName(); }
169
170 bool GetBool(const wxString& param, bool defaultv = FALSE)
171 { return wxXmlResourceHandler::GetBool(param, defaultv); }
172
173 long GetLong( const wxString& param, long defaultv = 0 )
174 { return wxXmlResourceHandler::GetLong(param, defaultv); }
175
176 wxColour GetColour(const wxString& param)
177 { return wxXmlResourceHandler::GetColour(param); }
178
179 wxSize GetSize(const wxString& param = wxT("size"))
180 { return wxXmlResourceHandler::GetSize(param); }
181
182 wxPoint GetPosition(const wxString& param = wxT("pos"))
183 { return wxXmlResourceHandler::GetPosition(param); }
184
185 wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0)
186 { return wxXmlResourceHandler::GetDimension(param, defaultv); }
187
188 wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
189 const wxArtClient& defaultArtClient = wxART_OTHER,
190 wxSize size = wxDefaultSize)
191 { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); }
192
193 wxIcon GetIcon(const wxString& param = wxT("icon"),
194 const wxArtClient& defaultArtClient = wxART_OTHER,
195 wxSize size = wxDefaultSize)
196 { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); }
197
198 wxFont GetFont(const wxString& param = wxT("font"))
199 { return wxXmlResourceHandler::GetFont(param); }
200
201 void SetupWindow(wxWindow *wnd)
202 { wxXmlResourceHandler::SetupWindow(wnd); }
203
204 void CreateChildren(wxObject *parent, bool this_hnd_only = FALSE)
205 { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); }
206
207 void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL)
208 { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); }
209
210 wxObject *CreateResFromNode(wxXmlNode *node,
211 wxObject *parent, wxObject *instance = NULL)
212 { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); }
213
214 wxFileSystem& GetCurFileSystem()
215 { return wxXmlResourceHandler::GetCurFileSystem(); }
216
217
218 PYPRIVATE;
219 };
220
221 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource);
222 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle);
223
224 #ifdef __cplusplus
225 extern "C" {
226 #endif
227 static void *SwigwxXmlResourceTowxObject(void *ptr) {
228 wxXmlResource *src;
229 wxObject *dest;
230 src = (wxXmlResource *) ptr;
231 dest = (wxObject *) src;
232 return (void *) dest;
233 }
234
235 #define new_wxXmlResource(_swigarg0,_swigarg1) (new wxXmlResource(_swigarg0,_swigarg1))
236 static PyObject *_wrap_new_wxXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
237 PyObject * _resultobj;
238 wxXmlResource * _result;
239 wxString * _arg0;
240 int _arg1 = (int ) (wxXRC_USE_LOCALE);
241 PyObject * _obj0 = 0;
242 char *_kwnames[] = { "filemask","flags", NULL };
243 char _ptemp[128];
244
245 self = self;
246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxXmlResource",_kwnames,&_obj0,&_arg1))
247 return NULL;
248 {
249 _arg0 = wxString_in_helper(_obj0);
250 if (_arg0 == NULL)
251 return NULL;
252 }
253 {
254 PyThreadState* __tstate = wxPyBeginAllowThreads();
255 _result = (wxXmlResource *)new_wxXmlResource(*_arg0,_arg1);
256
257 wxPyEndAllowThreads(__tstate);
258 if (PyErr_Occurred()) return NULL;
259 } if (_result) {
260 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
261 _resultobj = Py_BuildValue("s",_ptemp);
262 } else {
263 Py_INCREF(Py_None);
264 _resultobj = Py_None;
265 }
266 {
267 if (_obj0)
268 delete _arg0;
269 }
270 return _resultobj;
271 }
272
273 #define new_wxEmptyXmlResource(_swigarg0) (new wxXmlResource(_swigarg0))
274 static PyObject *_wrap_new_wxEmptyXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
275 PyObject * _resultobj;
276 wxXmlResource * _result;
277 int _arg0 = (int ) (wxXRC_USE_LOCALE);
278 char *_kwnames[] = { "flags", NULL };
279 char _ptemp[128];
280
281 self = self;
282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxEmptyXmlResource",_kwnames,&_arg0))
283 return NULL;
284 {
285 PyThreadState* __tstate = wxPyBeginAllowThreads();
286 _result = (wxXmlResource *)new_wxEmptyXmlResource(_arg0);
287
288 wxPyEndAllowThreads(__tstate);
289 if (PyErr_Occurred()) return NULL;
290 } if (_result) {
291 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
292 _resultobj = Py_BuildValue("s",_ptemp);
293 } else {
294 Py_INCREF(Py_None);
295 _resultobj = Py_None;
296 }
297 return _resultobj;
298 }
299
300 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
301 static PyObject *_wrap_delete_wxXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
302 PyObject * _resultobj;
303 wxXmlResource * _arg0;
304 PyObject * _argo0 = 0;
305 char *_kwnames[] = { "self", NULL };
306
307 self = self;
308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxXmlResource",_kwnames,&_argo0))
309 return NULL;
310 if (_argo0) {
311 if (_argo0 == Py_None) { _arg0 = NULL; }
312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
314 return NULL;
315 }
316 }
317 {
318 PyThreadState* __tstate = wxPyBeginAllowThreads();
319 delete_wxXmlResource(_arg0);
320
321 wxPyEndAllowThreads(__tstate);
322 if (PyErr_Occurred()) return NULL;
323 } Py_INCREF(Py_None);
324 _resultobj = Py_None;
325 return _resultobj;
326 }
327
328 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
329 static PyObject *_wrap_wxXmlResource_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
330 PyObject * _resultobj;
331 bool _result;
332 wxXmlResource * _arg0;
333 wxString * _arg1;
334 PyObject * _argo0 = 0;
335 PyObject * _obj1 = 0;
336 char *_kwnames[] = { "self","filemask", NULL };
337
338 self = self;
339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_Load",_kwnames,&_argo0,&_obj1))
340 return NULL;
341 if (_argo0) {
342 if (_argo0 == Py_None) { _arg0 = NULL; }
343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
345 return NULL;
346 }
347 }
348 {
349 _arg1 = wxString_in_helper(_obj1);
350 if (_arg1 == NULL)
351 return NULL;
352 }
353 {
354 PyThreadState* __tstate = wxPyBeginAllowThreads();
355 _result = (bool )wxXmlResource_Load(_arg0,*_arg1);
356
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
359 } _resultobj = Py_BuildValue("i",_result);
360 {
361 if (_obj1)
362 delete _arg1;
363 }
364 return _resultobj;
365 }
366
367 static bool wxXmlResource_LoadFromString(wxXmlResource *self,const wxString & data) {
368 static int s_memFileIdx = 0;
369
370 // Check for memory FS. If not present, load the handler:
371 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
372 wxT("dummy data"));
373 wxFileSystem fsys;
374 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
375 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
376 if (f)
377 delete f;
378 else
379 wxFileSystem::AddHandler(new wxMemoryFSHandler);
380
381 // Now put the resource data into the memory FS
382 wxString filename(wxT("XRC_resource/data_string_"));
383 filename << s_memFileIdx;
384 s_memFileIdx += 1;
385 wxMemoryFSHandler::AddFile(filename, data);
386
387 // Load the "file" into the resource object
388 bool retval = self->Load(wxT("memory:") + filename );
389
390 return retval;
391 }
392 static PyObject *_wrap_wxXmlResource_LoadFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
393 PyObject * _resultobj;
394 bool _result;
395 wxXmlResource * _arg0;
396 wxString * _arg1;
397 PyObject * _argo0 = 0;
398 PyObject * _obj1 = 0;
399 char *_kwnames[] = { "self","data", NULL };
400
401 self = self;
402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadFromString",_kwnames,&_argo0,&_obj1))
403 return NULL;
404 if (_argo0) {
405 if (_argo0 == Py_None) { _arg0 = NULL; }
406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadFromString. Expected _wxXmlResource_p.");
408 return NULL;
409 }
410 }
411 {
412 _arg1 = wxString_in_helper(_obj1);
413 if (_arg1 == NULL)
414 return NULL;
415 }
416 {
417 PyThreadState* __tstate = wxPyBeginAllowThreads();
418 _result = (bool )wxXmlResource_LoadFromString(_arg0,*_arg1);
419
420 wxPyEndAllowThreads(__tstate);
421 if (PyErr_Occurred()) return NULL;
422 } _resultobj = Py_BuildValue("i",_result);
423 {
424 if (_obj1)
425 delete _arg1;
426 }
427 return _resultobj;
428 }
429
430 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
431 static PyObject *_wrap_wxXmlResource_InitAllHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
432 PyObject * _resultobj;
433 wxXmlResource * _arg0;
434 PyObject * _argo0 = 0;
435 char *_kwnames[] = { "self", NULL };
436
437 self = self;
438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_InitAllHandlers",_kwnames,&_argo0))
439 return NULL;
440 if (_argo0) {
441 if (_argo0 == Py_None) { _arg0 = NULL; }
442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
444 return NULL;
445 }
446 }
447 {
448 PyThreadState* __tstate = wxPyBeginAllowThreads();
449 wxXmlResource_InitAllHandlers(_arg0);
450
451 wxPyEndAllowThreads(__tstate);
452 if (PyErr_Occurred()) return NULL;
453 } Py_INCREF(Py_None);
454 _resultobj = Py_None;
455 return _resultobj;
456 }
457
458 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
459 static PyObject *_wrap_wxXmlResource_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
460 PyObject * _resultobj;
461 wxXmlResource * _arg0;
462 wxPyXmlResourceHandler * _arg1;
463 PyObject * _argo0 = 0;
464 PyObject * _argo1 = 0;
465 char *_kwnames[] = { "self","handler", NULL };
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_AddHandler",_kwnames,&_argo0,&_argo1))
469 return NULL;
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
474 return NULL;
475 }
476 }
477 if (_argo1) {
478 if (_argo1 == Py_None) { _arg1 = NULL; }
479 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyXmlResourceHandler_p")) {
480 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxPyXmlResourceHandler_p.");
481 return NULL;
482 }
483 }
484 {
485 PyThreadState* __tstate = wxPyBeginAllowThreads();
486 wxXmlResource_AddHandler(_arg0,_arg1);
487
488 wxPyEndAllowThreads(__tstate);
489 if (PyErr_Occurred()) return NULL;
490 } Py_INCREF(Py_None);
491 _resultobj = Py_None;
492 return _resultobj;
493 }
494
495 #define wxXmlResource_InsertHandler(_swigobj,_swigarg0) (_swigobj->InsertHandler(_swigarg0))
496 static PyObject *_wrap_wxXmlResource_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
497 PyObject * _resultobj;
498 wxXmlResource * _arg0;
499 wxPyXmlResourceHandler * _arg1;
500 PyObject * _argo0 = 0;
501 PyObject * _argo1 = 0;
502 char *_kwnames[] = { "self","handler", NULL };
503
504 self = self;
505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_InsertHandler",_kwnames,&_argo0,&_argo1))
506 return NULL;
507 if (_argo0) {
508 if (_argo0 == Py_None) { _arg0 = NULL; }
509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_InsertHandler. Expected _wxXmlResource_p.");
511 return NULL;
512 }
513 }
514 if (_argo1) {
515 if (_argo1 == Py_None) { _arg1 = NULL; }
516 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyXmlResourceHandler_p")) {
517 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_InsertHandler. Expected _wxPyXmlResourceHandler_p.");
518 return NULL;
519 }
520 }
521 {
522 PyThreadState* __tstate = wxPyBeginAllowThreads();
523 wxXmlResource_InsertHandler(_arg0,_arg1);
524
525 wxPyEndAllowThreads(__tstate);
526 if (PyErr_Occurred()) return NULL;
527 } Py_INCREF(Py_None);
528 _resultobj = Py_None;
529 return _resultobj;
530 }
531
532 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
533 static PyObject *_wrap_wxXmlResource_ClearHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
534 PyObject * _resultobj;
535 wxXmlResource * _arg0;
536 PyObject * _argo0 = 0;
537 char *_kwnames[] = { "self", NULL };
538
539 self = self;
540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_ClearHandlers",_kwnames,&_argo0))
541 return NULL;
542 if (_argo0) {
543 if (_argo0 == Py_None) { _arg0 = NULL; }
544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
546 return NULL;
547 }
548 }
549 {
550 PyThreadState* __tstate = wxPyBeginAllowThreads();
551 wxXmlResource_ClearHandlers(_arg0);
552
553 wxPyEndAllowThreads(__tstate);
554 if (PyErr_Occurred()) return NULL;
555 } Py_INCREF(Py_None);
556 _resultobj = Py_None;
557 return _resultobj;
558 }
559
560 static PyObject *_wrap_wxXmlResource_AddSubclassFactory(PyObject *self, PyObject *args, PyObject *kwargs) {
561 PyObject * _resultobj;
562 wxPyXmlSubclassFactory * _arg0;
563 PyObject * _argo0 = 0;
564 char *_kwnames[] = { "factory", NULL };
565
566 self = self;
567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_AddSubclassFactory",_kwnames,&_argo0))
568 return NULL;
569 if (_argo0) {
570 if (_argo0 == Py_None) { _arg0 = NULL; }
571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlSubclassFactory_p")) {
572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_AddSubclassFactory. Expected _wxPyXmlSubclassFactory_p.");
573 return NULL;
574 }
575 }
576 {
577 PyThreadState* __tstate = wxPyBeginAllowThreads();
578 wxXmlResource::AddSubclassFactory(_arg0);
579
580 wxPyEndAllowThreads(__tstate);
581 if (PyErr_Occurred()) return NULL;
582 } Py_INCREF(Py_None);
583 _resultobj = Py_None;
584 return _resultobj;
585 }
586
587 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
588 static PyObject *_wrap_wxXmlResource_LoadMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
589 PyObject * _resultobj;
590 wxMenu * _result;
591 wxXmlResource * _arg0;
592 wxString * _arg1;
593 PyObject * _argo0 = 0;
594 PyObject * _obj1 = 0;
595 char *_kwnames[] = { "self","name", NULL };
596
597 self = self;
598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenu",_kwnames,&_argo0,&_obj1))
599 return NULL;
600 if (_argo0) {
601 if (_argo0 == Py_None) { _arg0 = NULL; }
602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
604 return NULL;
605 }
606 }
607 {
608 _arg1 = wxString_in_helper(_obj1);
609 if (_arg1 == NULL)
610 return NULL;
611 }
612 {
613 PyThreadState* __tstate = wxPyBeginAllowThreads();
614 _result = (wxMenu *)wxXmlResource_LoadMenu(_arg0,*_arg1);
615
616 wxPyEndAllowThreads(__tstate);
617 if (PyErr_Occurred()) return NULL;
618 }{ _resultobj = wxPyMake_wxObject(_result); }
619 {
620 if (_obj1)
621 delete _arg1;
622 }
623 return _resultobj;
624 }
625
626 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
627 static PyObject *_wrap_wxXmlResource_LoadMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
628 PyObject * _resultobj;
629 wxMenuBar * _result;
630 wxXmlResource * _arg0;
631 wxString * _arg1;
632 PyObject * _argo0 = 0;
633 PyObject * _obj1 = 0;
634 char *_kwnames[] = { "self","name", NULL };
635
636 self = self;
637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenuBar",_kwnames,&_argo0,&_obj1))
638 return NULL;
639 if (_argo0) {
640 if (_argo0 == Py_None) { _arg0 = NULL; }
641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
643 return NULL;
644 }
645 }
646 {
647 _arg1 = wxString_in_helper(_obj1);
648 if (_arg1 == NULL)
649 return NULL;
650 }
651 {
652 PyThreadState* __tstate = wxPyBeginAllowThreads();
653 _result = (wxMenuBar *)wxXmlResource_LoadMenuBar(_arg0,*_arg1);
654
655 wxPyEndAllowThreads(__tstate);
656 if (PyErr_Occurred()) return NULL;
657 }{ _resultobj = wxPyMake_wxObject(_result); }
658 {
659 if (_obj1)
660 delete _arg1;
661 }
662 return _resultobj;
663 }
664
665 #define wxXmlResource_LoadMenuBarOnFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadMenuBar(_swigarg0,_swigarg1))
666 static PyObject *_wrap_wxXmlResource_LoadMenuBarOnFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
667 PyObject * _resultobj;
668 wxMenuBar * _result;
669 wxXmlResource * _arg0;
670 wxWindow * _arg1;
671 wxString * _arg2;
672 PyObject * _argo0 = 0;
673 PyObject * _argo1 = 0;
674 PyObject * _obj2 = 0;
675 char *_kwnames[] = { "self","parent","name", NULL };
676
677 self = self;
678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadMenuBarOnFrame",_kwnames,&_argo0,&_argo1,&_obj2))
679 return NULL;
680 if (_argo0) {
681 if (_argo0 == Py_None) { _arg0 = NULL; }
682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxXmlResource_p.");
684 return NULL;
685 }
686 }
687 if (_argo1) {
688 if (_argo1 == Py_None) { _arg1 = NULL; }
689 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
690 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxWindow_p.");
691 return NULL;
692 }
693 }
694 {
695 _arg2 = wxString_in_helper(_obj2);
696 if (_arg2 == NULL)
697 return NULL;
698 }
699 {
700 PyThreadState* __tstate = wxPyBeginAllowThreads();
701 _result = (wxMenuBar *)wxXmlResource_LoadMenuBarOnFrame(_arg0,_arg1,*_arg2);
702
703 wxPyEndAllowThreads(__tstate);
704 if (PyErr_Occurred()) return NULL;
705 }{ _resultobj = wxPyMake_wxObject(_result); }
706 {
707 if (_obj2)
708 delete _arg2;
709 }
710 return _resultobj;
711 }
712
713 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
714 static PyObject *_wrap_wxXmlResource_LoadToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
715 PyObject * _resultobj;
716 wxToolBar * _result;
717 wxXmlResource * _arg0;
718 wxWindow * _arg1;
719 wxString * _arg2;
720 PyObject * _argo0 = 0;
721 PyObject * _argo1 = 0;
722 PyObject * _obj2 = 0;
723 char *_kwnames[] = { "self","parent","name", NULL };
724
725 self = self;
726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadToolBar",_kwnames,&_argo0,&_argo1,&_obj2))
727 return NULL;
728 if (_argo0) {
729 if (_argo0 == Py_None) { _arg0 = NULL; }
730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
732 return NULL;
733 }
734 }
735 if (_argo1) {
736 if (_argo1 == Py_None) { _arg1 = NULL; }
737 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
738 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
739 return NULL;
740 }
741 }
742 {
743 _arg2 = wxString_in_helper(_obj2);
744 if (_arg2 == NULL)
745 return NULL;
746 }
747 {
748 PyThreadState* __tstate = wxPyBeginAllowThreads();
749 _result = (wxToolBar *)wxXmlResource_LoadToolBar(_arg0,_arg1,*_arg2);
750
751 wxPyEndAllowThreads(__tstate);
752 if (PyErr_Occurred()) return NULL;
753 }{ _resultobj = wxPyMake_wxObject(_result); }
754 {
755 if (_obj2)
756 delete _arg2;
757 }
758 return _resultobj;
759 }
760
761 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
762 static PyObject *_wrap_wxXmlResource_LoadDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
763 PyObject * _resultobj;
764 wxDialog * _result;
765 wxXmlResource * _arg0;
766 wxWindow * _arg1;
767 wxString * _arg2;
768 PyObject * _argo0 = 0;
769 PyObject * _argo1 = 0;
770 PyObject * _obj2 = 0;
771 char *_kwnames[] = { "self","parent","name", NULL };
772 char _ptemp[128];
773
774 self = self;
775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadDialog",_kwnames,&_argo0,&_argo1,&_obj2))
776 return NULL;
777 if (_argo0) {
778 if (_argo0 == Py_None) { _arg0 = NULL; }
779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
781 return NULL;
782 }
783 }
784 if (_argo1) {
785 if (_argo1 == Py_None) { _arg1 = NULL; }
786 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
787 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
788 return NULL;
789 }
790 }
791 {
792 _arg2 = wxString_in_helper(_obj2);
793 if (_arg2 == NULL)
794 return NULL;
795 }
796 {
797 PyThreadState* __tstate = wxPyBeginAllowThreads();
798 _result = (wxDialog *)wxXmlResource_LoadDialog(_arg0,_arg1,*_arg2);
799
800 wxPyEndAllowThreads(__tstate);
801 if (PyErr_Occurred()) return NULL;
802 } if (_result) {
803 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
804 _resultobj = Py_BuildValue("s",_ptemp);
805 } else {
806 Py_INCREF(Py_None);
807 _resultobj = Py_None;
808 }
809 {
810 if (_obj2)
811 delete _arg2;
812 }
813 return _resultobj;
814 }
815
816 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
817 static PyObject *_wrap_wxXmlResource_LoadOnDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
818 PyObject * _resultobj;
819 bool _result;
820 wxXmlResource * _arg0;
821 wxDialog * _arg1;
822 wxWindow * _arg2;
823 wxString * _arg3;
824 PyObject * _argo0 = 0;
825 PyObject * _argo1 = 0;
826 PyObject * _argo2 = 0;
827 PyObject * _obj3 = 0;
828 char *_kwnames[] = { "self","dlg","parent","name", NULL };
829
830 self = self;
831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnDialog",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
832 return NULL;
833 if (_argo0) {
834 if (_argo0 == Py_None) { _arg0 = NULL; }
835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
837 return NULL;
838 }
839 }
840 if (_argo1) {
841 if (_argo1 == Py_None) { _arg1 = NULL; }
842 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDialog_p")) {
843 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
844 return NULL;
845 }
846 }
847 if (_argo2) {
848 if (_argo2 == Py_None) { _arg2 = NULL; }
849 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
850 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
851 return NULL;
852 }
853 }
854 {
855 _arg3 = wxString_in_helper(_obj3);
856 if (_arg3 == NULL)
857 return NULL;
858 }
859 {
860 PyThreadState* __tstate = wxPyBeginAllowThreads();
861 _result = (bool )wxXmlResource_LoadOnDialog(_arg0,_arg1,_arg2,*_arg3);
862
863 wxPyEndAllowThreads(__tstate);
864 if (PyErr_Occurred()) return NULL;
865 } _resultobj = Py_BuildValue("i",_result);
866 {
867 if (_obj3)
868 delete _arg3;
869 }
870 return _resultobj;
871 }
872
873 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
874 static PyObject *_wrap_wxXmlResource_LoadPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
875 PyObject * _resultobj;
876 wxPanel * _result;
877 wxXmlResource * _arg0;
878 wxWindow * _arg1;
879 wxString * _arg2;
880 PyObject * _argo0 = 0;
881 PyObject * _argo1 = 0;
882 PyObject * _obj2 = 0;
883 char *_kwnames[] = { "self","parent","name", NULL };
884 char _ptemp[128];
885
886 self = self;
887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadPanel",_kwnames,&_argo0,&_argo1,&_obj2))
888 return NULL;
889 if (_argo0) {
890 if (_argo0 == Py_None) { _arg0 = NULL; }
891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
893 return NULL;
894 }
895 }
896 if (_argo1) {
897 if (_argo1 == Py_None) { _arg1 = NULL; }
898 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
899 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
900 return NULL;
901 }
902 }
903 {
904 _arg2 = wxString_in_helper(_obj2);
905 if (_arg2 == NULL)
906 return NULL;
907 }
908 {
909 PyThreadState* __tstate = wxPyBeginAllowThreads();
910 _result = (wxPanel *)wxXmlResource_LoadPanel(_arg0,_arg1,*_arg2);
911
912 wxPyEndAllowThreads(__tstate);
913 if (PyErr_Occurred()) return NULL;
914 } if (_result) {
915 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
916 _resultobj = Py_BuildValue("s",_ptemp);
917 } else {
918 Py_INCREF(Py_None);
919 _resultobj = Py_None;
920 }
921 {
922 if (_obj2)
923 delete _arg2;
924 }
925 return _resultobj;
926 }
927
928 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
929 static PyObject *_wrap_wxXmlResource_LoadOnPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject * _resultobj;
931 bool _result;
932 wxXmlResource * _arg0;
933 wxPanel * _arg1;
934 wxWindow * _arg2;
935 wxString * _arg3;
936 PyObject * _argo0 = 0;
937 PyObject * _argo1 = 0;
938 PyObject * _argo2 = 0;
939 PyObject * _obj3 = 0;
940 char *_kwnames[] = { "self","panel","parent","name", NULL };
941
942 self = self;
943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnPanel",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
944 return NULL;
945 if (_argo0) {
946 if (_argo0 == Py_None) { _arg0 = NULL; }
947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
949 return NULL;
950 }
951 }
952 if (_argo1) {
953 if (_argo1 == Py_None) { _arg1 = NULL; }
954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPanel_p")) {
955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
956 return NULL;
957 }
958 }
959 if (_argo2) {
960 if (_argo2 == Py_None) { _arg2 = NULL; }
961 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
962 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
963 return NULL;
964 }
965 }
966 {
967 _arg3 = wxString_in_helper(_obj3);
968 if (_arg3 == NULL)
969 return NULL;
970 }
971 {
972 PyThreadState* __tstate = wxPyBeginAllowThreads();
973 _result = (bool )wxXmlResource_LoadOnPanel(_arg0,_arg1,_arg2,*_arg3);
974
975 wxPyEndAllowThreads(__tstate);
976 if (PyErr_Occurred()) return NULL;
977 } _resultobj = Py_BuildValue("i",_result);
978 {
979 if (_obj3)
980 delete _arg3;
981 }
982 return _resultobj;
983 }
984
985 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFrame(_swigarg0,_swigarg1))
986 static PyObject *_wrap_wxXmlResource_LoadFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
987 PyObject * _resultobj;
988 wxFrame * _result;
989 wxXmlResource * _arg0;
990 wxWindow * _arg1;
991 wxString * _arg2;
992 PyObject * _argo0 = 0;
993 PyObject * _argo1 = 0;
994 PyObject * _obj2 = 0;
995 char *_kwnames[] = { "self","parent","name", NULL };
996
997 self = self;
998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadFrame",_kwnames,&_argo0,&_argo1,&_obj2))
999 return NULL;
1000 if (_argo0) {
1001 if (_argo0 == Py_None) { _arg0 = NULL; }
1002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
1004 return NULL;
1005 }
1006 }
1007 if (_argo1) {
1008 if (_argo1 == Py_None) { _arg1 = NULL; }
1009 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1010 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
1011 return NULL;
1012 }
1013 }
1014 {
1015 _arg2 = wxString_in_helper(_obj2);
1016 if (_arg2 == NULL)
1017 return NULL;
1018 }
1019 {
1020 PyThreadState* __tstate = wxPyBeginAllowThreads();
1021 _result = (wxFrame *)wxXmlResource_LoadFrame(_arg0,_arg1,*_arg2);
1022
1023 wxPyEndAllowThreads(__tstate);
1024 if (PyErr_Occurred()) return NULL;
1025 }{ _resultobj = wxPyMake_wxObject(_result); }
1026 {
1027 if (_obj2)
1028 delete _arg2;
1029 }
1030 return _resultobj;
1031 }
1032
1033 #define wxXmlResource_LoadOnFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
1034 static PyObject *_wrap_wxXmlResource_LoadOnFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
1035 PyObject * _resultobj;
1036 bool _result;
1037 wxXmlResource * _arg0;
1038 wxFrame * _arg1;
1039 wxWindow * _arg2;
1040 wxString * _arg3;
1041 PyObject * _argo0 = 0;
1042 PyObject * _argo1 = 0;
1043 PyObject * _argo2 = 0;
1044 PyObject * _obj3 = 0;
1045 char *_kwnames[] = { "self","frame","parent","name", NULL };
1046
1047 self = self;
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnFrame",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
1049 return NULL;
1050 if (_argo0) {
1051 if (_argo0 == Py_None) { _arg0 = NULL; }
1052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnFrame. Expected _wxXmlResource_p.");
1054 return NULL;
1055 }
1056 }
1057 if (_argo1) {
1058 if (_argo1 == Py_None) { _arg1 = NULL; }
1059 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
1060 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnFrame. Expected _wxFrame_p.");
1061 return NULL;
1062 }
1063 }
1064 if (_argo2) {
1065 if (_argo2 == Py_None) { _arg2 = NULL; }
1066 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnFrame. Expected _wxWindow_p.");
1068 return NULL;
1069 }
1070 }
1071 {
1072 _arg3 = wxString_in_helper(_obj3);
1073 if (_arg3 == NULL)
1074 return NULL;
1075 }
1076 {
1077 PyThreadState* __tstate = wxPyBeginAllowThreads();
1078 _result = (bool )wxXmlResource_LoadOnFrame(_arg0,_arg1,_arg2,*_arg3);
1079
1080 wxPyEndAllowThreads(__tstate);
1081 if (PyErr_Occurred()) return NULL;
1082 } _resultobj = Py_BuildValue("i",_result);
1083 {
1084 if (_obj3)
1085 delete _arg3;
1086 }
1087 return _resultobj;
1088 }
1089
1090 #define wxXmlResource_LoadObject(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2))
1091 static PyObject *_wrap_wxXmlResource_LoadObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1092 PyObject * _resultobj;
1093 wxObject * _result;
1094 wxXmlResource * _arg0;
1095 wxWindow * _arg1;
1096 wxString * _arg2;
1097 wxString * _arg3;
1098 PyObject * _argo0 = 0;
1099 PyObject * _argo1 = 0;
1100 PyObject * _obj2 = 0;
1101 PyObject * _obj3 = 0;
1102 char *_kwnames[] = { "self","parent","name","classname", NULL };
1103
1104 self = self;
1105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadObject",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3))
1106 return NULL;
1107 if (_argo0) {
1108 if (_argo0 == Py_None) { _arg0 = NULL; }
1109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadObject. Expected _wxXmlResource_p.");
1111 return NULL;
1112 }
1113 }
1114 if (_argo1) {
1115 if (_argo1 == Py_None) { _arg1 = NULL; }
1116 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadObject. Expected _wxWindow_p.");
1118 return NULL;
1119 }
1120 }
1121 {
1122 _arg2 = wxString_in_helper(_obj2);
1123 if (_arg2 == NULL)
1124 return NULL;
1125 }
1126 {
1127 _arg3 = wxString_in_helper(_obj3);
1128 if (_arg3 == NULL)
1129 return NULL;
1130 }
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 _result = (wxObject *)wxXmlResource_LoadObject(_arg0,_arg1,*_arg2,*_arg3);
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) return NULL;
1137 }{ _resultobj = wxPyMake_wxObject(_result); }
1138 {
1139 if (_obj2)
1140 delete _arg2;
1141 }
1142 {
1143 if (_obj3)
1144 delete _arg3;
1145 }
1146 return _resultobj;
1147 }
1148
1149 #define wxXmlResource_LoadOnObject(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->LoadObject(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1150 static PyObject *_wrap_wxXmlResource_LoadOnObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1151 PyObject * _resultobj;
1152 bool _result;
1153 wxXmlResource * _arg0;
1154 wxObject * _arg1;
1155 wxWindow * _arg2;
1156 wxString * _arg3;
1157 wxString * _arg4;
1158 PyObject * _argo0 = 0;
1159 PyObject * _argo1 = 0;
1160 PyObject * _argo2 = 0;
1161 PyObject * _obj3 = 0;
1162 PyObject * _obj4 = 0;
1163 char *_kwnames[] = { "self","instance","parent","name","classname", NULL };
1164
1165 self = self;
1166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxXmlResource_LoadOnObject",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_obj4))
1167 return NULL;
1168 if (_argo0) {
1169 if (_argo0 == Py_None) { _arg0 = NULL; }
1170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnObject. Expected _wxXmlResource_p.");
1172 return NULL;
1173 }
1174 }
1175 if (_argo1) {
1176 if (_argo1 == Py_None) { _arg1 = NULL; }
1177 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxObject_p")) {
1178 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnObject. Expected _wxObject_p.");
1179 return NULL;
1180 }
1181 }
1182 if (_argo2) {
1183 if (_argo2 == Py_None) { _arg2 = NULL; }
1184 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1185 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnObject. Expected _wxWindow_p.");
1186 return NULL;
1187 }
1188 }
1189 {
1190 _arg3 = wxString_in_helper(_obj3);
1191 if (_arg3 == NULL)
1192 return NULL;
1193 }
1194 {
1195 _arg4 = wxString_in_helper(_obj4);
1196 if (_arg4 == NULL)
1197 return NULL;
1198 }
1199 {
1200 PyThreadState* __tstate = wxPyBeginAllowThreads();
1201 _result = (bool )wxXmlResource_LoadOnObject(_arg0,_arg1,_arg2,*_arg3,*_arg4);
1202
1203 wxPyEndAllowThreads(__tstate);
1204 if (PyErr_Occurred()) return NULL;
1205 } _resultobj = Py_BuildValue("i",_result);
1206 {
1207 if (_obj3)
1208 delete _arg3;
1209 }
1210 {
1211 if (_obj4)
1212 delete _arg4;
1213 }
1214 return _resultobj;
1215 }
1216
1217 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
1218 static PyObject *_wrap_wxXmlResource_LoadBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1219 PyObject * _resultobj;
1220 wxBitmap * _result;
1221 wxXmlResource * _arg0;
1222 wxString * _arg1;
1223 PyObject * _argo0 = 0;
1224 PyObject * _obj1 = 0;
1225 char *_kwnames[] = { "self","name", NULL };
1226 char _ptemp[128];
1227
1228 self = self;
1229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadBitmap",_kwnames,&_argo0,&_obj1))
1230 return NULL;
1231 if (_argo0) {
1232 if (_argo0 == Py_None) { _arg0 = NULL; }
1233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
1235 return NULL;
1236 }
1237 }
1238 {
1239 _arg1 = wxString_in_helper(_obj1);
1240 if (_arg1 == NULL)
1241 return NULL;
1242 }
1243 {
1244 PyThreadState* __tstate = wxPyBeginAllowThreads();
1245 _result = new wxBitmap (wxXmlResource_LoadBitmap(_arg0,*_arg1));
1246
1247 wxPyEndAllowThreads(__tstate);
1248 if (PyErr_Occurred()) return NULL;
1249 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1250 _resultobj = Py_BuildValue("s",_ptemp);
1251 {
1252 if (_obj1)
1253 delete _arg1;
1254 }
1255 return _resultobj;
1256 }
1257
1258 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
1259 static PyObject *_wrap_wxXmlResource_LoadIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1260 PyObject * _resultobj;
1261 wxIcon * _result;
1262 wxXmlResource * _arg0;
1263 wxString * _arg1;
1264 PyObject * _argo0 = 0;
1265 PyObject * _obj1 = 0;
1266 char *_kwnames[] = { "self","name", NULL };
1267 char _ptemp[128];
1268
1269 self = self;
1270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadIcon",_kwnames,&_argo0,&_obj1))
1271 return NULL;
1272 if (_argo0) {
1273 if (_argo0 == Py_None) { _arg0 = NULL; }
1274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
1276 return NULL;
1277 }
1278 }
1279 {
1280 _arg1 = wxString_in_helper(_obj1);
1281 if (_arg1 == NULL)
1282 return NULL;
1283 }
1284 {
1285 PyThreadState* __tstate = wxPyBeginAllowThreads();
1286 _result = new wxIcon (wxXmlResource_LoadIcon(_arg0,*_arg1));
1287
1288 wxPyEndAllowThreads(__tstate);
1289 if (PyErr_Occurred()) return NULL;
1290 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
1291 _resultobj = Py_BuildValue("s",_ptemp);
1292 {
1293 if (_obj1)
1294 delete _arg1;
1295 }
1296 return _resultobj;
1297 }
1298
1299 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
1300 static PyObject *_wrap_wxXmlResource_AttachUnknownControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1301 PyObject * _resultobj;
1302 bool _result;
1303 wxXmlResource * _arg0;
1304 wxString * _arg1;
1305 wxWindow * _arg2;
1306 wxWindow * _arg3 = (wxWindow *) NULL;
1307 PyObject * _argo0 = 0;
1308 PyObject * _obj1 = 0;
1309 PyObject * _argo2 = 0;
1310 PyObject * _argo3 = 0;
1311 char *_kwnames[] = { "self","name","control","parent", NULL };
1312
1313 self = self;
1314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
1315 return NULL;
1316 if (_argo0) {
1317 if (_argo0 == Py_None) { _arg0 = NULL; }
1318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_AttachUnknownControl. Expected _wxXmlResource_p.");
1320 return NULL;
1321 }
1322 }
1323 {
1324 _arg1 = wxString_in_helper(_obj1);
1325 if (_arg1 == NULL)
1326 return NULL;
1327 }
1328 if (_argo2) {
1329 if (_argo2 == Py_None) { _arg2 = NULL; }
1330 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1331 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1332 return NULL;
1333 }
1334 }
1335 if (_argo3) {
1336 if (_argo3 == Py_None) { _arg3 = NULL; }
1337 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
1338 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1339 return NULL;
1340 }
1341 }
1342 {
1343 PyThreadState* __tstate = wxPyBeginAllowThreads();
1344 _result = (bool )wxXmlResource_AttachUnknownControl(_arg0,*_arg1,_arg2,_arg3);
1345
1346 wxPyEndAllowThreads(__tstate);
1347 if (PyErr_Occurred()) return NULL;
1348 } _resultobj = Py_BuildValue("i",_result);
1349 {
1350 if (_obj1)
1351 delete _arg1;
1352 }
1353 return _resultobj;
1354 }
1355
1356 static PyObject *_wrap_wxXmlResource_GetXRCID(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject * _resultobj;
1358 int _result;
1359 wxString * _arg0;
1360 PyObject * _obj0 = 0;
1361 char *_kwnames[] = { "str_id", NULL };
1362
1363 self = self;
1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetXRCID",_kwnames,&_obj0))
1365 return NULL;
1366 {
1367 _arg0 = wxString_in_helper(_obj0);
1368 if (_arg0 == NULL)
1369 return NULL;
1370 }
1371 {
1372 PyThreadState* __tstate = wxPyBeginAllowThreads();
1373 _result = (int )wxXmlResource::GetXRCID(*_arg0);
1374
1375 wxPyEndAllowThreads(__tstate);
1376 if (PyErr_Occurred()) return NULL;
1377 } _resultobj = Py_BuildValue("i",_result);
1378 {
1379 if (_obj0)
1380 delete _arg0;
1381 }
1382 return _resultobj;
1383 }
1384
1385 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1386 static PyObject *_wrap_wxXmlResource_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1387 PyObject * _resultobj;
1388 long _result;
1389 wxXmlResource * _arg0;
1390 PyObject * _argo0 = 0;
1391 char *_kwnames[] = { "self", NULL };
1392
1393 self = self;
1394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetVersion",_kwnames,&_argo0))
1395 return NULL;
1396 if (_argo0) {
1397 if (_argo0 == Py_None) { _arg0 = NULL; }
1398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
1400 return NULL;
1401 }
1402 }
1403 {
1404 PyThreadState* __tstate = wxPyBeginAllowThreads();
1405 _result = (long )wxXmlResource_GetVersion(_arg0);
1406
1407 wxPyEndAllowThreads(__tstate);
1408 if (PyErr_Occurred()) return NULL;
1409 } _resultobj = Py_BuildValue("l",_result);
1410 return _resultobj;
1411 }
1412
1413 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1414 static PyObject *_wrap_wxXmlResource_CompareVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject * _resultobj;
1416 int _result;
1417 wxXmlResource * _arg0;
1418 int _arg1;
1419 int _arg2;
1420 int _arg3;
1421 int _arg4;
1422 PyObject * _argo0 = 0;
1423 char *_kwnames[] = { "self","major","minor","release","revision", NULL };
1424
1425 self = self;
1426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxXmlResource_CompareVersion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1427 return NULL;
1428 if (_argo0) {
1429 if (_argo0 == Py_None) { _arg0 = NULL; }
1430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
1432 return NULL;
1433 }
1434 }
1435 {
1436 PyThreadState* __tstate = wxPyBeginAllowThreads();
1437 _result = (int )wxXmlResource_CompareVersion(_arg0,_arg1,_arg2,_arg3,_arg4);
1438
1439 wxPyEndAllowThreads(__tstate);
1440 if (PyErr_Occurred()) return NULL;
1441 } _resultobj = Py_BuildValue("i",_result);
1442 return _resultobj;
1443 }
1444
1445 static PyObject *_wrap_wxXmlResource_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1446 PyObject * _resultobj;
1447 wxXmlResource * _result;
1448 char *_kwnames[] = { NULL };
1449 char _ptemp[128];
1450
1451 self = self;
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxXmlResource_Get",_kwnames))
1453 return NULL;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 _result = (wxXmlResource *)wxXmlResource::Get();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) return NULL;
1460 } if (_result) {
1461 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
1462 _resultobj = Py_BuildValue("s",_ptemp);
1463 } else {
1464 Py_INCREF(Py_None);
1465 _resultobj = Py_None;
1466 }
1467 return _resultobj;
1468 }
1469
1470 static PyObject *_wrap_wxXmlResource_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1471 PyObject * _resultobj;
1472 wxXmlResource * _result;
1473 wxXmlResource * _arg0;
1474 PyObject * _argo0 = 0;
1475 char *_kwnames[] = { "res", NULL };
1476 char _ptemp[128];
1477
1478 self = self;
1479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_Set",_kwnames,&_argo0))
1480 return NULL;
1481 if (_argo0) {
1482 if (_argo0 == Py_None) { _arg0 = NULL; }
1483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_Set. Expected _wxXmlResource_p.");
1485 return NULL;
1486 }
1487 }
1488 {
1489 PyThreadState* __tstate = wxPyBeginAllowThreads();
1490 _result = (wxXmlResource *)wxXmlResource::Set(_arg0);
1491
1492 wxPyEndAllowThreads(__tstate);
1493 if (PyErr_Occurred()) return NULL;
1494 } if (_result) {
1495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
1496 _resultobj = Py_BuildValue("s",_ptemp);
1497 } else {
1498 Py_INCREF(Py_None);
1499 _resultobj = Py_None;
1500 }
1501 return _resultobj;
1502 }
1503
1504 #define wxXmlResource_GetFlags(_swigobj) (_swigobj->GetFlags())
1505 static PyObject *_wrap_wxXmlResource_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject * _resultobj;
1507 int _result;
1508 wxXmlResource * _arg0;
1509 PyObject * _argo0 = 0;
1510 char *_kwnames[] = { "self", NULL };
1511
1512 self = self;
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetFlags",_kwnames,&_argo0))
1514 return NULL;
1515 if (_argo0) {
1516 if (_argo0 == Py_None) { _arg0 = NULL; }
1517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_GetFlags. Expected _wxXmlResource_p.");
1519 return NULL;
1520 }
1521 }
1522 {
1523 PyThreadState* __tstate = wxPyBeginAllowThreads();
1524 _result = (int )wxXmlResource_GetFlags(_arg0);
1525
1526 wxPyEndAllowThreads(__tstate);
1527 if (PyErr_Occurred()) return NULL;
1528 } _resultobj = Py_BuildValue("i",_result);
1529 return _resultobj;
1530 }
1531
1532 #define wxXmlResource_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
1533 static PyObject *_wrap_wxXmlResource_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
1534 PyObject * _resultobj;
1535 wxXmlResource * _arg0;
1536 int _arg1;
1537 PyObject * _argo0 = 0;
1538 char *_kwnames[] = { "self","flags", NULL };
1539
1540 self = self;
1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxXmlResource_SetFlags",_kwnames,&_argo0,&_arg1))
1542 return NULL;
1543 if (_argo0) {
1544 if (_argo0 == Py_None) { _arg0 = NULL; }
1545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_SetFlags. Expected _wxXmlResource_p.");
1547 return NULL;
1548 }
1549 }
1550 {
1551 PyThreadState* __tstate = wxPyBeginAllowThreads();
1552 wxXmlResource_SetFlags(_arg0,_arg1);
1553
1554 wxPyEndAllowThreads(__tstate);
1555 if (PyErr_Occurred()) return NULL;
1556 } Py_INCREF(Py_None);
1557 _resultobj = Py_None;
1558 return _resultobj;
1559 }
1560
1561 #define new_wxXmlSubclassFactory() (new wxPyXmlSubclassFactory())
1562 static PyObject *_wrap_new_wxXmlSubclassFactory(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject * _resultobj;
1564 wxPyXmlSubclassFactory * _result;
1565 char *_kwnames[] = { NULL };
1566 char _ptemp[128];
1567
1568 self = self;
1569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxXmlSubclassFactory",_kwnames))
1570 return NULL;
1571 {
1572 PyThreadState* __tstate = wxPyBeginAllowThreads();
1573 _result = (wxPyXmlSubclassFactory *)new_wxXmlSubclassFactory();
1574
1575 wxPyEndAllowThreads(__tstate);
1576 if (PyErr_Occurred()) return NULL;
1577 } if (_result) {
1578 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyXmlSubclassFactory_p");
1579 _resultobj = Py_BuildValue("s",_ptemp);
1580 } else {
1581 Py_INCREF(Py_None);
1582 _resultobj = Py_None;
1583 }
1584 return _resultobj;
1585 }
1586
1587 #define wxXmlSubclassFactory__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1588 static PyObject *_wrap_wxXmlSubclassFactory__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1589 PyObject * _resultobj;
1590 wxPyXmlSubclassFactory * _arg0;
1591 PyObject * _arg1;
1592 PyObject * _arg2;
1593 PyObject * _argo0 = 0;
1594 PyObject * _obj1 = 0;
1595 PyObject * _obj2 = 0;
1596 char *_kwnames[] = { "self","self","_class", NULL };
1597
1598 self = self;
1599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlSubclassFactory__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1600 return NULL;
1601 if (_argo0) {
1602 if (_argo0 == Py_None) { _arg0 = NULL; }
1603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlSubclassFactory_p")) {
1604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlSubclassFactory__setCallbackInfo. Expected _wxPyXmlSubclassFactory_p.");
1605 return NULL;
1606 }
1607 }
1608 {
1609 _arg1 = _obj1;
1610 }
1611 {
1612 _arg2 = _obj2;
1613 }
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 wxXmlSubclassFactory__setCallbackInfo(_arg0,_arg1,_arg2);
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) return NULL;
1620 } Py_INCREF(Py_None);
1621 _resultobj = Py_None;
1622 return _resultobj;
1623 }
1624
1625 #define new_wxXmlProperty(_swigarg0,_swigarg1,_swigarg2) (new wxXmlProperty(_swigarg0,_swigarg1,_swigarg2))
1626 static PyObject *_wrap_new_wxXmlProperty(PyObject *self, PyObject *args, PyObject *kwargs) {
1627 PyObject * _resultobj;
1628 wxXmlProperty * _result;
1629 wxString * _arg0 = (wxString *) &wxPyEmptyString;
1630 wxString * _arg1 = (wxString *) &wxPyEmptyString;
1631 wxXmlProperty * _arg2 = (wxXmlProperty *) NULL;
1632 PyObject * _obj0 = 0;
1633 PyObject * _obj1 = 0;
1634 PyObject * _argo2 = 0;
1635 char *_kwnames[] = { "name","value","next", NULL };
1636 char _ptemp[128];
1637
1638 self = self;
1639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxXmlProperty",_kwnames,&_obj0,&_obj1,&_argo2))
1640 return NULL;
1641 if (_obj0)
1642 {
1643 _arg0 = wxString_in_helper(_obj0);
1644 if (_arg0 == NULL)
1645 return NULL;
1646 }
1647 if (_obj1)
1648 {
1649 _arg1 = wxString_in_helper(_obj1);
1650 if (_arg1 == NULL)
1651 return NULL;
1652 }
1653 if (_argo2) {
1654 if (_argo2 == Py_None) { _arg2 = NULL; }
1655 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxXmlProperty_p")) {
1656 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxXmlProperty. Expected _wxXmlProperty_p.");
1657 return NULL;
1658 }
1659 }
1660 {
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 _result = (wxXmlProperty *)new_wxXmlProperty(*_arg0,*_arg1,_arg2);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) return NULL;
1666 } if (_result) {
1667 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlProperty_p");
1668 _resultobj = Py_BuildValue("s",_ptemp);
1669 } else {
1670 Py_INCREF(Py_None);
1671 _resultobj = Py_None;
1672 }
1673 {
1674 if (_obj0)
1675 delete _arg0;
1676 }
1677 {
1678 if (_obj1)
1679 delete _arg1;
1680 }
1681 return _resultobj;
1682 }
1683
1684 #define wxXmlProperty_GetName(_swigobj) (_swigobj->GetName())
1685 static PyObject *_wrap_wxXmlProperty_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1686 PyObject * _resultobj;
1687 wxString * _result;
1688 wxXmlProperty * _arg0;
1689 PyObject * _argo0 = 0;
1690 char *_kwnames[] = { "self", NULL };
1691
1692 self = self;
1693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlProperty_GetName",_kwnames,&_argo0))
1694 return NULL;
1695 if (_argo0) {
1696 if (_argo0 == Py_None) { _arg0 = NULL; }
1697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_GetName. Expected _wxXmlProperty_p.");
1699 return NULL;
1700 }
1701 }
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 _result = new wxString (wxXmlProperty_GetName(_arg0));
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) return NULL;
1708 }{
1709 #if wxUSE_UNICODE
1710 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1711 #else
1712 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1713 #endif
1714 }
1715 {
1716 delete _result;
1717 }
1718 return _resultobj;
1719 }
1720
1721 #define wxXmlProperty_GetValue(_swigobj) (_swigobj->GetValue())
1722 static PyObject *_wrap_wxXmlProperty_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject * _resultobj;
1724 wxString * _result;
1725 wxXmlProperty * _arg0;
1726 PyObject * _argo0 = 0;
1727 char *_kwnames[] = { "self", NULL };
1728
1729 self = self;
1730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlProperty_GetValue",_kwnames,&_argo0))
1731 return NULL;
1732 if (_argo0) {
1733 if (_argo0 == Py_None) { _arg0 = NULL; }
1734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_GetValue. Expected _wxXmlProperty_p.");
1736 return NULL;
1737 }
1738 }
1739 {
1740 PyThreadState* __tstate = wxPyBeginAllowThreads();
1741 _result = new wxString (wxXmlProperty_GetValue(_arg0));
1742
1743 wxPyEndAllowThreads(__tstate);
1744 if (PyErr_Occurred()) return NULL;
1745 }{
1746 #if wxUSE_UNICODE
1747 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1748 #else
1749 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1750 #endif
1751 }
1752 {
1753 delete _result;
1754 }
1755 return _resultobj;
1756 }
1757
1758 #define wxXmlProperty_GetNext(_swigobj) (_swigobj->GetNext())
1759 static PyObject *_wrap_wxXmlProperty_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 wxXmlProperty * _result;
1762 wxXmlProperty * _arg0;
1763 PyObject * _argo0 = 0;
1764 char *_kwnames[] = { "self", NULL };
1765 char _ptemp[128];
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlProperty_GetNext",_kwnames,&_argo0))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_GetNext. Expected _wxXmlProperty_p.");
1774 return NULL;
1775 }
1776 }
1777 {
1778 PyThreadState* __tstate = wxPyBeginAllowThreads();
1779 _result = (wxXmlProperty *)wxXmlProperty_GetNext(_arg0);
1780
1781 wxPyEndAllowThreads(__tstate);
1782 if (PyErr_Occurred()) return NULL;
1783 } if (_result) {
1784 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlProperty_p");
1785 _resultobj = Py_BuildValue("s",_ptemp);
1786 } else {
1787 Py_INCREF(Py_None);
1788 _resultobj = Py_None;
1789 }
1790 return _resultobj;
1791 }
1792
1793 #define wxXmlProperty_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
1794 static PyObject *_wrap_wxXmlProperty_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject * _resultobj;
1796 wxXmlProperty * _arg0;
1797 wxString * _arg1;
1798 PyObject * _argo0 = 0;
1799 PyObject * _obj1 = 0;
1800 char *_kwnames[] = { "self","name", NULL };
1801
1802 self = self;
1803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlProperty_SetName",_kwnames,&_argo0,&_obj1))
1804 return NULL;
1805 if (_argo0) {
1806 if (_argo0 == Py_None) { _arg0 = NULL; }
1807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_SetName. Expected _wxXmlProperty_p.");
1809 return NULL;
1810 }
1811 }
1812 {
1813 _arg1 = wxString_in_helper(_obj1);
1814 if (_arg1 == NULL)
1815 return NULL;
1816 }
1817 {
1818 PyThreadState* __tstate = wxPyBeginAllowThreads();
1819 wxXmlProperty_SetName(_arg0,*_arg1);
1820
1821 wxPyEndAllowThreads(__tstate);
1822 if (PyErr_Occurred()) return NULL;
1823 } Py_INCREF(Py_None);
1824 _resultobj = Py_None;
1825 {
1826 if (_obj1)
1827 delete _arg1;
1828 }
1829 return _resultobj;
1830 }
1831
1832 #define wxXmlProperty_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1833 static PyObject *_wrap_wxXmlProperty_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1834 PyObject * _resultobj;
1835 wxXmlProperty * _arg0;
1836 wxString * _arg1;
1837 PyObject * _argo0 = 0;
1838 PyObject * _obj1 = 0;
1839 char *_kwnames[] = { "self","value", NULL };
1840
1841 self = self;
1842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlProperty_SetValue",_kwnames,&_argo0,&_obj1))
1843 return NULL;
1844 if (_argo0) {
1845 if (_argo0 == Py_None) { _arg0 = NULL; }
1846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_SetValue. Expected _wxXmlProperty_p.");
1848 return NULL;
1849 }
1850 }
1851 {
1852 _arg1 = wxString_in_helper(_obj1);
1853 if (_arg1 == NULL)
1854 return NULL;
1855 }
1856 {
1857 PyThreadState* __tstate = wxPyBeginAllowThreads();
1858 wxXmlProperty_SetValue(_arg0,*_arg1);
1859
1860 wxPyEndAllowThreads(__tstate);
1861 if (PyErr_Occurred()) return NULL;
1862 } Py_INCREF(Py_None);
1863 _resultobj = Py_None;
1864 {
1865 if (_obj1)
1866 delete _arg1;
1867 }
1868 return _resultobj;
1869 }
1870
1871 #define wxXmlProperty_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
1872 static PyObject *_wrap_wxXmlProperty_SetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject * _resultobj;
1874 wxXmlProperty * _arg0;
1875 wxXmlProperty * _arg1;
1876 PyObject * _argo0 = 0;
1877 PyObject * _argo1 = 0;
1878 char *_kwnames[] = { "self","next", NULL };
1879
1880 self = self;
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlProperty_SetNext",_kwnames,&_argo0,&_argo1))
1882 return NULL;
1883 if (_argo0) {
1884 if (_argo0 == Py_None) { _arg0 = NULL; }
1885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlProperty_p")) {
1886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1887 return NULL;
1888 }
1889 }
1890 if (_argo1) {
1891 if (_argo1 == Py_None) { _arg1 = NULL; }
1892 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlProperty_p")) {
1893 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlProperty_SetNext. Expected _wxXmlProperty_p.");
1894 return NULL;
1895 }
1896 }
1897 {
1898 PyThreadState* __tstate = wxPyBeginAllowThreads();
1899 wxXmlProperty_SetNext(_arg0,_arg1);
1900
1901 wxPyEndAllowThreads(__tstate);
1902 if (PyErr_Occurred()) return NULL;
1903 } Py_INCREF(Py_None);
1904 _resultobj = Py_None;
1905 return _resultobj;
1906 }
1907
1908 #define new_wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1909 static PyObject *_wrap_new_wxXmlNode(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject * _resultobj;
1911 wxXmlNode * _result;
1912 wxXmlNode * _arg0 = (wxXmlNode *) NULL;
1913 wxXmlNodeType _arg1 = (wxXmlNodeType ) 0;
1914 wxString * _arg2 = (wxString *) &wxPyEmptyString;
1915 wxString * _arg3 = (wxString *) &wxPyEmptyString;
1916 wxXmlProperty * _arg4 = (wxXmlProperty *) NULL;
1917 wxXmlNode * _arg5 = (wxXmlNode *) NULL;
1918 PyObject * _argo0 = 0;
1919 PyObject * _obj2 = 0;
1920 PyObject * _obj3 = 0;
1921 PyObject * _argo4 = 0;
1922 PyObject * _argo5 = 0;
1923 char *_kwnames[] = { "parent","type","name","content","props","next", NULL };
1924 char _ptemp[128];
1925
1926 self = self;
1927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOOO:new_wxXmlNode",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_argo4,&_argo5))
1928 return NULL;
1929 if (_argo0) {
1930 if (_argo0 == Py_None) { _arg0 = NULL; }
1931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
1932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxXmlNode. Expected _wxXmlNode_p.");
1933 return NULL;
1934 }
1935 }
1936 if (_obj2)
1937 {
1938 _arg2 = wxString_in_helper(_obj2);
1939 if (_arg2 == NULL)
1940 return NULL;
1941 }
1942 if (_obj3)
1943 {
1944 _arg3 = wxString_in_helper(_obj3);
1945 if (_arg3 == NULL)
1946 return NULL;
1947 }
1948 if (_argo4) {
1949 if (_argo4 == Py_None) { _arg4 = NULL; }
1950 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxXmlProperty_p")) {
1951 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxXmlNode. Expected _wxXmlProperty_p.");
1952 return NULL;
1953 }
1954 }
1955 if (_argo5) {
1956 if (_argo5 == Py_None) { _arg5 = NULL; }
1957 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxXmlNode_p")) {
1958 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxXmlNode. Expected _wxXmlNode_p.");
1959 return NULL;
1960 }
1961 }
1962 {
1963 PyThreadState* __tstate = wxPyBeginAllowThreads();
1964 _result = (wxXmlNode *)new_wxXmlNode(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
1965
1966 wxPyEndAllowThreads(__tstate);
1967 if (PyErr_Occurred()) return NULL;
1968 } if (_result) {
1969 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
1970 _resultobj = Py_BuildValue("s",_ptemp);
1971 } else {
1972 Py_INCREF(Py_None);
1973 _resultobj = Py_None;
1974 }
1975 {
1976 if (_obj2)
1977 delete _arg2;
1978 }
1979 {
1980 if (_obj3)
1981 delete _arg3;
1982 }
1983 return _resultobj;
1984 }
1985
1986 #define delete_wxXmlNode(_swigobj) (delete _swigobj)
1987 static PyObject *_wrap_delete_wxXmlNode(PyObject *self, PyObject *args, PyObject *kwargs) {
1988 PyObject * _resultobj;
1989 wxXmlNode * _arg0;
1990 PyObject * _argo0 = 0;
1991 char *_kwnames[] = { "self", NULL };
1992
1993 self = self;
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxXmlNode",_kwnames,&_argo0))
1995 return NULL;
1996 if (_argo0) {
1997 if (_argo0 == Py_None) { _arg0 = NULL; }
1998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
1999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxXmlNode. Expected _wxXmlNode_p.");
2000 return NULL;
2001 }
2002 }
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 delete_wxXmlNode(_arg0);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) return NULL;
2009 } Py_INCREF(Py_None);
2010 _resultobj = Py_None;
2011 return _resultobj;
2012 }
2013
2014 #define new_wxXmlNodeEasy(_swigarg0,_swigarg1,_swigarg2) (new wxXmlNode(_swigarg0,_swigarg1,_swigarg2))
2015 static PyObject *_wrap_new_wxXmlNodeEasy(PyObject *self, PyObject *args, PyObject *kwargs) {
2016 PyObject * _resultobj;
2017 wxXmlNode * _result;
2018 wxXmlNodeType _arg0;
2019 wxString * _arg1;
2020 wxString * _arg2 = (wxString *) &wxPyEmptyString;
2021 PyObject * _obj1 = 0;
2022 PyObject * _obj2 = 0;
2023 char *_kwnames[] = { "type","name","content", NULL };
2024 char _ptemp[128];
2025
2026 self = self;
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxXmlNodeEasy",_kwnames,&_arg0,&_obj1,&_obj2))
2028 return NULL;
2029 {
2030 _arg1 = wxString_in_helper(_obj1);
2031 if (_arg1 == NULL)
2032 return NULL;
2033 }
2034 if (_obj2)
2035 {
2036 _arg2 = wxString_in_helper(_obj2);
2037 if (_arg2 == NULL)
2038 return NULL;
2039 }
2040 {
2041 PyThreadState* __tstate = wxPyBeginAllowThreads();
2042 _result = (wxXmlNode *)new_wxXmlNodeEasy(_arg0,*_arg1,*_arg2);
2043
2044 wxPyEndAllowThreads(__tstate);
2045 if (PyErr_Occurred()) return NULL;
2046 } if (_result) {
2047 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
2048 _resultobj = Py_BuildValue("s",_ptemp);
2049 } else {
2050 Py_INCREF(Py_None);
2051 _resultobj = Py_None;
2052 }
2053 {
2054 if (_obj1)
2055 delete _arg1;
2056 }
2057 {
2058 if (_obj2)
2059 delete _arg2;
2060 }
2061 return _resultobj;
2062 }
2063
2064 #define wxXmlNode_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0))
2065 static PyObject *_wrap_wxXmlNode_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
2066 PyObject * _resultobj;
2067 wxXmlNode * _arg0;
2068 wxXmlNode * _arg1;
2069 PyObject * _argo0 = 0;
2070 PyObject * _argo1 = 0;
2071 char *_kwnames[] = { "self","child", NULL };
2072
2073 self = self;
2074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_AddChild",_kwnames,&_argo0,&_argo1))
2075 return NULL;
2076 if (_argo0) {
2077 if (_argo0 == Py_None) { _arg0 = NULL; }
2078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
2080 return NULL;
2081 }
2082 }
2083 if (_argo1) {
2084 if (_argo1 == Py_None) { _arg1 = NULL; }
2085 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2086 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_AddChild. Expected _wxXmlNode_p.");
2087 return NULL;
2088 }
2089 }
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 wxXmlNode_AddChild(_arg0,_arg1);
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) return NULL;
2096 } Py_INCREF(Py_None);
2097 _resultobj = Py_None;
2098 return _resultobj;
2099 }
2100
2101 #define wxXmlNode_InsertChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertChild(_swigarg0,_swigarg1))
2102 static PyObject *_wrap_wxXmlNode_InsertChild(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject * _resultobj;
2104 wxXmlNode * _arg0;
2105 wxXmlNode * _arg1;
2106 wxXmlNode * _arg2;
2107 PyObject * _argo0 = 0;
2108 PyObject * _argo1 = 0;
2109 PyObject * _argo2 = 0;
2110 char *_kwnames[] = { "self","child","before_node", NULL };
2111
2112 self = self;
2113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlNode_InsertChild",_kwnames,&_argo0,&_argo1,&_argo2))
2114 return NULL;
2115 if (_argo0) {
2116 if (_argo0 == Py_None) { _arg0 = NULL; }
2117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2119 return NULL;
2120 }
2121 }
2122 if (_argo1) {
2123 if (_argo1 == Py_None) { _arg1 = NULL; }
2124 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2125 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2126 return NULL;
2127 }
2128 }
2129 if (_argo2) {
2130 if (_argo2 == Py_None) { _arg2 = NULL; }
2131 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxXmlNode_p")) {
2132 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlNode_InsertChild. Expected _wxXmlNode_p.");
2133 return NULL;
2134 }
2135 }
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 wxXmlNode_InsertChild(_arg0,_arg1,_arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) return NULL;
2142 } Py_INCREF(Py_None);
2143 _resultobj = Py_None;
2144 return _resultobj;
2145 }
2146
2147 #define wxXmlNode_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
2148 static PyObject *_wrap_wxXmlNode_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject * _resultobj;
2150 bool _result;
2151 wxXmlNode * _arg0;
2152 wxXmlNode * _arg1;
2153 PyObject * _argo0 = 0;
2154 PyObject * _argo1 = 0;
2155 char *_kwnames[] = { "self","child", NULL };
2156
2157 self = self;
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_RemoveChild",_kwnames,&_argo0,&_argo1))
2159 return NULL;
2160 if (_argo0) {
2161 if (_argo0 == Py_None) { _arg0 = NULL; }
2162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2164 return NULL;
2165 }
2166 }
2167 if (_argo1) {
2168 if (_argo1 == Py_None) { _arg1 = NULL; }
2169 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2170 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_RemoveChild. Expected _wxXmlNode_p.");
2171 return NULL;
2172 }
2173 }
2174 {
2175 PyThreadState* __tstate = wxPyBeginAllowThreads();
2176 _result = (bool )wxXmlNode_RemoveChild(_arg0,_arg1);
2177
2178 wxPyEndAllowThreads(__tstate);
2179 if (PyErr_Occurred()) return NULL;
2180 } _resultobj = Py_BuildValue("i",_result);
2181 return _resultobj;
2182 }
2183
2184 #define wxXmlNode_AddProperty(_swigobj,_swigarg0) (_swigobj->AddProperty(_swigarg0))
2185 static PyObject *_wrap_wxXmlNode_AddProperty(PyObject *self, PyObject *args, PyObject *kwargs) {
2186 PyObject * _resultobj;
2187 wxXmlNode * _arg0;
2188 wxXmlProperty * _arg1;
2189 PyObject * _argo0 = 0;
2190 PyObject * _argo1 = 0;
2191 char *_kwnames[] = { "self","prop", NULL };
2192
2193 self = self;
2194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_AddProperty",_kwnames,&_argo0,&_argo1))
2195 return NULL;
2196 if (_argo0) {
2197 if (_argo0 == Py_None) { _arg0 = NULL; }
2198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_AddProperty. Expected _wxXmlNode_p.");
2200 return NULL;
2201 }
2202 }
2203 if (_argo1) {
2204 if (_argo1 == Py_None) { _arg1 = NULL; }
2205 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlProperty_p")) {
2206 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_AddProperty. Expected _wxXmlProperty_p.");
2207 return NULL;
2208 }
2209 }
2210 {
2211 PyThreadState* __tstate = wxPyBeginAllowThreads();
2212 wxXmlNode_AddProperty(_arg0,_arg1);
2213
2214 wxPyEndAllowThreads(__tstate);
2215 if (PyErr_Occurred()) return NULL;
2216 } Py_INCREF(Py_None);
2217 _resultobj = Py_None;
2218 return _resultobj;
2219 }
2220
2221 #define wxXmlNode_AddPropertyName(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddProperty(_swigarg0,_swigarg1))
2222 static PyObject *_wrap_wxXmlNode_AddPropertyName(PyObject *self, PyObject *args, PyObject *kwargs) {
2223 PyObject * _resultobj;
2224 wxXmlNode * _arg0;
2225 wxString * _arg1;
2226 wxString * _arg2;
2227 PyObject * _argo0 = 0;
2228 PyObject * _obj1 = 0;
2229 PyObject * _obj2 = 0;
2230 char *_kwnames[] = { "self","name","value", NULL };
2231
2232 self = self;
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlNode_AddPropertyName",_kwnames,&_argo0,&_obj1,&_obj2))
2234 return NULL;
2235 if (_argo0) {
2236 if (_argo0 == Py_None) { _arg0 = NULL; }
2237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_AddPropertyName. Expected _wxXmlNode_p.");
2239 return NULL;
2240 }
2241 }
2242 {
2243 _arg1 = wxString_in_helper(_obj1);
2244 if (_arg1 == NULL)
2245 return NULL;
2246 }
2247 {
2248 _arg2 = wxString_in_helper(_obj2);
2249 if (_arg2 == NULL)
2250 return NULL;
2251 }
2252 {
2253 PyThreadState* __tstate = wxPyBeginAllowThreads();
2254 wxXmlNode_AddPropertyName(_arg0,*_arg1,*_arg2);
2255
2256 wxPyEndAllowThreads(__tstate);
2257 if (PyErr_Occurred()) return NULL;
2258 } Py_INCREF(Py_None);
2259 _resultobj = Py_None;
2260 {
2261 if (_obj1)
2262 delete _arg1;
2263 }
2264 {
2265 if (_obj2)
2266 delete _arg2;
2267 }
2268 return _resultobj;
2269 }
2270
2271 #define wxXmlNode_DeleteProperty(_swigobj,_swigarg0) (_swigobj->DeleteProperty(_swigarg0))
2272 static PyObject *_wrap_wxXmlNode_DeleteProperty(PyObject *self, PyObject *args, PyObject *kwargs) {
2273 PyObject * _resultobj;
2274 bool _result;
2275 wxXmlNode * _arg0;
2276 wxString * _arg1;
2277 PyObject * _argo0 = 0;
2278 PyObject * _obj1 = 0;
2279 char *_kwnames[] = { "self","name", NULL };
2280
2281 self = self;
2282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_DeleteProperty",_kwnames,&_argo0,&_obj1))
2283 return NULL;
2284 if (_argo0) {
2285 if (_argo0 == Py_None) { _arg0 = NULL; }
2286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_DeleteProperty. Expected _wxXmlNode_p.");
2288 return NULL;
2289 }
2290 }
2291 {
2292 _arg1 = wxString_in_helper(_obj1);
2293 if (_arg1 == NULL)
2294 return NULL;
2295 }
2296 {
2297 PyThreadState* __tstate = wxPyBeginAllowThreads();
2298 _result = (bool )wxXmlNode_DeleteProperty(_arg0,*_arg1);
2299
2300 wxPyEndAllowThreads(__tstate);
2301 if (PyErr_Occurred()) return NULL;
2302 } _resultobj = Py_BuildValue("i",_result);
2303 {
2304 if (_obj1)
2305 delete _arg1;
2306 }
2307 return _resultobj;
2308 }
2309
2310 #define wxXmlNode_GetType(_swigobj) (_swigobj->GetType())
2311 static PyObject *_wrap_wxXmlNode_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
2312 PyObject * _resultobj;
2313 wxXmlNodeType _result;
2314 wxXmlNode * _arg0;
2315 PyObject * _argo0 = 0;
2316 char *_kwnames[] = { "self", NULL };
2317
2318 self = self;
2319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetType",_kwnames,&_argo0))
2320 return NULL;
2321 if (_argo0) {
2322 if (_argo0 == Py_None) { _arg0 = NULL; }
2323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetType. Expected _wxXmlNode_p.");
2325 return NULL;
2326 }
2327 }
2328 {
2329 PyThreadState* __tstate = wxPyBeginAllowThreads();
2330 _result = (wxXmlNodeType )wxXmlNode_GetType(_arg0);
2331
2332 wxPyEndAllowThreads(__tstate);
2333 if (PyErr_Occurred()) return NULL;
2334 } _resultobj = Py_BuildValue("i",_result);
2335 return _resultobj;
2336 }
2337
2338 #define wxXmlNode_GetName(_swigobj) (_swigobj->GetName())
2339 static PyObject *_wrap_wxXmlNode_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
2340 PyObject * _resultobj;
2341 wxString * _result;
2342 wxXmlNode * _arg0;
2343 PyObject * _argo0 = 0;
2344 char *_kwnames[] = { "self", NULL };
2345
2346 self = self;
2347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetName",_kwnames,&_argo0))
2348 return NULL;
2349 if (_argo0) {
2350 if (_argo0 == Py_None) { _arg0 = NULL; }
2351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetName. Expected _wxXmlNode_p.");
2353 return NULL;
2354 }
2355 }
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 _result = new wxString (wxXmlNode_GetName(_arg0));
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) return NULL;
2362 }{
2363 #if wxUSE_UNICODE
2364 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2365 #else
2366 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2367 #endif
2368 }
2369 {
2370 delete _result;
2371 }
2372 return _resultobj;
2373 }
2374
2375 #define wxXmlNode_GetContent(_swigobj) (_swigobj->GetContent())
2376 static PyObject *_wrap_wxXmlNode_GetContent(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject * _resultobj;
2378 wxString * _result;
2379 wxXmlNode * _arg0;
2380 PyObject * _argo0 = 0;
2381 char *_kwnames[] = { "self", NULL };
2382
2383 self = self;
2384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetContent",_kwnames,&_argo0))
2385 return NULL;
2386 if (_argo0) {
2387 if (_argo0 == Py_None) { _arg0 = NULL; }
2388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetContent. Expected _wxXmlNode_p.");
2390 return NULL;
2391 }
2392 }
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 _result = new wxString (wxXmlNode_GetContent(_arg0));
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) return NULL;
2399 }{
2400 #if wxUSE_UNICODE
2401 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2402 #else
2403 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2404 #endif
2405 }
2406 {
2407 delete _result;
2408 }
2409 return _resultobj;
2410 }
2411
2412 #define wxXmlNode_GetParent(_swigobj) (_swigobj->GetParent())
2413 static PyObject *_wrap_wxXmlNode_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2414 PyObject * _resultobj;
2415 wxXmlNode * _result;
2416 wxXmlNode * _arg0;
2417 PyObject * _argo0 = 0;
2418 char *_kwnames[] = { "self", NULL };
2419 char _ptemp[128];
2420
2421 self = self;
2422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetParent",_kwnames,&_argo0))
2423 return NULL;
2424 if (_argo0) {
2425 if (_argo0 == Py_None) { _arg0 = NULL; }
2426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetParent. Expected _wxXmlNode_p.");
2428 return NULL;
2429 }
2430 }
2431 {
2432 PyThreadState* __tstate = wxPyBeginAllowThreads();
2433 _result = (wxXmlNode *)wxXmlNode_GetParent(_arg0);
2434
2435 wxPyEndAllowThreads(__tstate);
2436 if (PyErr_Occurred()) return NULL;
2437 } if (_result) {
2438 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
2439 _resultobj = Py_BuildValue("s",_ptemp);
2440 } else {
2441 Py_INCREF(Py_None);
2442 _resultobj = Py_None;
2443 }
2444 return _resultobj;
2445 }
2446
2447 #define wxXmlNode_GetNext(_swigobj) (_swigobj->GetNext())
2448 static PyObject *_wrap_wxXmlNode_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject * _resultobj;
2450 wxXmlNode * _result;
2451 wxXmlNode * _arg0;
2452 PyObject * _argo0 = 0;
2453 char *_kwnames[] = { "self", NULL };
2454 char _ptemp[128];
2455
2456 self = self;
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetNext",_kwnames,&_argo0))
2458 return NULL;
2459 if (_argo0) {
2460 if (_argo0 == Py_None) { _arg0 = NULL; }
2461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetNext. Expected _wxXmlNode_p.");
2463 return NULL;
2464 }
2465 }
2466 {
2467 PyThreadState* __tstate = wxPyBeginAllowThreads();
2468 _result = (wxXmlNode *)wxXmlNode_GetNext(_arg0);
2469
2470 wxPyEndAllowThreads(__tstate);
2471 if (PyErr_Occurred()) return NULL;
2472 } if (_result) {
2473 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
2474 _resultobj = Py_BuildValue("s",_ptemp);
2475 } else {
2476 Py_INCREF(Py_None);
2477 _resultobj = Py_None;
2478 }
2479 return _resultobj;
2480 }
2481
2482 #define wxXmlNode_GetChildren(_swigobj) (_swigobj->GetChildren())
2483 static PyObject *_wrap_wxXmlNode_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
2484 PyObject * _resultobj;
2485 wxXmlNode * _result;
2486 wxXmlNode * _arg0;
2487 PyObject * _argo0 = 0;
2488 char *_kwnames[] = { "self", NULL };
2489 char _ptemp[128];
2490
2491 self = self;
2492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetChildren",_kwnames,&_argo0))
2493 return NULL;
2494 if (_argo0) {
2495 if (_argo0 == Py_None) { _arg0 = NULL; }
2496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetChildren. Expected _wxXmlNode_p.");
2498 return NULL;
2499 }
2500 }
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 _result = (wxXmlNode *)wxXmlNode_GetChildren(_arg0);
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) return NULL;
2507 } if (_result) {
2508 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
2509 _resultobj = Py_BuildValue("s",_ptemp);
2510 } else {
2511 Py_INCREF(Py_None);
2512 _resultobj = Py_None;
2513 }
2514 return _resultobj;
2515 }
2516
2517 #define wxXmlNode_GetProperties(_swigobj) (_swigobj->GetProperties())
2518 static PyObject *_wrap_wxXmlNode_GetProperties(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject * _resultobj;
2520 wxXmlProperty * _result;
2521 wxXmlNode * _arg0;
2522 PyObject * _argo0 = 0;
2523 char *_kwnames[] = { "self", NULL };
2524 char _ptemp[128];
2525
2526 self = self;
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlNode_GetProperties",_kwnames,&_argo0))
2528 return NULL;
2529 if (_argo0) {
2530 if (_argo0 == Py_None) { _arg0 = NULL; }
2531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetProperties. Expected _wxXmlNode_p.");
2533 return NULL;
2534 }
2535 }
2536 {
2537 PyThreadState* __tstate = wxPyBeginAllowThreads();
2538 _result = (wxXmlProperty *)wxXmlNode_GetProperties(_arg0);
2539
2540 wxPyEndAllowThreads(__tstate);
2541 if (PyErr_Occurred()) return NULL;
2542 } if (_result) {
2543 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlProperty_p");
2544 _resultobj = Py_BuildValue("s",_ptemp);
2545 } else {
2546 Py_INCREF(Py_None);
2547 _resultobj = Py_None;
2548 }
2549 return _resultobj;
2550 }
2551
2552 #define wxXmlNode_GetPropVal(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPropVal(_swigarg0,_swigarg1))
2553 static PyObject *_wrap_wxXmlNode_GetPropVal(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject * _resultobj;
2555 wxString * _result;
2556 wxXmlNode * _arg0;
2557 wxString * _arg1;
2558 wxString * _arg2;
2559 PyObject * _argo0 = 0;
2560 PyObject * _obj1 = 0;
2561 PyObject * _obj2 = 0;
2562 char *_kwnames[] = { "self","propName","defaultVal", NULL };
2563
2564 self = self;
2565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlNode_GetPropVal",_kwnames,&_argo0,&_obj1,&_obj2))
2566 return NULL;
2567 if (_argo0) {
2568 if (_argo0 == Py_None) { _arg0 = NULL; }
2569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_GetPropVal. Expected _wxXmlNode_p.");
2571 return NULL;
2572 }
2573 }
2574 {
2575 _arg1 = wxString_in_helper(_obj1);
2576 if (_arg1 == NULL)
2577 return NULL;
2578 }
2579 {
2580 _arg2 = wxString_in_helper(_obj2);
2581 if (_arg2 == NULL)
2582 return NULL;
2583 }
2584 {
2585 PyThreadState* __tstate = wxPyBeginAllowThreads();
2586 _result = new wxString (wxXmlNode_GetPropVal(_arg0,*_arg1,*_arg2));
2587
2588 wxPyEndAllowThreads(__tstate);
2589 if (PyErr_Occurred()) return NULL;
2590 }{
2591 #if wxUSE_UNICODE
2592 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2593 #else
2594 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2595 #endif
2596 }
2597 {
2598 if (_obj1)
2599 delete _arg1;
2600 }
2601 {
2602 if (_obj2)
2603 delete _arg2;
2604 }
2605 {
2606 delete _result;
2607 }
2608 return _resultobj;
2609 }
2610
2611 #define wxXmlNode_HasProp(_swigobj,_swigarg0) (_swigobj->HasProp(_swigarg0))
2612 static PyObject *_wrap_wxXmlNode_HasProp(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject * _resultobj;
2614 bool _result;
2615 wxXmlNode * _arg0;
2616 wxString * _arg1;
2617 PyObject * _argo0 = 0;
2618 PyObject * _obj1 = 0;
2619 char *_kwnames[] = { "self","propName", NULL };
2620
2621 self = self;
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_HasProp",_kwnames,&_argo0,&_obj1))
2623 return NULL;
2624 if (_argo0) {
2625 if (_argo0 == Py_None) { _arg0 = NULL; }
2626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_HasProp. Expected _wxXmlNode_p.");
2628 return NULL;
2629 }
2630 }
2631 {
2632 _arg1 = wxString_in_helper(_obj1);
2633 if (_arg1 == NULL)
2634 return NULL;
2635 }
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 _result = (bool )wxXmlNode_HasProp(_arg0,*_arg1);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) return NULL;
2642 } _resultobj = Py_BuildValue("i",_result);
2643 {
2644 if (_obj1)
2645 delete _arg1;
2646 }
2647 return _resultobj;
2648 }
2649
2650 #define wxXmlNode_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
2651 static PyObject *_wrap_wxXmlNode_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
2652 PyObject * _resultobj;
2653 wxXmlNode * _arg0;
2654 wxXmlNodeType _arg1;
2655 PyObject * _argo0 = 0;
2656 char *_kwnames[] = { "self","type", NULL };
2657
2658 self = self;
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxXmlNode_SetType",_kwnames,&_argo0,&_arg1))
2660 return NULL;
2661 if (_argo0) {
2662 if (_argo0 == Py_None) { _arg0 = NULL; }
2663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetType. Expected _wxXmlNode_p.");
2665 return NULL;
2666 }
2667 }
2668 {
2669 PyThreadState* __tstate = wxPyBeginAllowThreads();
2670 wxXmlNode_SetType(_arg0,_arg1);
2671
2672 wxPyEndAllowThreads(__tstate);
2673 if (PyErr_Occurred()) return NULL;
2674 } Py_INCREF(Py_None);
2675 _resultobj = Py_None;
2676 return _resultobj;
2677 }
2678
2679 #define wxXmlNode_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
2680 static PyObject *_wrap_wxXmlNode_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject * _resultobj;
2682 wxXmlNode * _arg0;
2683 wxString * _arg1;
2684 PyObject * _argo0 = 0;
2685 PyObject * _obj1 = 0;
2686 char *_kwnames[] = { "self","name", NULL };
2687
2688 self = self;
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetName",_kwnames,&_argo0,&_obj1))
2690 return NULL;
2691 if (_argo0) {
2692 if (_argo0 == Py_None) { _arg0 = NULL; }
2693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetName. Expected _wxXmlNode_p.");
2695 return NULL;
2696 }
2697 }
2698 {
2699 _arg1 = wxString_in_helper(_obj1);
2700 if (_arg1 == NULL)
2701 return NULL;
2702 }
2703 {
2704 PyThreadState* __tstate = wxPyBeginAllowThreads();
2705 wxXmlNode_SetName(_arg0,*_arg1);
2706
2707 wxPyEndAllowThreads(__tstate);
2708 if (PyErr_Occurred()) return NULL;
2709 } Py_INCREF(Py_None);
2710 _resultobj = Py_None;
2711 {
2712 if (_obj1)
2713 delete _arg1;
2714 }
2715 return _resultobj;
2716 }
2717
2718 #define wxXmlNode_SetContent(_swigobj,_swigarg0) (_swigobj->SetContent(_swigarg0))
2719 static PyObject *_wrap_wxXmlNode_SetContent(PyObject *self, PyObject *args, PyObject *kwargs) {
2720 PyObject * _resultobj;
2721 wxXmlNode * _arg0;
2722 wxString * _arg1;
2723 PyObject * _argo0 = 0;
2724 PyObject * _obj1 = 0;
2725 char *_kwnames[] = { "self","con", NULL };
2726
2727 self = self;
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetContent",_kwnames,&_argo0,&_obj1))
2729 return NULL;
2730 if (_argo0) {
2731 if (_argo0 == Py_None) { _arg0 = NULL; }
2732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetContent. Expected _wxXmlNode_p.");
2734 return NULL;
2735 }
2736 }
2737 {
2738 _arg1 = wxString_in_helper(_obj1);
2739 if (_arg1 == NULL)
2740 return NULL;
2741 }
2742 {
2743 PyThreadState* __tstate = wxPyBeginAllowThreads();
2744 wxXmlNode_SetContent(_arg0,*_arg1);
2745
2746 wxPyEndAllowThreads(__tstate);
2747 if (PyErr_Occurred()) return NULL;
2748 } Py_INCREF(Py_None);
2749 _resultobj = Py_None;
2750 {
2751 if (_obj1)
2752 delete _arg1;
2753 }
2754 return _resultobj;
2755 }
2756
2757 #define wxXmlNode_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
2758 static PyObject *_wrap_wxXmlNode_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject * _resultobj;
2760 wxXmlNode * _arg0;
2761 wxXmlNode * _arg1;
2762 PyObject * _argo0 = 0;
2763 PyObject * _argo1 = 0;
2764 char *_kwnames[] = { "self","parent", NULL };
2765
2766 self = self;
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetParent",_kwnames,&_argo0,&_argo1))
2768 return NULL;
2769 if (_argo0) {
2770 if (_argo0 == Py_None) { _arg0 = NULL; }
2771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2773 return NULL;
2774 }
2775 }
2776 if (_argo1) {
2777 if (_argo1 == Py_None) { _arg1 = NULL; }
2778 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2779 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_SetParent. Expected _wxXmlNode_p.");
2780 return NULL;
2781 }
2782 }
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 wxXmlNode_SetParent(_arg0,_arg1);
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) return NULL;
2789 } Py_INCREF(Py_None);
2790 _resultobj = Py_None;
2791 return _resultobj;
2792 }
2793
2794 #define wxXmlNode_SetNext(_swigobj,_swigarg0) (_swigobj->SetNext(_swigarg0))
2795 static PyObject *_wrap_wxXmlNode_SetNext(PyObject *self, PyObject *args, PyObject *kwargs) {
2796 PyObject * _resultobj;
2797 wxXmlNode * _arg0;
2798 wxXmlNode * _arg1;
2799 PyObject * _argo0 = 0;
2800 PyObject * _argo1 = 0;
2801 char *_kwnames[] = { "self","next", NULL };
2802
2803 self = self;
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetNext",_kwnames,&_argo0,&_argo1))
2805 return NULL;
2806 if (_argo0) {
2807 if (_argo0 == Py_None) { _arg0 = NULL; }
2808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2810 return NULL;
2811 }
2812 }
2813 if (_argo1) {
2814 if (_argo1 == Py_None) { _arg1 = NULL; }
2815 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2816 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_SetNext. Expected _wxXmlNode_p.");
2817 return NULL;
2818 }
2819 }
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 wxXmlNode_SetNext(_arg0,_arg1);
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) return NULL;
2826 } Py_INCREF(Py_None);
2827 _resultobj = Py_None;
2828 return _resultobj;
2829 }
2830
2831 #define wxXmlNode_SetChildren(_swigobj,_swigarg0) (_swigobj->SetChildren(_swigarg0))
2832 static PyObject *_wrap_wxXmlNode_SetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
2833 PyObject * _resultobj;
2834 wxXmlNode * _arg0;
2835 wxXmlNode * _arg1;
2836 PyObject * _argo0 = 0;
2837 PyObject * _argo1 = 0;
2838 char *_kwnames[] = { "self","child", NULL };
2839
2840 self = self;
2841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetChildren",_kwnames,&_argo0,&_argo1))
2842 return NULL;
2843 if (_argo0) {
2844 if (_argo0 == Py_None) { _arg0 = NULL; }
2845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2847 return NULL;
2848 }
2849 }
2850 if (_argo1) {
2851 if (_argo1 == Py_None) { _arg1 = NULL; }
2852 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
2853 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_SetChildren. Expected _wxXmlNode_p.");
2854 return NULL;
2855 }
2856 }
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 wxXmlNode_SetChildren(_arg0,_arg1);
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) return NULL;
2863 } Py_INCREF(Py_None);
2864 _resultobj = Py_None;
2865 return _resultobj;
2866 }
2867
2868 #define wxXmlNode_SetProperties(_swigobj,_swigarg0) (_swigobj->SetProperties(_swigarg0))
2869 static PyObject *_wrap_wxXmlNode_SetProperties(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject * _resultobj;
2871 wxXmlNode * _arg0;
2872 wxXmlProperty * _arg1;
2873 PyObject * _argo0 = 0;
2874 PyObject * _argo1 = 0;
2875 char *_kwnames[] = { "self","prop", NULL };
2876
2877 self = self;
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlNode_SetProperties",_kwnames,&_argo0,&_argo1))
2879 return NULL;
2880 if (_argo0) {
2881 if (_argo0 == Py_None) { _arg0 = NULL; }
2882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlNode_p")) {
2883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlNode_SetProperties. Expected _wxXmlNode_p.");
2884 return NULL;
2885 }
2886 }
2887 if (_argo1) {
2888 if (_argo1 == Py_None) { _arg1 = NULL; }
2889 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlProperty_p")) {
2890 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlNode_SetProperties. Expected _wxXmlProperty_p.");
2891 return NULL;
2892 }
2893 }
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 wxXmlNode_SetProperties(_arg0,_arg1);
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) return NULL;
2900 } Py_INCREF(Py_None);
2901 _resultobj = Py_None;
2902 return _resultobj;
2903 }
2904
2905 static void *SwigwxXmlDocumentTowxObject(void *ptr) {
2906 wxXmlDocument *src;
2907 wxObject *dest;
2908 src = (wxXmlDocument *) ptr;
2909 dest = (wxObject *) src;
2910 return (void *) dest;
2911 }
2912
2913 #define new_wxXmlDocument(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2914 static PyObject *_wrap_new_wxXmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
2915 PyObject * _resultobj;
2916 wxXmlDocument * _result;
2917 wxString * _arg0;
2918 wxString * _arg1 = (wxString *) &wxPyUTF8String;
2919 PyObject * _obj0 = 0;
2920 PyObject * _obj1 = 0;
2921 char *_kwnames[] = { "filename","encoding", NULL };
2922 char _ptemp[128];
2923
2924 self = self;
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxXmlDocument",_kwnames,&_obj0,&_obj1))
2926 return NULL;
2927 {
2928 _arg0 = wxString_in_helper(_obj0);
2929 if (_arg0 == NULL)
2930 return NULL;
2931 }
2932 if (_obj1)
2933 {
2934 _arg1 = wxString_in_helper(_obj1);
2935 if (_arg1 == NULL)
2936 return NULL;
2937 }
2938 {
2939 PyThreadState* __tstate = wxPyBeginAllowThreads();
2940 _result = (wxXmlDocument *)new_wxXmlDocument(*_arg0,*_arg1);
2941
2942 wxPyEndAllowThreads(__tstate);
2943 if (PyErr_Occurred()) return NULL;
2944 } if (_result) {
2945 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlDocument_p");
2946 _resultobj = Py_BuildValue("s",_ptemp);
2947 } else {
2948 Py_INCREF(Py_None);
2949 _resultobj = Py_None;
2950 }
2951 {
2952 if (_obj0)
2953 delete _arg0;
2954 }
2955 {
2956 if (_obj1)
2957 delete _arg1;
2958 }
2959 return _resultobj;
2960 }
2961
2962 #define new_wxXmlDocumentFromStream(_swigarg0,_swigarg1) (new wxXmlDocument(_swigarg0,_swigarg1))
2963 static PyObject *_wrap_new_wxXmlDocumentFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
2964 PyObject * _resultobj;
2965 wxXmlDocument * _result;
2966 wxInputStream * _arg0;
2967 wxString * _arg1 = (wxString *) &wxPyUTF8String;
2968 wxPyInputStream * temp;
2969 bool created;
2970 PyObject * _obj0 = 0;
2971 PyObject * _obj1 = 0;
2972 char *_kwnames[] = { "stream","encoding", NULL };
2973 char _ptemp[128];
2974
2975 self = self;
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxXmlDocumentFromStream",_kwnames,&_obj0,&_obj1))
2977 return NULL;
2978 {
2979 if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) {
2980 _arg0 = temp->m_wxis;
2981 created = FALSE;
2982 } else {
2983 _arg0 = wxPyCBInputStream_create(_obj0, FALSE);
2984 if (_arg0 == NULL) {
2985 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
2986 return NULL;
2987 }
2988 created = TRUE;
2989 }
2990 }
2991 if (_obj1)
2992 {
2993 _arg1 = wxString_in_helper(_obj1);
2994 if (_arg1 == NULL)
2995 return NULL;
2996 }
2997 {
2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
2999 _result = (wxXmlDocument *)new_wxXmlDocumentFromStream(*_arg0,*_arg1);
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) return NULL;
3003 } if (_result) {
3004 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlDocument_p");
3005 _resultobj = Py_BuildValue("s",_ptemp);
3006 } else {
3007 Py_INCREF(Py_None);
3008 _resultobj = Py_None;
3009 }
3010 {
3011 if (created)
3012 delete _arg0;
3013 }
3014 {
3015 if (_obj1)
3016 delete _arg1;
3017 }
3018 return _resultobj;
3019 }
3020
3021 #define new_wxEmptyXmlDocument() (new wxXmlDocument())
3022 static PyObject *_wrap_new_wxEmptyXmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
3023 PyObject * _resultobj;
3024 wxXmlDocument * _result;
3025 char *_kwnames[] = { NULL };
3026 char _ptemp[128];
3027
3028 self = self;
3029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEmptyXmlDocument",_kwnames))
3030 return NULL;
3031 {
3032 PyThreadState* __tstate = wxPyBeginAllowThreads();
3033 _result = (wxXmlDocument *)new_wxEmptyXmlDocument();
3034
3035 wxPyEndAllowThreads(__tstate);
3036 if (PyErr_Occurred()) return NULL;
3037 } if (_result) {
3038 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlDocument_p");
3039 _resultobj = Py_BuildValue("s",_ptemp);
3040 } else {
3041 Py_INCREF(Py_None);
3042 _resultobj = Py_None;
3043 }
3044 return _resultobj;
3045 }
3046
3047 #define delete_wxXmlDocument(_swigobj) (delete _swigobj)
3048 static PyObject *_wrap_delete_wxXmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
3049 PyObject * _resultobj;
3050 wxXmlDocument * _arg0;
3051 PyObject * _argo0 = 0;
3052 char *_kwnames[] = { "self", NULL };
3053
3054 self = self;
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxXmlDocument",_kwnames,&_argo0))
3056 return NULL;
3057 if (_argo0) {
3058 if (_argo0 == Py_None) { _arg0 = NULL; }
3059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxXmlDocument. Expected _wxXmlDocument_p.");
3061 return NULL;
3062 }
3063 }
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 delete_wxXmlDocument(_arg0);
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) return NULL;
3070 } Py_INCREF(Py_None);
3071 _resultobj = Py_None;
3072 return _resultobj;
3073 }
3074
3075 #define wxXmlDocument_Load(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
3076 static PyObject *_wrap_wxXmlDocument_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
3077 PyObject * _resultobj;
3078 bool _result;
3079 wxXmlDocument * _arg0;
3080 wxString * _arg1;
3081 wxString * _arg2 = (wxString *) &wxPyUTF8String;
3082 PyObject * _argo0 = 0;
3083 PyObject * _obj1 = 0;
3084 PyObject * _obj2 = 0;
3085 char *_kwnames[] = { "self","filename","encoding", NULL };
3086
3087 self = self;
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxXmlDocument_Load",_kwnames,&_argo0,&_obj1,&_obj2))
3089 return NULL;
3090 if (_argo0) {
3091 if (_argo0 == Py_None) { _arg0 = NULL; }
3092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_Load. Expected _wxXmlDocument_p.");
3094 return NULL;
3095 }
3096 }
3097 {
3098 _arg1 = wxString_in_helper(_obj1);
3099 if (_arg1 == NULL)
3100 return NULL;
3101 }
3102 if (_obj2)
3103 {
3104 _arg2 = wxString_in_helper(_obj2);
3105 if (_arg2 == NULL)
3106 return NULL;
3107 }
3108 {
3109 PyThreadState* __tstate = wxPyBeginAllowThreads();
3110 _result = (bool )wxXmlDocument_Load(_arg0,*_arg1,*_arg2);
3111
3112 wxPyEndAllowThreads(__tstate);
3113 if (PyErr_Occurred()) return NULL;
3114 } _resultobj = Py_BuildValue("i",_result);
3115 {
3116 if (_obj1)
3117 delete _arg1;
3118 }
3119 {
3120 if (_obj2)
3121 delete _arg2;
3122 }
3123 return _resultobj;
3124 }
3125
3126 #define wxXmlDocument_LoadFromStream(_swigobj,_swigarg0,_swigarg1) (_swigobj->Load(_swigarg0,_swigarg1))
3127 static PyObject *_wrap_wxXmlDocument_LoadFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
3128 PyObject * _resultobj;
3129 bool _result;
3130 wxXmlDocument * _arg0;
3131 wxInputStream * _arg1;
3132 wxString * _arg2 = (wxString *) &wxPyUTF8String;
3133 PyObject * _argo0 = 0;
3134 wxPyInputStream * temp;
3135 bool created;
3136 PyObject * _obj1 = 0;
3137 PyObject * _obj2 = 0;
3138 char *_kwnames[] = { "self","stream","encoding", NULL };
3139
3140 self = self;
3141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxXmlDocument_LoadFromStream",_kwnames,&_argo0,&_obj1,&_obj2))
3142 return NULL;
3143 if (_argo0) {
3144 if (_argo0 == Py_None) { _arg0 = NULL; }
3145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_LoadFromStream. Expected _wxXmlDocument_p.");
3147 return NULL;
3148 }
3149 }
3150 {
3151 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
3152 _arg1 = temp->m_wxis;
3153 created = FALSE;
3154 } else {
3155 _arg1 = wxPyCBInputStream_create(_obj1, FALSE);
3156 if (_arg1 == NULL) {
3157 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
3158 return NULL;
3159 }
3160 created = TRUE;
3161 }
3162 }
3163 if (_obj2)
3164 {
3165 _arg2 = wxString_in_helper(_obj2);
3166 if (_arg2 == NULL)
3167 return NULL;
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 _result = (bool )wxXmlDocument_LoadFromStream(_arg0,*_arg1,*_arg2);
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) return NULL;
3175 } _resultobj = Py_BuildValue("i",_result);
3176 {
3177 if (created)
3178 delete _arg1;
3179 }
3180 {
3181 if (_obj2)
3182 delete _arg2;
3183 }
3184 return _resultobj;
3185 }
3186
3187 #define wxXmlDocument_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3188 static PyObject *_wrap_wxXmlDocument_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
3189 PyObject * _resultobj;
3190 bool _result;
3191 wxXmlDocument * _arg0;
3192 wxString * _arg1;
3193 PyObject * _argo0 = 0;
3194 PyObject * _obj1 = 0;
3195 char *_kwnames[] = { "self","filename", NULL };
3196
3197 self = self;
3198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_Save",_kwnames,&_argo0,&_obj1))
3199 return NULL;
3200 if (_argo0) {
3201 if (_argo0 == Py_None) { _arg0 = NULL; }
3202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_Save. Expected _wxXmlDocument_p.");
3204 return NULL;
3205 }
3206 }
3207 {
3208 _arg1 = wxString_in_helper(_obj1);
3209 if (_arg1 == NULL)
3210 return NULL;
3211 }
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 _result = (bool )wxXmlDocument_Save(_arg0,*_arg1);
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) return NULL;
3218 } _resultobj = Py_BuildValue("i",_result);
3219 {
3220 if (_obj1)
3221 delete _arg1;
3222 }
3223 return _resultobj;
3224 }
3225
3226 #define wxXmlDocument_SaveToStream(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
3227 static PyObject *_wrap_wxXmlDocument_SaveToStream(PyObject *self, PyObject *args, PyObject *kwargs) {
3228 PyObject * _resultobj;
3229 bool _result;
3230 wxXmlDocument * _arg0;
3231 wxOutputStream * _arg1;
3232 PyObject * _argo0 = 0;
3233 PyObject * _argo1 = 0;
3234 char *_kwnames[] = { "self","stream", NULL };
3235
3236 self = self;
3237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SaveToStream",_kwnames,&_argo0,&_argo1))
3238 return NULL;
3239 if (_argo0) {
3240 if (_argo0 == Py_None) { _arg0 = NULL; }
3241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SaveToStream. Expected _wxXmlDocument_p.");
3243 return NULL;
3244 }
3245 }
3246 if (_argo1) {
3247 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxOutputStream_p")) {
3248 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlDocument_SaveToStream. Expected _wxOutputStream_p.");
3249 return NULL;
3250 }
3251 }
3252 {
3253 PyThreadState* __tstate = wxPyBeginAllowThreads();
3254 _result = (bool )wxXmlDocument_SaveToStream(_arg0,*_arg1);
3255
3256 wxPyEndAllowThreads(__tstate);
3257 if (PyErr_Occurred()) return NULL;
3258 } _resultobj = Py_BuildValue("i",_result);
3259 return _resultobj;
3260 }
3261
3262 #define wxXmlDocument_IsOk(_swigobj) (_swigobj->IsOk())
3263 static PyObject *_wrap_wxXmlDocument_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject * _resultobj;
3265 bool _result;
3266 wxXmlDocument * _arg0;
3267 PyObject * _argo0 = 0;
3268 char *_kwnames[] = { "self", NULL };
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlDocument_IsOk",_kwnames,&_argo0))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_IsOk. Expected _wxXmlDocument_p.");
3277 return NULL;
3278 }
3279 }
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 _result = (bool )wxXmlDocument_IsOk(_arg0);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) return NULL;
3286 } _resultobj = Py_BuildValue("i",_result);
3287 return _resultobj;
3288 }
3289
3290 #define wxXmlDocument_GetRoot(_swigobj) (_swigobj->GetRoot())
3291 static PyObject *_wrap_wxXmlDocument_GetRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject * _resultobj;
3293 wxXmlNode * _result;
3294 wxXmlDocument * _arg0;
3295 PyObject * _argo0 = 0;
3296 char *_kwnames[] = { "self", NULL };
3297 char _ptemp[128];
3298
3299 self = self;
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlDocument_GetRoot",_kwnames,&_argo0))
3301 return NULL;
3302 if (_argo0) {
3303 if (_argo0 == Py_None) { _arg0 = NULL; }
3304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_GetRoot. Expected _wxXmlDocument_p.");
3306 return NULL;
3307 }
3308 }
3309 {
3310 PyThreadState* __tstate = wxPyBeginAllowThreads();
3311 _result = (wxXmlNode *)wxXmlDocument_GetRoot(_arg0);
3312
3313 wxPyEndAllowThreads(__tstate);
3314 if (PyErr_Occurred()) return NULL;
3315 } if (_result) {
3316 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
3317 _resultobj = Py_BuildValue("s",_ptemp);
3318 } else {
3319 Py_INCREF(Py_None);
3320 _resultobj = Py_None;
3321 }
3322 return _resultobj;
3323 }
3324
3325 #define wxXmlDocument_GetVersion(_swigobj) (_swigobj->GetVersion())
3326 static PyObject *_wrap_wxXmlDocument_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
3327 PyObject * _resultobj;
3328 wxString * _result;
3329 wxXmlDocument * _arg0;
3330 PyObject * _argo0 = 0;
3331 char *_kwnames[] = { "self", NULL };
3332
3333 self = self;
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlDocument_GetVersion",_kwnames,&_argo0))
3335 return NULL;
3336 if (_argo0) {
3337 if (_argo0 == Py_None) { _arg0 = NULL; }
3338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_GetVersion. Expected _wxXmlDocument_p.");
3340 return NULL;
3341 }
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 _result = new wxString (wxXmlDocument_GetVersion(_arg0));
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) return NULL;
3349 }{
3350 #if wxUSE_UNICODE
3351 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3352 #else
3353 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3354 #endif
3355 }
3356 {
3357 delete _result;
3358 }
3359 return _resultobj;
3360 }
3361
3362 #define wxXmlDocument_GetFileEncoding(_swigobj) (_swigobj->GetFileEncoding())
3363 static PyObject *_wrap_wxXmlDocument_GetFileEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3364 PyObject * _resultobj;
3365 wxString * _result;
3366 wxXmlDocument * _arg0;
3367 PyObject * _argo0 = 0;
3368 char *_kwnames[] = { "self", NULL };
3369
3370 self = self;
3371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlDocument_GetFileEncoding",_kwnames,&_argo0))
3372 return NULL;
3373 if (_argo0) {
3374 if (_argo0 == Py_None) { _arg0 = NULL; }
3375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_GetFileEncoding. Expected _wxXmlDocument_p.");
3377 return NULL;
3378 }
3379 }
3380 {
3381 PyThreadState* __tstate = wxPyBeginAllowThreads();
3382 _result = new wxString (wxXmlDocument_GetFileEncoding(_arg0));
3383
3384 wxPyEndAllowThreads(__tstate);
3385 if (PyErr_Occurred()) return NULL;
3386 }{
3387 #if wxUSE_UNICODE
3388 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3389 #else
3390 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3391 #endif
3392 }
3393 {
3394 delete _result;
3395 }
3396 return _resultobj;
3397 }
3398
3399 #define wxXmlDocument_SetRoot(_swigobj,_swigarg0) (_swigobj->SetRoot(_swigarg0))
3400 static PyObject *_wrap_wxXmlDocument_SetRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
3401 PyObject * _resultobj;
3402 wxXmlDocument * _arg0;
3403 wxXmlNode * _arg1;
3404 PyObject * _argo0 = 0;
3405 PyObject * _argo1 = 0;
3406 char *_kwnames[] = { "self","node", NULL };
3407
3408 self = self;
3409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SetRoot",_kwnames,&_argo0,&_argo1))
3410 return NULL;
3411 if (_argo0) {
3412 if (_argo0 == Py_None) { _arg0 = NULL; }
3413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SetRoot. Expected _wxXmlDocument_p.");
3415 return NULL;
3416 }
3417 }
3418 if (_argo1) {
3419 if (_argo1 == Py_None) { _arg1 = NULL; }
3420 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
3421 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlDocument_SetRoot. Expected _wxXmlNode_p.");
3422 return NULL;
3423 }
3424 }
3425 {
3426 PyThreadState* __tstate = wxPyBeginAllowThreads();
3427 wxXmlDocument_SetRoot(_arg0,_arg1);
3428
3429 wxPyEndAllowThreads(__tstate);
3430 if (PyErr_Occurred()) return NULL;
3431 } Py_INCREF(Py_None);
3432 _resultobj = Py_None;
3433 return _resultobj;
3434 }
3435
3436 #define wxXmlDocument_SetVersion(_swigobj,_swigarg0) (_swigobj->SetVersion(_swigarg0))
3437 static PyObject *_wrap_wxXmlDocument_SetVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject * _resultobj;
3439 wxXmlDocument * _arg0;
3440 wxString * _arg1;
3441 PyObject * _argo0 = 0;
3442 PyObject * _obj1 = 0;
3443 char *_kwnames[] = { "self","version", NULL };
3444
3445 self = self;
3446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SetVersion",_kwnames,&_argo0,&_obj1))
3447 return NULL;
3448 if (_argo0) {
3449 if (_argo0 == Py_None) { _arg0 = NULL; }
3450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SetVersion. Expected _wxXmlDocument_p.");
3452 return NULL;
3453 }
3454 }
3455 {
3456 _arg1 = wxString_in_helper(_obj1);
3457 if (_arg1 == NULL)
3458 return NULL;
3459 }
3460 {
3461 PyThreadState* __tstate = wxPyBeginAllowThreads();
3462 wxXmlDocument_SetVersion(_arg0,*_arg1);
3463
3464 wxPyEndAllowThreads(__tstate);
3465 if (PyErr_Occurred()) return NULL;
3466 } Py_INCREF(Py_None);
3467 _resultobj = Py_None;
3468 {
3469 if (_obj1)
3470 delete _arg1;
3471 }
3472 return _resultobj;
3473 }
3474
3475 #define wxXmlDocument_SetFileEncoding(_swigobj,_swigarg0) (_swigobj->SetFileEncoding(_swigarg0))
3476 static PyObject *_wrap_wxXmlDocument_SetFileEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3477 PyObject * _resultobj;
3478 wxXmlDocument * _arg0;
3479 wxString * _arg1;
3480 PyObject * _argo0 = 0;
3481 PyObject * _obj1 = 0;
3482 char *_kwnames[] = { "self","encoding", NULL };
3483
3484 self = self;
3485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SetFileEncoding",_kwnames,&_argo0,&_obj1))
3486 return NULL;
3487 if (_argo0) {
3488 if (_argo0 == Py_None) { _arg0 = NULL; }
3489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SetFileEncoding. Expected _wxXmlDocument_p.");
3491 return NULL;
3492 }
3493 }
3494 {
3495 _arg1 = wxString_in_helper(_obj1);
3496 if (_arg1 == NULL)
3497 return NULL;
3498 }
3499 {
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 wxXmlDocument_SetFileEncoding(_arg0,*_arg1);
3502
3503 wxPyEndAllowThreads(__tstate);
3504 if (PyErr_Occurred()) return NULL;
3505 } Py_INCREF(Py_None);
3506 _resultobj = Py_None;
3507 {
3508 if (_obj1)
3509 delete _arg1;
3510 }
3511 return _resultobj;
3512 }
3513
3514 static wxString wxXmlDocument_GetEncoding(wxXmlDocument *self) {
3515 #if wxUSE_UNICODE
3516 return wxPyEmptyString;
3517 #else
3518 return self->GetEncoding();
3519 #endif
3520 }
3521 static PyObject *_wrap_wxXmlDocument_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject * _resultobj;
3523 wxString * _result;
3524 wxXmlDocument * _arg0;
3525 PyObject * _argo0 = 0;
3526 char *_kwnames[] = { "self", NULL };
3527
3528 self = self;
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlDocument_GetEncoding",_kwnames,&_argo0))
3530 return NULL;
3531 if (_argo0) {
3532 if (_argo0 == Py_None) { _arg0 = NULL; }
3533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_GetEncoding. Expected _wxXmlDocument_p.");
3535 return NULL;
3536 }
3537 }
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 _result = new wxString (wxXmlDocument_GetEncoding(_arg0));
3541
3542 wxPyEndAllowThreads(__tstate);
3543 if (PyErr_Occurred()) return NULL;
3544 }{
3545 #if wxUSE_UNICODE
3546 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3547 #else
3548 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3549 #endif
3550 }
3551 {
3552 delete _result;
3553 }
3554 return _resultobj;
3555 }
3556
3557 static void wxXmlDocument_SetEncoding(wxXmlDocument *self,const wxString & enc) {
3558 #if wxUSE_UNICODE
3559 // do nothing
3560 #else
3561 self->SetEncoding(enc);
3562 #endif
3563 }
3564 static PyObject *_wrap_wxXmlDocument_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3565 PyObject * _resultobj;
3566 wxXmlDocument * _arg0;
3567 wxString * _arg1;
3568 PyObject * _argo0 = 0;
3569 PyObject * _obj1 = 0;
3570 char *_kwnames[] = { "self","enc", NULL };
3571
3572 self = self;
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SetEncoding",_kwnames,&_argo0,&_obj1))
3574 return NULL;
3575 if (_argo0) {
3576 if (_argo0 == Py_None) { _arg0 = NULL; }
3577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
3578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SetEncoding. Expected _wxXmlDocument_p.");
3579 return NULL;
3580 }
3581 }
3582 {
3583 _arg1 = wxString_in_helper(_obj1);
3584 if (_arg1 == NULL)
3585 return NULL;
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 wxXmlDocument_SetEncoding(_arg0,*_arg1);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) return NULL;
3593 } Py_INCREF(Py_None);
3594 _resultobj = Py_None;
3595 {
3596 if (_obj1)
3597 delete _arg1;
3598 }
3599 return _resultobj;
3600 }
3601
3602 static void *SwigwxPyXmlResourceHandlerTowxObject(void *ptr) {
3603 wxPyXmlResourceHandler *src;
3604 wxObject *dest;
3605 src = (wxPyXmlResourceHandler *) ptr;
3606 dest = (wxObject *) src;
3607 return (void *) dest;
3608 }
3609
3610 #define new_wxXmlResourceHandler() (new wxPyXmlResourceHandler())
3611 static PyObject *_wrap_new_wxXmlResourceHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3612 PyObject * _resultobj;
3613 wxPyXmlResourceHandler * _result;
3614 char *_kwnames[] = { NULL };
3615 char _ptemp[128];
3616
3617 self = self;
3618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxXmlResourceHandler",_kwnames))
3619 return NULL;
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 _result = (wxPyXmlResourceHandler *)new_wxXmlResourceHandler();
3623
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) return NULL;
3626 } if (_result) {
3627 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyXmlResourceHandler_p");
3628 _resultobj = Py_BuildValue("s",_ptemp);
3629 } else {
3630 Py_INCREF(Py_None);
3631 _resultobj = Py_None;
3632 }
3633 return _resultobj;
3634 }
3635
3636 #define wxXmlResourceHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3637 static PyObject *_wrap_wxXmlResourceHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject * _resultobj;
3639 wxPyXmlResourceHandler * _arg0;
3640 PyObject * _arg1;
3641 PyObject * _arg2;
3642 PyObject * _argo0 = 0;
3643 PyObject * _obj1 = 0;
3644 PyObject * _obj2 = 0;
3645 char *_kwnames[] = { "self","self","_class", NULL };
3646
3647 self = self;
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResourceHandler__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3649 return NULL;
3650 if (_argo0) {
3651 if (_argo0 == Py_None) { _arg0 = NULL; }
3652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler__setCallbackInfo. Expected _wxPyXmlResourceHandler_p.");
3654 return NULL;
3655 }
3656 }
3657 {
3658 _arg1 = _obj1;
3659 }
3660 {
3661 _arg2 = _obj2;
3662 }
3663 {
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 wxXmlResourceHandler__setCallbackInfo(_arg0,_arg1,_arg2);
3666
3667 wxPyEndAllowThreads(__tstate);
3668 if (PyErr_Occurred()) return NULL;
3669 } Py_INCREF(Py_None);
3670 _resultobj = Py_None;
3671 return _resultobj;
3672 }
3673
3674 #define wxXmlResourceHandler_CreateResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResource(_swigarg0,_swigarg1,_swigarg2))
3675 static PyObject *_wrap_wxXmlResourceHandler_CreateResource(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject * _resultobj;
3677 wxObject * _result;
3678 wxPyXmlResourceHandler * _arg0;
3679 wxXmlNode * _arg1;
3680 wxObject * _arg2;
3681 wxObject * _arg3;
3682 PyObject * _argo0 = 0;
3683 PyObject * _argo1 = 0;
3684 PyObject * _argo2 = 0;
3685 PyObject * _argo3 = 0;
3686 char *_kwnames[] = { "self","node","parent","instance", NULL };
3687
3688 self = self;
3689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResourceHandler_CreateResource",_kwnames,&_argo0,&_argo1,&_argo2,&_argo3))
3690 return NULL;
3691 if (_argo0) {
3692 if (_argo0 == Py_None) { _arg0 = NULL; }
3693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_CreateResource. Expected _wxPyXmlResourceHandler_p.");
3695 return NULL;
3696 }
3697 }
3698 if (_argo1) {
3699 if (_argo1 == Py_None) { _arg1 = NULL; }
3700 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
3701 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_CreateResource. Expected _wxXmlNode_p.");
3702 return NULL;
3703 }
3704 }
3705 if (_argo2) {
3706 if (_argo2 == Py_None) { _arg2 = NULL; }
3707 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxObject_p")) {
3708 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3709 return NULL;
3710 }
3711 }
3712 if (_argo3) {
3713 if (_argo3 == Py_None) { _arg3 = NULL; }
3714 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxObject_p")) {
3715 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxXmlResourceHandler_CreateResource. Expected _wxObject_p.");
3716 return NULL;
3717 }
3718 }
3719 {
3720 PyThreadState* __tstate = wxPyBeginAllowThreads();
3721 _result = (wxObject *)wxXmlResourceHandler_CreateResource(_arg0,_arg1,_arg2,_arg3);
3722
3723 wxPyEndAllowThreads(__tstate);
3724 if (PyErr_Occurred()) return NULL;
3725 }{ _resultobj = wxPyMake_wxObject(_result); }
3726 return _resultobj;
3727 }
3728
3729 #define wxXmlResourceHandler_SetParentResource(_swigobj,_swigarg0) (_swigobj->SetParentResource(_swigarg0))
3730 static PyObject *_wrap_wxXmlResourceHandler_SetParentResource(PyObject *self, PyObject *args, PyObject *kwargs) {
3731 PyObject * _resultobj;
3732 wxPyXmlResourceHandler * _arg0;
3733 wxXmlResource * _arg1;
3734 PyObject * _argo0 = 0;
3735 PyObject * _argo1 = 0;
3736 char *_kwnames[] = { "self","res", NULL };
3737
3738 self = self;
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_SetParentResource",_kwnames,&_argo0,&_argo1))
3740 return NULL;
3741 if (_argo0) {
3742 if (_argo0 == Py_None) { _arg0 = NULL; }
3743 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3744 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_SetParentResource. Expected _wxPyXmlResourceHandler_p.");
3745 return NULL;
3746 }
3747 }
3748 if (_argo1) {
3749 if (_argo1 == Py_None) { _arg1 = NULL; }
3750 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlResource_p")) {
3751 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_SetParentResource. Expected _wxXmlResource_p.");
3752 return NULL;
3753 }
3754 }
3755 {
3756 PyThreadState* __tstate = wxPyBeginAllowThreads();
3757 wxXmlResourceHandler_SetParentResource(_arg0,_arg1);
3758
3759 wxPyEndAllowThreads(__tstate);
3760 if (PyErr_Occurred()) return NULL;
3761 } Py_INCREF(Py_None);
3762 _resultobj = Py_None;
3763 return _resultobj;
3764 }
3765
3766 #define wxXmlResourceHandler_GetResource(_swigobj) (_swigobj->GetResource())
3767 static PyObject *_wrap_wxXmlResourceHandler_GetResource(PyObject *self, PyObject *args, PyObject *kwargs) {
3768 PyObject * _resultobj;
3769 wxXmlResource * _result;
3770 wxPyXmlResourceHandler * _arg0;
3771 PyObject * _argo0 = 0;
3772 char *_kwnames[] = { "self", NULL };
3773 char _ptemp[128];
3774
3775 self = self;
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetResource",_kwnames,&_argo0))
3777 return NULL;
3778 if (_argo0) {
3779 if (_argo0 == Py_None) { _arg0 = NULL; }
3780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetResource. Expected _wxPyXmlResourceHandler_p.");
3782 return NULL;
3783 }
3784 }
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 _result = (wxXmlResource *)wxXmlResourceHandler_GetResource(_arg0);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) return NULL;
3791 } if (_result) {
3792 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
3793 _resultobj = Py_BuildValue("s",_ptemp);
3794 } else {
3795 Py_INCREF(Py_None);
3796 _resultobj = Py_None;
3797 }
3798 return _resultobj;
3799 }
3800
3801 #define wxXmlResourceHandler_GetNode(_swigobj) (_swigobj->GetNode())
3802 static PyObject *_wrap_wxXmlResourceHandler_GetNode(PyObject *self, PyObject *args, PyObject *kwargs) {
3803 PyObject * _resultobj;
3804 wxXmlNode * _result;
3805 wxPyXmlResourceHandler * _arg0;
3806 PyObject * _argo0 = 0;
3807 char *_kwnames[] = { "self", NULL };
3808 char _ptemp[128];
3809
3810 self = self;
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetNode",_kwnames,&_argo0))
3812 return NULL;
3813 if (_argo0) {
3814 if (_argo0 == Py_None) { _arg0 = NULL; }
3815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetNode. Expected _wxPyXmlResourceHandler_p.");
3817 return NULL;
3818 }
3819 }
3820 {
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 _result = (wxXmlNode *)wxXmlResourceHandler_GetNode(_arg0);
3823
3824 wxPyEndAllowThreads(__tstate);
3825 if (PyErr_Occurred()) return NULL;
3826 } if (_result) {
3827 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
3828 _resultobj = Py_BuildValue("s",_ptemp);
3829 } else {
3830 Py_INCREF(Py_None);
3831 _resultobj = Py_None;
3832 }
3833 return _resultobj;
3834 }
3835
3836 #define wxXmlResourceHandler_GetClass(_swigobj) (_swigobj->GetClass())
3837 static PyObject *_wrap_wxXmlResourceHandler_GetClass(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject * _resultobj;
3839 wxString * _result;
3840 wxPyXmlResourceHandler * _arg0;
3841 PyObject * _argo0 = 0;
3842 char *_kwnames[] = { "self", NULL };
3843
3844 self = self;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetClass",_kwnames,&_argo0))
3846 return NULL;
3847 if (_argo0) {
3848 if (_argo0 == Py_None) { _arg0 = NULL; }
3849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetClass. Expected _wxPyXmlResourceHandler_p.");
3851 return NULL;
3852 }
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 _result = new wxString (wxXmlResourceHandler_GetClass(_arg0));
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) return NULL;
3860 }{
3861 #if wxUSE_UNICODE
3862 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
3863 #else
3864 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3865 #endif
3866 }
3867 {
3868 delete _result;
3869 }
3870 return _resultobj;
3871 }
3872
3873 #define wxXmlResourceHandler_GetParent(_swigobj) (_swigobj->GetParent())
3874 static PyObject *_wrap_wxXmlResourceHandler_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject * _resultobj;
3876 wxObject * _result;
3877 wxPyXmlResourceHandler * _arg0;
3878 PyObject * _argo0 = 0;
3879 char *_kwnames[] = { "self", NULL };
3880
3881 self = self;
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetParent",_kwnames,&_argo0))
3883 return NULL;
3884 if (_argo0) {
3885 if (_argo0 == Py_None) { _arg0 = NULL; }
3886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetParent. Expected _wxPyXmlResourceHandler_p.");
3888 return NULL;
3889 }
3890 }
3891 {
3892 PyThreadState* __tstate = wxPyBeginAllowThreads();
3893 _result = (wxObject *)wxXmlResourceHandler_GetParent(_arg0);
3894
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) return NULL;
3897 }{ _resultobj = wxPyMake_wxObject(_result); }
3898 return _resultobj;
3899 }
3900
3901 #define wxXmlResourceHandler_GetInstance(_swigobj) (_swigobj->GetInstance())
3902 static PyObject *_wrap_wxXmlResourceHandler_GetInstance(PyObject *self, PyObject *args, PyObject *kwargs) {
3903 PyObject * _resultobj;
3904 wxObject * _result;
3905 wxPyXmlResourceHandler * _arg0;
3906 PyObject * _argo0 = 0;
3907 char *_kwnames[] = { "self", NULL };
3908
3909 self = self;
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetInstance",_kwnames,&_argo0))
3911 return NULL;
3912 if (_argo0) {
3913 if (_argo0 == Py_None) { _arg0 = NULL; }
3914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetInstance. Expected _wxPyXmlResourceHandler_p.");
3916 return NULL;
3917 }
3918 }
3919 {
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 _result = (wxObject *)wxXmlResourceHandler_GetInstance(_arg0);
3922
3923 wxPyEndAllowThreads(__tstate);
3924 if (PyErr_Occurred()) return NULL;
3925 }{ _resultobj = wxPyMake_wxObject(_result); }
3926 return _resultobj;
3927 }
3928
3929 #define wxXmlResourceHandler_GetParentAsWindow(_swigobj) (_swigobj->GetParentAsWindow())
3930 static PyObject *_wrap_wxXmlResourceHandler_GetParentAsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3931 PyObject * _resultobj;
3932 wxWindow * _result;
3933 wxPyXmlResourceHandler * _arg0;
3934 PyObject * _argo0 = 0;
3935 char *_kwnames[] = { "self", NULL };
3936
3937 self = self;
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetParentAsWindow",_kwnames,&_argo0))
3939 return NULL;
3940 if (_argo0) {
3941 if (_argo0 == Py_None) { _arg0 = NULL; }
3942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetParentAsWindow. Expected _wxPyXmlResourceHandler_p.");
3944 return NULL;
3945 }
3946 }
3947 {
3948 PyThreadState* __tstate = wxPyBeginAllowThreads();
3949 _result = (wxWindow *)wxXmlResourceHandler_GetParentAsWindow(_arg0);
3950
3951 wxPyEndAllowThreads(__tstate);
3952 if (PyErr_Occurred()) return NULL;
3953 }{ _resultobj = wxPyMake_wxObject(_result); }
3954 return _resultobj;
3955 }
3956
3957 #define wxXmlResourceHandler_GetInstanceAsWindow(_swigobj) (_swigobj->GetInstanceAsWindow())
3958 static PyObject *_wrap_wxXmlResourceHandler_GetInstanceAsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject * _resultobj;
3960 wxWindow * _result;
3961 wxPyXmlResourceHandler * _arg0;
3962 PyObject * _argo0 = 0;
3963 char *_kwnames[] = { "self", NULL };
3964
3965 self = self;
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetInstanceAsWindow",_kwnames,&_argo0))
3967 return NULL;
3968 if (_argo0) {
3969 if (_argo0 == Py_None) { _arg0 = NULL; }
3970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
3971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetInstanceAsWindow. Expected _wxPyXmlResourceHandler_p.");
3972 return NULL;
3973 }
3974 }
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 _result = (wxWindow *)wxXmlResourceHandler_GetInstanceAsWindow(_arg0);
3978
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) return NULL;
3981 }{ _resultobj = wxPyMake_wxObject(_result); }
3982 return _resultobj;
3983 }
3984
3985 #define wxXmlResourceHandler_IsOfClass(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsOfClass(_swigarg0,_swigarg1))
3986 static PyObject *_wrap_wxXmlResourceHandler_IsOfClass(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject * _resultobj;
3988 bool _result;
3989 wxPyXmlResourceHandler * _arg0;
3990 wxXmlNode * _arg1;
3991 wxString * _arg2;
3992 PyObject * _argo0 = 0;
3993 PyObject * _argo1 = 0;
3994 PyObject * _obj2 = 0;
3995 char *_kwnames[] = { "self","node","classname", NULL };
3996
3997 self = self;
3998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResourceHandler_IsOfClass",_kwnames,&_argo0,&_argo1,&_obj2))
3999 return NULL;
4000 if (_argo0) {
4001 if (_argo0 == Py_None) { _arg0 = NULL; }
4002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_IsOfClass. Expected _wxPyXmlResourceHandler_p.");
4004 return NULL;
4005 }
4006 }
4007 if (_argo1) {
4008 if (_argo1 == Py_None) { _arg1 = NULL; }
4009 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
4010 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_IsOfClass. Expected _wxXmlNode_p.");
4011 return NULL;
4012 }
4013 }
4014 {
4015 _arg2 = wxString_in_helper(_obj2);
4016 if (_arg2 == NULL)
4017 return NULL;
4018 }
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 _result = (bool )wxXmlResourceHandler_IsOfClass(_arg0,_arg1,*_arg2);
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) return NULL;
4025 } _resultobj = Py_BuildValue("i",_result);
4026 {
4027 if (_obj2)
4028 delete _arg2;
4029 }
4030 return _resultobj;
4031 }
4032
4033 #define wxXmlResourceHandler_GetNodeContent(_swigobj,_swigarg0) (_swigobj->GetNodeContent(_swigarg0))
4034 static PyObject *_wrap_wxXmlResourceHandler_GetNodeContent(PyObject *self, PyObject *args, PyObject *kwargs) {
4035 PyObject * _resultobj;
4036 wxString * _result;
4037 wxPyXmlResourceHandler * _arg0;
4038 wxXmlNode * _arg1;
4039 PyObject * _argo0 = 0;
4040 PyObject * _argo1 = 0;
4041 char *_kwnames[] = { "self","node", NULL };
4042
4043 self = self;
4044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_GetNodeContent",_kwnames,&_argo0,&_argo1))
4045 return NULL;
4046 if (_argo0) {
4047 if (_argo0 == Py_None) { _arg0 = NULL; }
4048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetNodeContent. Expected _wxPyXmlResourceHandler_p.");
4050 return NULL;
4051 }
4052 }
4053 if (_argo1) {
4054 if (_argo1 == Py_None) { _arg1 = NULL; }
4055 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
4056 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_GetNodeContent. Expected _wxXmlNode_p.");
4057 return NULL;
4058 }
4059 }
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 _result = new wxString (wxXmlResourceHandler_GetNodeContent(_arg0,_arg1));
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) return NULL;
4066 }{
4067 #if wxUSE_UNICODE
4068 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4069 #else
4070 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4071 #endif
4072 }
4073 {
4074 delete _result;
4075 }
4076 return _resultobj;
4077 }
4078
4079 #define wxXmlResourceHandler_HasParam(_swigobj,_swigarg0) (_swigobj->HasParam(_swigarg0))
4080 static PyObject *_wrap_wxXmlResourceHandler_HasParam(PyObject *self, PyObject *args, PyObject *kwargs) {
4081 PyObject * _resultobj;
4082 bool _result;
4083 wxPyXmlResourceHandler * _arg0;
4084 wxString * _arg1;
4085 PyObject * _argo0 = 0;
4086 PyObject * _obj1 = 0;
4087 char *_kwnames[] = { "self","param", NULL };
4088
4089 self = self;
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_HasParam",_kwnames,&_argo0,&_obj1))
4091 return NULL;
4092 if (_argo0) {
4093 if (_argo0 == Py_None) { _arg0 = NULL; }
4094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_HasParam. Expected _wxPyXmlResourceHandler_p.");
4096 return NULL;
4097 }
4098 }
4099 {
4100 _arg1 = wxString_in_helper(_obj1);
4101 if (_arg1 == NULL)
4102 return NULL;
4103 }
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 _result = (bool )wxXmlResourceHandler_HasParam(_arg0,*_arg1);
4107
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) return NULL;
4110 } _resultobj = Py_BuildValue("i",_result);
4111 {
4112 if (_obj1)
4113 delete _arg1;
4114 }
4115 return _resultobj;
4116 }
4117
4118 #define wxXmlResourceHandler_GetParamNode(_swigobj,_swigarg0) (_swigobj->GetParamNode(_swigarg0))
4119 static PyObject *_wrap_wxXmlResourceHandler_GetParamNode(PyObject *self, PyObject *args, PyObject *kwargs) {
4120 PyObject * _resultobj;
4121 wxXmlNode * _result;
4122 wxPyXmlResourceHandler * _arg0;
4123 wxString * _arg1;
4124 PyObject * _argo0 = 0;
4125 PyObject * _obj1 = 0;
4126 char *_kwnames[] = { "self","param", NULL };
4127 char _ptemp[128];
4128
4129 self = self;
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_GetParamNode",_kwnames,&_argo0,&_obj1))
4131 return NULL;
4132 if (_argo0) {
4133 if (_argo0 == Py_None) { _arg0 = NULL; }
4134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetParamNode. Expected _wxPyXmlResourceHandler_p.");
4136 return NULL;
4137 }
4138 }
4139 {
4140 _arg1 = wxString_in_helper(_obj1);
4141 if (_arg1 == NULL)
4142 return NULL;
4143 }
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 _result = (wxXmlNode *)wxXmlResourceHandler_GetParamNode(_arg0,*_arg1);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) return NULL;
4150 } if (_result) {
4151 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlNode_p");
4152 _resultobj = Py_BuildValue("s",_ptemp);
4153 } else {
4154 Py_INCREF(Py_None);
4155 _resultobj = Py_None;
4156 }
4157 {
4158 if (_obj1)
4159 delete _arg1;
4160 }
4161 return _resultobj;
4162 }
4163
4164 #define wxXmlResourceHandler_GetParamValue(_swigobj,_swigarg0) (_swigobj->GetParamValue(_swigarg0))
4165 static PyObject *_wrap_wxXmlResourceHandler_GetParamValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject * _resultobj;
4167 wxString * _result;
4168 wxPyXmlResourceHandler * _arg0;
4169 wxString * _arg1;
4170 PyObject * _argo0 = 0;
4171 PyObject * _obj1 = 0;
4172 char *_kwnames[] = { "self","param", NULL };
4173
4174 self = self;
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_GetParamValue",_kwnames,&_argo0,&_obj1))
4176 return NULL;
4177 if (_argo0) {
4178 if (_argo0 == Py_None) { _arg0 = NULL; }
4179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetParamValue. Expected _wxPyXmlResourceHandler_p.");
4181 return NULL;
4182 }
4183 }
4184 {
4185 _arg1 = wxString_in_helper(_obj1);
4186 if (_arg1 == NULL)
4187 return NULL;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 _result = new wxString (wxXmlResourceHandler_GetParamValue(_arg0,*_arg1));
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) return NULL;
4195 }{
4196 #if wxUSE_UNICODE
4197 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4198 #else
4199 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4200 #endif
4201 }
4202 {
4203 if (_obj1)
4204 delete _arg1;
4205 }
4206 {
4207 delete _result;
4208 }
4209 return _resultobj;
4210 }
4211
4212 #define wxXmlResourceHandler_AddStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddStyle(_swigarg0,_swigarg1))
4213 static PyObject *_wrap_wxXmlResourceHandler_AddStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4214 PyObject * _resultobj;
4215 wxPyXmlResourceHandler * _arg0;
4216 wxString * _arg1;
4217 int _arg2;
4218 PyObject * _argo0 = 0;
4219 PyObject * _obj1 = 0;
4220 char *_kwnames[] = { "self","name","value", NULL };
4221
4222 self = self;
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxXmlResourceHandler_AddStyle",_kwnames,&_argo0,&_obj1,&_arg2))
4224 return NULL;
4225 if (_argo0) {
4226 if (_argo0 == Py_None) { _arg0 = NULL; }
4227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_AddStyle. Expected _wxPyXmlResourceHandler_p.");
4229 return NULL;
4230 }
4231 }
4232 {
4233 _arg1 = wxString_in_helper(_obj1);
4234 if (_arg1 == NULL)
4235 return NULL;
4236 }
4237 {
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 wxXmlResourceHandler_AddStyle(_arg0,*_arg1,_arg2);
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) return NULL;
4243 } Py_INCREF(Py_None);
4244 _resultobj = Py_None;
4245 {
4246 if (_obj1)
4247 delete _arg1;
4248 }
4249 return _resultobj;
4250 }
4251
4252 #define wxXmlResourceHandler_AddWindowStyles(_swigobj) (_swigobj->AddWindowStyles())
4253 static PyObject *_wrap_wxXmlResourceHandler_AddWindowStyles(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject * _resultobj;
4255 wxPyXmlResourceHandler * _arg0;
4256 PyObject * _argo0 = 0;
4257 char *_kwnames[] = { "self", NULL };
4258
4259 self = self;
4260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_AddWindowStyles",_kwnames,&_argo0))
4261 return NULL;
4262 if (_argo0) {
4263 if (_argo0 == Py_None) { _arg0 = NULL; }
4264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_AddWindowStyles. Expected _wxPyXmlResourceHandler_p.");
4266 return NULL;
4267 }
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 wxXmlResourceHandler_AddWindowStyles(_arg0);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) return NULL;
4275 } Py_INCREF(Py_None);
4276 _resultobj = Py_None;
4277 return _resultobj;
4278 }
4279
4280 #define wxXmlResourceHandler_GetStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyle(_swigarg0,_swigarg1))
4281 static PyObject *_wrap_wxXmlResourceHandler_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject * _resultobj;
4283 int _result;
4284 wxPyXmlResourceHandler * _arg0;
4285 wxString * _arg1 = (wxString *) &wxPyStyleString;
4286 int _arg2 = (int ) 0;
4287 PyObject * _argo0 = 0;
4288 PyObject * _obj1 = 0;
4289 char *_kwnames[] = { "self","param","defaults", NULL };
4290
4291 self = self;
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxXmlResourceHandler_GetStyle",_kwnames,&_argo0,&_obj1,&_arg2))
4293 return NULL;
4294 if (_argo0) {
4295 if (_argo0 == Py_None) { _arg0 = NULL; }
4296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetStyle. Expected _wxPyXmlResourceHandler_p.");
4298 return NULL;
4299 }
4300 }
4301 if (_obj1)
4302 {
4303 _arg1 = wxString_in_helper(_obj1);
4304 if (_arg1 == NULL)
4305 return NULL;
4306 }
4307 {
4308 PyThreadState* __tstate = wxPyBeginAllowThreads();
4309 _result = (int )wxXmlResourceHandler_GetStyle(_arg0,*_arg1,_arg2);
4310
4311 wxPyEndAllowThreads(__tstate);
4312 if (PyErr_Occurred()) return NULL;
4313 } _resultobj = Py_BuildValue("i",_result);
4314 {
4315 if (_obj1)
4316 delete _arg1;
4317 }
4318 return _resultobj;
4319 }
4320
4321 #define wxXmlResourceHandler_GetText(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetText(_swigarg0,_swigarg1))
4322 static PyObject *_wrap_wxXmlResourceHandler_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
4323 PyObject * _resultobj;
4324 wxString * _result;
4325 wxPyXmlResourceHandler * _arg0;
4326 wxString * _arg1;
4327 bool _arg2 = (bool ) TRUE;
4328 PyObject * _argo0 = 0;
4329 PyObject * _obj1 = 0;
4330 int tempbool2 = (int) TRUE;
4331 char *_kwnames[] = { "self","param","translate", NULL };
4332
4333 self = self;
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxXmlResourceHandler_GetText",_kwnames,&_argo0,&_obj1,&tempbool2))
4335 return NULL;
4336 if (_argo0) {
4337 if (_argo0 == Py_None) { _arg0 = NULL; }
4338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetText. Expected _wxPyXmlResourceHandler_p.");
4340 return NULL;
4341 }
4342 }
4343 {
4344 _arg1 = wxString_in_helper(_obj1);
4345 if (_arg1 == NULL)
4346 return NULL;
4347 }
4348 _arg2 = (bool ) tempbool2;
4349 {
4350 PyThreadState* __tstate = wxPyBeginAllowThreads();
4351 _result = new wxString (wxXmlResourceHandler_GetText(_arg0,*_arg1,_arg2));
4352
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) return NULL;
4355 }{
4356 #if wxUSE_UNICODE
4357 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4358 #else
4359 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4360 #endif
4361 }
4362 {
4363 if (_obj1)
4364 delete _arg1;
4365 }
4366 {
4367 delete _result;
4368 }
4369 return _resultobj;
4370 }
4371
4372 #define wxXmlResourceHandler_GetID(_swigobj) (_swigobj->GetID())
4373 static PyObject *_wrap_wxXmlResourceHandler_GetID(PyObject *self, PyObject *args, PyObject *kwargs) {
4374 PyObject * _resultobj;
4375 int _result;
4376 wxPyXmlResourceHandler * _arg0;
4377 PyObject * _argo0 = 0;
4378 char *_kwnames[] = { "self", NULL };
4379
4380 self = self;
4381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetID",_kwnames,&_argo0))
4382 return NULL;
4383 if (_argo0) {
4384 if (_argo0 == Py_None) { _arg0 = NULL; }
4385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetID. Expected _wxPyXmlResourceHandler_p.");
4387 return NULL;
4388 }
4389 }
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 _result = (int )wxXmlResourceHandler_GetID(_arg0);
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) return NULL;
4396 } _resultobj = Py_BuildValue("i",_result);
4397 return _resultobj;
4398 }
4399
4400 #define wxXmlResourceHandler_GetName(_swigobj) (_swigobj->GetName())
4401 static PyObject *_wrap_wxXmlResourceHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
4402 PyObject * _resultobj;
4403 wxString * _result;
4404 wxPyXmlResourceHandler * _arg0;
4405 PyObject * _argo0 = 0;
4406 char *_kwnames[] = { "self", NULL };
4407
4408 self = self;
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetName",_kwnames,&_argo0))
4410 return NULL;
4411 if (_argo0) {
4412 if (_argo0 == Py_None) { _arg0 = NULL; }
4413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetName. Expected _wxPyXmlResourceHandler_p.");
4415 return NULL;
4416 }
4417 }
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
4420 _result = new wxString (wxXmlResourceHandler_GetName(_arg0));
4421
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) return NULL;
4424 }{
4425 #if wxUSE_UNICODE
4426 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
4427 #else
4428 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4429 #endif
4430 }
4431 {
4432 delete _result;
4433 }
4434 return _resultobj;
4435 }
4436
4437 #define wxXmlResourceHandler_GetBool(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBool(_swigarg0,_swigarg1))
4438 static PyObject *_wrap_wxXmlResourceHandler_GetBool(PyObject *self, PyObject *args, PyObject *kwargs) {
4439 PyObject * _resultobj;
4440 bool _result;
4441 wxPyXmlResourceHandler * _arg0;
4442 wxString * _arg1;
4443 bool _arg2 = (bool ) FALSE;
4444 PyObject * _argo0 = 0;
4445 PyObject * _obj1 = 0;
4446 int tempbool2 = (int) FALSE;
4447 char *_kwnames[] = { "self","param","defaultv", NULL };
4448
4449 self = self;
4450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxXmlResourceHandler_GetBool",_kwnames,&_argo0,&_obj1,&tempbool2))
4451 return NULL;
4452 if (_argo0) {
4453 if (_argo0 == Py_None) { _arg0 = NULL; }
4454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetBool. Expected _wxPyXmlResourceHandler_p.");
4456 return NULL;
4457 }
4458 }
4459 {
4460 _arg1 = wxString_in_helper(_obj1);
4461 if (_arg1 == NULL)
4462 return NULL;
4463 }
4464 _arg2 = (bool ) tempbool2;
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
4467 _result = (bool )wxXmlResourceHandler_GetBool(_arg0,*_arg1,_arg2);
4468
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) return NULL;
4471 } _resultobj = Py_BuildValue("i",_result);
4472 {
4473 if (_obj1)
4474 delete _arg1;
4475 }
4476 return _resultobj;
4477 }
4478
4479 #define wxXmlResourceHandler_GetLong(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLong(_swigarg0,_swigarg1))
4480 static PyObject *_wrap_wxXmlResourceHandler_GetLong(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject * _resultobj;
4482 long _result;
4483 wxPyXmlResourceHandler * _arg0;
4484 wxString * _arg1;
4485 long _arg2 = (long ) 0;
4486 PyObject * _argo0 = 0;
4487 PyObject * _obj1 = 0;
4488 char *_kwnames[] = { "self","param","defaultv", NULL };
4489
4490 self = self;
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxXmlResourceHandler_GetLong",_kwnames,&_argo0,&_obj1,&_arg2))
4492 return NULL;
4493 if (_argo0) {
4494 if (_argo0 == Py_None) { _arg0 = NULL; }
4495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetLong. Expected _wxPyXmlResourceHandler_p.");
4497 return NULL;
4498 }
4499 }
4500 {
4501 _arg1 = wxString_in_helper(_obj1);
4502 if (_arg1 == NULL)
4503 return NULL;
4504 }
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 _result = (long )wxXmlResourceHandler_GetLong(_arg0,*_arg1,_arg2);
4508
4509 wxPyEndAllowThreads(__tstate);
4510 if (PyErr_Occurred()) return NULL;
4511 } _resultobj = Py_BuildValue("l",_result);
4512 {
4513 if (_obj1)
4514 delete _arg1;
4515 }
4516 return _resultobj;
4517 }
4518
4519 #define wxXmlResourceHandler_GetColour(_swigobj,_swigarg0) (_swigobj->GetColour(_swigarg0))
4520 static PyObject *_wrap_wxXmlResourceHandler_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4521 PyObject * _resultobj;
4522 wxColour * _result;
4523 wxPyXmlResourceHandler * _arg0;
4524 wxString * _arg1;
4525 PyObject * _argo0 = 0;
4526 PyObject * _obj1 = 0;
4527 char *_kwnames[] = { "self","param", NULL };
4528 char _ptemp[128];
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_GetColour",_kwnames,&_argo0,&_obj1))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetColour. Expected _wxPyXmlResourceHandler_p.");
4537 return NULL;
4538 }
4539 }
4540 {
4541 _arg1 = wxString_in_helper(_obj1);
4542 if (_arg1 == NULL)
4543 return NULL;
4544 }
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 _result = new wxColour (wxXmlResourceHandler_GetColour(_arg0,*_arg1));
4548
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) return NULL;
4551 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
4552 _resultobj = Py_BuildValue("s",_ptemp);
4553 {
4554 if (_obj1)
4555 delete _arg1;
4556 }
4557 return _resultobj;
4558 }
4559
4560 #define wxXmlResourceHandler_GetSize(_swigobj,_swigarg0) (_swigobj->GetSize(_swigarg0))
4561 static PyObject *_wrap_wxXmlResourceHandler_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject * _resultobj;
4563 wxSize * _result;
4564 wxPyXmlResourceHandler * _arg0;
4565 wxString * _arg1 = (wxString *) &wxPySizeString;
4566 PyObject * _argo0 = 0;
4567 PyObject * _obj1 = 0;
4568 char *_kwnames[] = { "self","param", NULL };
4569 char _ptemp[128];
4570
4571 self = self;
4572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxXmlResourceHandler_GetSize",_kwnames,&_argo0,&_obj1))
4573 return NULL;
4574 if (_argo0) {
4575 if (_argo0 == Py_None) { _arg0 = NULL; }
4576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetSize. Expected _wxPyXmlResourceHandler_p.");
4578 return NULL;
4579 }
4580 }
4581 if (_obj1)
4582 {
4583 _arg1 = wxString_in_helper(_obj1);
4584 if (_arg1 == NULL)
4585 return NULL;
4586 }
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 _result = new wxSize (wxXmlResourceHandler_GetSize(_arg0,*_arg1));
4590
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) return NULL;
4593 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4594 _resultobj = Py_BuildValue("s",_ptemp);
4595 {
4596 if (_obj1)
4597 delete _arg1;
4598 }
4599 return _resultobj;
4600 }
4601
4602 #define wxXmlResourceHandler_GetPosition(_swigobj,_swigarg0) (_swigobj->GetPosition(_swigarg0))
4603 static PyObject *_wrap_wxXmlResourceHandler_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject * _resultobj;
4605 wxPoint * _result;
4606 wxPyXmlResourceHandler * _arg0;
4607 wxString * _arg1 = (wxString *) &wxPyPosString;
4608 PyObject * _argo0 = 0;
4609 PyObject * _obj1 = 0;
4610 char *_kwnames[] = { "self","param", NULL };
4611 char _ptemp[128];
4612
4613 self = self;
4614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxXmlResourceHandler_GetPosition",_kwnames,&_argo0,&_obj1))
4615 return NULL;
4616 if (_argo0) {
4617 if (_argo0 == Py_None) { _arg0 = NULL; }
4618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetPosition. Expected _wxPyXmlResourceHandler_p.");
4620 return NULL;
4621 }
4622 }
4623 if (_obj1)
4624 {
4625 _arg1 = wxString_in_helper(_obj1);
4626 if (_arg1 == NULL)
4627 return NULL;
4628 }
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 _result = new wxPoint (wxXmlResourceHandler_GetPosition(_arg0,*_arg1));
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) return NULL;
4635 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4636 _resultobj = Py_BuildValue("s",_ptemp);
4637 {
4638 if (_obj1)
4639 delete _arg1;
4640 }
4641 return _resultobj;
4642 }
4643
4644 #define wxXmlResourceHandler_GetDimension(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDimension(_swigarg0,_swigarg1))
4645 static PyObject *_wrap_wxXmlResourceHandler_GetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
4646 PyObject * _resultobj;
4647 wxCoord _result;
4648 wxPyXmlResourceHandler * _arg0;
4649 wxString * _arg1;
4650 wxCoord _arg2 = (wxCoord ) 0;
4651 PyObject * _argo0 = 0;
4652 PyObject * _obj1 = 0;
4653 char *_kwnames[] = { "self","param","defaultv", NULL };
4654
4655 self = self;
4656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxXmlResourceHandler_GetDimension",_kwnames,&_argo0,&_obj1,&_arg2))
4657 return NULL;
4658 if (_argo0) {
4659 if (_argo0 == Py_None) { _arg0 = NULL; }
4660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetDimension. Expected _wxPyXmlResourceHandler_p.");
4662 return NULL;
4663 }
4664 }
4665 {
4666 _arg1 = wxString_in_helper(_obj1);
4667 if (_arg1 == NULL)
4668 return NULL;
4669 }
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 _result = (wxCoord )wxXmlResourceHandler_GetDimension(_arg0,*_arg1,_arg2);
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) return NULL;
4676 } _resultobj = Py_BuildValue("i",_result);
4677 {
4678 if (_obj1)
4679 delete _arg1;
4680 }
4681 return _resultobj;
4682 }
4683
4684 #define wxXmlResourceHandler_GetBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetBitmap(_swigarg0,_swigarg1,_swigarg2))
4685 static PyObject *_wrap_wxXmlResourceHandler_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4686 PyObject * _resultobj;
4687 wxBitmap * _result;
4688 wxPyXmlResourceHandler * _arg0;
4689 wxString * _arg1 = (wxString *) &wxPyBitmapString;
4690 wxArtClient * _arg2 = (wxArtClient *) &wxART_OTHER;
4691 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4692 PyObject * _argo0 = 0;
4693 PyObject * _obj1 = 0;
4694 PyObject * _argo2 = 0;
4695 wxSize temp;
4696 PyObject * _obj3 = 0;
4697 char *_kwnames[] = { "self","param","defaultArtClient","size", NULL };
4698 char _ptemp[128];
4699
4700 self = self;
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxXmlResourceHandler_GetBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3))
4702 return NULL;
4703 if (_argo0) {
4704 if (_argo0 == Py_None) { _arg0 = NULL; }
4705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetBitmap. Expected _wxPyXmlResourceHandler_p.");
4707 return NULL;
4708 }
4709 }
4710 if (_obj1)
4711 {
4712 _arg1 = wxString_in_helper(_obj1);
4713 if (_arg1 == NULL)
4714 return NULL;
4715 }
4716 if (_argo2) {
4717 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxArtClient_p")) {
4718 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResourceHandler_GetBitmap. Expected _wxArtClient_p.");
4719 return NULL;
4720 }
4721 }
4722 if (_obj3)
4723 {
4724 _arg3 = &temp;
4725 if (! wxSize_helper(_obj3, &_arg3))
4726 return NULL;
4727 }
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 _result = new wxBitmap (wxXmlResourceHandler_GetBitmap(_arg0,*_arg1,*_arg2,*_arg3));
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) return NULL;
4734 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
4735 _resultobj = Py_BuildValue("s",_ptemp);
4736 {
4737 if (_obj1)
4738 delete _arg1;
4739 }
4740 return _resultobj;
4741 }
4742
4743 #define wxXmlResourceHandler_GetIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetIcon(_swigarg0,_swigarg1,_swigarg2))
4744 static PyObject *_wrap_wxXmlResourceHandler_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject * _resultobj;
4746 wxIcon * _result;
4747 wxPyXmlResourceHandler * _arg0;
4748 wxString * _arg1 = (wxString *) &wxPyIconString;
4749 wxArtClient * _arg2 = (wxArtClient *) &wxART_OTHER;
4750 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
4751 PyObject * _argo0 = 0;
4752 PyObject * _obj1 = 0;
4753 PyObject * _argo2 = 0;
4754 wxSize temp;
4755 PyObject * _obj3 = 0;
4756 char *_kwnames[] = { "self","param","defaultArtClient","size", NULL };
4757 char _ptemp[128];
4758
4759 self = self;
4760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxXmlResourceHandler_GetIcon",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3))
4761 return NULL;
4762 if (_argo0) {
4763 if (_argo0 == Py_None) { _arg0 = NULL; }
4764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetIcon. Expected _wxPyXmlResourceHandler_p.");
4766 return NULL;
4767 }
4768 }
4769 if (_obj1)
4770 {
4771 _arg1 = wxString_in_helper(_obj1);
4772 if (_arg1 == NULL)
4773 return NULL;
4774 }
4775 if (_argo2) {
4776 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxArtClient_p")) {
4777 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResourceHandler_GetIcon. Expected _wxArtClient_p.");
4778 return NULL;
4779 }
4780 }
4781 if (_obj3)
4782 {
4783 _arg3 = &temp;
4784 if (! wxSize_helper(_obj3, &_arg3))
4785 return NULL;
4786 }
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 _result = new wxIcon (wxXmlResourceHandler_GetIcon(_arg0,*_arg1,*_arg2,*_arg3));
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) return NULL;
4793 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
4794 _resultobj = Py_BuildValue("s",_ptemp);
4795 {
4796 if (_obj1)
4797 delete _arg1;
4798 }
4799 return _resultobj;
4800 }
4801
4802 #define wxXmlResourceHandler_GetFont(_swigobj,_swigarg0) (_swigobj->GetFont(_swigarg0))
4803 static PyObject *_wrap_wxXmlResourceHandler_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4804 PyObject * _resultobj;
4805 wxFont * _result;
4806 wxPyXmlResourceHandler * _arg0;
4807 wxString * _arg1 = (wxString *) &wxPyFontString;
4808 PyObject * _argo0 = 0;
4809 PyObject * _obj1 = 0;
4810 char *_kwnames[] = { "self","param", NULL };
4811 char _ptemp[128];
4812
4813 self = self;
4814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxXmlResourceHandler_GetFont",_kwnames,&_argo0,&_obj1))
4815 return NULL;
4816 if (_argo0) {
4817 if (_argo0 == Py_None) { _arg0 = NULL; }
4818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetFont. Expected _wxPyXmlResourceHandler_p.");
4820 return NULL;
4821 }
4822 }
4823 if (_obj1)
4824 {
4825 _arg1 = wxString_in_helper(_obj1);
4826 if (_arg1 == NULL)
4827 return NULL;
4828 }
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 _result = new wxFont (wxXmlResourceHandler_GetFont(_arg0,*_arg1));
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) return NULL;
4835 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
4836 _resultobj = Py_BuildValue("s",_ptemp);
4837 {
4838 if (_obj1)
4839 delete _arg1;
4840 }
4841 return _resultobj;
4842 }
4843
4844 #define wxXmlResourceHandler_SetupWindow(_swigobj,_swigarg0) (_swigobj->SetupWindow(_swigarg0))
4845 static PyObject *_wrap_wxXmlResourceHandler_SetupWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject * _resultobj;
4847 wxPyXmlResourceHandler * _arg0;
4848 wxWindow * _arg1;
4849 PyObject * _argo0 = 0;
4850 PyObject * _argo1 = 0;
4851 char *_kwnames[] = { "self","wnd", NULL };
4852
4853 self = self;
4854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResourceHandler_SetupWindow",_kwnames,&_argo0,&_argo1))
4855 return NULL;
4856 if (_argo0) {
4857 if (_argo0 == Py_None) { _arg0 = NULL; }
4858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_SetupWindow. Expected _wxPyXmlResourceHandler_p.");
4860 return NULL;
4861 }
4862 }
4863 if (_argo1) {
4864 if (_argo1 == Py_None) { _arg1 = NULL; }
4865 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4866 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_SetupWindow. Expected _wxWindow_p.");
4867 return NULL;
4868 }
4869 }
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 wxXmlResourceHandler_SetupWindow(_arg0,_arg1);
4873
4874 wxPyEndAllowThreads(__tstate);
4875 if (PyErr_Occurred()) return NULL;
4876 } Py_INCREF(Py_None);
4877 _resultobj = Py_None;
4878 return _resultobj;
4879 }
4880
4881 #define wxXmlResourceHandler_CreateChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildren(_swigarg0,_swigarg1))
4882 static PyObject *_wrap_wxXmlResourceHandler_CreateChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
4883 PyObject * _resultobj;
4884 wxPyXmlResourceHandler * _arg0;
4885 wxObject * _arg1;
4886 bool _arg2 = (bool ) FALSE;
4887 PyObject * _argo0 = 0;
4888 PyObject * _argo1 = 0;
4889 int tempbool2 = (int) FALSE;
4890 char *_kwnames[] = { "self","parent","this_hnd_only", NULL };
4891
4892 self = self;
4893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxXmlResourceHandler_CreateChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
4894 return NULL;
4895 if (_argo0) {
4896 if (_argo0 == Py_None) { _arg0 = NULL; }
4897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_CreateChildren. Expected _wxPyXmlResourceHandler_p.");
4899 return NULL;
4900 }
4901 }
4902 if (_argo1) {
4903 if (_argo1 == Py_None) { _arg1 = NULL; }
4904 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxObject_p")) {
4905 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_CreateChildren. Expected _wxObject_p.");
4906 return NULL;
4907 }
4908 }
4909 _arg2 = (bool ) tempbool2;
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 wxXmlResourceHandler_CreateChildren(_arg0,_arg1,_arg2);
4913
4914 wxPyEndAllowThreads(__tstate);
4915 if (PyErr_Occurred()) return NULL;
4916 } Py_INCREF(Py_None);
4917 _resultobj = Py_None;
4918 return _resultobj;
4919 }
4920
4921 #define wxXmlResourceHandler_CreateChildrenPrivately(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateChildrenPrivately(_swigarg0,_swigarg1))
4922 static PyObject *_wrap_wxXmlResourceHandler_CreateChildrenPrivately(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject * _resultobj;
4924 wxPyXmlResourceHandler * _arg0;
4925 wxObject * _arg1;
4926 wxXmlNode * _arg2 = (wxXmlNode *) NULL;
4927 PyObject * _argo0 = 0;
4928 PyObject * _argo1 = 0;
4929 PyObject * _argo2 = 0;
4930 char *_kwnames[] = { "self","parent","rootnode", NULL };
4931
4932 self = self;
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxXmlResourceHandler_CreateChildrenPrivately",_kwnames,&_argo0,&_argo1,&_argo2))
4934 return NULL;
4935 if (_argo0) {
4936 if (_argo0 == Py_None) { _arg0 = NULL; }
4937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxPyXmlResourceHandler_p.");
4939 return NULL;
4940 }
4941 }
4942 if (_argo1) {
4943 if (_argo1 == Py_None) { _arg1 = NULL; }
4944 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxObject_p")) {
4945 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxObject_p.");
4946 return NULL;
4947 }
4948 }
4949 if (_argo2) {
4950 if (_argo2 == Py_None) { _arg2 = NULL; }
4951 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxXmlNode_p")) {
4952 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResourceHandler_CreateChildrenPrivately. Expected _wxXmlNode_p.");
4953 return NULL;
4954 }
4955 }
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 wxXmlResourceHandler_CreateChildrenPrivately(_arg0,_arg1,_arg2);
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) return NULL;
4962 } Py_INCREF(Py_None);
4963 _resultobj = Py_None;
4964 return _resultobj;
4965 }
4966
4967 #define wxXmlResourceHandler_CreateResFromNode(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateResFromNode(_swigarg0,_swigarg1,_swigarg2))
4968 static PyObject *_wrap_wxXmlResourceHandler_CreateResFromNode(PyObject *self, PyObject *args, PyObject *kwargs) {
4969 PyObject * _resultobj;
4970 wxObject * _result;
4971 wxPyXmlResourceHandler * _arg0;
4972 wxXmlNode * _arg1;
4973 wxObject * _arg2;
4974 wxObject * _arg3 = (wxObject *) NULL;
4975 PyObject * _argo0 = 0;
4976 PyObject * _argo1 = 0;
4977 PyObject * _argo2 = 0;
4978 PyObject * _argo3 = 0;
4979 char *_kwnames[] = { "self","node","parent","instance", NULL };
4980
4981 self = self;
4982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxXmlResourceHandler_CreateResFromNode",_kwnames,&_argo0,&_argo1,&_argo2,&_argo3))
4983 return NULL;
4984 if (_argo0) {
4985 if (_argo0 == Py_None) { _arg0 = NULL; }
4986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
4987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_CreateResFromNode. Expected _wxPyXmlResourceHandler_p.");
4988 return NULL;
4989 }
4990 }
4991 if (_argo1) {
4992 if (_argo1 == Py_None) { _arg1 = NULL; }
4993 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlNode_p")) {
4994 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResourceHandler_CreateResFromNode. Expected _wxXmlNode_p.");
4995 return NULL;
4996 }
4997 }
4998 if (_argo2) {
4999 if (_argo2 == Py_None) { _arg2 = NULL; }
5000 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxObject_p")) {
5001 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
5002 return NULL;
5003 }
5004 }
5005 if (_argo3) {
5006 if (_argo3 == Py_None) { _arg3 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxObject_p")) {
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxXmlResourceHandler_CreateResFromNode. Expected _wxObject_p.");
5009 return NULL;
5010 }
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 _result = (wxObject *)wxXmlResourceHandler_CreateResFromNode(_arg0,_arg1,_arg2,_arg3);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) return NULL;
5018 }{ _resultobj = wxPyMake_wxObject(_result); }
5019 return _resultobj;
5020 }
5021
5022 #define wxXmlResourceHandler_GetCurFileSystem(_swigobj) (_swigobj->GetCurFileSystem())
5023 static PyObject *_wrap_wxXmlResourceHandler_GetCurFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject * _resultobj;
5025 wxFileSystem * _result;
5026 wxPyXmlResourceHandler * _arg0;
5027 PyObject * _argo0 = 0;
5028 char *_kwnames[] = { "self", NULL };
5029
5030 self = self;
5031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResourceHandler_GetCurFileSystem",_kwnames,&_argo0))
5032 return NULL;
5033 if (_argo0) {
5034 if (_argo0 == Py_None) { _arg0 = NULL; }
5035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyXmlResourceHandler_p")) {
5036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResourceHandler_GetCurFileSystem. Expected _wxPyXmlResourceHandler_p.");
5037 return NULL;
5038 }
5039 }
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 wxFileSystem & _result_ref = wxXmlResourceHandler_GetCurFileSystem(_arg0);
5043 _result = (wxFileSystem *) &_result_ref;
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) return NULL;
5047 }{ _resultobj = wxPyMake_wxObject(_result); }
5048 return _resultobj;
5049 }
5050
5051 static PyMethodDef xrccMethods[] = {
5052 { "wxXmlResourceHandler_GetCurFileSystem", (PyCFunction) _wrap_wxXmlResourceHandler_GetCurFileSystem, METH_VARARGS | METH_KEYWORDS },
5053 { "wxXmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_wxXmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS },
5054 { "wxXmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_wxXmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS },
5055 { "wxXmlResourceHandler_CreateChildren", (PyCFunction) _wrap_wxXmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS },
5056 { "wxXmlResourceHandler_SetupWindow", (PyCFunction) _wrap_wxXmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS },
5057 { "wxXmlResourceHandler_GetFont", (PyCFunction) _wrap_wxXmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS },
5058 { "wxXmlResourceHandler_GetIcon", (PyCFunction) _wrap_wxXmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS },
5059 { "wxXmlResourceHandler_GetBitmap", (PyCFunction) _wrap_wxXmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS },
5060 { "wxXmlResourceHandler_GetDimension", (PyCFunction) _wrap_wxXmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS },
5061 { "wxXmlResourceHandler_GetPosition", (PyCFunction) _wrap_wxXmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS },
5062 { "wxXmlResourceHandler_GetSize", (PyCFunction) _wrap_wxXmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS },
5063 { "wxXmlResourceHandler_GetColour", (PyCFunction) _wrap_wxXmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS },
5064 { "wxXmlResourceHandler_GetLong", (PyCFunction) _wrap_wxXmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS },
5065 { "wxXmlResourceHandler_GetBool", (PyCFunction) _wrap_wxXmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS },
5066 { "wxXmlResourceHandler_GetName", (PyCFunction) _wrap_wxXmlResourceHandler_GetName, METH_VARARGS | METH_KEYWORDS },
5067 { "wxXmlResourceHandler_GetID", (PyCFunction) _wrap_wxXmlResourceHandler_GetID, METH_VARARGS | METH_KEYWORDS },
5068 { "wxXmlResourceHandler_GetText", (PyCFunction) _wrap_wxXmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS },
5069 { "wxXmlResourceHandler_GetStyle", (PyCFunction) _wrap_wxXmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS },
5070 { "wxXmlResourceHandler_AddWindowStyles", (PyCFunction) _wrap_wxXmlResourceHandler_AddWindowStyles, METH_VARARGS | METH_KEYWORDS },
5071 { "wxXmlResourceHandler_AddStyle", (PyCFunction) _wrap_wxXmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS },
5072 { "wxXmlResourceHandler_GetParamValue", (PyCFunction) _wrap_wxXmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS },
5073 { "wxXmlResourceHandler_GetParamNode", (PyCFunction) _wrap_wxXmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS },
5074 { "wxXmlResourceHandler_HasParam", (PyCFunction) _wrap_wxXmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS },
5075 { "wxXmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_wxXmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS },
5076 { "wxXmlResourceHandler_IsOfClass", (PyCFunction) _wrap_wxXmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS },
5077 { "wxXmlResourceHandler_GetInstanceAsWindow", (PyCFunction) _wrap_wxXmlResourceHandler_GetInstanceAsWindow, METH_VARARGS | METH_KEYWORDS },
5078 { "wxXmlResourceHandler_GetParentAsWindow", (PyCFunction) _wrap_wxXmlResourceHandler_GetParentAsWindow, METH_VARARGS | METH_KEYWORDS },
5079 { "wxXmlResourceHandler_GetInstance", (PyCFunction) _wrap_wxXmlResourceHandler_GetInstance, METH_VARARGS | METH_KEYWORDS },
5080 { "wxXmlResourceHandler_GetParent", (PyCFunction) _wrap_wxXmlResourceHandler_GetParent, METH_VARARGS | METH_KEYWORDS },
5081 { "wxXmlResourceHandler_GetClass", (PyCFunction) _wrap_wxXmlResourceHandler_GetClass, METH_VARARGS | METH_KEYWORDS },
5082 { "wxXmlResourceHandler_GetNode", (PyCFunction) _wrap_wxXmlResourceHandler_GetNode, METH_VARARGS | METH_KEYWORDS },
5083 { "wxXmlResourceHandler_GetResource", (PyCFunction) _wrap_wxXmlResourceHandler_GetResource, METH_VARARGS | METH_KEYWORDS },
5084 { "wxXmlResourceHandler_SetParentResource", (PyCFunction) _wrap_wxXmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS },
5085 { "wxXmlResourceHandler_CreateResource", (PyCFunction) _wrap_wxXmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS },
5086 { "wxXmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_wxXmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
5087 { "new_wxXmlResourceHandler", (PyCFunction) _wrap_new_wxXmlResourceHandler, METH_VARARGS | METH_KEYWORDS },
5088 { "wxXmlDocument_SetEncoding", (PyCFunction) _wrap_wxXmlDocument_SetEncoding, METH_VARARGS | METH_KEYWORDS },
5089 { "wxXmlDocument_GetEncoding", (PyCFunction) _wrap_wxXmlDocument_GetEncoding, METH_VARARGS | METH_KEYWORDS },
5090 { "wxXmlDocument_SetFileEncoding", (PyCFunction) _wrap_wxXmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS },
5091 { "wxXmlDocument_SetVersion", (PyCFunction) _wrap_wxXmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS },
5092 { "wxXmlDocument_SetRoot", (PyCFunction) _wrap_wxXmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS },
5093 { "wxXmlDocument_GetFileEncoding", (PyCFunction) _wrap_wxXmlDocument_GetFileEncoding, METH_VARARGS | METH_KEYWORDS },
5094 { "wxXmlDocument_GetVersion", (PyCFunction) _wrap_wxXmlDocument_GetVersion, METH_VARARGS | METH_KEYWORDS },
5095 { "wxXmlDocument_GetRoot", (PyCFunction) _wrap_wxXmlDocument_GetRoot, METH_VARARGS | METH_KEYWORDS },
5096 { "wxXmlDocument_IsOk", (PyCFunction) _wrap_wxXmlDocument_IsOk, METH_VARARGS | METH_KEYWORDS },
5097 { "wxXmlDocument_SaveToStream", (PyCFunction) _wrap_wxXmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS },
5098 { "wxXmlDocument_Save", (PyCFunction) _wrap_wxXmlDocument_Save, METH_VARARGS | METH_KEYWORDS },
5099 { "wxXmlDocument_LoadFromStream", (PyCFunction) _wrap_wxXmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS },
5100 { "wxXmlDocument_Load", (PyCFunction) _wrap_wxXmlDocument_Load, METH_VARARGS | METH_KEYWORDS },
5101 { "delete_wxXmlDocument", (PyCFunction) _wrap_delete_wxXmlDocument, METH_VARARGS | METH_KEYWORDS },
5102 { "new_wxEmptyXmlDocument", (PyCFunction) _wrap_new_wxEmptyXmlDocument, METH_VARARGS | METH_KEYWORDS },
5103 { "new_wxXmlDocumentFromStream", (PyCFunction) _wrap_new_wxXmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS },
5104 { "new_wxXmlDocument", (PyCFunction) _wrap_new_wxXmlDocument, METH_VARARGS | METH_KEYWORDS },
5105 { "wxXmlNode_SetProperties", (PyCFunction) _wrap_wxXmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS },
5106 { "wxXmlNode_SetChildren", (PyCFunction) _wrap_wxXmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS },
5107 { "wxXmlNode_SetNext", (PyCFunction) _wrap_wxXmlNode_SetNext, METH_VARARGS | METH_KEYWORDS },
5108 { "wxXmlNode_SetParent", (PyCFunction) _wrap_wxXmlNode_SetParent, METH_VARARGS | METH_KEYWORDS },
5109 { "wxXmlNode_SetContent", (PyCFunction) _wrap_wxXmlNode_SetContent, METH_VARARGS | METH_KEYWORDS },
5110 { "wxXmlNode_SetName", (PyCFunction) _wrap_wxXmlNode_SetName, METH_VARARGS | METH_KEYWORDS },
5111 { "wxXmlNode_SetType", (PyCFunction) _wrap_wxXmlNode_SetType, METH_VARARGS | METH_KEYWORDS },
5112 { "wxXmlNode_HasProp", (PyCFunction) _wrap_wxXmlNode_HasProp, METH_VARARGS | METH_KEYWORDS },
5113 { "wxXmlNode_GetPropVal", (PyCFunction) _wrap_wxXmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS },
5114 { "wxXmlNode_GetProperties", (PyCFunction) _wrap_wxXmlNode_GetProperties, METH_VARARGS | METH_KEYWORDS },
5115 { "wxXmlNode_GetChildren", (PyCFunction) _wrap_wxXmlNode_GetChildren, METH_VARARGS | METH_KEYWORDS },
5116 { "wxXmlNode_GetNext", (PyCFunction) _wrap_wxXmlNode_GetNext, METH_VARARGS | METH_KEYWORDS },
5117 { "wxXmlNode_GetParent", (PyCFunction) _wrap_wxXmlNode_GetParent, METH_VARARGS | METH_KEYWORDS },
5118 { "wxXmlNode_GetContent", (PyCFunction) _wrap_wxXmlNode_GetContent, METH_VARARGS | METH_KEYWORDS },
5119 { "wxXmlNode_GetName", (PyCFunction) _wrap_wxXmlNode_GetName, METH_VARARGS | METH_KEYWORDS },
5120 { "wxXmlNode_GetType", (PyCFunction) _wrap_wxXmlNode_GetType, METH_VARARGS | METH_KEYWORDS },
5121 { "wxXmlNode_DeleteProperty", (PyCFunction) _wrap_wxXmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS },
5122 { "wxXmlNode_AddPropertyName", (PyCFunction) _wrap_wxXmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS },
5123 { "wxXmlNode_AddProperty", (PyCFunction) _wrap_wxXmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS },
5124 { "wxXmlNode_RemoveChild", (PyCFunction) _wrap_wxXmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS },
5125 { "wxXmlNode_InsertChild", (PyCFunction) _wrap_wxXmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS },
5126 { "wxXmlNode_AddChild", (PyCFunction) _wrap_wxXmlNode_AddChild, METH_VARARGS | METH_KEYWORDS },
5127 { "new_wxXmlNodeEasy", (PyCFunction) _wrap_new_wxXmlNodeEasy, METH_VARARGS | METH_KEYWORDS },
5128 { "delete_wxXmlNode", (PyCFunction) _wrap_delete_wxXmlNode, METH_VARARGS | METH_KEYWORDS },
5129 { "new_wxXmlNode", (PyCFunction) _wrap_new_wxXmlNode, METH_VARARGS | METH_KEYWORDS },
5130 { "wxXmlProperty_SetNext", (PyCFunction) _wrap_wxXmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS },
5131 { "wxXmlProperty_SetValue", (PyCFunction) _wrap_wxXmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS },
5132 { "wxXmlProperty_SetName", (PyCFunction) _wrap_wxXmlProperty_SetName, METH_VARARGS | METH_KEYWORDS },
5133 { "wxXmlProperty_GetNext", (PyCFunction) _wrap_wxXmlProperty_GetNext, METH_VARARGS | METH_KEYWORDS },
5134 { "wxXmlProperty_GetValue", (PyCFunction) _wrap_wxXmlProperty_GetValue, METH_VARARGS | METH_KEYWORDS },
5135 { "wxXmlProperty_GetName", (PyCFunction) _wrap_wxXmlProperty_GetName, METH_VARARGS | METH_KEYWORDS },
5136 { "new_wxXmlProperty", (PyCFunction) _wrap_new_wxXmlProperty, METH_VARARGS | METH_KEYWORDS },
5137 { "wxXmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_wxXmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
5138 { "new_wxXmlSubclassFactory", (PyCFunction) _wrap_new_wxXmlSubclassFactory, METH_VARARGS | METH_KEYWORDS },
5139 { "wxXmlResource_SetFlags", (PyCFunction) _wrap_wxXmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS },
5140 { "wxXmlResource_GetFlags", (PyCFunction) _wrap_wxXmlResource_GetFlags, METH_VARARGS | METH_KEYWORDS },
5141 { "wxXmlResource_Set", (PyCFunction) _wrap_wxXmlResource_Set, METH_VARARGS | METH_KEYWORDS },
5142 { "wxXmlResource_Get", (PyCFunction) _wrap_wxXmlResource_Get, METH_VARARGS | METH_KEYWORDS },
5143 { "wxXmlResource_CompareVersion", (PyCFunction) _wrap_wxXmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS },
5144 { "wxXmlResource_GetVersion", (PyCFunction) _wrap_wxXmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS },
5145 { "wxXmlResource_GetXRCID", (PyCFunction) _wrap_wxXmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS },
5146 { "wxXmlResource_AttachUnknownControl", (PyCFunction) _wrap_wxXmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS },
5147 { "wxXmlResource_LoadIcon", (PyCFunction) _wrap_wxXmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS },
5148 { "wxXmlResource_LoadBitmap", (PyCFunction) _wrap_wxXmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS },
5149 { "wxXmlResource_LoadOnObject", (PyCFunction) _wrap_wxXmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS },
5150 { "wxXmlResource_LoadObject", (PyCFunction) _wrap_wxXmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS },
5151 { "wxXmlResource_LoadOnFrame", (PyCFunction) _wrap_wxXmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS },
5152 { "wxXmlResource_LoadFrame", (PyCFunction) _wrap_wxXmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS },
5153 { "wxXmlResource_LoadOnPanel", (PyCFunction) _wrap_wxXmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS },
5154 { "wxXmlResource_LoadPanel", (PyCFunction) _wrap_wxXmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS },
5155 { "wxXmlResource_LoadOnDialog", (PyCFunction) _wrap_wxXmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS },
5156 { "wxXmlResource_LoadDialog", (PyCFunction) _wrap_wxXmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS },
5157 { "wxXmlResource_LoadToolBar", (PyCFunction) _wrap_wxXmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS },
5158 { "wxXmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_wxXmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS },
5159 { "wxXmlResource_LoadMenuBar", (PyCFunction) _wrap_wxXmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS },
5160 { "wxXmlResource_LoadMenu", (PyCFunction) _wrap_wxXmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS },
5161 { "wxXmlResource_AddSubclassFactory", (PyCFunction) _wrap_wxXmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS },
5162 { "wxXmlResource_ClearHandlers", (PyCFunction) _wrap_wxXmlResource_ClearHandlers, METH_VARARGS | METH_KEYWORDS },
5163 { "wxXmlResource_InsertHandler", (PyCFunction) _wrap_wxXmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS },
5164 { "wxXmlResource_AddHandler", (PyCFunction) _wrap_wxXmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS },
5165 { "wxXmlResource_InitAllHandlers", (PyCFunction) _wrap_wxXmlResource_InitAllHandlers, METH_VARARGS | METH_KEYWORDS },
5166 { "wxXmlResource_LoadFromString", (PyCFunction) _wrap_wxXmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS },
5167 { "wxXmlResource_Load", (PyCFunction) _wrap_wxXmlResource_Load, METH_VARARGS | METH_KEYWORDS },
5168 { "delete_wxXmlResource", (PyCFunction) _wrap_delete_wxXmlResource, METH_VARARGS | METH_KEYWORDS },
5169 { "new_wxEmptyXmlResource", (PyCFunction) _wrap_new_wxEmptyXmlResource, METH_VARARGS | METH_KEYWORDS },
5170 { "new_wxXmlResource", (PyCFunction) _wrap_new_wxXmlResource, METH_VARARGS | METH_KEYWORDS },
5171 { NULL, NULL }
5172 };
5173 #ifdef __cplusplus
5174 }
5175 #endif
5176 /*
5177 * This table is used by the pointer type-checker
5178 */
5179 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
5180 { "_signed_long","_long",0},
5181 { "_wxPrintQuality","_wxCoord",0},
5182 { "_wxPrintQuality","_int",0},
5183 { "_wxPrintQuality","_signed_int",0},
5184 { "_wxPrintQuality","_unsigned_int",0},
5185 { "_wxPrintQuality","_wxWindowID",0},
5186 { "_wxPrintQuality","_uint",0},
5187 { "_wxPrintQuality","_EBool",0},
5188 { "_wxPrintQuality","_size_t",0},
5189 { "_wxPrintQuality","_time_t",0},
5190 { "_byte","_unsigned_char",0},
5191 { "_long","_unsigned_long",0},
5192 { "_long","_signed_long",0},
5193 { "_size_t","_wxCoord",0},
5194 { "_size_t","_wxPrintQuality",0},
5195 { "_size_t","_time_t",0},
5196 { "_size_t","_unsigned_int",0},
5197 { "_size_t","_int",0},
5198 { "_size_t","_wxWindowID",0},
5199 { "_size_t","_uint",0},
5200 { "_uint","_wxCoord",0},
5201 { "_uint","_wxPrintQuality",0},
5202 { "_uint","_time_t",0},
5203 { "_uint","_size_t",0},
5204 { "_uint","_unsigned_int",0},
5205 { "_uint","_int",0},
5206 { "_uint","_wxWindowID",0},
5207 { "_wxChar","_char",0},
5208 { "_char","_wxChar",0},
5209 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
5210 { "_EBool","_wxCoord",0},
5211 { "_EBool","_wxPrintQuality",0},
5212 { "_EBool","_signed_int",0},
5213 { "_EBool","_int",0},
5214 { "_EBool","_wxWindowID",0},
5215 { "_unsigned_long","_long",0},
5216 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
5217 { "_signed_int","_wxCoord",0},
5218 { "_signed_int","_wxPrintQuality",0},
5219 { "_signed_int","_EBool",0},
5220 { "_signed_int","_wxWindowID",0},
5221 { "_signed_int","_int",0},
5222 { "_WXTYPE","_wxDateTime_t",0},
5223 { "_WXTYPE","_short",0},
5224 { "_WXTYPE","_signed_short",0},
5225 { "_WXTYPE","_unsigned_short",0},
5226 { "_unsigned_short","_wxDateTime_t",0},
5227 { "_unsigned_short","_WXTYPE",0},
5228 { "_unsigned_short","_short",0},
5229 { "_wxObject","_wxPyXmlResourceHandler",SwigwxPyXmlResourceHandlerTowxObject},
5230 { "_wxObject","_wxXmlDocument",SwigwxXmlDocumentTowxObject},
5231 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject},
5232 { "_signed_short","_WXTYPE",0},
5233 { "_signed_short","_short",0},
5234 { "_unsigned_char","_byte",0},
5235 { "_unsigned_int","_wxCoord",0},
5236 { "_unsigned_int","_wxPrintQuality",0},
5237 { "_unsigned_int","_time_t",0},
5238 { "_unsigned_int","_size_t",0},
5239 { "_unsigned_int","_uint",0},
5240 { "_unsigned_int","_wxWindowID",0},
5241 { "_unsigned_int","_int",0},
5242 { "_short","_wxDateTime_t",0},
5243 { "_short","_WXTYPE",0},
5244 { "_short","_unsigned_short",0},
5245 { "_short","_signed_short",0},
5246 { "_wxWindowID","_wxCoord",0},
5247 { "_wxWindowID","_wxPrintQuality",0},
5248 { "_wxWindowID","_time_t",0},
5249 { "_wxWindowID","_size_t",0},
5250 { "_wxWindowID","_EBool",0},
5251 { "_wxWindowID","_uint",0},
5252 { "_wxWindowID","_int",0},
5253 { "_wxWindowID","_signed_int",0},
5254 { "_wxWindowID","_unsigned_int",0},
5255 { "_int","_wxCoord",0},
5256 { "_int","_wxPrintQuality",0},
5257 { "_int","_time_t",0},
5258 { "_int","_size_t",0},
5259 { "_int","_EBool",0},
5260 { "_int","_uint",0},
5261 { "_int","_wxWindowID",0},
5262 { "_int","_unsigned_int",0},
5263 { "_int","_signed_int",0},
5264 { "_wxDateTime_t","_unsigned_short",0},
5265 { "_wxDateTime_t","_short",0},
5266 { "_wxDateTime_t","_WXTYPE",0},
5267 { "_time_t","_wxCoord",0},
5268 { "_time_t","_wxPrintQuality",0},
5269 { "_time_t","_unsigned_int",0},
5270 { "_time_t","_int",0},
5271 { "_time_t","_wxWindowID",0},
5272 { "_time_t","_uint",0},
5273 { "_time_t","_size_t",0},
5274 { "_wxCoord","_int",0},
5275 { "_wxCoord","_signed_int",0},
5276 { "_wxCoord","_unsigned_int",0},
5277 { "_wxCoord","_wxWindowID",0},
5278 { "_wxCoord","_uint",0},
5279 { "_wxCoord","_EBool",0},
5280 { "_wxCoord","_size_t",0},
5281 { "_wxCoord","_time_t",0},
5282 { "_wxCoord","_wxPrintQuality",0},
5283 {0,0,0}};
5284
5285 static PyObject *SWIG_globals;
5286 #ifdef __cplusplus
5287 extern "C"
5288 #endif
5289 SWIGEXPORT(void) initxrcc() {
5290 PyObject *m, *d;
5291 SWIG_globals = SWIG_newvarlink();
5292 m = Py_InitModule("xrcc", xrccMethods);
5293 d = PyModule_GetDict(m);
5294 PyDict_SetItemString(d,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE));
5295 PyDict_SetItemString(d,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING));
5296 PyDict_SetItemString(d,"wxXML_ELEMENT_NODE", PyInt_FromLong((long) wxXML_ELEMENT_NODE));
5297 PyDict_SetItemString(d,"wxXML_ATTRIBUTE_NODE", PyInt_FromLong((long) wxXML_ATTRIBUTE_NODE));
5298 PyDict_SetItemString(d,"wxXML_TEXT_NODE", PyInt_FromLong((long) wxXML_TEXT_NODE));
5299 PyDict_SetItemString(d,"wxXML_CDATA_SECTION_NODE", PyInt_FromLong((long) wxXML_CDATA_SECTION_NODE));
5300 PyDict_SetItemString(d,"wxXML_ENTITY_REF_NODE", PyInt_FromLong((long) wxXML_ENTITY_REF_NODE));
5301 PyDict_SetItemString(d,"wxXML_ENTITY_NODE", PyInt_FromLong((long) wxXML_ENTITY_NODE));
5302 PyDict_SetItemString(d,"wxXML_PI_NODE", PyInt_FromLong((long) wxXML_PI_NODE));
5303 PyDict_SetItemString(d,"wxXML_COMMENT_NODE", PyInt_FromLong((long) wxXML_COMMENT_NODE));
5304 PyDict_SetItemString(d,"wxXML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_NODE));
5305 PyDict_SetItemString(d,"wxXML_DOCUMENT_TYPE_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_TYPE_NODE));
5306 PyDict_SetItemString(d,"wxXML_DOCUMENT_FRAG_NODE", PyInt_FromLong((long) wxXML_DOCUMENT_FRAG_NODE));
5307 PyDict_SetItemString(d,"wxXML_NOTATION_NODE", PyInt_FromLong((long) wxXML_NOTATION_NODE));
5308 PyDict_SetItemString(d,"wxXML_HTML_DOCUMENT_NODE", PyInt_FromLong((long) wxXML_HTML_DOCUMENT_NODE));
5309
5310
5311 wxClassInfo::CleanUpClasses();
5312 wxClassInfo::InitializeClasses();
5313
5314 wxXmlInitResourceModule();
5315 wxXmlResource::Get()->InitAllHandlers();
5316
5317 {
5318 int i;
5319 for (i = 0; _swig_mapping[i].n1; i++)
5320 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
5321 }
5322 }