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