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