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