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