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