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