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