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