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