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