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