]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/xrc_wrap.cpp
a3ad67a549f41f2c29cb0d7a28bd1baeacb6b22f
[wxWidgets.git] / wxPython / src / msw / xrc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
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
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29 /***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
35
36 /* template workaround for compilers that cannot correctly implement the C++ standard */
37 #ifndef SWIGTEMPLATEDISAMBIGUATOR
38 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 #endif
44
45 /* inline attribute */
46 #ifndef SWIGINLINE
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
49 # else
50 # define SWIGINLINE
51 # endif
52 #endif
53
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
55 #ifndef SWIGUNUSED
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
58 # else
59 # define SWIGUNUSED
60 # endif
61 #endif
62
63 /* internal SWIG method */
64 #ifndef SWIGINTERN
65 # define SWIGINTERN static SWIGUNUSED
66 #endif
67
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71 #endif
72
73 /* exporting methods for Windows DLLs */
74 #ifndef SWIGEXPORT
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
77 # define SWIGEXPORT
78 # else
79 # define SWIGEXPORT __declspec(dllexport)
80 # endif
81 # else
82 # define SWIGEXPORT
83 # endif
84 #endif
85
86 /* calling conventions for Windows */
87 #ifndef SWIGSTDCALL
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
90 # else
91 # define SWIGSTDCALL
92 # endif
93 #endif
94
95
96
97 #include <Python.h>
98
99 /***********************************************************************
100 * swigrun.swg
101 *
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
104 *
105 ************************************************************************/
106
107 /* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
109 #define SWIG_RUNTIME_VERSION "2"
110
111 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112 #ifdef SWIG_TYPE_TABLE
113 # define SWIG_QUOTE_STRING(x) #x
114 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
116 #else
117 # define SWIG_TYPE_TABLE_NAME
118 #endif
119
120 /*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127 */
128
129 #ifndef SWIGRUNTIME
130 # define SWIGRUNTIME SWIGINTERN
131 #endif
132
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
135 #endif
136
137 #include <string.h>
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 typedef void *(*swig_converter_func)(void *);
144 typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
146 /* Structure to store inforomation on one type */
147 typedef struct swig_type_info {
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
153 } swig_type_info;
154
155 /* Structure to store a type and conversion function used for casting */
156 typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161 } swig_cast_info;
162
163 /* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166 typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173 } swig_module_info;
174
175
176 /*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182 */
183 SWIGRUNTIME int
184 SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
189 if (*f1 != *f2) return (int)(*f1 - *f2);
190 }
191 return (l1 - f1) - (l2 - f2);
192 }
193
194 /*
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
197 */
198 SWIGRUNTIME int
199 SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
208 if (*ne) ++ne;
209 }
210 return equiv;
211 }
212
213 /*
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
216 */
217 SWIGRUNTIME int
218 SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
225 }
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
228 }
229 return equiv;
230 }
231
232
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
255 /*
256 Check the typename
257 */
258 SWIGRUNTIME swig_cast_info *
259 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261 }
262
263 /* Same as previous function, except strcmp is replaced with a pointer comparison */
264 SWIGRUNTIME swig_cast_info *
265 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
267 }
268
269 /*
270 Cast a pointer up an inheritance hierarchy
271 */
272 SWIGRUNTIMEINLINE void *
273 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275 }
276
277 /*
278 Dynamic pointer casting. Down an inheritance hierarchy
279 */
280 SWIGRUNTIME swig_type_info *
281 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289 }
290
291 /*
292 Return the name associated with this type
293 */
294 SWIGRUNTIMEINLINE const char *
295 SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297 }
298
299 /*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302 */
303 SWIGRUNTIME const char *
304 SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318 }
319
320 /*
321 Set the clientdata field for a type
322 */
323 SWIGRUNTIME void
324 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
334 }
335 }
336 cast = cast->next;
337 }
338 }
339
340 /*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347 */
348 SWIGRUNTIME swig_type_info *
349 SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
378 }
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382 }
383
384 /*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392 */
393 SWIGRUNTIME swig_type_info *
394 SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
413 }
414
415 /* neither found a match */
416 return 0;
417 }
418
419
420 /*
421 Pack binary data into a string
422 */
423 SWIGRUNTIME char *
424 SWIG_PackData(char *c, void *ptr, size_t sz) {
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
428 for (; u != eu; ++u) {
429 register unsigned char uu = *u;
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434 }
435
436 /*
437 Unpack binary data from a string
438 */
439 SWIGRUNTIME const char *
440 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
442 register const unsigned char *eu = u + sz;
443 for (; u != eu; ++u) {
444 register char d = *(c++);
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462 }
463
464 /*
465 Pack 'void *' into a string buffer.
466 */
467 SWIGRUNTIME char *
468 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476 }
477
478 SWIGRUNTIME const char *
479 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489 }
490
491 SWIGRUNTIME char *
492 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504 }
505
506 SWIGRUNTIME const char *
507 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517 }
518
519 #ifdef __cplusplus
520 }
521 #endif
522
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
527 #ifdef __cplusplus
528 extern "C" {
529 #endif
530
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535 #ifndef SWIGINTERN
536 # define SWIGINTERN static SWIGUNUSED
537 #endif
538
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
541 #endif
542
543 /*
544 Exception handling in wrappers
545 */
546 #define SWIG_fail goto fail
547 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553 /*
554 Contract support
555 */
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563 /* Constant Types */
564 #define SWIG_PY_INT 1
565 #define SWIG_PY_FLOAT 2
566 #define SWIG_PY_STRING 3
567 #define SWIG_PY_POINTER 4
568 #define SWIG_PY_BINARY 5
569
570 /* Constant information structure */
571 typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578 } swig_const_info;
579
580
581 /* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584 #define SWIG_OLDOBJ 1
585 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586 #define SWIG_PYSTR SWIG_NEWOBJ + 1
587
588 #ifdef __cplusplus
589 }
590 #endif
591
592
593 /***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
602
603 /* Common SWIG API */
604 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
607
608
609 /* Python-specific SWIG API */
610 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
612
613 /* Runtime API */
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
616
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620 /*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624 */
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
627 #endif
628
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
632
633
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
637 #endif
638
639 #ifdef __cplusplus
640 extern "C" {
641 #endif
642
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
648 #endif
649
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
652 static PyObject *
653 PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661 }
662 #endif
663
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
666 #endif
667
668 #if defined(SWIG_COBJECT_TYPES)
669 #if !defined(SWIG_COBJECT_PYTHON)
670 /* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
673
674 typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678 } PySwigObject;
679
680 /* Declarations for objects of type PySwigObject */
681
682 SWIGRUNTIME int
683 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684 {
685 char result[SWIG_BUFFER_SIZE];
686 flags = flags;
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693 }
694
695 SWIGRUNTIME PyObject *
696 PySwigObject_repr(PySwigObject *v)
697 {
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701 }
702
703 SWIGRUNTIME PyObject *
704 PySwigObject_str(PySwigObject *v)
705 {
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709 }
710
711 SWIGRUNTIME PyObject *
712 PySwigObject_long(PySwigObject *v)
713 {
714 return PyLong_FromVoidPtr(v->ptr);
715 }
716
717 SWIGRUNTIME PyObject *
718 PySwigObject_format(const char* fmt, PySwigObject *v)
719 {
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
731 }
732
733 SWIGRUNTIME PyObject *
734 PySwigObject_oct(PySwigObject *v)
735 {
736 return PySwigObject_format("%o",v);
737 }
738
739 SWIGRUNTIME PyObject *
740 PySwigObject_hex(PySwigObject *v)
741 {
742 return PySwigObject_format("%x",v);
743 }
744
745 SWIGRUNTIME int
746 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
747 {
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
750 return (c > 0) ? 1 : -1;
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
755 }
756 }
757
758 SWIGRUNTIME void
759 PySwigObject_dealloc(PySwigObject *self)
760 {
761 PyObject_Del(self);
762 }
763
764 SWIGRUNTIME PyTypeObject*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
767 "Swig object carries a C/C++ instance pointer";
768
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
793 #if PY_VERSION_HEX >= 0x02020000
794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
795 #elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
797 #endif
798 };
799
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
804 if (!type_init) {
805 PyTypeObject tmp
806 #endif
807 = {
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832 #endif
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836 #endif
837 #if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839 #endif
840 #if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842 #endif
843 #ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845 #endif
846 };
847 #if !defined(__cplusplus)
848 pyswigobject_type = tmp;
849 type_init = 1;
850 }
851 #endif
852 return &pyswigobject_type;
853 }
854
855 SWIGRUNTIME PyObject *
856 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857 {
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
863 return (PyObject *)self;
864 }
865
866 SWIGRUNTIMEINLINE void *
867 PySwigObject_AsVoidPtr(PyObject *self)
868 {
869 return ((PySwigObject *)self)->ptr;
870 }
871
872 SWIGRUNTIMEINLINE const char *
873 PySwigObject_GetDesc(PyObject *self)
874 {
875 return ((PySwigObject *)self)->desc;
876 }
877
878 SWIGRUNTIMEINLINE int
879 PySwigObject_Check(PyObject *op) {
880 return ((op)->ob_type == PySwigObject_type())
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882 }
883
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
887
888 typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893 } PySwigPacked;
894
895 SWIGRUNTIME int
896 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897 {
898 char result[SWIG_BUFFER_SIZE];
899 flags = flags;
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908 }
909
910 SWIGRUNTIME PyObject *
911 PySwigPacked_repr(PySwigPacked *v)
912 {
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919 }
920
921 SWIGRUNTIME PyObject *
922 PySwigPacked_str(PySwigPacked *v)
923 {
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
928 return PyString_FromString(v->desc);
929 }
930 }
931
932 SWIGRUNTIME int
933 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934 {
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
937 return (c > 0) ? 1 : -1;
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944 }
945
946 SWIGRUNTIME void
947 PySwigPacked_dealloc(PySwigPacked *self)
948 {
949 free(self->pack);
950 PyObject_Del(self);
951 }
952
953 SWIGRUNTIME PyTypeObject*
954 PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
956 "Swig object carries a C/C++ instance pointer";
957 static PyTypeObject pyswigpacked_type
958 #if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
961 if (!type_init) {
962 PyTypeObject tmp
963 #endif
964 = {
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989 #endif
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993 #endif
994 #if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996 #endif
997 #if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999 #endif
1000 #ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002 #endif
1003 };
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
1006 type_init = 1;
1007 }
1008 #endif
1009 return &pyswigpacked_type;
1010 }
1011
1012 SWIGRUNTIME PyObject *
1013 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014 {
1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
1028 }
1029 }
1030
1031 SWIGRUNTIMEINLINE const char *
1032 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033 {
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038 }
1039
1040 SWIGRUNTIMEINLINE const char *
1041 PySwigPacked_GetDesc(PyObject *self)
1042 {
1043 return ((PySwigPacked *)self)->desc;
1044 }
1045
1046 SWIGRUNTIMEINLINE int
1047 PySwigPacked_Check(PyObject *op) {
1048 return ((op)->ob_type == PySwigPacked_type())
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050 }
1051
1052 #else
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1059 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062 #endif
1063
1064 #endif
1065
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070 SWIGRUNTIME void
1071 SWIG_Python_TypeError(const char *type, PyObject *obj)
1072 {
1073 if (type) {
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj && PySwigObject_Check(obj)) {
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083 #endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
1096 Py_XDECREF(str);
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104 }
1105
1106 SWIGRUNTIMEINLINE void
1107 SWIG_Python_NullRef(const char *type)
1108 {
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114 }
1115
1116 SWIGRUNTIME int
1117 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118 {
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139 }
1140
1141 SWIGRUNTIME int
1142 SWIG_Python_ArgFail(int argnum)
1143 {
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152 }
1153
1154
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159 /* Convert a pointer value */
1160 SWIGRUNTIME int
1161 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1162 swig_cast_info *tc;
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
1168
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192 #else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
1205 c = PyString_AsString(obj);
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210 #endif
1211
1212 type_check:
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225 type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248 }
1249
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1251 SWIGRUNTIME void *
1252 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262 }
1263
1264 /* Convert a packed value value */
1265 SWIGRUNTIME int
1266 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1267 swig_cast_info *tc;
1268 const char *c = 0;
1269
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272 #else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1274 c = PyString_AsString(obj);
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277 #endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
1284
1285 type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295 }
1296
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject *
1299 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313 #else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319 #endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335 }
1336
1337 SWIGRUNTIME PyObject *
1338 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346 #else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352 #endif
1353 return robj;
1354 }
1355
1356 /* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
1359
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
1362 #endif
1363
1364 SWIGRUNTIME swig_module_info *
1365 SWIG_Python_GetModule(void) {
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369 #ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371 #else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
1378 #endif
1379 }
1380 return (swig_module_info *) type_pointer;
1381 }
1382
1383 #if PY_MAJOR_VERSION < 2
1384 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1385 is copied out of Python/modsupport.c in python version 2.3.4 */
1386 SWIGINTERN int
1387 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388 {
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
1412 }
1413 #endif
1414
1415 SWIGRUNTIME void
1416 SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425 }
1426
1427 #ifdef __cplusplus
1428 }
1429 #endif
1430
1431
1432 /* -------- TYPES TABLE (BEGIN) -------- */
1433
1434 #define SWIGTYPE_p_char swig_types[0]
1435 #define SWIGTYPE_p_form_ops_t swig_types[1]
1436 #define SWIGTYPE_p_int swig_types[2]
1437 #define SWIGTYPE_p_unsigned_char swig_types[3]
1438 #define SWIGTYPE_p_unsigned_int swig_types[4]
1439 #define SWIGTYPE_p_unsigned_long swig_types[5]
1440 #define SWIGTYPE_p_wxANIHandler swig_types[6]
1441 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1442 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
1443 #define SWIGTYPE_p_wxArtClient swig_types[9]
1444 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
1445 #define SWIGTYPE_p_wxBitmap swig_types[11]
1446 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
1447 #define SWIGTYPE_p_wxCURHandler swig_types[13]
1448 #define SWIGTYPE_p_wxChildFocusEvent swig_types[14]
1449 #define SWIGTYPE_p_wxCloseEvent swig_types[15]
1450 #define SWIGTYPE_p_wxColour swig_types[16]
1451 #define SWIGTYPE_p_wxCommandEvent swig_types[17]
1452 #define SWIGTYPE_p_wxContextMenuEvent swig_types[18]
1453 #define SWIGTYPE_p_wxControl swig_types[19]
1454 #define SWIGTYPE_p_wxControlWithItems swig_types[20]
1455 #define SWIGTYPE_p_wxDateEvent swig_types[21]
1456 #define SWIGTYPE_p_wxDialog swig_types[22]
1457 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23]
1458 #define SWIGTYPE_p_wxDropFilesEvent swig_types[24]
1459 #define SWIGTYPE_p_wxDuplexMode swig_types[25]
1460 #define SWIGTYPE_p_wxEraseEvent swig_types[26]
1461 #define SWIGTYPE_p_wxEvent swig_types[27]
1462 #define SWIGTYPE_p_wxEvtHandler swig_types[28]
1463 #define SWIGTYPE_p_wxFSFile swig_types[29]
1464 #define SWIGTYPE_p_wxFileSystem swig_types[30]
1465 #define SWIGTYPE_p_wxFlexGridSizer swig_types[31]
1466 #define SWIGTYPE_p_wxFocusEvent swig_types[32]
1467 #define SWIGTYPE_p_wxFont swig_types[33]
1468 #define SWIGTYPE_p_wxFrame swig_types[34]
1469 #define SWIGTYPE_p_wxGBSizerItem swig_types[35]
1470 #define SWIGTYPE_p_wxGIFHandler swig_types[36]
1471 #define SWIGTYPE_p_wxGridBagSizer swig_types[37]
1472 #define SWIGTYPE_p_wxGridSizer swig_types[38]
1473 #define SWIGTYPE_p_wxICOHandler swig_types[39]
1474 #define SWIGTYPE_p_wxIcon swig_types[40]
1475 #define SWIGTYPE_p_wxIconizeEvent swig_types[41]
1476 #define SWIGTYPE_p_wxIdleEvent swig_types[42]
1477 #define SWIGTYPE_p_wxImage swig_types[43]
1478 #define SWIGTYPE_p_wxImageHandler swig_types[44]
1479 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[45]
1480 #define SWIGTYPE_p_wxInitDialogEvent swig_types[46]
1481 #define SWIGTYPE_p_wxInputStream swig_types[47]
1482 #define SWIGTYPE_p_wxJPEGHandler swig_types[48]
1483 #define SWIGTYPE_p_wxKeyEvent swig_types[49]
1484 #define SWIGTYPE_p_wxLayoutConstraints swig_types[50]
1485 #define SWIGTYPE_p_wxMaximizeEvent swig_types[51]
1486 #define SWIGTYPE_p_wxMenu swig_types[52]
1487 #define SWIGTYPE_p_wxMenuBar swig_types[53]
1488 #define SWIGTYPE_p_wxMenuEvent swig_types[54]
1489 #define SWIGTYPE_p_wxMenuItem swig_types[55]
1490 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[56]
1491 #define SWIGTYPE_p_wxMouseEvent swig_types[57]
1492 #define SWIGTYPE_p_wxMoveEvent swig_types[58]
1493 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[59]
1494 #define SWIGTYPE_p_wxNcPaintEvent swig_types[60]
1495 #define SWIGTYPE_p_wxNotifyEvent swig_types[61]
1496 #define SWIGTYPE_p_wxObject swig_types[62]
1497 #define SWIGTYPE_p_wxOutputStream swig_types[63]
1498 #define SWIGTYPE_p_wxPCXHandler swig_types[64]
1499 #define SWIGTYPE_p_wxPNGHandler swig_types[65]
1500 #define SWIGTYPE_p_wxPNMHandler swig_types[66]
1501 #define SWIGTYPE_p_wxPaintEvent swig_types[67]
1502 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[68]
1503 #define SWIGTYPE_p_wxPanel swig_types[69]
1504 #define SWIGTYPE_p_wxPaperSize swig_types[70]
1505 #define SWIGTYPE_p_wxPoint swig_types[71]
1506 #define SWIGTYPE_p_wxPyApp swig_types[72]
1507 #define SWIGTYPE_p_wxPyCommandEvent swig_types[73]
1508 #define SWIGTYPE_p_wxPyEvent swig_types[74]
1509 #define SWIGTYPE_p_wxPyImageHandler swig_types[75]
1510 #define SWIGTYPE_p_wxPySizer swig_types[76]
1511 #define SWIGTYPE_p_wxPyValidator swig_types[77]
1512 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[78]
1513 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[79]
1514 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80]
1515 #define SWIGTYPE_p_wxScrollEvent swig_types[81]
1516 #define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
1517 #define SWIGTYPE_p_wxSetCursorEvent swig_types[83]
1518 #define SWIGTYPE_p_wxShowEvent swig_types[84]
1519 #define SWIGTYPE_p_wxSize swig_types[85]
1520 #define SWIGTYPE_p_wxSizeEvent swig_types[86]
1521 #define SWIGTYPE_p_wxSizer swig_types[87]
1522 #define SWIGTYPE_p_wxSizerItem swig_types[88]
1523 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[89]
1524 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[90]
1525 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[91]
1526 #define SWIGTYPE_p_wxTIFFHandler swig_types[92]
1527 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[93]
1528 #define SWIGTYPE_p_wxValidator swig_types[94]
1529 #define SWIGTYPE_p_wxWindow swig_types[95]
1530 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[96]
1531 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[97]
1532 #define SWIGTYPE_p_wxXPMHandler swig_types[98]
1533 #define SWIGTYPE_p_wxXmlDocument swig_types[99]
1534 #define SWIGTYPE_p_wxXmlNode swig_types[100]
1535 #define SWIGTYPE_p_wxXmlProperty swig_types[101]
1536 #define SWIGTYPE_p_wxXmlResource swig_types[102]
1537 #define SWIGTYPE_ptrdiff_t swig_types[103]
1538 #define SWIGTYPE_std__ptrdiff_t swig_types[104]
1539 #define SWIGTYPE_unsigned_int swig_types[105]
1540 static swig_type_info *swig_types[107];
1541 static swig_module_info swig_module = {swig_types, 106, 0, 0, 0, 0};
1542 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1543 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1544
1545 /* -------- TYPES TABLE (END) -------- */
1546
1547
1548 /*-----------------------------------------------
1549 @(target):= _xrc.so
1550 ------------------------------------------------*/
1551 #define SWIG_init init_xrc
1552
1553 #define SWIG_name "_xrc"
1554
1555 #include "wx/wxPython/wxPython.h"
1556 #include "wx/wxPython/pyclasses.h"
1557 #include "wx/wxPython/pyistream.h"
1558
1559 #include <wx/xml/xml.h>
1560 #include <wx/xrc/xmlres.h>
1561
1562 static const wxString wxPyEmptyString(wxEmptyString);
1563 static const wxString wxPyUTF8String(wxT("UTF-8"));
1564 static const wxString wxPyStyleString(wxT("style"));
1565 static const wxString wxPySizeString(wxT("size"));
1566 static const wxString wxPyPosString(wxT("pos"));
1567 static const wxString wxPyBitmapString(wxT("bitmap"));
1568 static const wxString wxPyIconString(wxT("icon"));
1569 static const wxString wxPyFontString(wxT("font"));
1570
1571 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1572 #define SWIG_From_int PyInt_FromLong
1573 /*@@*/
1574
1575
1576 #include <limits.h>
1577
1578
1579 SWIGINTERN int
1580 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1581 const char *errmsg)
1582 {
1583 if (value < min_value) {
1584 if (errmsg) {
1585 PyErr_Format(PyExc_OverflowError,
1586 "value %ld is less than '%s' minimum %ld",
1587 value, errmsg, min_value);
1588 }
1589 return 0;
1590 } else if (value > max_value) {
1591 if (errmsg) {
1592 PyErr_Format(PyExc_OverflowError,
1593 "value %ld is greater than '%s' maximum %ld",
1594 value, errmsg, max_value);
1595 }
1596 return 0;
1597 }
1598 return 1;
1599 }
1600
1601
1602 SWIGINTERN int
1603 SWIG_AsVal_long(PyObject* obj, long* val)
1604 {
1605 if (PyNumber_Check(obj)) {
1606 if (val) *val = PyInt_AsLong(obj);
1607 return 1;
1608 }
1609 else {
1610 SWIG_Python_TypeError("number", obj);
1611 }
1612 return 0;
1613 }
1614
1615
1616 #if INT_MAX != LONG_MAX
1617 SWIGINTERN int
1618 SWIG_AsVal_int(PyObject *obj, int *val)
1619 {
1620 const char* errmsg = val ? "int" : (char*)0;
1621 long v;
1622 if (SWIG_AsVal_long(obj, &v)) {
1623 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1624 if (val) *val = static_cast<int >(v);
1625 return 1;
1626 } else {
1627 return 0;
1628 }
1629 } else {
1630 PyErr_Clear();
1631 }
1632 if (val) {
1633 SWIG_type_error(errmsg, obj);
1634 }
1635 return 0;
1636 }
1637 #else
1638 SWIGINTERNINLINE int
1639 SWIG_AsVal_int(PyObject *obj, int *val)
1640 {
1641 return SWIG_AsVal_long(obj,(long*)val);
1642 }
1643 #endif
1644
1645
1646 SWIGINTERNINLINE int
1647 SWIG_As_int(PyObject* obj)
1648 {
1649 int v;
1650 if (!SWIG_AsVal_int(obj, &v)) {
1651 /*
1652 this is needed to make valgrind/purify happier.
1653 */
1654 memset((void*)&v, 0, sizeof(int));
1655 }
1656 return v;
1657 }
1658
1659
1660 SWIGINTERNINLINE int
1661 SWIG_Check_int(PyObject* obj)
1662 {
1663 return SWIG_AsVal_int(obj, (int*)0);
1664 }
1665
1666 static bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){
1667 static int s_memFileIdx = 0;
1668
1669 // Check for memory FS. If not present, load the handler:
1670 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
1671 wxT("dummy data"));
1672 wxFileSystem fsys;
1673 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
1674 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
1675 if (f)
1676 delete f;
1677 else
1678 wxFileSystem::AddHandler(new wxMemoryFSHandler);
1679
1680 // Now put the resource data into the memory FS
1681 wxString filename(wxT("XRC_resource/data_string_"));
1682 filename << s_memFileIdx;
1683 s_memFileIdx += 1;
1684 wxMemoryFSHandler::AddFile(filename, data);
1685
1686 // Load the "file" into the resource object
1687 bool retval = self->Load(wxT("memory:") + filename );
1688
1689 return retval;
1690 }
1691
1692 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1693 #define SWIG_From_long PyInt_FromLong
1694 /*@@*/
1695
1696
1697 class wxPyXmlSubclassFactory : public wxXmlSubclassFactory
1698 {
1699 public:
1700 wxPyXmlSubclassFactory() {}
1701 DEC_PYCALLBACK_OBJECT_STRING_pure(Create);
1702 PYPRIVATE;
1703 };
1704
1705 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create);
1706
1707 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
1708 // callbacks, as well as to make some protected things public so they can
1709 // be wrapped.
1710 class wxPyXmlResourceHandler : public wxXmlResourceHandler {
1711 public:
1712 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
1713 //~wxPyXmlResourceHandler();
1714
1715 // Base class virtuals
1716
1717 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource);
1718 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle);
1719
1720
1721 // accessors for protected members
1722
1723 wxXmlResource* GetResource() { return m_resource; }
1724 wxXmlNode* GetNode() { return m_node; }
1725 wxString GetClass() { return m_class; }
1726 wxObject* GetParent() { return m_parent; }
1727 wxObject* GetInstance() { return m_instance; }
1728 wxWindow* GetParentAsWindow() { return m_parentAsWindow; }
1729
1730
1731 // turn some protected methods into public via delegation
1732
1733 bool IsOfClass(wxXmlNode *node, const wxString& classname)
1734 { return wxXmlResourceHandler::IsOfClass(node, classname); }
1735
1736 wxString GetNodeContent(wxXmlNode *node)
1737 { return wxXmlResourceHandler::GetNodeContent(node); }
1738
1739 bool HasParam(const wxString& param)
1740 { return wxXmlResourceHandler::HasParam(param); }
1741
1742 wxXmlNode *GetParamNode(const wxString& param)
1743 { return wxXmlResourceHandler::GetParamNode(param); }
1744
1745 wxString GetParamValue(const wxString& param)
1746 { return wxXmlResourceHandler::GetParamValue(param); }
1747
1748 void AddStyle(const wxString& name, int value)
1749 { wxXmlResourceHandler::AddStyle(name, value); }
1750
1751 void AddWindowStyles()
1752 { wxXmlResourceHandler::AddWindowStyles(); }
1753
1754 int GetStyle(const wxString& param = wxT("style"), int defaults = 0)
1755 { return wxXmlResourceHandler::GetStyle(param, defaults); }
1756
1757 wxString GetText(const wxString& param, bool translate = true)
1758 { return wxXmlResourceHandler::GetText(param, translate); }
1759
1760 int GetID()
1761 { return wxXmlResourceHandler::GetID(); }
1762
1763 wxString GetName()
1764 { return wxXmlResourceHandler::GetName(); }
1765
1766 bool GetBool(const wxString& param, bool defaultv = false)
1767 { return wxXmlResourceHandler::GetBool(param, defaultv); }
1768
1769 long GetLong( const wxString& param, long defaultv = 0 )
1770 { return wxXmlResourceHandler::GetLong(param, defaultv); }
1771
1772 wxColour GetColour(const wxString& param)
1773 { return wxXmlResourceHandler::GetColour(param); }
1774
1775 wxSize GetSize(const wxString& param = wxT("size"))
1776 { return wxXmlResourceHandler::GetSize(param); }
1777
1778 wxPoint GetPosition(const wxString& param = wxT("pos"))
1779 { return wxXmlResourceHandler::GetPosition(param); }
1780
1781 wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0)
1782 { return wxXmlResourceHandler::GetDimension(param, defaultv); }
1783
1784 wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
1785 const wxArtClient& defaultArtClient = wxART_OTHER,
1786 wxSize size = wxDefaultSize)
1787 { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); }
1788
1789 wxIcon GetIcon(const wxString& param = wxT("icon"),
1790 const wxArtClient& defaultArtClient = wxART_OTHER,
1791 wxSize size = wxDefaultSize)
1792 { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); }
1793
1794 wxFont GetFont(const wxString& param = wxT("font"))
1795 { return wxXmlResourceHandler::GetFont(param); }
1796
1797 void SetupWindow(wxWindow *wnd)
1798 { wxXmlResourceHandler::SetupWindow(wnd); }
1799
1800 void CreateChildren(wxObject *parent, bool this_hnd_only = false)
1801 { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); }
1802
1803 void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL)
1804 { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); }
1805
1806 wxObject *CreateResFromNode(wxXmlNode *node,
1807 wxObject *parent, wxObject *instance = NULL)
1808 { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); }
1809
1810 wxFileSystem& GetCurFileSystem()
1811 { return wxXmlResourceHandler::GetCurFileSystem(); }
1812
1813
1814 PYPRIVATE;
1815 };
1816
1817 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource);
1818 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle);
1819
1820
1821
1822 SWIGINTERN int
1823 SWIG_AsVal_bool(PyObject *obj, bool *val)
1824 {
1825 if (obj == Py_True) {
1826 if (val) *val = true;
1827 return 1;
1828 }
1829 if (obj == Py_False) {
1830 if (val) *val = false;
1831 return 1;
1832 }
1833 int res = 0;
1834 if (SWIG_AsVal_int(obj, &res)) {
1835 if (val) *val = res ? true : false;
1836 return 1;
1837 } else {
1838 PyErr_Clear();
1839 }
1840 if (val) {
1841 SWIG_type_error("bool", obj);
1842 }
1843 return 0;
1844 }
1845
1846
1847 SWIGINTERNINLINE bool
1848 SWIG_As_bool(PyObject* obj)
1849 {
1850 bool v;
1851 if (!SWIG_AsVal_bool(obj, &v)) {
1852 /*
1853 this is needed to make valgrind/purify happier.
1854 */
1855 memset((void*)&v, 0, sizeof(bool));
1856 }
1857 return v;
1858 }
1859
1860
1861 SWIGINTERNINLINE int
1862 SWIG_Check_bool(PyObject* obj)
1863 {
1864 return SWIG_AsVal_bool(obj, (bool*)0);
1865 }
1866
1867
1868 SWIGINTERNINLINE long
1869 SWIG_As_long(PyObject* obj)
1870 {
1871 long v;
1872 if (!SWIG_AsVal_long(obj, &v)) {
1873 /*
1874 this is needed to make valgrind/purify happier.
1875 */
1876 memset((void*)&v, 0, sizeof(long));
1877 }
1878 return v;
1879 }
1880
1881
1882 SWIGINTERNINLINE int
1883 SWIG_Check_long(PyObject* obj)
1884 {
1885 return SWIG_AsVal_long(obj, (long*)0);
1886 }
1887
1888 #ifdef __cplusplus
1889 extern "C" {
1890 #endif
1891 static int _wrap_UTF8String_set(PyObject *) {
1892 PyErr_SetString(PyExc_TypeError,"Variable UTF8String is read-only.");
1893 return 1;
1894 }
1895
1896
1897 static PyObject *_wrap_UTF8String_get(void) {
1898 PyObject *pyobj = NULL;
1899
1900 {
1901 #if wxUSE_UNICODE
1902 pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
1903 #else
1904 pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
1905 #endif
1906 }
1907 return pyobj;
1908 }
1909
1910
1911 static int _wrap_StyleString_set(PyObject *) {
1912 PyErr_SetString(PyExc_TypeError,"Variable StyleString is read-only.");
1913 return 1;
1914 }
1915
1916
1917 static PyObject *_wrap_StyleString_get(void) {
1918 PyObject *pyobj = NULL;
1919
1920 {
1921 #if wxUSE_UNICODE
1922 pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
1923 #else
1924 pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
1925 #endif
1926 }
1927 return pyobj;
1928 }
1929
1930
1931 static int _wrap_SizeString_set(PyObject *) {
1932 PyErr_SetString(PyExc_TypeError,"Variable SizeString is read-only.");
1933 return 1;
1934 }
1935
1936
1937 static PyObject *_wrap_SizeString_get(void) {
1938 PyObject *pyobj = NULL;
1939
1940 {
1941 #if wxUSE_UNICODE
1942 pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
1943 #else
1944 pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
1945 #endif
1946 }
1947 return pyobj;
1948 }
1949
1950
1951 static int _wrap_PosString_set(PyObject *) {
1952 PyErr_SetString(PyExc_TypeError,"Variable PosString is read-only.");
1953 return 1;
1954 }
1955
1956
1957 static PyObject *_wrap_PosString_get(void) {
1958 PyObject *pyobj = NULL;
1959
1960 {
1961 #if wxUSE_UNICODE
1962 pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
1963 #else
1964 pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
1965 #endif
1966 }
1967 return pyobj;
1968 }
1969
1970
1971 static int _wrap_BitmapString_set(PyObject *) {
1972 PyErr_SetString(PyExc_TypeError,"Variable BitmapString is read-only.");
1973 return 1;
1974 }
1975
1976
1977 static PyObject *_wrap_BitmapString_get(void) {
1978 PyObject *pyobj = NULL;
1979
1980 {
1981 #if wxUSE_UNICODE
1982 pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
1983 #else
1984 pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
1985 #endif
1986 }
1987 return pyobj;
1988 }
1989
1990
1991 static int _wrap_IconString_set(PyObject *) {
1992 PyErr_SetString(PyExc_TypeError,"Variable IconString is read-only.");
1993 return 1;
1994 }
1995
1996
1997 static PyObject *_wrap_IconString_get(void) {
1998 PyObject *pyobj = NULL;
1999
2000 {
2001 #if wxUSE_UNICODE
2002 pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
2003 #else
2004 pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
2005 #endif
2006 }
2007 return pyobj;
2008 }
2009
2010
2011 static int _wrap_FontString_set(PyObject *) {
2012 PyErr_SetString(PyExc_TypeError,"Variable FontString is read-only.");
2013 return 1;
2014 }
2015
2016
2017 static PyObject *_wrap_FontString_get(void) {
2018 PyObject *pyobj = NULL;
2019
2020 {
2021 #if wxUSE_UNICODE
2022 pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
2023 #else
2024 pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
2025 #endif
2026 }
2027 return pyobj;
2028 }
2029
2030
2031 static PyObject *_wrap_new_XmlResource(PyObject *, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj = NULL;
2033 wxString *arg1 = 0 ;
2034 int arg2 = (int) wxXRC_USE_LOCALE ;
2035 wxXmlResource *result;
2036 bool temp1 = false ;
2037 PyObject * obj0 = 0 ;
2038 PyObject * obj1 = 0 ;
2039 char *kwnames[] = {
2040 (char *) "filemask",(char *) "flags", NULL
2041 };
2042
2043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlResource",kwnames,&obj0,&obj1)) goto fail;
2044 {
2045 arg1 = wxString_in_helper(obj0);
2046 if (arg1 == NULL) SWIG_fail;
2047 temp1 = true;
2048 }
2049 if (obj1) {
2050 {
2051 arg2 = static_cast<int >(SWIG_As_int(obj1));
2052 if (SWIG_arg_fail(2)) SWIG_fail;
2053 }
2054 }
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2);
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1);
2063 {
2064 if (temp1)
2065 delete arg1;
2066 }
2067 return resultobj;
2068 fail:
2069 {
2070 if (temp1)
2071 delete arg1;
2072 }
2073 return NULL;
2074 }
2075
2076
2077 static PyObject *_wrap_new_EmptyXmlResource(PyObject *, PyObject *args, PyObject *kwargs) {
2078 PyObject *resultobj = NULL;
2079 int arg1 = (int) wxXRC_USE_LOCALE ;
2080 wxXmlResource *result;
2081 PyObject * obj0 = 0 ;
2082 char *kwnames[] = {
2083 (char *) "flags", NULL
2084 };
2085
2086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_EmptyXmlResource",kwnames,&obj0)) goto fail;
2087 if (obj0) {
2088 {
2089 arg1 = static_cast<int >(SWIG_As_int(obj0));
2090 if (SWIG_arg_fail(1)) SWIG_fail;
2091 }
2092 }
2093 {
2094 PyThreadState* __tstate = wxPyBeginAllowThreads();
2095 result = (wxXmlResource *)new wxXmlResource(arg1);
2096
2097 wxPyEndAllowThreads(__tstate);
2098 if (PyErr_Occurred()) SWIG_fail;
2099 }
2100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1);
2101 return resultobj;
2102 fail:
2103 return NULL;
2104 }
2105
2106
2107 static PyObject *_wrap_delete_XmlResource(PyObject *, PyObject *args, PyObject *kwargs) {
2108 PyObject *resultobj = NULL;
2109 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2110 PyObject * obj0 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlResource",kwnames,&obj0)) goto fail;
2116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2117 if (SWIG_arg_fail(1)) SWIG_fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 delete arg1;
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 return resultobj;
2127 fail:
2128 return NULL;
2129 }
2130
2131
2132 static PyObject *_wrap_XmlResource_Load(PyObject *, PyObject *args, PyObject *kwargs) {
2133 PyObject *resultobj = NULL;
2134 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2135 wxString *arg2 = 0 ;
2136 bool result;
2137 bool temp2 = false ;
2138 PyObject * obj0 = 0 ;
2139 PyObject * obj1 = 0 ;
2140 char *kwnames[] = {
2141 (char *) "self",(char *) "filemask", NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) goto fail;
2145 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2146 if (SWIG_arg_fail(1)) SWIG_fail;
2147 {
2148 arg2 = wxString_in_helper(obj1);
2149 if (arg2 == NULL) SWIG_fail;
2150 temp2 = true;
2151 }
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 result = (bool)(arg1)->Load((wxString const &)*arg2);
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) SWIG_fail;
2158 }
2159 {
2160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2161 }
2162 {
2163 if (temp2)
2164 delete arg2;
2165 }
2166 return resultobj;
2167 fail:
2168 {
2169 if (temp2)
2170 delete arg2;
2171 }
2172 return NULL;
2173 }
2174
2175
2176 static PyObject *_wrap_XmlResource_LoadFromString(PyObject *, PyObject *args, PyObject *kwargs) {
2177 PyObject *resultobj = NULL;
2178 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2179 wxString *arg2 = 0 ;
2180 bool result;
2181 bool temp2 = false ;
2182 PyObject * obj0 = 0 ;
2183 PyObject * obj1 = 0 ;
2184 char *kwnames[] = {
2185 (char *) "self",(char *) "data", NULL
2186 };
2187
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) goto fail;
2189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2190 if (SWIG_arg_fail(1)) SWIG_fail;
2191 {
2192 arg2 = wxString_in_helper(obj1);
2193 if (arg2 == NULL) SWIG_fail;
2194 temp2 = true;
2195 }
2196 {
2197 PyThreadState* __tstate = wxPyBeginAllowThreads();
2198 result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2);
2199
2200 wxPyEndAllowThreads(__tstate);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 }
2203 {
2204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2205 }
2206 {
2207 if (temp2)
2208 delete arg2;
2209 }
2210 return resultobj;
2211 fail:
2212 {
2213 if (temp2)
2214 delete arg2;
2215 }
2216 return NULL;
2217 }
2218
2219
2220 static PyObject *_wrap_XmlResource_Unload(PyObject *, PyObject *args, PyObject *kwargs) {
2221 PyObject *resultobj = NULL;
2222 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2223 wxString *arg2 = 0 ;
2224 bool result;
2225 bool temp2 = false ;
2226 PyObject * obj0 = 0 ;
2227 PyObject * obj1 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self",(char *) "filename", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) goto fail;
2233 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2234 if (SWIG_arg_fail(1)) SWIG_fail;
2235 {
2236 arg2 = wxString_in_helper(obj1);
2237 if (arg2 == NULL) SWIG_fail;
2238 temp2 = true;
2239 }
2240 {
2241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2242 result = (bool)(arg1)->Unload((wxString const &)*arg2);
2243
2244 wxPyEndAllowThreads(__tstate);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 }
2247 {
2248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2249 }
2250 {
2251 if (temp2)
2252 delete arg2;
2253 }
2254 return resultobj;
2255 fail:
2256 {
2257 if (temp2)
2258 delete arg2;
2259 }
2260 return NULL;
2261 }
2262
2263
2264 static PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj = NULL;
2266 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2267 PyObject * obj0 = 0 ;
2268 char *kwnames[] = {
2269 (char *) "self", NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_InitAllHandlers",kwnames,&obj0)) goto fail;
2273 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2274 if (SWIG_arg_fail(1)) SWIG_fail;
2275 {
2276 PyThreadState* __tstate = wxPyBeginAllowThreads();
2277 (arg1)->InitAllHandlers();
2278
2279 wxPyEndAllowThreads(__tstate);
2280 if (PyErr_Occurred()) SWIG_fail;
2281 }
2282 Py_INCREF(Py_None); resultobj = Py_None;
2283 return resultobj;
2284 fail:
2285 return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_XmlResource_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
2290 PyObject *resultobj = NULL;
2291 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2292 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
2293 PyObject * obj0 = 0 ;
2294 PyObject * obj1 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "self",(char *) "handler", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) goto fail;
2300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2301 if (SWIG_arg_fail(1)) SWIG_fail;
2302 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
2303 if (SWIG_arg_fail(2)) SWIG_fail;
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 (arg1)->AddHandler(arg2);
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 Py_INCREF(Py_None); resultobj = Py_None;
2312 return resultobj;
2313 fail:
2314 return NULL;
2315 }
2316
2317
2318 static PyObject *_wrap_XmlResource_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) {
2319 PyObject *resultobj = NULL;
2320 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2321 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
2322 PyObject * obj0 = 0 ;
2323 PyObject * obj1 = 0 ;
2324 char *kwnames[] = {
2325 (char *) "self",(char *) "handler", NULL
2326 };
2327
2328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) goto fail;
2329 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2330 if (SWIG_arg_fail(1)) SWIG_fail;
2331 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
2332 if (SWIG_arg_fail(2)) SWIG_fail;
2333 {
2334 PyThreadState* __tstate = wxPyBeginAllowThreads();
2335 (arg1)->InsertHandler(arg2);
2336
2337 wxPyEndAllowThreads(__tstate);
2338 if (PyErr_Occurred()) SWIG_fail;
2339 }
2340 Py_INCREF(Py_None); resultobj = Py_None;
2341 return resultobj;
2342 fail:
2343 return NULL;
2344 }
2345
2346
2347 static PyObject *_wrap_XmlResource_ClearHandlers(PyObject *, PyObject *args, PyObject *kwargs) {
2348 PyObject *resultobj = NULL;
2349 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2350 PyObject * obj0 = 0 ;
2351 char *kwnames[] = {
2352 (char *) "self", NULL
2353 };
2354
2355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_ClearHandlers",kwnames,&obj0)) goto fail;
2356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2357 if (SWIG_arg_fail(1)) SWIG_fail;
2358 {
2359 PyThreadState* __tstate = wxPyBeginAllowThreads();
2360 (arg1)->ClearHandlers();
2361
2362 wxPyEndAllowThreads(__tstate);
2363 if (PyErr_Occurred()) SWIG_fail;
2364 }
2365 Py_INCREF(Py_None); resultobj = Py_None;
2366 return resultobj;
2367 fail:
2368 return NULL;
2369 }
2370
2371
2372 static PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *, PyObject *args, PyObject *kwargs) {
2373 PyObject *resultobj = NULL;
2374 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
2375 PyObject * obj0 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "factory", NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) goto fail;
2381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_EXCEPTION | 0);
2382 if (SWIG_arg_fail(1)) SWIG_fail;
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
2385 wxXmlResource::AddSubclassFactory(arg1);
2386
2387 wxPyEndAllowThreads(__tstate);
2388 if (PyErr_Occurred()) SWIG_fail;
2389 }
2390 Py_INCREF(Py_None); resultobj = Py_None;
2391 return resultobj;
2392 fail:
2393 return NULL;
2394 }
2395
2396
2397 static PyObject *_wrap_XmlResource_LoadMenu(PyObject *, PyObject *args, PyObject *kwargs) {
2398 PyObject *resultobj = NULL;
2399 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2400 wxString *arg2 = 0 ;
2401 wxMenu *result;
2402 bool temp2 = false ;
2403 PyObject * obj0 = 0 ;
2404 PyObject * obj1 = 0 ;
2405 char *kwnames[] = {
2406 (char *) "self",(char *) "name", NULL
2407 };
2408
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) goto fail;
2410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2411 if (SWIG_arg_fail(1)) SWIG_fail;
2412 {
2413 arg2 = wxString_in_helper(obj1);
2414 if (arg2 == NULL) SWIG_fail;
2415 temp2 = true;
2416 }
2417 {
2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
2419 result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2);
2420
2421 wxPyEndAllowThreads(__tstate);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 {
2425 resultobj = wxPyMake_wxObject(result, 0);
2426 }
2427 {
2428 if (temp2)
2429 delete arg2;
2430 }
2431 return resultobj;
2432 fail:
2433 {
2434 if (temp2)
2435 delete arg2;
2436 }
2437 return NULL;
2438 }
2439
2440
2441 static PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
2442 PyObject *resultobj = NULL;
2443 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2444 wxString *arg2 = 0 ;
2445 wxMenuBar *result;
2446 bool temp2 = false ;
2447 PyObject * obj0 = 0 ;
2448 PyObject * obj1 = 0 ;
2449 char *kwnames[] = {
2450 (char *) "self",(char *) "name", NULL
2451 };
2452
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) goto fail;
2454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2455 if (SWIG_arg_fail(1)) SWIG_fail;
2456 {
2457 arg2 = wxString_in_helper(obj1);
2458 if (arg2 == NULL) SWIG_fail;
2459 temp2 = true;
2460 }
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2);
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 {
2469 resultobj = wxPyMake_wxObject(result, 0);
2470 }
2471 {
2472 if (temp2)
2473 delete arg2;
2474 }
2475 return resultobj;
2476 fail:
2477 {
2478 if (temp2)
2479 delete arg2;
2480 }
2481 return NULL;
2482 }
2483
2484
2485 static PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2486 PyObject *resultobj = NULL;
2487 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2488 wxWindow *arg2 = (wxWindow *) 0 ;
2489 wxString *arg3 = 0 ;
2490 wxMenuBar *result;
2491 bool temp3 = false ;
2492 PyObject * obj0 = 0 ;
2493 PyObject * obj1 = 0 ;
2494 PyObject * obj2 = 0 ;
2495 char *kwnames[] = {
2496 (char *) "self",(char *) "parent",(char *) "name", NULL
2497 };
2498
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) goto fail;
2500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2501 if (SWIG_arg_fail(1)) SWIG_fail;
2502 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2503 if (SWIG_arg_fail(2)) SWIG_fail;
2504 {
2505 arg3 = wxString_in_helper(obj2);
2506 if (arg3 == NULL) SWIG_fail;
2507 temp3 = true;
2508 }
2509 {
2510 PyThreadState* __tstate = wxPyBeginAllowThreads();
2511 result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3);
2512
2513 wxPyEndAllowThreads(__tstate);
2514 if (PyErr_Occurred()) SWIG_fail;
2515 }
2516 {
2517 resultobj = wxPyMake_wxObject(result, 0);
2518 }
2519 {
2520 if (temp3)
2521 delete arg3;
2522 }
2523 return resultobj;
2524 fail:
2525 {
2526 if (temp3)
2527 delete arg3;
2528 }
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj = NULL;
2535 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2536 wxWindow *arg2 = (wxWindow *) 0 ;
2537 wxString *arg3 = 0 ;
2538 wxToolBar *result;
2539 bool temp3 = false ;
2540 PyObject * obj0 = 0 ;
2541 PyObject * obj1 = 0 ;
2542 PyObject * obj2 = 0 ;
2543 char *kwnames[] = {
2544 (char *) "self",(char *) "parent",(char *) "name", NULL
2545 };
2546
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) goto fail;
2548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2549 if (SWIG_arg_fail(1)) SWIG_fail;
2550 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2551 if (SWIG_arg_fail(2)) SWIG_fail;
2552 {
2553 arg3 = wxString_in_helper(obj2);
2554 if (arg3 == NULL) SWIG_fail;
2555 temp3 = true;
2556 }
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3);
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 }
2564 {
2565 resultobj = wxPyMake_wxObject(result, (bool)0);
2566 }
2567 {
2568 if (temp3)
2569 delete arg3;
2570 }
2571 return resultobj;
2572 fail:
2573 {
2574 if (temp3)
2575 delete arg3;
2576 }
2577 return NULL;
2578 }
2579
2580
2581 static PyObject *_wrap_XmlResource_LoadDialog(PyObject *, PyObject *args, PyObject *kwargs) {
2582 PyObject *resultobj = NULL;
2583 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2584 wxWindow *arg2 = (wxWindow *) 0 ;
2585 wxString *arg3 = 0 ;
2586 wxDialog *result;
2587 bool temp3 = false ;
2588 PyObject * obj0 = 0 ;
2589 PyObject * obj1 = 0 ;
2590 PyObject * obj2 = 0 ;
2591 char *kwnames[] = {
2592 (char *) "self",(char *) "parent",(char *) "name", NULL
2593 };
2594
2595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) goto fail;
2596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2597 if (SWIG_arg_fail(1)) SWIG_fail;
2598 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2599 if (SWIG_arg_fail(2)) SWIG_fail;
2600 {
2601 arg3 = wxString_in_helper(obj2);
2602 if (arg3 == NULL) SWIG_fail;
2603 temp3 = true;
2604 }
2605 {
2606 PyThreadState* __tstate = wxPyBeginAllowThreads();
2607 result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3);
2608
2609 wxPyEndAllowThreads(__tstate);
2610 if (PyErr_Occurred()) SWIG_fail;
2611 }
2612 {
2613 resultobj = wxPyMake_wxObject(result, (bool)0);
2614 }
2615 {
2616 if (temp3)
2617 delete arg3;
2618 }
2619 return resultobj;
2620 fail:
2621 {
2622 if (temp3)
2623 delete arg3;
2624 }
2625 return NULL;
2626 }
2627
2628
2629 static PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *, PyObject *args, PyObject *kwargs) {
2630 PyObject *resultobj = NULL;
2631 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2632 wxDialog *arg2 = (wxDialog *) 0 ;
2633 wxWindow *arg3 = (wxWindow *) 0 ;
2634 wxString *arg4 = 0 ;
2635 bool result;
2636 bool temp4 = false ;
2637 PyObject * obj0 = 0 ;
2638 PyObject * obj1 = 0 ;
2639 PyObject * obj2 = 0 ;
2640 PyObject * obj3 = 0 ;
2641 char *kwnames[] = {
2642 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
2643 };
2644
2645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2646 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2647 if (SWIG_arg_fail(1)) SWIG_fail;
2648 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDialog, SWIG_POINTER_EXCEPTION | 0);
2649 if (SWIG_arg_fail(2)) SWIG_fail;
2650 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2651 if (SWIG_arg_fail(3)) SWIG_fail;
2652 {
2653 arg4 = wxString_in_helper(obj3);
2654 if (arg4 == NULL) SWIG_fail;
2655 temp4 = true;
2656 }
2657 {
2658 PyThreadState* __tstate = wxPyBeginAllowThreads();
2659 result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4);
2660
2661 wxPyEndAllowThreads(__tstate);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
2664 {
2665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2666 }
2667 {
2668 if (temp4)
2669 delete arg4;
2670 }
2671 return resultobj;
2672 fail:
2673 {
2674 if (temp4)
2675 delete arg4;
2676 }
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_XmlResource_LoadPanel(PyObject *, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj = NULL;
2683 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2684 wxWindow *arg2 = (wxWindow *) 0 ;
2685 wxString *arg3 = 0 ;
2686 wxPanel *result;
2687 bool temp3 = false ;
2688 PyObject * obj0 = 0 ;
2689 PyObject * obj1 = 0 ;
2690 PyObject * obj2 = 0 ;
2691 char *kwnames[] = {
2692 (char *) "self",(char *) "parent",(char *) "name", NULL
2693 };
2694
2695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) goto fail;
2696 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2697 if (SWIG_arg_fail(1)) SWIG_fail;
2698 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2699 if (SWIG_arg_fail(2)) SWIG_fail;
2700 {
2701 arg3 = wxString_in_helper(obj2);
2702 if (arg3 == NULL) SWIG_fail;
2703 temp3 = true;
2704 }
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3);
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) SWIG_fail;
2711 }
2712 {
2713 resultobj = wxPyMake_wxObject(result, (bool)0);
2714 }
2715 {
2716 if (temp3)
2717 delete arg3;
2718 }
2719 return resultobj;
2720 fail:
2721 {
2722 if (temp3)
2723 delete arg3;
2724 }
2725 return NULL;
2726 }
2727
2728
2729 static PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *, PyObject *args, PyObject *kwargs) {
2730 PyObject *resultobj = NULL;
2731 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2732 wxPanel *arg2 = (wxPanel *) 0 ;
2733 wxWindow *arg3 = (wxWindow *) 0 ;
2734 wxString *arg4 = 0 ;
2735 bool result;
2736 bool temp4 = false ;
2737 PyObject * obj0 = 0 ;
2738 PyObject * obj1 = 0 ;
2739 PyObject * obj2 = 0 ;
2740 PyObject * obj3 = 0 ;
2741 char *kwnames[] = {
2742 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2747 if (SWIG_arg_fail(1)) SWIG_fail;
2748 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPanel, SWIG_POINTER_EXCEPTION | 0);
2749 if (SWIG_arg_fail(2)) SWIG_fail;
2750 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2751 if (SWIG_arg_fail(3)) SWIG_fail;
2752 {
2753 arg4 = wxString_in_helper(obj3);
2754 if (arg4 == NULL) SWIG_fail;
2755 temp4 = true;
2756 }
2757 {
2758 PyThreadState* __tstate = wxPyBeginAllowThreads();
2759 result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4);
2760
2761 wxPyEndAllowThreads(__tstate);
2762 if (PyErr_Occurred()) SWIG_fail;
2763 }
2764 {
2765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2766 }
2767 {
2768 if (temp4)
2769 delete arg4;
2770 }
2771 return resultobj;
2772 fail:
2773 {
2774 if (temp4)
2775 delete arg4;
2776 }
2777 return NULL;
2778 }
2779
2780
2781 static PyObject *_wrap_XmlResource_LoadFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2782 PyObject *resultobj = NULL;
2783 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2784 wxWindow *arg2 = (wxWindow *) 0 ;
2785 wxString *arg3 = 0 ;
2786 wxFrame *result;
2787 bool temp3 = false ;
2788 PyObject * obj0 = 0 ;
2789 PyObject * obj1 = 0 ;
2790 PyObject * obj2 = 0 ;
2791 char *kwnames[] = {
2792 (char *) "self",(char *) "parent",(char *) "name", NULL
2793 };
2794
2795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) goto fail;
2796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2797 if (SWIG_arg_fail(1)) SWIG_fail;
2798 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2799 if (SWIG_arg_fail(2)) SWIG_fail;
2800 {
2801 arg3 = wxString_in_helper(obj2);
2802 if (arg3 == NULL) SWIG_fail;
2803 temp3 = true;
2804 }
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3);
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2812 {
2813 resultobj = wxPyMake_wxObject(result, (bool)0);
2814 }
2815 {
2816 if (temp3)
2817 delete arg3;
2818 }
2819 return resultobj;
2820 fail:
2821 {
2822 if (temp3)
2823 delete arg3;
2824 }
2825 return NULL;
2826 }
2827
2828
2829 static PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2830 PyObject *resultobj = NULL;
2831 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2832 wxFrame *arg2 = (wxFrame *) 0 ;
2833 wxWindow *arg3 = (wxWindow *) 0 ;
2834 wxString *arg4 = 0 ;
2835 bool result;
2836 bool temp4 = false ;
2837 PyObject * obj0 = 0 ;
2838 PyObject * obj1 = 0 ;
2839 PyObject * obj2 = 0 ;
2840 PyObject * obj3 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2847 if (SWIG_arg_fail(1)) SWIG_fail;
2848 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFrame, SWIG_POINTER_EXCEPTION | 0);
2849 if (SWIG_arg_fail(2)) SWIG_fail;
2850 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2851 if (SWIG_arg_fail(3)) SWIG_fail;
2852 {
2853 arg4 = wxString_in_helper(obj3);
2854 if (arg4 == NULL) SWIG_fail;
2855 temp4 = true;
2856 }
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4);
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) SWIG_fail;
2863 }
2864 {
2865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2866 }
2867 {
2868 if (temp4)
2869 delete arg4;
2870 }
2871 return resultobj;
2872 fail:
2873 {
2874 if (temp4)
2875 delete arg4;
2876 }
2877 return NULL;
2878 }
2879
2880
2881 static PyObject *_wrap_XmlResource_LoadObject(PyObject *, PyObject *args, PyObject *kwargs) {
2882 PyObject *resultobj = NULL;
2883 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2884 wxWindow *arg2 = (wxWindow *) 0 ;
2885 wxString *arg3 = 0 ;
2886 wxString *arg4 = 0 ;
2887 wxObject *result;
2888 bool temp3 = false ;
2889 bool temp4 = false ;
2890 PyObject * obj0 = 0 ;
2891 PyObject * obj1 = 0 ;
2892 PyObject * obj2 = 0 ;
2893 PyObject * obj3 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2900 if (SWIG_arg_fail(1)) SWIG_fail;
2901 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2902 if (SWIG_arg_fail(2)) SWIG_fail;
2903 {
2904 arg3 = wxString_in_helper(obj2);
2905 if (arg3 == NULL) SWIG_fail;
2906 temp3 = true;
2907 }
2908 {
2909 arg4 = wxString_in_helper(obj3);
2910 if (arg4 == NULL) SWIG_fail;
2911 temp4 = true;
2912 }
2913 {
2914 PyThreadState* __tstate = wxPyBeginAllowThreads();
2915 result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
2916
2917 wxPyEndAllowThreads(__tstate);
2918 if (PyErr_Occurred()) SWIG_fail;
2919 }
2920 {
2921 resultobj = wxPyMake_wxObject(result, (bool)0);
2922 }
2923 {
2924 if (temp3)
2925 delete arg3;
2926 }
2927 {
2928 if (temp4)
2929 delete arg4;
2930 }
2931 return resultobj;
2932 fail:
2933 {
2934 if (temp3)
2935 delete arg3;
2936 }
2937 {
2938 if (temp4)
2939 delete arg4;
2940 }
2941 return NULL;
2942 }
2943
2944
2945 static PyObject *_wrap_XmlResource_LoadOnObject(PyObject *, PyObject *args, PyObject *kwargs) {
2946 PyObject *resultobj = NULL;
2947 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
2948 wxObject *arg2 = (wxObject *) 0 ;
2949 wxWindow *arg3 = (wxWindow *) 0 ;
2950 wxString *arg4 = 0 ;
2951 wxString *arg5 = 0 ;
2952 bool result;
2953 bool temp4 = false ;
2954 bool temp5 = false ;
2955 PyObject * obj0 = 0 ;
2956 PyObject * obj1 = 0 ;
2957 PyObject * obj2 = 0 ;
2958 PyObject * obj3 = 0 ;
2959 PyObject * obj4 = 0 ;
2960 char *kwnames[] = {
2961 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
2962 };
2963
2964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
2966 if (SWIG_arg_fail(1)) SWIG_fail;
2967 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
2968 if (SWIG_arg_fail(2)) SWIG_fail;
2969 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2970 if (SWIG_arg_fail(3)) SWIG_fail;
2971 {
2972 arg4 = wxString_in_helper(obj3);
2973 if (arg4 == NULL) SWIG_fail;
2974 temp4 = true;
2975 }
2976 {
2977 arg5 = wxString_in_helper(obj4);
2978 if (arg5 == NULL) SWIG_fail;
2979 temp5 = true;
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 {
2989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2990 }
2991 {
2992 if (temp4)
2993 delete arg4;
2994 }
2995 {
2996 if (temp5)
2997 delete arg5;
2998 }
2999 return resultobj;
3000 fail:
3001 {
3002 if (temp4)
3003 delete arg4;
3004 }
3005 {
3006 if (temp5)
3007 delete arg5;
3008 }
3009 return NULL;
3010 }
3011
3012
3013 static PyObject *_wrap_XmlResource_LoadBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3014 PyObject *resultobj = NULL;
3015 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3016 wxString *arg2 = 0 ;
3017 wxBitmap result;
3018 bool temp2 = false ;
3019 PyObject * obj0 = 0 ;
3020 PyObject * obj1 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self",(char *) "name", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) goto fail;
3026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3027 if (SWIG_arg_fail(1)) SWIG_fail;
3028 {
3029 arg2 = wxString_in_helper(obj1);
3030 if (arg2 == NULL) SWIG_fail;
3031 temp2 = true;
3032 }
3033 {
3034 PyThreadState* __tstate = wxPyBeginAllowThreads();
3035 result = (arg1)->LoadBitmap((wxString const &)*arg2);
3036
3037 wxPyEndAllowThreads(__tstate);
3038 if (PyErr_Occurred()) SWIG_fail;
3039 }
3040 {
3041 wxBitmap * resultptr;
3042 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
3043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3044 }
3045 {
3046 if (temp2)
3047 delete arg2;
3048 }
3049 return resultobj;
3050 fail:
3051 {
3052 if (temp2)
3053 delete arg2;
3054 }
3055 return NULL;
3056 }
3057
3058
3059 static PyObject *_wrap_XmlResource_LoadIcon(PyObject *, PyObject *args, PyObject *kwargs) {
3060 PyObject *resultobj = NULL;
3061 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3062 wxString *arg2 = 0 ;
3063 wxIcon result;
3064 bool temp2 = false ;
3065 PyObject * obj0 = 0 ;
3066 PyObject * obj1 = 0 ;
3067 char *kwnames[] = {
3068 (char *) "self",(char *) "name", NULL
3069 };
3070
3071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) goto fail;
3072 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3073 if (SWIG_arg_fail(1)) SWIG_fail;
3074 {
3075 arg2 = wxString_in_helper(obj1);
3076 if (arg2 == NULL) SWIG_fail;
3077 temp2 = true;
3078 }
3079 {
3080 PyThreadState* __tstate = wxPyBeginAllowThreads();
3081 result = (arg1)->LoadIcon((wxString const &)*arg2);
3082
3083 wxPyEndAllowThreads(__tstate);
3084 if (PyErr_Occurred()) SWIG_fail;
3085 }
3086 {
3087 wxIcon * resultptr;
3088 resultptr = new wxIcon(static_cast<wxIcon & >(result));
3089 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
3090 }
3091 {
3092 if (temp2)
3093 delete arg2;
3094 }
3095 return resultobj;
3096 fail:
3097 {
3098 if (temp2)
3099 delete arg2;
3100 }
3101 return NULL;
3102 }
3103
3104
3105 static PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *, PyObject *args, PyObject *kwargs) {
3106 PyObject *resultobj = NULL;
3107 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3108 wxString *arg2 = 0 ;
3109 wxWindow *arg3 = (wxWindow *) 0 ;
3110 wxWindow *arg4 = (wxWindow *) NULL ;
3111 bool result;
3112 bool temp2 = false ;
3113 PyObject * obj0 = 0 ;
3114 PyObject * obj1 = 0 ;
3115 PyObject * obj2 = 0 ;
3116 PyObject * obj3 = 0 ;
3117 char *kwnames[] = {
3118 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3123 if (SWIG_arg_fail(1)) SWIG_fail;
3124 {
3125 arg2 = wxString_in_helper(obj1);
3126 if (arg2 == NULL) SWIG_fail;
3127 temp2 = true;
3128 }
3129 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3130 if (SWIG_arg_fail(3)) SWIG_fail;
3131 if (obj3) {
3132 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3133 if (SWIG_arg_fail(4)) SWIG_fail;
3134 }
3135 {
3136 PyThreadState* __tstate = wxPyBeginAllowThreads();
3137 result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4);
3138
3139 wxPyEndAllowThreads(__tstate);
3140 if (PyErr_Occurred()) SWIG_fail;
3141 }
3142 {
3143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3144 }
3145 {
3146 if (temp2)
3147 delete arg2;
3148 }
3149 return resultobj;
3150 fail:
3151 {
3152 if (temp2)
3153 delete arg2;
3154 }
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_XmlResource_GetXRCID(PyObject *, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj = NULL;
3161 wxString *arg1 = 0 ;
3162 int result;
3163 bool temp1 = false ;
3164 PyObject * obj0 = 0 ;
3165 char *kwnames[] = {
3166 (char *) "str_id", NULL
3167 };
3168
3169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetXRCID",kwnames,&obj0)) goto fail;
3170 {
3171 arg1 = wxString_in_helper(obj0);
3172 if (arg1 == NULL) SWIG_fail;
3173 temp1 = true;
3174 }
3175 {
3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
3177 result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1);
3178
3179 wxPyEndAllowThreads(__tstate);
3180 if (PyErr_Occurred()) SWIG_fail;
3181 }
3182 {
3183 resultobj = SWIG_From_int(static_cast<int >(result));
3184 }
3185 {
3186 if (temp1)
3187 delete arg1;
3188 }
3189 return resultobj;
3190 fail:
3191 {
3192 if (temp1)
3193 delete arg1;
3194 }
3195 return NULL;
3196 }
3197
3198
3199 static PyObject *_wrap_XmlResource_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
3200 PyObject *resultobj = NULL;
3201 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3202 long result;
3203 PyObject * obj0 = 0 ;
3204 char *kwnames[] = {
3205 (char *) "self", NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetVersion",kwnames,&obj0)) goto fail;
3209 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3210 if (SWIG_arg_fail(1)) SWIG_fail;
3211 {
3212 PyThreadState* __tstate = wxPyBeginAllowThreads();
3213 result = (long)((wxXmlResource const *)arg1)->GetVersion();
3214
3215 wxPyEndAllowThreads(__tstate);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 }
3218 {
3219 resultobj = SWIG_From_long(static_cast<long >(result));
3220 }
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_XmlResource_CompareVersion(PyObject *, PyObject *args, PyObject *kwargs) {
3228 PyObject *resultobj = NULL;
3229 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3230 int arg2 ;
3231 int arg3 ;
3232 int arg4 ;
3233 int arg5 ;
3234 int result;
3235 PyObject * obj0 = 0 ;
3236 PyObject * obj1 = 0 ;
3237 PyObject * obj2 = 0 ;
3238 PyObject * obj3 = 0 ;
3239 PyObject * obj4 = 0 ;
3240 char *kwnames[] = {
3241 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
3242 };
3243
3244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3245 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3246 if (SWIG_arg_fail(1)) SWIG_fail;
3247 {
3248 arg2 = static_cast<int >(SWIG_As_int(obj1));
3249 if (SWIG_arg_fail(2)) SWIG_fail;
3250 }
3251 {
3252 arg3 = static_cast<int >(SWIG_As_int(obj2));
3253 if (SWIG_arg_fail(3)) SWIG_fail;
3254 }
3255 {
3256 arg4 = static_cast<int >(SWIG_As_int(obj3));
3257 if (SWIG_arg_fail(4)) SWIG_fail;
3258 }
3259 {
3260 arg5 = static_cast<int >(SWIG_As_int(obj4));
3261 if (SWIG_arg_fail(5)) SWIG_fail;
3262 }
3263 {
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5);
3266
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 {
3271 resultobj = SWIG_From_int(static_cast<int >(result));
3272 }
3273 return resultobj;
3274 fail:
3275 return NULL;
3276 }
3277
3278
3279 static PyObject *_wrap_XmlResource_Get(PyObject *, PyObject *args, PyObject *kwargs) {
3280 PyObject *resultobj = NULL;
3281 wxXmlResource *result;
3282 char *kwnames[] = {
3283 NULL
3284 };
3285
3286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":XmlResource_Get",kwnames)) goto fail;
3287 {
3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
3289 result = (wxXmlResource *)wxXmlResource::Get();
3290
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0);
3295 return resultobj;
3296 fail:
3297 return NULL;
3298 }
3299
3300
3301 static PyObject *_wrap_XmlResource_Set(PyObject *, PyObject *args, PyObject *kwargs) {
3302 PyObject *resultobj = NULL;
3303 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3304 wxXmlResource *result;
3305 PyObject * obj0 = 0 ;
3306 char *kwnames[] = {
3307 (char *) "res", NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) goto fail;
3311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3312 if (SWIG_arg_fail(1)) SWIG_fail;
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 result = (wxXmlResource *)wxXmlResource::Set(arg1);
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0);
3321 return resultobj;
3322 fail:
3323 return NULL;
3324 }
3325
3326
3327 static PyObject *_wrap_XmlResource_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
3328 PyObject *resultobj = NULL;
3329 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3330 int result;
3331 PyObject * obj0 = 0 ;
3332 char *kwnames[] = {
3333 (char *) "self", NULL
3334 };
3335
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetFlags",kwnames,&obj0)) goto fail;
3337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3338 if (SWIG_arg_fail(1)) SWIG_fail;
3339 {
3340 PyThreadState* __tstate = wxPyBeginAllowThreads();
3341 result = (int)(arg1)->GetFlags();
3342
3343 wxPyEndAllowThreads(__tstate);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 {
3347 resultobj = SWIG_From_int(static_cast<int >(result));
3348 }
3349 return resultobj;
3350 fail:
3351 return NULL;
3352 }
3353
3354
3355 static PyObject *_wrap_XmlResource_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
3356 PyObject *resultobj = NULL;
3357 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3358 int arg2 ;
3359 PyObject * obj0 = 0 ;
3360 PyObject * obj1 = 0 ;
3361 char *kwnames[] = {
3362 (char *) "self",(char *) "flags", NULL
3363 };
3364
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) goto fail;
3366 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
3367 if (SWIG_arg_fail(1)) SWIG_fail;
3368 {
3369 arg2 = static_cast<int >(SWIG_As_int(obj1));
3370 if (SWIG_arg_fail(2)) SWIG_fail;
3371 }
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 (arg1)->SetFlags(arg2);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 Py_INCREF(Py_None); resultobj = Py_None;
3380 return resultobj;
3381 fail:
3382 return NULL;
3383 }
3384
3385
3386 static PyObject * XmlResource_swigregister(PyObject *, PyObject *args) {
3387 PyObject *obj;
3388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3389 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource, obj);
3390 Py_INCREF(obj);
3391 return Py_BuildValue((char *)"");
3392 }
3393 static PyObject *_wrap_new_XmlSubclassFactory(PyObject *, PyObject *args, PyObject *kwargs) {
3394 PyObject *resultobj = NULL;
3395 wxPyXmlSubclassFactory *result;
3396 char *kwnames[] = {
3397 NULL
3398 };
3399
3400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlSubclassFactory",kwnames)) goto fail;
3401 {
3402 PyThreadState* __tstate = wxPyBeginAllowThreads();
3403 result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory();
3404
3405 wxPyEndAllowThreads(__tstate);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlSubclassFactory, 1);
3409 return resultobj;
3410 fail:
3411 return NULL;
3412 }
3413
3414
3415 static PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
3416 PyObject *resultobj = NULL;
3417 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
3418 PyObject *arg2 = (PyObject *) 0 ;
3419 PyObject *arg3 = (PyObject *) 0 ;
3420 PyObject * obj0 = 0 ;
3421 PyObject * obj1 = 0 ;
3422 PyObject * obj2 = 0 ;
3423 char *kwnames[] = {
3424 (char *) "self",(char *) "self",(char *) "_class", NULL
3425 };
3426
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
3428 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_EXCEPTION | 0);
3429 if (SWIG_arg_fail(1)) SWIG_fail;
3430 arg2 = obj1;
3431 arg3 = obj2;
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 (arg1)->_setCallbackInfo(arg2,arg3);
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 Py_INCREF(Py_None); resultobj = Py_None;
3440 return resultobj;
3441 fail:
3442 return NULL;
3443 }
3444
3445
3446 static PyObject * XmlSubclassFactory_swigregister(PyObject *, PyObject *args) {
3447 PyObject *obj;
3448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3449 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, obj);
3450 Py_INCREF(obj);
3451 return Py_BuildValue((char *)"");
3452 }
3453 static PyObject *_wrap_new_XmlProperty(PyObject *, PyObject *args, PyObject *kwargs) {
3454 PyObject *resultobj = NULL;
3455 wxString const &arg1_defvalue = wxPyEmptyString ;
3456 wxString *arg1 = (wxString *) &arg1_defvalue ;
3457 wxString const &arg2_defvalue = wxPyEmptyString ;
3458 wxString *arg2 = (wxString *) &arg2_defvalue ;
3459 wxXmlProperty *arg3 = (wxXmlProperty *) NULL ;
3460 wxXmlProperty *result;
3461 bool temp1 = false ;
3462 bool temp2 = false ;
3463 PyObject * obj0 = 0 ;
3464 PyObject * obj1 = 0 ;
3465 PyObject * obj2 = 0 ;
3466 char *kwnames[] = {
3467 (char *) "name",(char *) "value",(char *) "next", NULL
3468 };
3469
3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) goto fail;
3471 if (obj0) {
3472 {
3473 arg1 = wxString_in_helper(obj0);
3474 if (arg1 == NULL) SWIG_fail;
3475 temp1 = true;
3476 }
3477 }
3478 if (obj1) {
3479 {
3480 arg2 = wxString_in_helper(obj1);
3481 if (arg2 == NULL) SWIG_fail;
3482 temp2 = true;
3483 }
3484 }
3485 if (obj2) {
3486 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3487 if (SWIG_arg_fail(3)) SWIG_fail;
3488 }
3489 {
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3);
3492
3493 wxPyEndAllowThreads(__tstate);
3494 if (PyErr_Occurred()) SWIG_fail;
3495 }
3496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 1);
3497 {
3498 if (temp1)
3499 delete arg1;
3500 }
3501 {
3502 if (temp2)
3503 delete arg2;
3504 }
3505 return resultobj;
3506 fail:
3507 {
3508 if (temp1)
3509 delete arg1;
3510 }
3511 {
3512 if (temp2)
3513 delete arg2;
3514 }
3515 return NULL;
3516 }
3517
3518
3519 static PyObject *_wrap_XmlProperty_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj = NULL;
3521 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3522 wxString result;
3523 PyObject * obj0 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "self", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetName",kwnames,&obj0)) goto fail;
3529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3530 if (SWIG_arg_fail(1)) SWIG_fail;
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 result = ((wxXmlProperty const *)arg1)->GetName();
3534
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 {
3539 #if wxUSE_UNICODE
3540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3541 #else
3542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3543 #endif
3544 }
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 static PyObject *_wrap_XmlProperty_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj = NULL;
3553 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3554 wxString result;
3555 PyObject * obj0 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "self", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetValue",kwnames,&obj0)) goto fail;
3561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3562 if (SWIG_arg_fail(1)) SWIG_fail;
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 result = ((wxXmlProperty const *)arg1)->GetValue();
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 {
3571 #if wxUSE_UNICODE
3572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3573 #else
3574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3575 #endif
3576 }
3577 return resultobj;
3578 fail:
3579 return NULL;
3580 }
3581
3582
3583 static PyObject *_wrap_XmlProperty_GetNext(PyObject *, PyObject *args, PyObject *kwargs) {
3584 PyObject *resultobj = NULL;
3585 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3586 wxXmlProperty *result;
3587 PyObject * obj0 = 0 ;
3588 char *kwnames[] = {
3589 (char *) "self", NULL
3590 };
3591
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetNext",kwnames,&obj0)) goto fail;
3593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3594 if (SWIG_arg_fail(1)) SWIG_fail;
3595 {
3596 PyThreadState* __tstate = wxPyBeginAllowThreads();
3597 result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext();
3598
3599 wxPyEndAllowThreads(__tstate);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 }
3602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0);
3603 return resultobj;
3604 fail:
3605 return NULL;
3606 }
3607
3608
3609 static PyObject *_wrap_XmlProperty_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj = NULL;
3611 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3612 wxString *arg2 = 0 ;
3613 bool temp2 = false ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 char *kwnames[] = {
3617 (char *) "self",(char *) "name", NULL
3618 };
3619
3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) goto fail;
3621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3622 if (SWIG_arg_fail(1)) SWIG_fail;
3623 {
3624 arg2 = wxString_in_helper(obj1);
3625 if (arg2 == NULL) SWIG_fail;
3626 temp2 = true;
3627 }
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 (arg1)->SetName((wxString const &)*arg2);
3631
3632 wxPyEndAllowThreads(__tstate);
3633 if (PyErr_Occurred()) SWIG_fail;
3634 }
3635 Py_INCREF(Py_None); resultobj = Py_None;
3636 {
3637 if (temp2)
3638 delete arg2;
3639 }
3640 return resultobj;
3641 fail:
3642 {
3643 if (temp2)
3644 delete arg2;
3645 }
3646 return NULL;
3647 }
3648
3649
3650 static PyObject *_wrap_XmlProperty_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj = NULL;
3652 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3653 wxString *arg2 = 0 ;
3654 bool temp2 = false ;
3655 PyObject * obj0 = 0 ;
3656 PyObject * obj1 = 0 ;
3657 char *kwnames[] = {
3658 (char *) "self",(char *) "value", NULL
3659 };
3660
3661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) goto fail;
3662 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3663 if (SWIG_arg_fail(1)) SWIG_fail;
3664 {
3665 arg2 = wxString_in_helper(obj1);
3666 if (arg2 == NULL) SWIG_fail;
3667 temp2 = true;
3668 }
3669 {
3670 PyThreadState* __tstate = wxPyBeginAllowThreads();
3671 (arg1)->SetValue((wxString const &)*arg2);
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 Py_INCREF(Py_None); resultobj = Py_None;
3677 {
3678 if (temp2)
3679 delete arg2;
3680 }
3681 return resultobj;
3682 fail:
3683 {
3684 if (temp2)
3685 delete arg2;
3686 }
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_XmlProperty_SetNext(PyObject *, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj = NULL;
3693 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
3694 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
3695 PyObject * obj0 = 0 ;
3696 PyObject * obj1 = 0 ;
3697 char *kwnames[] = {
3698 (char *) "self",(char *) "next", NULL
3699 };
3700
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) goto fail;
3702 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3703 if (SWIG_arg_fail(1)) SWIG_fail;
3704 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3705 if (SWIG_arg_fail(2)) SWIG_fail;
3706 {
3707 PyThreadState* __tstate = wxPyBeginAllowThreads();
3708 (arg1)->SetNext(arg2);
3709
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 Py_INCREF(Py_None); resultobj = Py_None;
3714 return resultobj;
3715 fail:
3716 return NULL;
3717 }
3718
3719
3720 static PyObject * XmlProperty_swigregister(PyObject *, PyObject *args) {
3721 PyObject *obj;
3722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3723 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty, obj);
3724 Py_INCREF(obj);
3725 return Py_BuildValue((char *)"");
3726 }
3727 static PyObject *_wrap_new_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = NULL;
3729 wxXmlNode *arg1 = (wxXmlNode *) NULL ;
3730 wxXmlNodeType arg2 = (wxXmlNodeType) 0 ;
3731 wxString const &arg3_defvalue = wxPyEmptyString ;
3732 wxString *arg3 = (wxString *) &arg3_defvalue ;
3733 wxString const &arg4_defvalue = wxPyEmptyString ;
3734 wxString *arg4 = (wxString *) &arg4_defvalue ;
3735 wxXmlProperty *arg5 = (wxXmlProperty *) NULL ;
3736 wxXmlNode *arg6 = (wxXmlNode *) NULL ;
3737 wxXmlNode *result;
3738 bool temp3 = false ;
3739 bool temp4 = false ;
3740 PyObject * obj0 = 0 ;
3741 PyObject * obj1 = 0 ;
3742 PyObject * obj2 = 0 ;
3743 PyObject * obj3 = 0 ;
3744 PyObject * obj4 = 0 ;
3745 PyObject * obj5 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3751 if (obj0) {
3752 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3753 if (SWIG_arg_fail(1)) SWIG_fail;
3754 }
3755 if (obj1) {
3756 {
3757 arg2 = static_cast<wxXmlNodeType >(SWIG_As_int(obj1));
3758 if (SWIG_arg_fail(2)) SWIG_fail;
3759 }
3760 }
3761 if (obj2) {
3762 {
3763 arg3 = wxString_in_helper(obj2);
3764 if (arg3 == NULL) SWIG_fail;
3765 temp3 = true;
3766 }
3767 }
3768 if (obj3) {
3769 {
3770 arg4 = wxString_in_helper(obj3);
3771 if (arg4 == NULL) SWIG_fail;
3772 temp4 = true;
3773 }
3774 }
3775 if (obj4) {
3776 SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
3777 if (SWIG_arg_fail(5)) SWIG_fail;
3778 }
3779 if (obj5) {
3780 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3781 if (SWIG_arg_fail(6)) SWIG_fail;
3782 }
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1);
3791 {
3792 if (temp3)
3793 delete arg3;
3794 }
3795 {
3796 if (temp4)
3797 delete arg4;
3798 }
3799 return resultobj;
3800 fail:
3801 {
3802 if (temp3)
3803 delete arg3;
3804 }
3805 {
3806 if (temp4)
3807 delete arg4;
3808 }
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_delete_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj = NULL;
3815 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
3816 PyObject * obj0 = 0 ;
3817 char *kwnames[] = {
3818 (char *) "self", NULL
3819 };
3820
3821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlNode",kwnames,&obj0)) goto fail;
3822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3823 if (SWIG_arg_fail(1)) SWIG_fail;
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 delete arg1;
3827
3828 wxPyEndAllowThreads(__tstate);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 Py_INCREF(Py_None); resultobj = Py_None;
3832 return resultobj;
3833 fail:
3834 return NULL;
3835 }
3836
3837
3838 static PyObject *_wrap_new_XmlNodeEasy(PyObject *, PyObject *args, PyObject *kwargs) {
3839 PyObject *resultobj = NULL;
3840 wxXmlNodeType arg1 ;
3841 wxString *arg2 = 0 ;
3842 wxString const &arg3_defvalue = wxPyEmptyString ;
3843 wxString *arg3 = (wxString *) &arg3_defvalue ;
3844 wxXmlNode *result;
3845 bool temp2 = false ;
3846 bool temp3 = false ;
3847 PyObject * obj0 = 0 ;
3848 PyObject * obj1 = 0 ;
3849 PyObject * obj2 = 0 ;
3850 char *kwnames[] = {
3851 (char *) "type",(char *) "name",(char *) "content", NULL
3852 };
3853
3854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) goto fail;
3855 {
3856 arg1 = static_cast<wxXmlNodeType >(SWIG_As_int(obj0));
3857 if (SWIG_arg_fail(1)) SWIG_fail;
3858 }
3859 {
3860 arg2 = wxString_in_helper(obj1);
3861 if (arg2 == NULL) SWIG_fail;
3862 temp2 = true;
3863 }
3864 if (obj2) {
3865 {
3866 arg3 = wxString_in_helper(obj2);
3867 if (arg3 == NULL) SWIG_fail;
3868 temp3 = true;
3869 }
3870 }
3871 {
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1);
3879 {
3880 if (temp2)
3881 delete arg2;
3882 }
3883 {
3884 if (temp3)
3885 delete arg3;
3886 }
3887 return resultobj;
3888 fail:
3889 {
3890 if (temp2)
3891 delete arg2;
3892 }
3893 {
3894 if (temp3)
3895 delete arg3;
3896 }
3897 return NULL;
3898 }
3899
3900
3901 static PyObject *_wrap_XmlNode_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
3902 PyObject *resultobj = NULL;
3903 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
3904 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
3905 PyObject * obj0 = 0 ;
3906 PyObject * obj1 = 0 ;
3907 char *kwnames[] = {
3908 (char *) "self",(char *) "child", NULL
3909 };
3910
3911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) goto fail;
3912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3913 if (SWIG_arg_fail(1)) SWIG_fail;
3914 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3915 if (SWIG_arg_fail(2)) SWIG_fail;
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 (arg1)->AddChild(arg2);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 Py_INCREF(Py_None); resultobj = Py_None;
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject *_wrap_XmlNode_InsertChild(PyObject *, PyObject *args, PyObject *kwargs) {
3931 PyObject *resultobj = NULL;
3932 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
3933 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
3934 wxXmlNode *arg3 = (wxXmlNode *) 0 ;
3935 PyObject * obj0 = 0 ;
3936 PyObject * obj1 = 0 ;
3937 PyObject * obj2 = 0 ;
3938 char *kwnames[] = {
3939 (char *) "self",(char *) "child",(char *) "before_node", NULL
3940 };
3941
3942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
3943 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3944 if (SWIG_arg_fail(1)) SWIG_fail;
3945 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3946 if (SWIG_arg_fail(2)) SWIG_fail;
3947 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3948 if (SWIG_arg_fail(3)) SWIG_fail;
3949 {
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
3951 (arg1)->InsertChild(arg2,arg3);
3952
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 Py_INCREF(Py_None); resultobj = Py_None;
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_XmlNode_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj = NULL;
3965 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
3966 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
3967 bool result;
3968 PyObject * obj0 = 0 ;
3969 PyObject * obj1 = 0 ;
3970 char *kwnames[] = {
3971 (char *) "self",(char *) "child", NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
3975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3976 if (SWIG_arg_fail(1)) SWIG_fail;
3977 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
3978 if (SWIG_arg_fail(2)) SWIG_fail;
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 result = (bool)(arg1)->RemoveChild(arg2);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 {
3987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3988 }
3989 return resultobj;
3990 fail:
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_XmlNode_AddProperty(PyObject *, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj = NULL;
3997 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
3998 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
3999 PyObject * obj0 = 0 ;
4000 PyObject * obj1 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self",(char *) "prop", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) goto fail;
4006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4007 if (SWIG_arg_fail(1)) SWIG_fail;
4008 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
4009 if (SWIG_arg_fail(2)) SWIG_fail;
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
4012 (arg1)->AddProperty(arg2);
4013
4014 wxPyEndAllowThreads(__tstate);
4015 if (PyErr_Occurred()) SWIG_fail;
4016 }
4017 Py_INCREF(Py_None); resultobj = Py_None;
4018 return resultobj;
4019 fail:
4020 return NULL;
4021 }
4022
4023
4024 static PyObject *_wrap_XmlNode_AddPropertyName(PyObject *, PyObject *args, PyObject *kwargs) {
4025 PyObject *resultobj = NULL;
4026 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4027 wxString *arg2 = 0 ;
4028 wxString *arg3 = 0 ;
4029 bool temp2 = false ;
4030 bool temp3 = false ;
4031 PyObject * obj0 = 0 ;
4032 PyObject * obj1 = 0 ;
4033 PyObject * obj2 = 0 ;
4034 char *kwnames[] = {
4035 (char *) "self",(char *) "name",(char *) "value", NULL
4036 };
4037
4038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) goto fail;
4039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4040 if (SWIG_arg_fail(1)) SWIG_fail;
4041 {
4042 arg2 = wxString_in_helper(obj1);
4043 if (arg2 == NULL) SWIG_fail;
4044 temp2 = true;
4045 }
4046 {
4047 arg3 = wxString_in_helper(obj2);
4048 if (arg3 == NULL) SWIG_fail;
4049 temp3 = true;
4050 }
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3);
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 Py_INCREF(Py_None); resultobj = Py_None;
4059 {
4060 if (temp2)
4061 delete arg2;
4062 }
4063 {
4064 if (temp3)
4065 delete arg3;
4066 }
4067 return resultobj;
4068 fail:
4069 {
4070 if (temp2)
4071 delete arg2;
4072 }
4073 {
4074 if (temp3)
4075 delete arg3;
4076 }
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_XmlNode_DeleteProperty(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj = NULL;
4083 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4084 wxString *arg2 = 0 ;
4085 bool result;
4086 bool temp2 = false ;
4087 PyObject * obj0 = 0 ;
4088 PyObject * obj1 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self",(char *) "name", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) goto fail;
4094 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4095 if (SWIG_arg_fail(1)) SWIG_fail;
4096 {
4097 arg2 = wxString_in_helper(obj1);
4098 if (arg2 == NULL) SWIG_fail;
4099 temp2 = true;
4100 }
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2);
4104
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 {
4109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4110 }
4111 {
4112 if (temp2)
4113 delete arg2;
4114 }
4115 return resultobj;
4116 fail:
4117 {
4118 if (temp2)
4119 delete arg2;
4120 }
4121 return NULL;
4122 }
4123
4124
4125 static PyObject *_wrap_XmlNode_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
4126 PyObject *resultobj = NULL;
4127 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4128 wxXmlNodeType result;
4129 PyObject * obj0 = 0 ;
4130 char *kwnames[] = {
4131 (char *) "self", NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetType",kwnames,&obj0)) goto fail;
4135 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4136 if (SWIG_arg_fail(1)) SWIG_fail;
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType();
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_From_int((result));
4145 return resultobj;
4146 fail:
4147 return NULL;
4148 }
4149
4150
4151 static PyObject *_wrap_XmlNode_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
4152 PyObject *resultobj = NULL;
4153 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4154 wxString result;
4155 PyObject * obj0 = 0 ;
4156 char *kwnames[] = {
4157 (char *) "self", NULL
4158 };
4159
4160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetName",kwnames,&obj0)) goto fail;
4161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4162 if (SWIG_arg_fail(1)) SWIG_fail;
4163 {
4164 PyThreadState* __tstate = wxPyBeginAllowThreads();
4165 result = ((wxXmlNode const *)arg1)->GetName();
4166
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 {
4171 #if wxUSE_UNICODE
4172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4173 #else
4174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4175 #endif
4176 }
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_XmlNode_GetContent(PyObject *, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj = NULL;
4185 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4186 wxString result;
4187 PyObject * obj0 = 0 ;
4188 char *kwnames[] = {
4189 (char *) "self", NULL
4190 };
4191
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetContent",kwnames,&obj0)) goto fail;
4193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4194 if (SWIG_arg_fail(1)) SWIG_fail;
4195 {
4196 PyThreadState* __tstate = wxPyBeginAllowThreads();
4197 result = ((wxXmlNode const *)arg1)->GetContent();
4198
4199 wxPyEndAllowThreads(__tstate);
4200 if (PyErr_Occurred()) SWIG_fail;
4201 }
4202 {
4203 #if wxUSE_UNICODE
4204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4205 #else
4206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4207 #endif
4208 }
4209 return resultobj;
4210 fail:
4211 return NULL;
4212 }
4213
4214
4215 static PyObject *_wrap_XmlNode_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
4216 PyObject *resultobj = NULL;
4217 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4218 wxXmlNode *result;
4219 PyObject * obj0 = 0 ;
4220 char *kwnames[] = {
4221 (char *) "self", NULL
4222 };
4223
4224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetParent",kwnames,&obj0)) goto fail;
4225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4226 if (SWIG_arg_fail(1)) SWIG_fail;
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent();
4230
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
4235 return resultobj;
4236 fail:
4237 return NULL;
4238 }
4239
4240
4241 static PyObject *_wrap_XmlNode_GetNext(PyObject *, PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj = NULL;
4243 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4244 wxXmlNode *result;
4245 PyObject * obj0 = 0 ;
4246 char *kwnames[] = {
4247 (char *) "self", NULL
4248 };
4249
4250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetNext",kwnames,&obj0)) goto fail;
4251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4252 if (SWIG_arg_fail(1)) SWIG_fail;
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext();
4256
4257 wxPyEndAllowThreads(__tstate);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 static PyObject *_wrap_XmlNode_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj = NULL;
4269 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4270 wxXmlNode *result;
4271 PyObject * obj0 = 0 ;
4272 char *kwnames[] = {
4273 (char *) "self", NULL
4274 };
4275
4276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetChildren",kwnames,&obj0)) goto fail;
4277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4278 if (SWIG_arg_fail(1)) SWIG_fail;
4279 {
4280 PyThreadState* __tstate = wxPyBeginAllowThreads();
4281 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren();
4282
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
4287 return resultobj;
4288 fail:
4289 return NULL;
4290 }
4291
4292
4293 static PyObject *_wrap_XmlNode_GetProperties(PyObject *, PyObject *args, PyObject *kwargs) {
4294 PyObject *resultobj = NULL;
4295 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4296 wxXmlProperty *result;
4297 PyObject * obj0 = 0 ;
4298 char *kwnames[] = {
4299 (char *) "self", NULL
4300 };
4301
4302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetProperties",kwnames,&obj0)) goto fail;
4303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4304 if (SWIG_arg_fail(1)) SWIG_fail;
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties();
4308
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0);
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 static PyObject *_wrap_XmlNode_GetPropVal(PyObject *, PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj = NULL;
4321 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4322 wxString *arg2 = 0 ;
4323 wxString *arg3 = 0 ;
4324 wxString result;
4325 bool temp2 = false ;
4326 bool temp3 = false ;
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 PyObject * obj2 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) goto fail;
4335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4336 if (SWIG_arg_fail(1)) SWIG_fail;
4337 {
4338 arg2 = wxString_in_helper(obj1);
4339 if (arg2 == NULL) SWIG_fail;
4340 temp2 = true;
4341 }
4342 {
4343 arg3 = wxString_in_helper(obj2);
4344 if (arg3 == NULL) SWIG_fail;
4345 temp3 = true;
4346 }
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3);
4350
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 {
4355 #if wxUSE_UNICODE
4356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4357 #else
4358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4359 #endif
4360 }
4361 {
4362 if (temp2)
4363 delete arg2;
4364 }
4365 {
4366 if (temp3)
4367 delete arg3;
4368 }
4369 return resultobj;
4370 fail:
4371 {
4372 if (temp2)
4373 delete arg2;
4374 }
4375 {
4376 if (temp3)
4377 delete arg3;
4378 }
4379 return NULL;
4380 }
4381
4382
4383 static PyObject *_wrap_XmlNode_HasProp(PyObject *, PyObject *args, PyObject *kwargs) {
4384 PyObject *resultobj = NULL;
4385 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4386 wxString *arg2 = 0 ;
4387 bool result;
4388 bool temp2 = false ;
4389 PyObject * obj0 = 0 ;
4390 PyObject * obj1 = 0 ;
4391 char *kwnames[] = {
4392 (char *) "self",(char *) "propName", NULL
4393 };
4394
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) goto fail;
4396 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4397 if (SWIG_arg_fail(1)) SWIG_fail;
4398 {
4399 arg2 = wxString_in_helper(obj1);
4400 if (arg2 == NULL) SWIG_fail;
4401 temp2 = true;
4402 }
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2);
4406
4407 wxPyEndAllowThreads(__tstate);
4408 if (PyErr_Occurred()) SWIG_fail;
4409 }
4410 {
4411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4412 }
4413 {
4414 if (temp2)
4415 delete arg2;
4416 }
4417 return resultobj;
4418 fail:
4419 {
4420 if (temp2)
4421 delete arg2;
4422 }
4423 return NULL;
4424 }
4425
4426
4427 static PyObject *_wrap_XmlNode_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
4428 PyObject *resultobj = NULL;
4429 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4430 wxXmlNodeType arg2 ;
4431 PyObject * obj0 = 0 ;
4432 PyObject * obj1 = 0 ;
4433 char *kwnames[] = {
4434 (char *) "self",(char *) "type", NULL
4435 };
4436
4437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) goto fail;
4438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4439 if (SWIG_arg_fail(1)) SWIG_fail;
4440 {
4441 arg2 = static_cast<wxXmlNodeType >(SWIG_As_int(obj1));
4442 if (SWIG_arg_fail(2)) SWIG_fail;
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 (arg1)->SetType(arg2);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 Py_INCREF(Py_None); resultobj = Py_None;
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_XmlNode_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj = NULL;
4460 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4461 wxString *arg2 = 0 ;
4462 bool temp2 = false ;
4463 PyObject * obj0 = 0 ;
4464 PyObject * obj1 = 0 ;
4465 char *kwnames[] = {
4466 (char *) "self",(char *) "name", NULL
4467 };
4468
4469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) goto fail;
4470 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4471 if (SWIG_arg_fail(1)) SWIG_fail;
4472 {
4473 arg2 = wxString_in_helper(obj1);
4474 if (arg2 == NULL) SWIG_fail;
4475 temp2 = true;
4476 }
4477 {
4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
4479 (arg1)->SetName((wxString const &)*arg2);
4480
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 Py_INCREF(Py_None); resultobj = Py_None;
4485 {
4486 if (temp2)
4487 delete arg2;
4488 }
4489 return resultobj;
4490 fail:
4491 {
4492 if (temp2)
4493 delete arg2;
4494 }
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_XmlNode_SetContent(PyObject *, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = NULL;
4501 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4502 wxString *arg2 = 0 ;
4503 bool temp2 = false ;
4504 PyObject * obj0 = 0 ;
4505 PyObject * obj1 = 0 ;
4506 char *kwnames[] = {
4507 (char *) "self",(char *) "con", NULL
4508 };
4509
4510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) goto fail;
4511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4512 if (SWIG_arg_fail(1)) SWIG_fail;
4513 {
4514 arg2 = wxString_in_helper(obj1);
4515 if (arg2 == NULL) SWIG_fail;
4516 temp2 = true;
4517 }
4518 {
4519 PyThreadState* __tstate = wxPyBeginAllowThreads();
4520 (arg1)->SetContent((wxString const &)*arg2);
4521
4522 wxPyEndAllowThreads(__tstate);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 }
4525 Py_INCREF(Py_None); resultobj = Py_None;
4526 {
4527 if (temp2)
4528 delete arg2;
4529 }
4530 return resultobj;
4531 fail:
4532 {
4533 if (temp2)
4534 delete arg2;
4535 }
4536 return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_XmlNode_SetParent(PyObject *, PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = NULL;
4542 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4543 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 char *kwnames[] = {
4547 (char *) "self",(char *) "parent", NULL
4548 };
4549
4550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) goto fail;
4551 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4552 if (SWIG_arg_fail(1)) SWIG_fail;
4553 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4554 if (SWIG_arg_fail(2)) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 (arg1)->SetParent(arg2);
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 Py_INCREF(Py_None); resultobj = Py_None;
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 static PyObject *_wrap_XmlNode_SetNext(PyObject *, PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj = NULL;
4571 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4572 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
4573 PyObject * obj0 = 0 ;
4574 PyObject * obj1 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "self",(char *) "next", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) goto fail;
4580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4581 if (SWIG_arg_fail(1)) SWIG_fail;
4582 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4583 if (SWIG_arg_fail(2)) SWIG_fail;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 (arg1)->SetNext(arg2);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 Py_INCREF(Py_None); resultobj = Py_None;
4592 return resultobj;
4593 fail:
4594 return NULL;
4595 }
4596
4597
4598 static PyObject *_wrap_XmlNode_SetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
4599 PyObject *resultobj = NULL;
4600 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4601 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "self",(char *) "child", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) goto fail;
4609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4610 if (SWIG_arg_fail(1)) SWIG_fail;
4611 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4612 if (SWIG_arg_fail(2)) SWIG_fail;
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 (arg1)->SetChildren(arg2);
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 Py_INCREF(Py_None); resultobj = Py_None;
4621 return resultobj;
4622 fail:
4623 return NULL;
4624 }
4625
4626
4627 static PyObject *_wrap_XmlNode_SetProperties(PyObject *, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj = NULL;
4629 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
4630 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
4631 PyObject * obj0 = 0 ;
4632 PyObject * obj1 = 0 ;
4633 char *kwnames[] = {
4634 (char *) "self",(char *) "prop", NULL
4635 };
4636
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) goto fail;
4638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
4639 if (SWIG_arg_fail(1)) SWIG_fail;
4640 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_EXCEPTION | 0);
4641 if (SWIG_arg_fail(2)) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 (arg1)->SetProperties(arg2);
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 Py_INCREF(Py_None); resultobj = Py_None;
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 static PyObject * XmlNode_swigregister(PyObject *, PyObject *args) {
4657 PyObject *obj;
4658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4659 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode, obj);
4660 Py_INCREF(obj);
4661 return Py_BuildValue((char *)"");
4662 }
4663 static PyObject *_wrap_new_XmlDocument(PyObject *, PyObject *args, PyObject *kwargs) {
4664 PyObject *resultobj = NULL;
4665 wxString *arg1 = 0 ;
4666 wxString const &arg2_defvalue = wxPyUTF8String ;
4667 wxString *arg2 = (wxString *) &arg2_defvalue ;
4668 wxXmlDocument *result;
4669 bool temp1 = false ;
4670 bool temp2 = false ;
4671 PyObject * obj0 = 0 ;
4672 PyObject * obj1 = 0 ;
4673 char *kwnames[] = {
4674 (char *) "filename",(char *) "encoding", NULL
4675 };
4676
4677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) goto fail;
4678 {
4679 arg1 = wxString_in_helper(obj0);
4680 if (arg1 == NULL) SWIG_fail;
4681 temp1 = true;
4682 }
4683 if (obj1) {
4684 {
4685 arg2 = wxString_in_helper(obj1);
4686 if (arg2 == NULL) SWIG_fail;
4687 temp2 = true;
4688 }
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1);
4698 {
4699 if (temp1)
4700 delete arg1;
4701 }
4702 {
4703 if (temp2)
4704 delete arg2;
4705 }
4706 return resultobj;
4707 fail:
4708 {
4709 if (temp1)
4710 delete arg1;
4711 }
4712 {
4713 if (temp2)
4714 delete arg2;
4715 }
4716 return NULL;
4717 }
4718
4719
4720 static PyObject *_wrap_new_XmlDocumentFromStream(PyObject *, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj = NULL;
4722 wxInputStream *arg1 = 0 ;
4723 wxString const &arg2_defvalue = wxPyUTF8String ;
4724 wxString *arg2 = (wxString *) &arg2_defvalue ;
4725 wxXmlDocument *result;
4726 wxPyInputStream *temp1 ;
4727 bool created1 ;
4728 bool temp2 = false ;
4729 PyObject * obj0 = 0 ;
4730 PyObject * obj1 = 0 ;
4731 char *kwnames[] = {
4732 (char *) "stream",(char *) "encoding", NULL
4733 };
4734
4735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) goto fail;
4736 {
4737 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
4738 arg1 = temp1->m_wxis;
4739 created1 = false;
4740 } else {
4741 PyErr_Clear(); // clear the failure of the wxPyConvert above
4742 arg1 = wxPyCBInputStream_create(obj0, false);
4743 if (arg1 == NULL) {
4744 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
4745 SWIG_fail;
4746 }
4747 created1 = true;
4748 }
4749 }
4750 if (obj1) {
4751 {
4752 arg2 = wxString_in_helper(obj1);
4753 if (arg2 == NULL) SWIG_fail;
4754 temp2 = true;
4755 }
4756 }
4757 {
4758 PyThreadState* __tstate = wxPyBeginAllowThreads();
4759 result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2);
4760
4761 wxPyEndAllowThreads(__tstate);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1);
4765 {
4766 if (created1) delete arg1;
4767 }
4768 {
4769 if (temp2)
4770 delete arg2;
4771 }
4772 return resultobj;
4773 fail:
4774 {
4775 if (created1) delete arg1;
4776 }
4777 {
4778 if (temp2)
4779 delete arg2;
4780 }
4781 return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_new_EmptyXmlDocument(PyObject *, PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj = NULL;
4787 wxXmlDocument *result;
4788 char *kwnames[] = {
4789 NULL
4790 };
4791
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyXmlDocument",kwnames)) goto fail;
4793 {
4794 PyThreadState* __tstate = wxPyBeginAllowThreads();
4795 result = (wxXmlDocument *)new wxXmlDocument();
4796
4797 wxPyEndAllowThreads(__tstate);
4798 if (PyErr_Occurred()) SWIG_fail;
4799 }
4800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1);
4801 return resultobj;
4802 fail:
4803 return NULL;
4804 }
4805
4806
4807 static PyObject *_wrap_delete_XmlDocument(PyObject *, PyObject *args, PyObject *kwargs) {
4808 PyObject *resultobj = NULL;
4809 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
4810 PyObject * obj0 = 0 ;
4811 char *kwnames[] = {
4812 (char *) "self", NULL
4813 };
4814
4815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlDocument",kwnames,&obj0)) goto fail;
4816 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
4817 if (SWIG_arg_fail(1)) SWIG_fail;
4818 {
4819 PyThreadState* __tstate = wxPyBeginAllowThreads();
4820 delete arg1;
4821
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 Py_INCREF(Py_None); resultobj = Py_None;
4826 return resultobj;
4827 fail:
4828 return NULL;
4829 }
4830
4831
4832 static PyObject *_wrap_XmlDocument_Load(PyObject *, PyObject *args, PyObject *kwargs) {
4833 PyObject *resultobj = NULL;
4834 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
4835 wxString *arg2 = 0 ;
4836 wxString const &arg3_defvalue = wxPyUTF8String ;
4837 wxString *arg3 = (wxString *) &arg3_defvalue ;
4838 bool result;
4839 bool temp2 = false ;
4840 bool temp3 = false ;
4841 PyObject * obj0 = 0 ;
4842 PyObject * obj1 = 0 ;
4843 PyObject * obj2 = 0 ;
4844 char *kwnames[] = {
4845 (char *) "self",(char *) "filename",(char *) "encoding", NULL
4846 };
4847
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2)) goto fail;
4849 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
4850 if (SWIG_arg_fail(1)) SWIG_fail;
4851 {
4852 arg2 = wxString_in_helper(obj1);
4853 if (arg2 == NULL) SWIG_fail;
4854 temp2 = true;
4855 }
4856 if (obj2) {
4857 {
4858 arg3 = wxString_in_helper(obj2);
4859 if (arg3 == NULL) SWIG_fail;
4860 temp3 = true;
4861 }
4862 }
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3);
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 {
4871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4872 }
4873 {
4874 if (temp2)
4875 delete arg2;
4876 }
4877 {
4878 if (temp3)
4879 delete arg3;
4880 }
4881 return resultobj;
4882 fail:
4883 {
4884 if (temp2)
4885 delete arg2;
4886 }
4887 {
4888 if (temp3)
4889 delete arg3;
4890 }
4891 return NULL;
4892 }
4893
4894
4895 static PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *, PyObject *args, PyObject *kwargs) {
4896 PyObject *resultobj = NULL;
4897 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
4898 wxInputStream *arg2 = 0 ;
4899 wxString const &arg3_defvalue = wxPyUTF8String ;
4900 wxString *arg3 = (wxString *) &arg3_defvalue ;
4901 bool result;
4902 wxPyInputStream *temp2 ;
4903 bool created2 ;
4904 bool temp3 = false ;
4905 PyObject * obj0 = 0 ;
4906 PyObject * obj1 = 0 ;
4907 PyObject * obj2 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "stream",(char *) "encoding", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
4913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
4914 if (SWIG_arg_fail(1)) SWIG_fail;
4915 {
4916 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
4917 arg2 = temp2->m_wxis;
4918 created2 = false;
4919 } else {
4920 PyErr_Clear(); // clear the failure of the wxPyConvert above
4921 arg2 = wxPyCBInputStream_create(obj1, false);
4922 if (arg2 == NULL) {
4923 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
4924 SWIG_fail;
4925 }
4926 created2 = true;
4927 }
4928 }
4929 if (obj2) {
4930 {
4931 arg3 = wxString_in_helper(obj2);
4932 if (arg3 == NULL) SWIG_fail;
4933 temp3 = true;
4934 }
4935 }
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3);
4939
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 {
4944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4945 }
4946 {
4947 if (created2) delete arg2;
4948 }
4949 {
4950 if (temp3)
4951 delete arg3;
4952 }
4953 return resultobj;
4954 fail:
4955 {
4956 if (created2) delete arg2;
4957 }
4958 {
4959 if (temp3)
4960 delete arg3;
4961 }
4962 return NULL;
4963 }
4964
4965
4966 static PyObject *_wrap_XmlDocument_Save(PyObject *, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj = NULL;
4968 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
4969 wxString *arg2 = 0 ;
4970 bool result;
4971 bool temp2 = false ;
4972 PyObject * obj0 = 0 ;
4973 PyObject * obj1 = 0 ;
4974 char *kwnames[] = {
4975 (char *) "self",(char *) "filename", NULL
4976 };
4977
4978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_Save",kwnames,&obj0,&obj1)) goto fail;
4979 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
4980 if (SWIG_arg_fail(1)) SWIG_fail;
4981 {
4982 arg2 = wxString_in_helper(obj1);
4983 if (arg2 == NULL) SWIG_fail;
4984 temp2 = true;
4985 }
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2);
4989
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 {
4994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4995 }
4996 {
4997 if (temp2)
4998 delete arg2;
4999 }
5000 return resultobj;
5001 fail:
5002 {
5003 if (temp2)
5004 delete arg2;
5005 }
5006 return NULL;
5007 }
5008
5009
5010 static PyObject *_wrap_XmlDocument_SaveToStream(PyObject *, PyObject *args, PyObject *kwargs) {
5011 PyObject *resultobj = NULL;
5012 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5013 wxOutputStream *arg2 = 0 ;
5014 bool result;
5015 PyObject * obj0 = 0 ;
5016 PyObject * obj1 = 0 ;
5017 char *kwnames[] = {
5018 (char *) "self",(char *) "stream", NULL
5019 };
5020
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SaveToStream",kwnames,&obj0,&obj1)) goto fail;
5022 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5023 if (SWIG_arg_fail(1)) SWIG_fail;
5024 {
5025 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxOutputStream, SWIG_POINTER_EXCEPTION | 0);
5026 if (SWIG_arg_fail(2)) SWIG_fail;
5027 if (arg2 == NULL) {
5028 SWIG_null_ref("wxOutputStream");
5029 }
5030 if (SWIG_arg_fail(2)) SWIG_fail;
5031 }
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2);
5035
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 {
5040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5041 }
5042 return resultobj;
5043 fail:
5044 return NULL;
5045 }
5046
5047
5048 static PyObject *_wrap_XmlDocument_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5049 PyObject *resultobj = NULL;
5050 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5051 bool result;
5052 PyObject * obj0 = 0 ;
5053 char *kwnames[] = {
5054 (char *) "self", NULL
5055 };
5056
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_IsOk",kwnames,&obj0)) goto fail;
5058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5059 if (SWIG_arg_fail(1)) SWIG_fail;
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (bool)((wxXmlDocument const *)arg1)->IsOk();
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
5067 {
5068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5069 }
5070 return resultobj;
5071 fail:
5072 return NULL;
5073 }
5074
5075
5076 static PyObject *_wrap_XmlDocument_GetRoot(PyObject *, PyObject *args, PyObject *kwargs) {
5077 PyObject *resultobj = NULL;
5078 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5079 wxXmlNode *result;
5080 PyObject * obj0 = 0 ;
5081 char *kwnames[] = {
5082 (char *) "self", NULL
5083 };
5084
5085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetRoot",kwnames,&obj0)) goto fail;
5086 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5087 if (SWIG_arg_fail(1)) SWIG_fail;
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot();
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
5096 return resultobj;
5097 fail:
5098 return NULL;
5099 }
5100
5101
5102 static PyObject *_wrap_XmlDocument_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
5103 PyObject *resultobj = NULL;
5104 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5105 wxString result;
5106 PyObject * obj0 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetVersion",kwnames,&obj0)) goto fail;
5112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5113 if (SWIG_arg_fail(1)) SWIG_fail;
5114 {
5115 PyThreadState* __tstate = wxPyBeginAllowThreads();
5116 result = ((wxXmlDocument const *)arg1)->GetVersion();
5117
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 {
5122 #if wxUSE_UNICODE
5123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5124 #else
5125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5126 #endif
5127 }
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 static PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
5135 PyObject *resultobj = NULL;
5136 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5137 wxString result;
5138 PyObject * obj0 = 0 ;
5139 char *kwnames[] = {
5140 (char *) "self", NULL
5141 };
5142
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetFileEncoding",kwnames,&obj0)) goto fail;
5144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5145 if (SWIG_arg_fail(1)) SWIG_fail;
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 result = ((wxXmlDocument const *)arg1)->GetFileEncoding();
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 {
5154 #if wxUSE_UNICODE
5155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5156 #else
5157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5158 #endif
5159 }
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 static PyObject *_wrap_XmlDocument_SetRoot(PyObject *, PyObject *args, PyObject *kwargs) {
5167 PyObject *resultobj = NULL;
5168 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5169 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5170 PyObject * obj0 = 0 ;
5171 PyObject * obj1 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self",(char *) "node", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) goto fail;
5177 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5178 if (SWIG_arg_fail(1)) SWIG_fail;
5179 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
5180 if (SWIG_arg_fail(2)) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 (arg1)->SetRoot(arg2);
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 Py_INCREF(Py_None); resultobj = Py_None;
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject *_wrap_XmlDocument_SetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj = NULL;
5197 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5198 wxString *arg2 = 0 ;
5199 bool temp2 = false ;
5200 PyObject * obj0 = 0 ;
5201 PyObject * obj1 = 0 ;
5202 char *kwnames[] = {
5203 (char *) "self",(char *) "version", NULL
5204 };
5205
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) goto fail;
5207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5208 if (SWIG_arg_fail(1)) SWIG_fail;
5209 {
5210 arg2 = wxString_in_helper(obj1);
5211 if (arg2 == NULL) SWIG_fail;
5212 temp2 = true;
5213 }
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 (arg1)->SetVersion((wxString const &)*arg2);
5217
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 Py_INCREF(Py_None); resultobj = Py_None;
5222 {
5223 if (temp2)
5224 delete arg2;
5225 }
5226 return resultobj;
5227 fail:
5228 {
5229 if (temp2)
5230 delete arg2;
5231 }
5232 return NULL;
5233 }
5234
5235
5236 static PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj = NULL;
5238 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
5239 wxString *arg2 = 0 ;
5240 bool temp2 = false ;
5241 PyObject * obj0 = 0 ;
5242 PyObject * obj1 = 0 ;
5243 char *kwnames[] = {
5244 (char *) "self",(char *) "encoding", NULL
5245 };
5246
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) goto fail;
5248 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_EXCEPTION | 0);
5249 if (SWIG_arg_fail(1)) SWIG_fail;
5250 {
5251 arg2 = wxString_in_helper(obj1);
5252 if (arg2 == NULL) SWIG_fail;
5253 temp2 = true;
5254 }
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 (arg1)->SetFileEncoding((wxString const &)*arg2);
5258
5259 wxPyEndAllowThreads(__tstate);
5260 if (PyErr_Occurred()) SWIG_fail;
5261 }
5262 Py_INCREF(Py_None); resultobj = Py_None;
5263 {
5264 if (temp2)
5265 delete arg2;
5266 }
5267 return resultobj;
5268 fail:
5269 {
5270 if (temp2)
5271 delete arg2;
5272 }
5273 return NULL;
5274 }
5275
5276
5277 static PyObject * XmlDocument_swigregister(PyObject *, PyObject *args) {
5278 PyObject *obj;
5279 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5280 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument, obj);
5281 Py_INCREF(obj);
5282 return Py_BuildValue((char *)"");
5283 }
5284 static PyObject *_wrap_new_XmlResourceHandler(PyObject *, PyObject *args, PyObject *kwargs) {
5285 PyObject *resultobj = NULL;
5286 wxPyXmlResourceHandler *result;
5287 char *kwnames[] = {
5288 NULL
5289 };
5290
5291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlResourceHandler",kwnames)) goto fail;
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler();
5295
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlResourceHandler, 1);
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj = NULL;
5308 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5309 PyObject *arg2 = (PyObject *) 0 ;
5310 PyObject *arg3 = (PyObject *) 0 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 PyObject * obj2 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self",(char *) "self",(char *) "_class", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5320 if (SWIG_arg_fail(1)) SWIG_fail;
5321 arg2 = obj1;
5322 arg3 = obj2;
5323 {
5324 PyThreadState* __tstate = wxPyBeginAllowThreads();
5325 (arg1)->_setCallbackInfo(arg2,arg3);
5326
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 Py_INCREF(Py_None); resultobj = Py_None;
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 static PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *, PyObject *args, PyObject *kwargs) {
5338 PyObject *resultobj = NULL;
5339 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5340 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5341 wxObject *arg3 = (wxObject *) 0 ;
5342 wxObject *arg4 = (wxObject *) 0 ;
5343 wxObject *result;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 PyObject * obj2 = 0 ;
5347 PyObject * obj3 = 0 ;
5348 char *kwnames[] = {
5349 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5350 };
5351
5352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5353 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5354 if (SWIG_arg_fail(1)) SWIG_fail;
5355 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
5356 if (SWIG_arg_fail(2)) SWIG_fail;
5357 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
5358 if (SWIG_arg_fail(3)) SWIG_fail;
5359 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
5360 if (SWIG_arg_fail(4)) SWIG_fail;
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4);
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 {
5369 resultobj = wxPyMake_wxObject(result, (bool)0);
5370 }
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 static PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *, PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj = NULL;
5379 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5380 wxXmlResource *arg2 = (wxXmlResource *) 0 ;
5381 PyObject * obj0 = 0 ;
5382 PyObject * obj1 = 0 ;
5383 char *kwnames[] = {
5384 (char *) "self",(char *) "res", NULL
5385 };
5386
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) goto fail;
5388 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5389 if (SWIG_arg_fail(1)) SWIG_fail;
5390 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlResource, SWIG_POINTER_EXCEPTION | 0);
5391 if (SWIG_arg_fail(2)) SWIG_fail;
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 (arg1)->SetParentResource(arg2);
5395
5396 wxPyEndAllowThreads(__tstate);
5397 if (PyErr_Occurred()) SWIG_fail;
5398 }
5399 Py_INCREF(Py_None); resultobj = Py_None;
5400 return resultobj;
5401 fail:
5402 return NULL;
5403 }
5404
5405
5406 static PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *, PyObject *args, PyObject *kwargs) {
5407 PyObject *resultobj = NULL;
5408 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5409 wxXmlResource *result;
5410 PyObject * obj0 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "self", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetResource",kwnames,&obj0)) goto fail;
5416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5417 if (SWIG_arg_fail(1)) SWIG_fail;
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = (wxXmlResource *)(arg1)->GetResource();
5421
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) SWIG_fail;
5424 }
5425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0);
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 static PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *, PyObject *args, PyObject *kwargs) {
5433 PyObject *resultobj = NULL;
5434 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5435 wxXmlNode *result;
5436 PyObject * obj0 = 0 ;
5437 char *kwnames[] = {
5438 (char *) "self", NULL
5439 };
5440
5441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetNode",kwnames,&obj0)) goto fail;
5442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5443 if (SWIG_arg_fail(1)) SWIG_fail;
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 result = (wxXmlNode *)(arg1)->GetNode();
5447
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
5452 return resultobj;
5453 fail:
5454 return NULL;
5455 }
5456
5457
5458 static PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj = NULL;
5460 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5461 wxString result;
5462 PyObject * obj0 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetClass",kwnames,&obj0)) goto fail;
5468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5469 if (SWIG_arg_fail(1)) SWIG_fail;
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 result = (arg1)->GetClass();
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 {
5478 #if wxUSE_UNICODE
5479 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5480 #else
5481 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5482 #endif
5483 }
5484 return resultobj;
5485 fail:
5486 return NULL;
5487 }
5488
5489
5490 static PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
5491 PyObject *resultobj = NULL;
5492 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5493 wxObject *result;
5494 PyObject * obj0 = 0 ;
5495 char *kwnames[] = {
5496 (char *) "self", NULL
5497 };
5498
5499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParent",kwnames,&obj0)) goto fail;
5500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5501 if (SWIG_arg_fail(1)) SWIG_fail;
5502 {
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 result = (wxObject *)(arg1)->GetParent();
5505
5506 wxPyEndAllowThreads(__tstate);
5507 if (PyErr_Occurred()) SWIG_fail;
5508 }
5509 {
5510 resultobj = wxPyMake_wxObject(result, (bool)0);
5511 }
5512 return resultobj;
5513 fail:
5514 return NULL;
5515 }
5516
5517
5518 static PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *, PyObject *args, PyObject *kwargs) {
5519 PyObject *resultobj = NULL;
5520 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5521 wxObject *result;
5522 PyObject * obj0 = 0 ;
5523 char *kwnames[] = {
5524 (char *) "self", NULL
5525 };
5526
5527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetInstance",kwnames,&obj0)) goto fail;
5528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5529 if (SWIG_arg_fail(1)) SWIG_fail;
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (wxObject *)(arg1)->GetInstance();
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 {
5538 resultobj = wxPyMake_wxObject(result, (bool)0);
5539 }
5540 return resultobj;
5541 fail:
5542 return NULL;
5543 }
5544
5545
5546 static PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj = NULL;
5548 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5549 wxWindow *result;
5550 PyObject * obj0 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames,&obj0)) goto fail;
5556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5557 if (SWIG_arg_fail(1)) SWIG_fail;
5558 {
5559 PyThreadState* __tstate = wxPyBeginAllowThreads();
5560 result = (wxWindow *)(arg1)->GetParentAsWindow();
5561
5562 wxPyEndAllowThreads(__tstate);
5563 if (PyErr_Occurred()) SWIG_fail;
5564 }
5565 {
5566 resultobj = wxPyMake_wxObject(result, 0);
5567 }
5568 return resultobj;
5569 fail:
5570 return NULL;
5571 }
5572
5573
5574 static PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *, PyObject *args, PyObject *kwargs) {
5575 PyObject *resultobj = NULL;
5576 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5577 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5578 wxString *arg3 = 0 ;
5579 bool result;
5580 bool temp3 = false ;
5581 PyObject * obj0 = 0 ;
5582 PyObject * obj1 = 0 ;
5583 PyObject * obj2 = 0 ;
5584 char *kwnames[] = {
5585 (char *) "self",(char *) "node",(char *) "classname", NULL
5586 };
5587
5588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) goto fail;
5589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5590 if (SWIG_arg_fail(1)) SWIG_fail;
5591 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
5592 if (SWIG_arg_fail(2)) SWIG_fail;
5593 {
5594 arg3 = wxString_in_helper(obj2);
5595 if (arg3 == NULL) SWIG_fail;
5596 temp3 = true;
5597 }
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3);
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 {
5606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5607 }
5608 {
5609 if (temp3)
5610 delete arg3;
5611 }
5612 return resultobj;
5613 fail:
5614 {
5615 if (temp3)
5616 delete arg3;
5617 }
5618 return NULL;
5619 }
5620
5621
5622 static PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *, PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj = NULL;
5624 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5625 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5626 wxString result;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629 char *kwnames[] = {
5630 (char *) "self",(char *) "node", NULL
5631 };
5632
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) goto fail;
5634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5635 if (SWIG_arg_fail(1)) SWIG_fail;
5636 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
5637 if (SWIG_arg_fail(2)) SWIG_fail;
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 result = (arg1)->GetNodeContent(arg2);
5641
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 {
5646 #if wxUSE_UNICODE
5647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5648 #else
5649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5650 #endif
5651 }
5652 return resultobj;
5653 fail:
5654 return NULL;
5655 }
5656
5657
5658 static PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *, PyObject *args, PyObject *kwargs) {
5659 PyObject *resultobj = NULL;
5660 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5661 wxString *arg2 = 0 ;
5662 bool result;
5663 bool temp2 = false ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self",(char *) "param", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) goto fail;
5671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5672 if (SWIG_arg_fail(1)) SWIG_fail;
5673 {
5674 arg2 = wxString_in_helper(obj1);
5675 if (arg2 == NULL) SWIG_fail;
5676 temp2 = true;
5677 }
5678 {
5679 PyThreadState* __tstate = wxPyBeginAllowThreads();
5680 result = (bool)(arg1)->HasParam((wxString const &)*arg2);
5681
5682 wxPyEndAllowThreads(__tstate);
5683 if (PyErr_Occurred()) SWIG_fail;
5684 }
5685 {
5686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5687 }
5688 {
5689 if (temp2)
5690 delete arg2;
5691 }
5692 return resultobj;
5693 fail:
5694 {
5695 if (temp2)
5696 delete arg2;
5697 }
5698 return NULL;
5699 }
5700
5701
5702 static PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *, PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj = NULL;
5704 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5705 wxString *arg2 = 0 ;
5706 wxXmlNode *result;
5707 bool temp2 = false ;
5708 PyObject * obj0 = 0 ;
5709 PyObject * obj1 = 0 ;
5710 char *kwnames[] = {
5711 (char *) "self",(char *) "param", NULL
5712 };
5713
5714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) goto fail;
5715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5716 if (SWIG_arg_fail(1)) SWIG_fail;
5717 {
5718 arg2 = wxString_in_helper(obj1);
5719 if (arg2 == NULL) SWIG_fail;
5720 temp2 = true;
5721 }
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2);
5725
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0);
5730 {
5731 if (temp2)
5732 delete arg2;
5733 }
5734 return resultobj;
5735 fail:
5736 {
5737 if (temp2)
5738 delete arg2;
5739 }
5740 return NULL;
5741 }
5742
5743
5744 static PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *, PyObject *args, PyObject *kwargs) {
5745 PyObject *resultobj = NULL;
5746 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5747 wxString *arg2 = 0 ;
5748 wxString result;
5749 bool temp2 = false ;
5750 PyObject * obj0 = 0 ;
5751 PyObject * obj1 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self",(char *) "param", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) goto fail;
5757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5758 if (SWIG_arg_fail(1)) SWIG_fail;
5759 {
5760 arg2 = wxString_in_helper(obj1);
5761 if (arg2 == NULL) SWIG_fail;
5762 temp2 = true;
5763 }
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 result = (arg1)->GetParamValue((wxString const &)*arg2);
5767
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 }
5771 {
5772 #if wxUSE_UNICODE
5773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5774 #else
5775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5776 #endif
5777 }
5778 {
5779 if (temp2)
5780 delete arg2;
5781 }
5782 return resultobj;
5783 fail:
5784 {
5785 if (temp2)
5786 delete arg2;
5787 }
5788 return NULL;
5789 }
5790
5791
5792 static PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *, PyObject *args, PyObject *kwargs) {
5793 PyObject *resultobj = NULL;
5794 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5795 wxString *arg2 = 0 ;
5796 int arg3 ;
5797 bool temp2 = false ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 PyObject * obj2 = 0 ;
5801 char *kwnames[] = {
5802 (char *) "self",(char *) "name",(char *) "value", NULL
5803 };
5804
5805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
5806 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5807 if (SWIG_arg_fail(1)) SWIG_fail;
5808 {
5809 arg2 = wxString_in_helper(obj1);
5810 if (arg2 == NULL) SWIG_fail;
5811 temp2 = true;
5812 }
5813 {
5814 arg3 = static_cast<int >(SWIG_As_int(obj2));
5815 if (SWIG_arg_fail(3)) SWIG_fail;
5816 }
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 (arg1)->AddStyle((wxString const &)*arg2,arg3);
5820
5821 wxPyEndAllowThreads(__tstate);
5822 if (PyErr_Occurred()) SWIG_fail;
5823 }
5824 Py_INCREF(Py_None); resultobj = Py_None;
5825 {
5826 if (temp2)
5827 delete arg2;
5828 }
5829 return resultobj;
5830 fail:
5831 {
5832 if (temp2)
5833 delete arg2;
5834 }
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj = NULL;
5841 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5842 PyObject * obj0 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames,&obj0)) goto fail;
5848 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5849 if (SWIG_arg_fail(1)) SWIG_fail;
5850 {
5851 PyThreadState* __tstate = wxPyBeginAllowThreads();
5852 (arg1)->AddWindowStyles();
5853
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 Py_INCREF(Py_None); resultobj = Py_None;
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 static PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = NULL;
5866 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5867 wxString const &arg2_defvalue = wxPyStyleString ;
5868 wxString *arg2 = (wxString *) &arg2_defvalue ;
5869 int arg3 = (int) 0 ;
5870 int result;
5871 bool temp2 = false ;
5872 PyObject * obj0 = 0 ;
5873 PyObject * obj1 = 0 ;
5874 PyObject * obj2 = 0 ;
5875 char *kwnames[] = {
5876 (char *) "self",(char *) "param",(char *) "defaults", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
5880 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5881 if (SWIG_arg_fail(1)) SWIG_fail;
5882 if (obj1) {
5883 {
5884 arg2 = wxString_in_helper(obj1);
5885 if (arg2 == NULL) SWIG_fail;
5886 temp2 = true;
5887 }
5888 }
5889 if (obj2) {
5890 {
5891 arg3 = static_cast<int >(SWIG_As_int(obj2));
5892 if (SWIG_arg_fail(3)) SWIG_fail;
5893 }
5894 }
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3);
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 {
5903 resultobj = SWIG_From_int(static_cast<int >(result));
5904 }
5905 {
5906 if (temp2)
5907 delete arg2;
5908 }
5909 return resultobj;
5910 fail:
5911 {
5912 if (temp2)
5913 delete arg2;
5914 }
5915 return NULL;
5916 }
5917
5918
5919 static PyObject *_wrap_XmlResourceHandler_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj = NULL;
5921 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5922 wxString *arg2 = 0 ;
5923 bool arg3 = (bool) true ;
5924 wxString result;
5925 bool temp2 = false ;
5926 PyObject * obj0 = 0 ;
5927 PyObject * obj1 = 0 ;
5928 PyObject * obj2 = 0 ;
5929 char *kwnames[] = {
5930 (char *) "self",(char *) "param",(char *) "translate", NULL
5931 };
5932
5933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) goto fail;
5934 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5935 if (SWIG_arg_fail(1)) SWIG_fail;
5936 {
5937 arg2 = wxString_in_helper(obj1);
5938 if (arg2 == NULL) SWIG_fail;
5939 temp2 = true;
5940 }
5941 if (obj2) {
5942 {
5943 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
5944 if (SWIG_arg_fail(3)) SWIG_fail;
5945 }
5946 }
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 result = (arg1)->GetText((wxString const &)*arg2,arg3);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 {
5955 #if wxUSE_UNICODE
5956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5957 #else
5958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5959 #endif
5960 }
5961 {
5962 if (temp2)
5963 delete arg2;
5964 }
5965 return resultobj;
5966 fail:
5967 {
5968 if (temp2)
5969 delete arg2;
5970 }
5971 return NULL;
5972 }
5973
5974
5975 static PyObject *_wrap_XmlResourceHandler_GetID(PyObject *, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj = NULL;
5977 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
5978 int result;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetID",kwnames,&obj0)) goto fail;
5985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
5986 if (SWIG_arg_fail(1)) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (int)(arg1)->GetID();
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 {
5995 resultobj = SWIG_From_int(static_cast<int >(result));
5996 }
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_XmlResourceHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj = NULL;
6005 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6006 wxString result;
6007 PyObject * obj0 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetName",kwnames,&obj0)) goto fail;
6013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6014 if (SWIG_arg_fail(1)) SWIG_fail;
6015 {
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 result = (arg1)->GetName();
6018
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 {
6023 #if wxUSE_UNICODE
6024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6025 #else
6026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6027 #endif
6028 }
6029 return resultobj;
6030 fail:
6031 return NULL;
6032 }
6033
6034
6035 static PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *, PyObject *args, PyObject *kwargs) {
6036 PyObject *resultobj = NULL;
6037 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6038 wxString *arg2 = 0 ;
6039 bool arg3 = (bool) false ;
6040 bool result;
6041 bool temp2 = false ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 PyObject * obj2 = 0 ;
6045 char *kwnames[] = {
6046 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6047 };
6048
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
6050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6051 if (SWIG_arg_fail(1)) SWIG_fail;
6052 {
6053 arg2 = wxString_in_helper(obj1);
6054 if (arg2 == NULL) SWIG_fail;
6055 temp2 = true;
6056 }
6057 if (obj2) {
6058 {
6059 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
6060 if (SWIG_arg_fail(3)) SWIG_fail;
6061 }
6062 }
6063 {
6064 PyThreadState* __tstate = wxPyBeginAllowThreads();
6065 result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3);
6066
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6072 }
6073 {
6074 if (temp2)
6075 delete arg2;
6076 }
6077 return resultobj;
6078 fail:
6079 {
6080 if (temp2)
6081 delete arg2;
6082 }
6083 return NULL;
6084 }
6085
6086
6087 static PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *, PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = NULL;
6089 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6090 wxString *arg2 = 0 ;
6091 long arg3 = (long) 0 ;
6092 long result;
6093 bool temp2 = false ;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 PyObject * obj2 = 0 ;
6097 char *kwnames[] = {
6098 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6099 };
6100
6101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) goto fail;
6102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6103 if (SWIG_arg_fail(1)) SWIG_fail;
6104 {
6105 arg2 = wxString_in_helper(obj1);
6106 if (arg2 == NULL) SWIG_fail;
6107 temp2 = true;
6108 }
6109 if (obj2) {
6110 {
6111 arg3 = static_cast<long >(SWIG_As_long(obj2));
6112 if (SWIG_arg_fail(3)) SWIG_fail;
6113 }
6114 }
6115 {
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3);
6118
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 {
6123 resultobj = SWIG_From_long(static_cast<long >(result));
6124 }
6125 {
6126 if (temp2)
6127 delete arg2;
6128 }
6129 return resultobj;
6130 fail:
6131 {
6132 if (temp2)
6133 delete arg2;
6134 }
6135 return NULL;
6136 }
6137
6138
6139 static PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
6140 PyObject *resultobj = NULL;
6141 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6142 wxString *arg2 = 0 ;
6143 wxColour result;
6144 bool temp2 = false ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 char *kwnames[] = {
6148 (char *) "self",(char *) "param", NULL
6149 };
6150
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) goto fail;
6152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6153 if (SWIG_arg_fail(1)) SWIG_fail;
6154 {
6155 arg2 = wxString_in_helper(obj1);
6156 if (arg2 == NULL) SWIG_fail;
6157 temp2 = true;
6158 }
6159 {
6160 PyThreadState* __tstate = wxPyBeginAllowThreads();
6161 result = (arg1)->GetColour((wxString const &)*arg2);
6162
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 {
6167 wxColour * resultptr;
6168 resultptr = new wxColour(static_cast<wxColour & >(result));
6169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
6170 }
6171 {
6172 if (temp2)
6173 delete arg2;
6174 }
6175 return resultobj;
6176 fail:
6177 {
6178 if (temp2)
6179 delete arg2;
6180 }
6181 return NULL;
6182 }
6183
6184
6185 static PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
6186 PyObject *resultobj = NULL;
6187 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6188 wxString const &arg2_defvalue = wxPySizeString ;
6189 wxString *arg2 = (wxString *) &arg2_defvalue ;
6190 wxSize result;
6191 bool temp2 = false ;
6192 PyObject * obj0 = 0 ;
6193 PyObject * obj1 = 0 ;
6194 char *kwnames[] = {
6195 (char *) "self",(char *) "param", NULL
6196 };
6197
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) goto fail;
6199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6200 if (SWIG_arg_fail(1)) SWIG_fail;
6201 if (obj1) {
6202 {
6203 arg2 = wxString_in_helper(obj1);
6204 if (arg2 == NULL) SWIG_fail;
6205 temp2 = true;
6206 }
6207 }
6208 {
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 result = (arg1)->GetSize((wxString const &)*arg2);
6211
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 {
6216 wxSize * resultptr;
6217 resultptr = new wxSize(static_cast<wxSize & >(result));
6218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
6219 }
6220 {
6221 if (temp2)
6222 delete arg2;
6223 }
6224 return resultobj;
6225 fail:
6226 {
6227 if (temp2)
6228 delete arg2;
6229 }
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj = NULL;
6236 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6237 wxString const &arg2_defvalue = wxPyPosString ;
6238 wxString *arg2 = (wxString *) &arg2_defvalue ;
6239 wxPoint result;
6240 bool temp2 = false ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char *kwnames[] = {
6244 (char *) "self",(char *) "param", NULL
6245 };
6246
6247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) goto fail;
6248 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6249 if (SWIG_arg_fail(1)) SWIG_fail;
6250 if (obj1) {
6251 {
6252 arg2 = wxString_in_helper(obj1);
6253 if (arg2 == NULL) SWIG_fail;
6254 temp2 = true;
6255 }
6256 }
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 result = (arg1)->GetPosition((wxString const &)*arg2);
6260
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 {
6265 wxPoint * resultptr;
6266 resultptr = new wxPoint(static_cast<wxPoint & >(result));
6267 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
6268 }
6269 {
6270 if (temp2)
6271 delete arg2;
6272 }
6273 return resultobj;
6274 fail:
6275 {
6276 if (temp2)
6277 delete arg2;
6278 }
6279 return NULL;
6280 }
6281
6282
6283 static PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj = NULL;
6285 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6286 wxString *arg2 = 0 ;
6287 int arg3 = (int) 0 ;
6288 int result;
6289 bool temp2 = false ;
6290 PyObject * obj0 = 0 ;
6291 PyObject * obj1 = 0 ;
6292 PyObject * obj2 = 0 ;
6293 char *kwnames[] = {
6294 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6295 };
6296
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
6298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6299 if (SWIG_arg_fail(1)) SWIG_fail;
6300 {
6301 arg2 = wxString_in_helper(obj1);
6302 if (arg2 == NULL) SWIG_fail;
6303 temp2 = true;
6304 }
6305 if (obj2) {
6306 {
6307 arg3 = static_cast<int >(SWIG_As_int(obj2));
6308 if (SWIG_arg_fail(3)) SWIG_fail;
6309 }
6310 }
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3);
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 {
6319 resultobj = SWIG_From_int(static_cast<int >(result));
6320 }
6321 {
6322 if (temp2)
6323 delete arg2;
6324 }
6325 return resultobj;
6326 fail:
6327 {
6328 if (temp2)
6329 delete arg2;
6330 }
6331 return NULL;
6332 }
6333
6334
6335 static PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = NULL;
6337 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6338 wxString const &arg2_defvalue = wxPyBitmapString ;
6339 wxString *arg2 = (wxString *) &arg2_defvalue ;
6340 wxArtClient const &arg3_defvalue = wxART_OTHER ;
6341 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
6342 wxSize arg4 = (wxSize) wxDefaultSize ;
6343 wxBitmap result;
6344 bool temp2 = false ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6347 PyObject * obj2 = 0 ;
6348 PyObject * obj3 = 0 ;
6349 char *kwnames[] = {
6350 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6351 };
6352
6353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6355 if (SWIG_arg_fail(1)) SWIG_fail;
6356 if (obj1) {
6357 {
6358 arg2 = wxString_in_helper(obj1);
6359 if (arg2 == NULL) SWIG_fail;
6360 temp2 = true;
6361 }
6362 }
6363 if (obj2) {
6364 {
6365 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxArtClient, SWIG_POINTER_EXCEPTION | 0);
6366 if (SWIG_arg_fail(3)) SWIG_fail;
6367 if (arg3 == NULL) {
6368 SWIG_null_ref("wxArtClient");
6369 }
6370 if (SWIG_arg_fail(3)) SWIG_fail;
6371 }
6372 }
6373 if (obj3) {
6374 {
6375 wxSize * argp;
6376 SWIG_Python_ConvertPtr(obj3, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION);
6377 if (SWIG_arg_fail(4)) SWIG_fail;
6378 if (argp == NULL) {
6379 SWIG_null_ref("wxSize");
6380 }
6381 if (SWIG_arg_fail(4)) SWIG_fail;
6382 arg4 = *argp;
6383 }
6384 }
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 {
6393 wxBitmap * resultptr;
6394 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
6395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6396 }
6397 {
6398 if (temp2)
6399 delete arg2;
6400 }
6401 return resultobj;
6402 fail:
6403 {
6404 if (temp2)
6405 delete arg2;
6406 }
6407 return NULL;
6408 }
6409
6410
6411 static PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6412 PyObject *resultobj = NULL;
6413 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6414 wxString const &arg2_defvalue = wxPyIconString ;
6415 wxString *arg2 = (wxString *) &arg2_defvalue ;
6416 wxArtClient const &arg3_defvalue = wxART_OTHER ;
6417 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
6418 wxSize arg4 = (wxSize) wxDefaultSize ;
6419 wxIcon result;
6420 bool temp2 = false ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 PyObject * obj2 = 0 ;
6424 PyObject * obj3 = 0 ;
6425 char *kwnames[] = {
6426 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6427 };
6428
6429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6430 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6431 if (SWIG_arg_fail(1)) SWIG_fail;
6432 if (obj1) {
6433 {
6434 arg2 = wxString_in_helper(obj1);
6435 if (arg2 == NULL) SWIG_fail;
6436 temp2 = true;
6437 }
6438 }
6439 if (obj2) {
6440 {
6441 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxArtClient, SWIG_POINTER_EXCEPTION | 0);
6442 if (SWIG_arg_fail(3)) SWIG_fail;
6443 if (arg3 == NULL) {
6444 SWIG_null_ref("wxArtClient");
6445 }
6446 if (SWIG_arg_fail(3)) SWIG_fail;
6447 }
6448 }
6449 if (obj3) {
6450 {
6451 wxSize * argp;
6452 SWIG_Python_ConvertPtr(obj3, (void **)&argp, SWIGTYPE_p_wxSize, SWIG_POINTER_EXCEPTION);
6453 if (SWIG_arg_fail(4)) SWIG_fail;
6454 if (argp == NULL) {
6455 SWIG_null_ref("wxSize");
6456 }
6457 if (SWIG_arg_fail(4)) SWIG_fail;
6458 arg4 = *argp;
6459 }
6460 }
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
6464
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 wxIcon * resultptr;
6470 resultptr = new wxIcon(static_cast<wxIcon & >(result));
6471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
6472 }
6473 {
6474 if (temp2)
6475 delete arg2;
6476 }
6477 return resultobj;
6478 fail:
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return NULL;
6484 }
6485
6486
6487 static PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
6488 PyObject *resultobj = NULL;
6489 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6490 wxString const &arg2_defvalue = wxPyFontString ;
6491 wxString *arg2 = (wxString *) &arg2_defvalue ;
6492 wxFont result;
6493 bool temp2 = false ;
6494 PyObject * obj0 = 0 ;
6495 PyObject * obj1 = 0 ;
6496 char *kwnames[] = {
6497 (char *) "self",(char *) "param", NULL
6498 };
6499
6500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) goto fail;
6501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6502 if (SWIG_arg_fail(1)) SWIG_fail;
6503 if (obj1) {
6504 {
6505 arg2 = wxString_in_helper(obj1);
6506 if (arg2 == NULL) SWIG_fail;
6507 temp2 = true;
6508 }
6509 }
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 result = (arg1)->GetFont((wxString const &)*arg2);
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 {
6518 wxFont * resultptr;
6519 resultptr = new wxFont(static_cast<wxFont & >(result));
6520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
6521 }
6522 {
6523 if (temp2)
6524 delete arg2;
6525 }
6526 return resultobj;
6527 fail:
6528 {
6529 if (temp2)
6530 delete arg2;
6531 }
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *, PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj = NULL;
6538 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6539 wxWindow *arg2 = (wxWindow *) 0 ;
6540 PyObject * obj0 = 0 ;
6541 PyObject * obj1 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self",(char *) "wnd", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) goto fail;
6547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6548 if (SWIG_arg_fail(1)) SWIG_fail;
6549 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
6550 if (SWIG_arg_fail(2)) SWIG_fail;
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 (arg1)->SetupWindow(arg2);
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 Py_INCREF(Py_None); resultobj = Py_None;
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 static PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *, PyObject *args, PyObject *kwargs) {
6566 PyObject *resultobj = NULL;
6567 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6568 wxObject *arg2 = (wxObject *) 0 ;
6569 bool arg3 = (bool) false ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 PyObject * obj2 = 0 ;
6573 char *kwnames[] = {
6574 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
6575 };
6576
6577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
6578 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6579 if (SWIG_arg_fail(1)) SWIG_fail;
6580 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
6581 if (SWIG_arg_fail(2)) SWIG_fail;
6582 if (obj2) {
6583 {
6584 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
6585 if (SWIG_arg_fail(3)) SWIG_fail;
6586 }
6587 }
6588 {
6589 PyThreadState* __tstate = wxPyBeginAllowThreads();
6590 (arg1)->CreateChildren(arg2,arg3);
6591
6592 wxPyEndAllowThreads(__tstate);
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 Py_INCREF(Py_None); resultobj = Py_None;
6596 return resultobj;
6597 fail:
6598 return NULL;
6599 }
6600
6601
6602 static PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *, PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj = NULL;
6604 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6605 wxObject *arg2 = (wxObject *) 0 ;
6606 wxXmlNode *arg3 = (wxXmlNode *) NULL ;
6607 PyObject * obj0 = 0 ;
6608 PyObject * obj1 = 0 ;
6609 PyObject * obj2 = 0 ;
6610 char *kwnames[] = {
6611 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
6612 };
6613
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) goto fail;
6615 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6616 if (SWIG_arg_fail(1)) SWIG_fail;
6617 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
6618 if (SWIG_arg_fail(2)) SWIG_fail;
6619 if (obj2) {
6620 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
6621 if (SWIG_arg_fail(3)) SWIG_fail;
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 (arg1)->CreateChildrenPrivately(arg2,arg3);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 Py_INCREF(Py_None); resultobj = Py_None;
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj = NULL;
6639 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6640 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6641 wxObject *arg3 = (wxObject *) 0 ;
6642 wxObject *arg4 = (wxObject *) NULL ;
6643 wxObject *result;
6644 PyObject * obj0 = 0 ;
6645 PyObject * obj1 = 0 ;
6646 PyObject * obj2 = 0 ;
6647 PyObject * obj3 = 0 ;
6648 char *kwnames[] = {
6649 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
6650 };
6651
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6654 if (SWIG_arg_fail(1)) SWIG_fail;
6655 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxXmlNode, SWIG_POINTER_EXCEPTION | 0);
6656 if (SWIG_arg_fail(2)) SWIG_fail;
6657 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
6658 if (SWIG_arg_fail(3)) SWIG_fail;
6659 if (obj3) {
6660 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxObject, SWIG_POINTER_EXCEPTION | 0);
6661 if (SWIG_arg_fail(4)) SWIG_fail;
6662 }
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4);
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671 resultobj = wxPyMake_wxObject(result, (bool)0);
6672 }
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 static PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
6680 PyObject *resultobj = NULL;
6681 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
6682 wxFileSystem *result;
6683 PyObject * obj0 = 0 ;
6684 char *kwnames[] = {
6685 (char *) "self", NULL
6686 };
6687
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames,&obj0)) goto fail;
6689 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_EXCEPTION | 0);
6690 if (SWIG_arg_fail(1)) SWIG_fail;
6691 {
6692 PyThreadState* __tstate = wxPyBeginAllowThreads();
6693 {
6694 wxFileSystem &_result_ref = (arg1)->GetCurFileSystem();
6695 result = (wxFileSystem *) &_result_ref;
6696 }
6697
6698 wxPyEndAllowThreads(__tstate);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0);
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 static PyObject * XmlResourceHandler_swigregister(PyObject *, PyObject *args) {
6709 PyObject *obj;
6710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6711 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler, obj);
6712 Py_INCREF(obj);
6713 return Py_BuildValue((char *)"");
6714 }
6715 static PyMethodDef SwigMethods[] = {
6716 { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
6717 { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
6718 { (char *)"delete_XmlResource", (PyCFunction) _wrap_delete_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
6719 { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL},
6720 { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL},
6721 { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL},
6722 { (char *)"XmlResource_InitAllHandlers", (PyCFunction) _wrap_XmlResource_InitAllHandlers, METH_VARARGS | METH_KEYWORDS, NULL},
6723 { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
6724 { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
6725 { (char *)"XmlResource_ClearHandlers", (PyCFunction) _wrap_XmlResource_ClearHandlers, METH_VARARGS | METH_KEYWORDS, NULL},
6726 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL},
6727 { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL},
6728 { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
6729 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
6730 { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
6731 { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL},
6732 { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL},
6733 { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL},
6734 { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL},
6735 { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL},
6736 { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
6737 { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL},
6738 { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL},
6739 { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
6740 { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL},
6741 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL},
6742 { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL},
6743 { (char *)"XmlResource_GetVersion", (PyCFunction) _wrap_XmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
6744 { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL},
6745 { (char *)"XmlResource_Get", (PyCFunction) _wrap_XmlResource_Get, METH_VARARGS | METH_KEYWORDS, NULL},
6746 { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL},
6747 { (char *)"XmlResource_GetFlags", (PyCFunction) _wrap_XmlResource_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
6748 { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
6749 { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL},
6750 { (char *)"new_XmlSubclassFactory", (PyCFunction) _wrap_new_XmlSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL},
6751 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
6752 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL},
6753 { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL},
6754 { (char *)"XmlProperty_GetName", (PyCFunction) _wrap_XmlProperty_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
6755 { (char *)"XmlProperty_GetValue", (PyCFunction) _wrap_XmlProperty_GetValue, METH_VARARGS | METH_KEYWORDS, NULL},
6756 { (char *)"XmlProperty_GetNext", (PyCFunction) _wrap_XmlProperty_GetNext, METH_VARARGS | METH_KEYWORDS, NULL},
6757 { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
6758 { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
6759 { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
6760 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL},
6761 { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL},
6762 { (char *)"delete_XmlNode", (PyCFunction) _wrap_delete_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL},
6763 { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL},
6764 { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
6765 { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL},
6766 { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
6767 { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL},
6768 { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL},
6769 { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL},
6770 { (char *)"XmlNode_GetType", (PyCFunction) _wrap_XmlNode_GetType, METH_VARARGS | METH_KEYWORDS, NULL},
6771 { (char *)"XmlNode_GetName", (PyCFunction) _wrap_XmlNode_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
6772 { (char *)"XmlNode_GetContent", (PyCFunction) _wrap_XmlNode_GetContent, METH_VARARGS | METH_KEYWORDS, NULL},
6773 { (char *)"XmlNode_GetParent", (PyCFunction) _wrap_XmlNode_GetParent, METH_VARARGS | METH_KEYWORDS, NULL},
6774 { (char *)"XmlNode_GetNext", (PyCFunction) _wrap_XmlNode_GetNext, METH_VARARGS | METH_KEYWORDS, NULL},
6775 { (char *)"XmlNode_GetChildren", (PyCFunction) _wrap_XmlNode_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
6776 { (char *)"XmlNode_GetProperties", (PyCFunction) _wrap_XmlNode_GetProperties, METH_VARARGS | METH_KEYWORDS, NULL},
6777 { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL},
6778 { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL},
6779 { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
6780 { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
6781 { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL},
6782 { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
6783 { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
6784 { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
6785 { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL},
6786 { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL},
6787 { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL},
6788 { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
6789 { (char *)"new_EmptyXmlDocument", (PyCFunction) _wrap_new_EmptyXmlDocument, METH_VARARGS | METH_KEYWORDS, NULL},
6790 { (char *)"delete_XmlDocument", (PyCFunction) _wrap_delete_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL},
6791 { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL},
6792 { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
6793 { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL},
6794 { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL},
6795 { (char *)"XmlDocument_IsOk", (PyCFunction) _wrap_XmlDocument_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
6796 { (char *)"XmlDocument_GetRoot", (PyCFunction) _wrap_XmlDocument_GetRoot, METH_VARARGS | METH_KEYWORDS, NULL},
6797 { (char *)"XmlDocument_GetVersion", (PyCFunction) _wrap_XmlDocument_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
6798 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction) _wrap_XmlDocument_GetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
6799 { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL},
6800 { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
6801 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
6802 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL},
6803 { (char *)"new_XmlResourceHandler", (PyCFunction) _wrap_new_XmlResourceHandler, METH_VARARGS | METH_KEYWORDS, NULL},
6804 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
6805 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL},
6806 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL},
6807 { (char *)"XmlResourceHandler_GetResource", (PyCFunction) _wrap_XmlResourceHandler_GetResource, METH_VARARGS | METH_KEYWORDS, NULL},
6808 { (char *)"XmlResourceHandler_GetNode", (PyCFunction) _wrap_XmlResourceHandler_GetNode, METH_VARARGS | METH_KEYWORDS, NULL},
6809 { (char *)"XmlResourceHandler_GetClass", (PyCFunction) _wrap_XmlResourceHandler_GetClass, METH_VARARGS | METH_KEYWORDS, NULL},
6810 { (char *)"XmlResourceHandler_GetParent", (PyCFunction) _wrap_XmlResourceHandler_GetParent, METH_VARARGS | METH_KEYWORDS, NULL},
6811 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction) _wrap_XmlResourceHandler_GetInstance, METH_VARARGS | METH_KEYWORDS, NULL},
6812 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetParentAsWindow, METH_VARARGS | METH_KEYWORDS, NULL},
6813 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL},
6814 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL},
6815 { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL},
6816 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL},
6817 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL},
6818 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL},
6819 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction) _wrap_XmlResourceHandler_AddWindowStyles, METH_VARARGS | METH_KEYWORDS, NULL},
6820 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
6821 { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
6822 { (char *)"XmlResourceHandler_GetID", (PyCFunction) _wrap_XmlResourceHandler_GetID, METH_VARARGS | METH_KEYWORDS, NULL},
6823 { (char *)"XmlResourceHandler_GetName", (PyCFunction) _wrap_XmlResourceHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
6824 { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL},
6825 { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL},
6826 { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
6827 { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
6828 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
6829 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
6830 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
6831 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
6832 { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
6833 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL},
6834 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL},
6835 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL},
6836 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL},
6837 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction) _wrap_XmlResourceHandler_GetCurFileSystem, METH_VARARGS | METH_KEYWORDS, NULL},
6838 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL},
6839 { NULL, NULL, 0, NULL }
6840 };
6841
6842
6843 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6844
6845 static void *_p_wxControlTo_p_wxWindow(void *x) {
6846 return (void *)((wxWindow *) ((wxControl *) x));
6847 }
6848 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
6849 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
6850 }
6851 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
6852 return (void *)((wxWindow *) ((wxMenuBar *) x));
6853 }
6854 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
6855 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
6856 }
6857 static void *_p_wxXmlDocumentTo_p_wxObject(void *x) {
6858 return (void *)((wxObject *) ((wxXmlDocument *) x));
6859 }
6860 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
6861 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
6862 }
6863 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
6864 return (void *)((wxObject *) ((wxSizerItem *) x));
6865 }
6866 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
6867 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
6868 }
6869 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
6870 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
6871 }
6872 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
6873 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
6874 }
6875 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
6876 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
6877 }
6878 static void *_p_wxSizerTo_p_wxObject(void *x) {
6879 return (void *)((wxObject *) ((wxSizer *) x));
6880 }
6881 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
6882 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
6883 }
6884 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
6885 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
6886 }
6887 static void *_p_wxEventTo_p_wxObject(void *x) {
6888 return (void *)((wxObject *) ((wxEvent *) x));
6889 }
6890 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
6891 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
6892 }
6893 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
6894 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
6895 }
6896 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
6897 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
6898 }
6899 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
6900 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
6901 }
6902 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
6903 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
6904 }
6905 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
6906 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
6907 }
6908 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
6909 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
6910 }
6911 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
6912 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
6913 }
6914 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
6915 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
6916 }
6917 static void *_p_wxControlTo_p_wxObject(void *x) {
6918 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
6919 }
6920 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
6921 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
6922 }
6923 static void *_p_wxFSFileTo_p_wxObject(void *x) {
6924 return (void *)((wxObject *) ((wxFSFile *) x));
6925 }
6926 static void *_p_wxPySizerTo_p_wxObject(void *x) {
6927 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
6928 }
6929 static void *_p_wxPyEventTo_p_wxObject(void *x) {
6930 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
6931 }
6932 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
6933 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
6934 }
6935 static void *_p_wxShowEventTo_p_wxObject(void *x) {
6936 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
6937 }
6938 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
6939 return (void *)((wxObject *) ((wxMenuItem *) x));
6940 }
6941 static void *_p_wxDateEventTo_p_wxObject(void *x) {
6942 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
6943 }
6944 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
6945 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
6946 }
6947 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
6948 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
6949 }
6950 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
6951 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
6952 }
6953 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
6954 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
6955 }
6956 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
6957 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
6958 }
6959 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
6960 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
6961 }
6962 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
6963 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
6964 }
6965 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
6966 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
6967 }
6968 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
6969 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
6970 }
6971 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
6972 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
6973 }
6974 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
6975 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
6976 }
6977 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
6978 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
6979 }
6980 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
6981 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
6982 }
6983 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
6984 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
6985 }
6986 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
6987 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
6988 }
6989 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
6990 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
6991 }
6992 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
6993 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
6994 }
6995 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
6996 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
6997 }
6998 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
6999 return (void *)((wxObject *) ((wxImageHandler *) x));
7000 }
7001 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
7002 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
7003 }
7004 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
7005 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
7006 }
7007 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
7008 return (void *)((wxObject *) ((wxEvtHandler *) x));
7009 }
7010 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) {
7011 return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x));
7012 }
7013 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
7014 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
7015 }
7016 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
7017 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
7018 }
7019 static void *_p_wxImageTo_p_wxObject(void *x) {
7020 return (void *)((wxObject *) ((wxImage *) x));
7021 }
7022 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
7023 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
7024 }
7025 static void *_p_wxXmlResourceTo_p_wxObject(void *x) {
7026 return (void *)((wxObject *) ((wxXmlResource *) x));
7027 }
7028 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
7029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
7030 }
7031 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
7032 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
7033 }
7034 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
7035 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
7036 }
7037 static void *_p_wxWindowTo_p_wxObject(void *x) {
7038 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
7039 }
7040 static void *_p_wxMenuTo_p_wxObject(void *x) {
7041 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
7042 }
7043 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
7044 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
7045 }
7046 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
7047 return (void *)((wxObject *) ((wxFileSystem *) x));
7048 }
7049 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
7050 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
7051 }
7052 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
7053 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
7054 }
7055 static void *_p_wxPyAppTo_p_wxObject(void *x) {
7056 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
7057 }
7058 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
7059 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
7060 }
7061 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
7062 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
7063 }
7064 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
7065 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
7066 }
7067 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
7068 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
7069 }
7070 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
7071 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
7072 }
7073 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
7074 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
7075 }
7076 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
7077 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
7078 }
7079 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
7080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
7081 }
7082 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
7083 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
7084 }
7085 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
7086 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
7087 }
7088 static void *_p_wxValidatorTo_p_wxObject(void *x) {
7089 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
7090 }
7091 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
7092 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
7093 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, 0};
7094 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
7095 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
7096 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
7097 static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, 0};
7098 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
7099 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
7100 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, 0};
7101 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
7102 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, 0};
7103 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
7104 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, 0};
7105 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
7106 static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, 0};
7107 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
7108 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
7109 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
7110 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
7111 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
7112 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
7113 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
7114 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
7115 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
7116 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
7117 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
7118 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
7119 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
7120 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
7121 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
7122 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
7123 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
7124 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
7125 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
7126 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
7127 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
7128 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
7129 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
7130 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
7131 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
7132 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
7133 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
7134 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
7135 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
7136 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
7137 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
7138 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
7139 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
7140 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
7141 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
7142 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
7143 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
7144 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
7145 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
7146 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
7147 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
7148 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
7149 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
7150 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
7151 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
7152 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
7153 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
7154 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
7155 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
7156 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
7157 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
7158 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
7159 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0};
7160 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
7161 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
7162 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
7163 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
7164 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
7165 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
7166 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
7167 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
7168 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
7169 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
7170 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
7171 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
7172 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
7173 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
7174 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
7175 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
7176 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
7177 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
7178 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
7179 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
7180 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
7181 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
7182 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, 0};
7183 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, 0};
7184 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
7185 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
7186 static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, 0};
7187 static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, 0};
7188 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
7189 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
7190 static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, 0};
7191 static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, 0};
7192 static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, 0};
7193 static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, 0};
7194 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
7195 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
7196 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
7197
7198 static swig_type_info *swig_type_initial[] = {
7199 &_swigt__p_char,
7200 &_swigt__p_form_ops_t,
7201 &_swigt__p_int,
7202 &_swigt__p_unsigned_char,
7203 &_swigt__p_unsigned_int,
7204 &_swigt__p_unsigned_long,
7205 &_swigt__p_wxANIHandler,
7206 &_swigt__p_wxAcceleratorTable,
7207 &_swigt__p_wxActivateEvent,
7208 &_swigt__p_wxArtClient,
7209 &_swigt__p_wxBMPHandler,
7210 &_swigt__p_wxBitmap,
7211 &_swigt__p_wxBoxSizer,
7212 &_swigt__p_wxCURHandler,
7213 &_swigt__p_wxChildFocusEvent,
7214 &_swigt__p_wxCloseEvent,
7215 &_swigt__p_wxColour,
7216 &_swigt__p_wxCommandEvent,
7217 &_swigt__p_wxContextMenuEvent,
7218 &_swigt__p_wxControl,
7219 &_swigt__p_wxControlWithItems,
7220 &_swigt__p_wxDateEvent,
7221 &_swigt__p_wxDialog,
7222 &_swigt__p_wxDisplayChangedEvent,
7223 &_swigt__p_wxDropFilesEvent,
7224 &_swigt__p_wxDuplexMode,
7225 &_swigt__p_wxEraseEvent,
7226 &_swigt__p_wxEvent,
7227 &_swigt__p_wxEvtHandler,
7228 &_swigt__p_wxFSFile,
7229 &_swigt__p_wxFileSystem,
7230 &_swigt__p_wxFlexGridSizer,
7231 &_swigt__p_wxFocusEvent,
7232 &_swigt__p_wxFont,
7233 &_swigt__p_wxFrame,
7234 &_swigt__p_wxGBSizerItem,
7235 &_swigt__p_wxGIFHandler,
7236 &_swigt__p_wxGridBagSizer,
7237 &_swigt__p_wxGridSizer,
7238 &_swigt__p_wxICOHandler,
7239 &_swigt__p_wxIcon,
7240 &_swigt__p_wxIconizeEvent,
7241 &_swigt__p_wxIdleEvent,
7242 &_swigt__p_wxImage,
7243 &_swigt__p_wxImageHandler,
7244 &_swigt__p_wxIndividualLayoutConstraint,
7245 &_swigt__p_wxInitDialogEvent,
7246 &_swigt__p_wxInputStream,
7247 &_swigt__p_wxJPEGHandler,
7248 &_swigt__p_wxKeyEvent,
7249 &_swigt__p_wxLayoutConstraints,
7250 &_swigt__p_wxMaximizeEvent,
7251 &_swigt__p_wxMenu,
7252 &_swigt__p_wxMenuBar,
7253 &_swigt__p_wxMenuEvent,
7254 &_swigt__p_wxMenuItem,
7255 &_swigt__p_wxMouseCaptureChangedEvent,
7256 &_swigt__p_wxMouseEvent,
7257 &_swigt__p_wxMoveEvent,
7258 &_swigt__p_wxNavigationKeyEvent,
7259 &_swigt__p_wxNcPaintEvent,
7260 &_swigt__p_wxNotifyEvent,
7261 &_swigt__p_wxObject,
7262 &_swigt__p_wxOutputStream,
7263 &_swigt__p_wxPCXHandler,
7264 &_swigt__p_wxPNGHandler,
7265 &_swigt__p_wxPNMHandler,
7266 &_swigt__p_wxPaintEvent,
7267 &_swigt__p_wxPaletteChangedEvent,
7268 &_swigt__p_wxPanel,
7269 &_swigt__p_wxPaperSize,
7270 &_swigt__p_wxPoint,
7271 &_swigt__p_wxPyApp,
7272 &_swigt__p_wxPyCommandEvent,
7273 &_swigt__p_wxPyEvent,
7274 &_swigt__p_wxPyImageHandler,
7275 &_swigt__p_wxPySizer,
7276 &_swigt__p_wxPyValidator,
7277 &_swigt__p_wxPyXmlResourceHandler,
7278 &_swigt__p_wxPyXmlSubclassFactory,
7279 &_swigt__p_wxQueryNewPaletteEvent,
7280 &_swigt__p_wxScrollEvent,
7281 &_swigt__p_wxScrollWinEvent,
7282 &_swigt__p_wxSetCursorEvent,
7283 &_swigt__p_wxShowEvent,
7284 &_swigt__p_wxSize,
7285 &_swigt__p_wxSizeEvent,
7286 &_swigt__p_wxSizer,
7287 &_swigt__p_wxSizerItem,
7288 &_swigt__p_wxStaticBoxSizer,
7289 &_swigt__p_wxStdDialogButtonSizer,
7290 &_swigt__p_wxSysColourChangedEvent,
7291 &_swigt__p_wxTIFFHandler,
7292 &_swigt__p_wxUpdateUIEvent,
7293 &_swigt__p_wxValidator,
7294 &_swigt__p_wxWindow,
7295 &_swigt__p_wxWindowCreateEvent,
7296 &_swigt__p_wxWindowDestroyEvent,
7297 &_swigt__p_wxXPMHandler,
7298 &_swigt__p_wxXmlDocument,
7299 &_swigt__p_wxXmlNode,
7300 &_swigt__p_wxXmlProperty,
7301 &_swigt__p_wxXmlResource,
7302 &_swigt__ptrdiff_t,
7303 &_swigt__std__ptrdiff_t,
7304 &_swigt__unsigned_int,
7305 };
7306
7307 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7308 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
7309 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
7310 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
7311 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
7312 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
7313 static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}};
7314 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
7315 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
7316 static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
7317 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
7318 static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
7319 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
7320 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
7321 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
7322 static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
7323 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
7324 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
7325 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
7326 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
7327 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
7328 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
7329 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
7330 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
7331 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
7332 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
7333 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
7334 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
7335 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
7336 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
7337 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
7338 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
7339 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
7340 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
7341 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
7342 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
7343 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
7344 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
7345 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
7346 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
7347 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
7348 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
7349 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
7350 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
7351 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
7352 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
7353 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
7354 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
7355 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
7356 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
7357 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
7358 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
7359 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
7360 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
7361 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
7362 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
7363 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
7364 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
7365 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
7366 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
7367 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
7368 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
7369 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
7370 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
7371 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
7372 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
7373 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
7374 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
7375 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
7376 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
7377 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
7378 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
7379 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
7380 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
7381 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
7382 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
7383 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
7384 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
7385 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
7386 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
7387 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
7388 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
7389 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
7390 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
7391 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
7392 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
7393 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
7394 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
7395 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
7396 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
7397 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxXmlDocument, _p_wxXmlDocumentTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler, _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxXmlResource, _p_wxXmlResourceTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
7398 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
7399 static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}};
7400 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
7401 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
7402 static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}};
7403 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}};
7404 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
7405 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
7406 static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}};
7407 static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}};
7408 static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}};
7409 static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}};
7410 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
7411 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
7412 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
7413
7414 static swig_cast_info *swig_cast_initial[] = {
7415 _swigc__p_char,
7416 _swigc__p_form_ops_t,
7417 _swigc__p_int,
7418 _swigc__p_unsigned_char,
7419 _swigc__p_unsigned_int,
7420 _swigc__p_unsigned_long,
7421 _swigc__p_wxANIHandler,
7422 _swigc__p_wxAcceleratorTable,
7423 _swigc__p_wxActivateEvent,
7424 _swigc__p_wxArtClient,
7425 _swigc__p_wxBMPHandler,
7426 _swigc__p_wxBitmap,
7427 _swigc__p_wxBoxSizer,
7428 _swigc__p_wxCURHandler,
7429 _swigc__p_wxChildFocusEvent,
7430 _swigc__p_wxCloseEvent,
7431 _swigc__p_wxColour,
7432 _swigc__p_wxCommandEvent,
7433 _swigc__p_wxContextMenuEvent,
7434 _swigc__p_wxControl,
7435 _swigc__p_wxControlWithItems,
7436 _swigc__p_wxDateEvent,
7437 _swigc__p_wxDialog,
7438 _swigc__p_wxDisplayChangedEvent,
7439 _swigc__p_wxDropFilesEvent,
7440 _swigc__p_wxDuplexMode,
7441 _swigc__p_wxEraseEvent,
7442 _swigc__p_wxEvent,
7443 _swigc__p_wxEvtHandler,
7444 _swigc__p_wxFSFile,
7445 _swigc__p_wxFileSystem,
7446 _swigc__p_wxFlexGridSizer,
7447 _swigc__p_wxFocusEvent,
7448 _swigc__p_wxFont,
7449 _swigc__p_wxFrame,
7450 _swigc__p_wxGBSizerItem,
7451 _swigc__p_wxGIFHandler,
7452 _swigc__p_wxGridBagSizer,
7453 _swigc__p_wxGridSizer,
7454 _swigc__p_wxICOHandler,
7455 _swigc__p_wxIcon,
7456 _swigc__p_wxIconizeEvent,
7457 _swigc__p_wxIdleEvent,
7458 _swigc__p_wxImage,
7459 _swigc__p_wxImageHandler,
7460 _swigc__p_wxIndividualLayoutConstraint,
7461 _swigc__p_wxInitDialogEvent,
7462 _swigc__p_wxInputStream,
7463 _swigc__p_wxJPEGHandler,
7464 _swigc__p_wxKeyEvent,
7465 _swigc__p_wxLayoutConstraints,
7466 _swigc__p_wxMaximizeEvent,
7467 _swigc__p_wxMenu,
7468 _swigc__p_wxMenuBar,
7469 _swigc__p_wxMenuEvent,
7470 _swigc__p_wxMenuItem,
7471 _swigc__p_wxMouseCaptureChangedEvent,
7472 _swigc__p_wxMouseEvent,
7473 _swigc__p_wxMoveEvent,
7474 _swigc__p_wxNavigationKeyEvent,
7475 _swigc__p_wxNcPaintEvent,
7476 _swigc__p_wxNotifyEvent,
7477 _swigc__p_wxObject,
7478 _swigc__p_wxOutputStream,
7479 _swigc__p_wxPCXHandler,
7480 _swigc__p_wxPNGHandler,
7481 _swigc__p_wxPNMHandler,
7482 _swigc__p_wxPaintEvent,
7483 _swigc__p_wxPaletteChangedEvent,
7484 _swigc__p_wxPanel,
7485 _swigc__p_wxPaperSize,
7486 _swigc__p_wxPoint,
7487 _swigc__p_wxPyApp,
7488 _swigc__p_wxPyCommandEvent,
7489 _swigc__p_wxPyEvent,
7490 _swigc__p_wxPyImageHandler,
7491 _swigc__p_wxPySizer,
7492 _swigc__p_wxPyValidator,
7493 _swigc__p_wxPyXmlResourceHandler,
7494 _swigc__p_wxPyXmlSubclassFactory,
7495 _swigc__p_wxQueryNewPaletteEvent,
7496 _swigc__p_wxScrollEvent,
7497 _swigc__p_wxScrollWinEvent,
7498 _swigc__p_wxSetCursorEvent,
7499 _swigc__p_wxShowEvent,
7500 _swigc__p_wxSize,
7501 _swigc__p_wxSizeEvent,
7502 _swigc__p_wxSizer,
7503 _swigc__p_wxSizerItem,
7504 _swigc__p_wxStaticBoxSizer,
7505 _swigc__p_wxStdDialogButtonSizer,
7506 _swigc__p_wxSysColourChangedEvent,
7507 _swigc__p_wxTIFFHandler,
7508 _swigc__p_wxUpdateUIEvent,
7509 _swigc__p_wxValidator,
7510 _swigc__p_wxWindow,
7511 _swigc__p_wxWindowCreateEvent,
7512 _swigc__p_wxWindowDestroyEvent,
7513 _swigc__p_wxXPMHandler,
7514 _swigc__p_wxXmlDocument,
7515 _swigc__p_wxXmlNode,
7516 _swigc__p_wxXmlProperty,
7517 _swigc__p_wxXmlResource,
7518 _swigc__ptrdiff_t,
7519 _swigc__std__ptrdiff_t,
7520 _swigc__unsigned_int,
7521 };
7522
7523
7524 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7525
7526 static swig_const_info swig_const_table[] = {
7527 {0, 0, 0, 0.0, 0, 0}};
7528
7529 #ifdef __cplusplus
7530 }
7531 #endif
7532 /*************************************************************************
7533 * Type initialization:
7534 * This problem is tough by the requirement that no dynamic
7535 * memory is used. Also, since swig_type_info structures store pointers to
7536 * swig_cast_info structures and swig_cast_info structures store pointers back
7537 * to swig_type_info structures, we need some lookup code at initialization.
7538 * The idea is that swig generates all the structures that are needed.
7539 * The runtime then collects these partially filled structures.
7540 * The SWIG_InitializeModule function takes these initial arrays out of
7541 * swig_module, and does all the lookup, filling in the swig_module.types
7542 * array with the correct data and linking the correct swig_cast_info
7543 * structures together.
7544
7545 * The generated swig_type_info structures are assigned staticly to an initial
7546 * array. We just loop though that array, and handle each type individually.
7547 * First we lookup if this type has been already loaded, and if so, use the
7548 * loaded structure instead of the generated one. Then we have to fill in the
7549 * cast linked list. The cast data is initially stored in something like a
7550 * two-dimensional array. Each row corresponds to a type (there are the same
7551 * number of rows as there are in the swig_type_initial array). Each entry in
7552 * a column is one of the swig_cast_info structures for that type.
7553 * The cast_initial array is actually an array of arrays, because each row has
7554 * a variable number of columns. So to actually build the cast linked list,
7555 * we find the array of casts associated with the type, and loop through it
7556 * adding the casts to the list. The one last trick we need to do is making
7557 * sure the type pointer in the swig_cast_info struct is correct.
7558
7559 * First off, we lookup the cast->type name to see if it is already loaded.
7560 * There are three cases to handle:
7561 * 1) If the cast->type has already been loaded AND the type we are adding
7562 * casting info to has not been loaded (it is in this module), THEN we
7563 * replace the cast->type pointer with the type pointer that has already
7564 * been loaded.
7565 * 2) If BOTH types (the one we are adding casting info to, and the
7566 * cast->type) are loaded, THEN the cast info has already been loaded by
7567 * the previous module so we just ignore it.
7568 * 3) Finally, if cast->type has not already been loaded, then we add that
7569 * swig_cast_info to the linked list (because the cast->type) pointer will
7570 * be correct.
7571 **/
7572
7573 #ifdef __cplusplus
7574 extern "C" {
7575 #if 0
7576 } /* c-mode */
7577 #endif
7578 #endif
7579
7580 #if 0
7581 #define SWIGRUNTIME_DEBUG
7582 #endif
7583
7584 SWIGRUNTIME void
7585 SWIG_InitializeModule(void *clientdata) {
7586 size_t i;
7587 swig_module_info *module_head;
7588 static int init_run = 0;
7589
7590 clientdata = clientdata;
7591
7592 if (init_run) return;
7593 init_run = 1;
7594
7595 /* Initialize the swig_module */
7596 swig_module.type_initial = swig_type_initial;
7597 swig_module.cast_initial = swig_cast_initial;
7598
7599 /* Try and load any already created modules */
7600 module_head = SWIG_GetModule(clientdata);
7601 if (module_head) {
7602 swig_module.next = module_head->next;
7603 module_head->next = &swig_module;
7604 } else {
7605 /* This is the first module loaded */
7606 swig_module.next = &swig_module;
7607 SWIG_SetModule(clientdata, &swig_module);
7608 }
7609
7610 /* Now work on filling in swig_module.types */
7611 #ifdef SWIGRUNTIME_DEBUG
7612 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
7613 #endif
7614 for (i = 0; i < swig_module.size; ++i) {
7615 swig_type_info *type = 0;
7616 swig_type_info *ret;
7617 swig_cast_info *cast;
7618
7619 #ifdef SWIGRUNTIME_DEBUG
7620 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7621 #endif
7622
7623 /* if there is another module already loaded */
7624 if (swig_module.next != &swig_module) {
7625 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
7626 }
7627 if (type) {
7628 /* Overwrite clientdata field */
7629 #ifdef SWIGRUNTIME_DEBUG
7630 printf("SWIG_InitializeModule: found type %s\n", type->name);
7631 #endif
7632 if (swig_module.type_initial[i]->clientdata) {
7633 type->clientdata = swig_module.type_initial[i]->clientdata;
7634 #ifdef SWIGRUNTIME_DEBUG
7635 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
7636 #endif
7637 }
7638 } else {
7639 type = swig_module.type_initial[i];
7640 }
7641
7642 /* Insert casting types */
7643 cast = swig_module.cast_initial[i];
7644 while (cast->type) {
7645 /* Don't need to add information already in the list */
7646 ret = 0;
7647 #ifdef SWIGRUNTIME_DEBUG
7648 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
7649 #endif
7650 if (swig_module.next != &swig_module) {
7651 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
7652 #ifdef SWIGRUNTIME_DEBUG
7653 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
7654 #endif
7655 }
7656 if (ret) {
7657 if (type == swig_module.type_initial[i]) {
7658 #ifdef SWIGRUNTIME_DEBUG
7659 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
7660 #endif
7661 cast->type = ret;
7662 ret = 0;
7663 } else {
7664 /* Check for casting already in the list */
7665 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
7666 #ifdef SWIGRUNTIME_DEBUG
7667 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
7668 #endif
7669 if (!ocast) ret = 0;
7670 }
7671 }
7672
7673 if (!ret) {
7674 #ifdef SWIGRUNTIME_DEBUG
7675 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
7676 #endif
7677 if (type->cast) {
7678 type->cast->prev = cast;
7679 cast->next = type->cast;
7680 }
7681 type->cast = cast;
7682 }
7683 cast++;
7684 }
7685 /* Set entry in modules->types array equal to the type */
7686 swig_module.types[i] = type;
7687 }
7688 swig_module.types[i] = 0;
7689
7690 #ifdef SWIGRUNTIME_DEBUG
7691 printf("**** SWIG_InitializeModule: Cast List ******\n");
7692 for (i = 0; i < swig_module.size; ++i) {
7693 int j = 0;
7694 swig_cast_info *cast = swig_module.cast_initial[i];
7695 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7696 while (cast->type) {
7697 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
7698 cast++;
7699 ++j;
7700 }
7701 printf("---- Total casts: %d\n",j);
7702 }
7703 printf("**** SWIG_InitializeModule: Cast List ******\n");
7704 #endif
7705 }
7706
7707 /* This function will propagate the clientdata field of type to
7708 * any new swig_type_info structures that have been added into the list
7709 * of equivalent types. It is like calling
7710 * SWIG_TypeClientData(type, clientdata) a second time.
7711 */
7712 SWIGRUNTIME void
7713 SWIG_PropagateClientData(void) {
7714 size_t i;
7715 swig_cast_info *equiv;
7716 static int init_run = 0;
7717
7718 if (init_run) return;
7719 init_run = 1;
7720
7721 for (i = 0; i < swig_module.size; i++) {
7722 if (swig_module.types[i]->clientdata) {
7723 equiv = swig_module.types[i]->cast;
7724 while (equiv) {
7725 if (!equiv->converter) {
7726 if (equiv->type && !equiv->type->clientdata)
7727 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
7728 }
7729 equiv = equiv->next;
7730 }
7731 }
7732 }
7733 }
7734
7735 #ifdef __cplusplus
7736 #if 0
7737 {
7738 /* c-mode */
7739 #endif
7740 }
7741 #endif
7742
7743
7744
7745 #ifdef __cplusplus
7746 extern "C" {
7747 #endif
7748
7749 /* Python-specific SWIG API */
7750 #define SWIG_newvarlink() SWIG_Python_newvarlink()
7751 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
7752 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
7753
7754 /* -----------------------------------------------------------------------------
7755 * global variable support code.
7756 * ----------------------------------------------------------------------------- */
7757
7758 typedef struct swig_globalvar {
7759 char *name; /* Name of global variable */
7760 PyObject *(*get_attr)(void); /* Return the current value */
7761 int (*set_attr)(PyObject *); /* Set the value */
7762 struct swig_globalvar *next;
7763 } swig_globalvar;
7764
7765 typedef struct swig_varlinkobject {
7766 PyObject_HEAD
7767 swig_globalvar *vars;
7768 } swig_varlinkobject;
7769
7770 SWIGINTERN PyObject *
7771 swig_varlink_repr(swig_varlinkobject *v) {
7772 v = v;
7773 return PyString_FromString("<Swig global variables>");
7774 }
7775
7776 SWIGINTERN int
7777 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
7778 swig_globalvar *var;
7779 flags = flags;
7780 fprintf(fp,"Swig global variables { ");
7781 for (var = v->vars; var; var=var->next) {
7782 fprintf(fp,"%s", var->name);
7783 if (var->next) fprintf(fp,", ");
7784 }
7785 fprintf(fp," }\n");
7786 return 0;
7787 }
7788
7789 SWIGINTERN PyObject *
7790 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
7791 swig_globalvar *var = v->vars;
7792 while (var) {
7793 if (strcmp(var->name,n) == 0) {
7794 return (*var->get_attr)();
7795 }
7796 var = var->next;
7797 }
7798 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
7799 return NULL;
7800 }
7801
7802 SWIGINTERN int
7803 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
7804 swig_globalvar *var = v->vars;
7805 while (var) {
7806 if (strcmp(var->name,n) == 0) {
7807 return (*var->set_attr)(p);
7808 }
7809 var = var->next;
7810 }
7811 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
7812 return 1;
7813 }
7814
7815 SWIGINTERN PyTypeObject*
7816 swig_varlink_type(void) {
7817 static char varlink__doc__[] = "Swig var link object";
7818 static PyTypeObject varlink_type
7819 #if !defined(__cplusplus)
7820 ;
7821 static int type_init = 0;
7822 if (!type_init) {
7823 PyTypeObject tmp
7824 #endif
7825 = {
7826 PyObject_HEAD_INIT(&PyType_Type)
7827 0, /* Number of items in variable part (ob_size) */
7828 (char *)"swigvarlink", /* Type name (tp_name) */
7829 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
7830 0, /* Itemsize (tp_itemsize) */
7831 0, /* Deallocator (tp_dealloc) */
7832 (printfunc) swig_varlink_print, /* Print (tp_print) */
7833 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
7834 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
7835 0, /* tp_compare */
7836 (reprfunc) swig_varlink_repr, /* tp_repr */
7837 0, /* tp_as_number */
7838 0, /* tp_as_sequence */
7839 0, /* tp_as_mapping */
7840 0, /* tp_hash */
7841 0, /* tp_call */
7842 0, /* tp_str */
7843 0, /* tp_getattro */
7844 0, /* tp_setattro */
7845 0, /* tp_as_buffer */
7846 0, /* tp_flags */
7847 varlink__doc__, /* tp_doc */
7848 #if PY_VERSION_HEX >= 0x02000000
7849 0, /* tp_traverse */
7850 0, /* tp_clear */
7851 #endif
7852 #if PY_VERSION_HEX >= 0x02010000
7853 0, /* tp_richcompare */
7854 0, /* tp_weaklistoffset */
7855 #endif
7856 #if PY_VERSION_HEX >= 0x02020000
7857 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
7858 #endif
7859 #if PY_VERSION_HEX >= 0x02030000
7860 0, /* tp_del */
7861 #endif
7862 #ifdef COUNT_ALLOCS
7863 0,0,0,0 /* tp_alloc -> tp_next */
7864 #endif
7865 };
7866 #if !defined(__cplusplus)
7867 varlink_type = tmp;
7868 type_init = 1;
7869 }
7870 #endif
7871 return &varlink_type;
7872 }
7873
7874 /* Create a variable linking object for use later */
7875 SWIGINTERN PyObject *
7876 SWIG_Python_newvarlink(void) {
7877 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
7878 if (result) {
7879 result->vars = 0;
7880 }
7881 return ((PyObject*) result);
7882 }
7883
7884 SWIGINTERN void
7885 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
7886 swig_varlinkobject *v = (swig_varlinkobject *) p;
7887 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
7888 if (gv) {
7889 size_t size = strlen(name)+1;
7890 gv->name = (char *)malloc(size);
7891 if (gv->name) {
7892 strncpy(gv->name,name,size);
7893 gv->get_attr = get_attr;
7894 gv->set_attr = set_attr;
7895 gv->next = v->vars;
7896 }
7897 }
7898 v->vars = gv;
7899 }
7900
7901 /* -----------------------------------------------------------------------------
7902 * constants/methods manipulation
7903 * ----------------------------------------------------------------------------- */
7904
7905 /* Install Constants */
7906 SWIGINTERN void
7907 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
7908 PyObject *obj = 0;
7909 size_t i;
7910 for (i = 0; constants[i].type; ++i) {
7911 switch(constants[i].type) {
7912 case SWIG_PY_INT:
7913 obj = PyInt_FromLong(constants[i].lvalue);
7914 break;
7915 case SWIG_PY_FLOAT:
7916 obj = PyFloat_FromDouble(constants[i].dvalue);
7917 break;
7918 case SWIG_PY_STRING:
7919 if (constants[i].pvalue) {
7920 obj = PyString_FromString((char *) constants[i].pvalue);
7921 } else {
7922 Py_INCREF(Py_None);
7923 obj = Py_None;
7924 }
7925 break;
7926 case SWIG_PY_POINTER:
7927 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
7928 break;
7929 case SWIG_PY_BINARY:
7930 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
7931 break;
7932 default:
7933 obj = 0;
7934 break;
7935 }
7936 if (obj) {
7937 PyDict_SetItemString(d,constants[i].name,obj);
7938 Py_DECREF(obj);
7939 }
7940 }
7941 }
7942
7943 /* -----------------------------------------------------------------------------*/
7944 /* Fix SwigMethods to carry the callback ptrs when needed */
7945 /* -----------------------------------------------------------------------------*/
7946
7947 SWIGINTERN void
7948 SWIG_Python_FixMethods(PyMethodDef *methods,
7949 swig_const_info *const_table,
7950 swig_type_info **types,
7951 swig_type_info **types_initial) {
7952 size_t i;
7953 for (i = 0; methods[i].ml_name; ++i) {
7954 char *c = methods[i].ml_doc;
7955 if (c && (c = strstr(c, "swig_ptr: "))) {
7956 int j;
7957 swig_const_info *ci = 0;
7958 char *name = c + 10;
7959 for (j = 0; const_table[j].type; ++j) {
7960 if (strncmp(const_table[j].name, name,
7961 strlen(const_table[j].name)) == 0) {
7962 ci = &(const_table[j]);
7963 break;
7964 }
7965 }
7966 if (ci) {
7967 size_t shift = (ci->ptype) - types;
7968 swig_type_info *ty = types_initial[shift];
7969 size_t ldoc = (c - methods[i].ml_doc);
7970 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
7971 char *ndoc = (char*)malloc(ldoc + lptr + 10);
7972 if (ndoc) {
7973 char *buff = ndoc;
7974 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
7975 if (ptr) {
7976 strncpy(buff, methods[i].ml_doc, ldoc);
7977 buff += ldoc;
7978 strncpy(buff, "swig_ptr: ", 10);
7979 buff += 10;
7980 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
7981 methods[i].ml_doc = ndoc;
7982 }
7983 }
7984 }
7985 }
7986 }
7987 }
7988
7989 /* -----------------------------------------------------------------------------*
7990 * Initialize type list
7991 * -----------------------------------------------------------------------------*/
7992
7993 #ifdef __cplusplus
7994 }
7995 #endif
7996
7997 /* -----------------------------------------------------------------------------*
7998 * Partial Init method
7999 * -----------------------------------------------------------------------------*/
8000
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 SWIGEXPORT void SWIG_init(void) {
8005 static PyObject *SWIG_globals = 0;
8006 PyObject *m, *d;
8007 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
8008
8009 /* Fix SwigMethods to carry the callback ptrs when needed */
8010 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
8011
8012 m = Py_InitModule((char *) SWIG_name, SwigMethods);
8013 d = PyModule_GetDict(m);
8014
8015 SWIG_InitializeModule(0);
8016 SWIG_InstallConstants(d,swig_const_table);
8017
8018 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
8019 SWIG_addvarlink(SWIG_globals,(char*)"UTF8String",_wrap_UTF8String_get, _wrap_UTF8String_set);
8020 SWIG_addvarlink(SWIG_globals,(char*)"StyleString",_wrap_StyleString_get, _wrap_StyleString_set);
8021 SWIG_addvarlink(SWIG_globals,(char*)"SizeString",_wrap_SizeString_get, _wrap_SizeString_set);
8022 SWIG_addvarlink(SWIG_globals,(char*)"PosString",_wrap_PosString_get, _wrap_PosString_set);
8023 SWIG_addvarlink(SWIG_globals,(char*)"BitmapString",_wrap_BitmapString_get, _wrap_BitmapString_set);
8024 SWIG_addvarlink(SWIG_globals,(char*)"IconString",_wrap_IconString_get, _wrap_IconString_set);
8025 SWIG_addvarlink(SWIG_globals,(char*)"FontString",_wrap_FontString_get, _wrap_FontString_set);
8026 {
8027 PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_MAJOR)));
8028 }
8029 {
8030 PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_MINOR)));
8031 }
8032 {
8033 PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_RELEASE)));
8034 }
8035 {
8036 PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int(static_cast<int >(WX_XMLRES_CURRENT_VERSION_REVISION)));
8037 }
8038 {
8039 PyDict_SetItemString(d,"XRC_USE_LOCALE", SWIG_From_int(static_cast<int >(wxXRC_USE_LOCALE)));
8040 }
8041 {
8042 PyDict_SetItemString(d,"XRC_NO_SUBCLASSING", SWIG_From_int(static_cast<int >(wxXRC_NO_SUBCLASSING)));
8043 }
8044 {
8045 PyDict_SetItemString(d,"XRC_NO_RELOADING", SWIG_From_int(static_cast<int >(wxXRC_NO_RELOADING)));
8046 }
8047 {
8048 PyDict_SetItemString(d,"XML_ELEMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_ELEMENT_NODE)));
8049 }
8050 {
8051 PyDict_SetItemString(d,"XML_ATTRIBUTE_NODE", SWIG_From_int(static_cast<int >(wxXML_ATTRIBUTE_NODE)));
8052 }
8053 {
8054 PyDict_SetItemString(d,"XML_TEXT_NODE", SWIG_From_int(static_cast<int >(wxXML_TEXT_NODE)));
8055 }
8056 {
8057 PyDict_SetItemString(d,"XML_CDATA_SECTION_NODE", SWIG_From_int(static_cast<int >(wxXML_CDATA_SECTION_NODE)));
8058 }
8059 {
8060 PyDict_SetItemString(d,"XML_ENTITY_REF_NODE", SWIG_From_int(static_cast<int >(wxXML_ENTITY_REF_NODE)));
8061 }
8062 {
8063 PyDict_SetItemString(d,"XML_ENTITY_NODE", SWIG_From_int(static_cast<int >(wxXML_ENTITY_NODE)));
8064 }
8065 {
8066 PyDict_SetItemString(d,"XML_PI_NODE", SWIG_From_int(static_cast<int >(wxXML_PI_NODE)));
8067 }
8068 {
8069 PyDict_SetItemString(d,"XML_COMMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_COMMENT_NODE)));
8070 }
8071 {
8072 PyDict_SetItemString(d,"XML_DOCUMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_NODE)));
8073 }
8074 {
8075 PyDict_SetItemString(d,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_TYPE_NODE)));
8076 }
8077 {
8078 PyDict_SetItemString(d,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int(static_cast<int >(wxXML_DOCUMENT_FRAG_NODE)));
8079 }
8080 {
8081 PyDict_SetItemString(d,"XML_NOTATION_NODE", SWIG_From_int(static_cast<int >(wxXML_NOTATION_NODE)));
8082 }
8083 {
8084 PyDict_SetItemString(d,"XML_HTML_DOCUMENT_NODE", SWIG_From_int(static_cast<int >(wxXML_HTML_DOCUMENT_NODE)));
8085 }
8086
8087
8088 wxXmlInitResourceModule();
8089 wxXmlResource::Get()->InitAllHandlers();
8090
8091
8092 }
8093