]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/xrc_wrap.cpp
test for special keys first, before testing for alphanumeric ones as even keys such...
[wxWidgets.git] / wxPython / src / gtk / xrc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_char swig_types[0]
2467 #define SWIGTYPE_p_form_ops_t swig_types[1]
2468 #define SWIGTYPE_p_int swig_types[2]
2469 #define SWIGTYPE_p_unsigned_char swig_types[3]
2470 #define SWIGTYPE_p_unsigned_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_long swig_types[5]
2472 #define SWIGTYPE_p_wxANIHandler swig_types[6]
2473 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
2474 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
2475 #define SWIGTYPE_p_wxAnimation swig_types[9]
2476 #define SWIGTYPE_p_wxArtClient swig_types[10]
2477 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
2478 #define SWIGTYPE_p_wxBitmap swig_types[12]
2479 #define SWIGTYPE_p_wxBoxSizer swig_types[13]
2480 #define SWIGTYPE_p_wxCURHandler swig_types[14]
2481 #define SWIGTYPE_p_wxChildFocusEvent swig_types[15]
2482 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[16]
2483 #define SWIGTYPE_p_wxCloseEvent swig_types[17]
2484 #define SWIGTYPE_p_wxColour swig_types[18]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[19]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[20]
2487 #define SWIGTYPE_p_wxControl swig_types[21]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[22]
2489 #define SWIGTYPE_p_wxDateEvent swig_types[23]
2490 #define SWIGTYPE_p_wxDialog swig_types[24]
2491 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[25]
2492 #define SWIGTYPE_p_wxDropFilesEvent swig_types[26]
2493 #define SWIGTYPE_p_wxDuplexMode swig_types[27]
2494 #define SWIGTYPE_p_wxEraseEvent swig_types[28]
2495 #define SWIGTYPE_p_wxEvent swig_types[29]
2496 #define SWIGTYPE_p_wxEventBlocker swig_types[30]
2497 #define SWIGTYPE_p_wxEvtHandler swig_types[31]
2498 #define SWIGTYPE_p_wxFSFile swig_types[32]
2499 #define SWIGTYPE_p_wxFileSystem swig_types[33]
2500 #define SWIGTYPE_p_wxFlexGridSizer swig_types[34]
2501 #define SWIGTYPE_p_wxFocusEvent swig_types[35]
2502 #define SWIGTYPE_p_wxFont swig_types[36]
2503 #define SWIGTYPE_p_wxFrame swig_types[37]
2504 #define SWIGTYPE_p_wxGBSizerItem swig_types[38]
2505 #define SWIGTYPE_p_wxGIFHandler swig_types[39]
2506 #define SWIGTYPE_p_wxGridBagSizer swig_types[40]
2507 #define SWIGTYPE_p_wxGridSizer swig_types[41]
2508 #define SWIGTYPE_p_wxICOHandler swig_types[42]
2509 #define SWIGTYPE_p_wxIcon swig_types[43]
2510 #define SWIGTYPE_p_wxIconizeEvent swig_types[44]
2511 #define SWIGTYPE_p_wxIdleEvent swig_types[45]
2512 #define SWIGTYPE_p_wxImage swig_types[46]
2513 #define SWIGTYPE_p_wxImageHandler swig_types[47]
2514 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[48]
2515 #define SWIGTYPE_p_wxInitDialogEvent swig_types[49]
2516 #define SWIGTYPE_p_wxInputStream swig_types[50]
2517 #define SWIGTYPE_p_wxJPEGHandler swig_types[51]
2518 #define SWIGTYPE_p_wxKeyEvent swig_types[52]
2519 #define SWIGTYPE_p_wxLayoutConstraints swig_types[53]
2520 #define SWIGTYPE_p_wxMaximizeEvent swig_types[54]
2521 #define SWIGTYPE_p_wxMenu swig_types[55]
2522 #define SWIGTYPE_p_wxMenuBar swig_types[56]
2523 #define SWIGTYPE_p_wxMenuEvent swig_types[57]
2524 #define SWIGTYPE_p_wxMenuItem swig_types[58]
2525 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[59]
2526 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[60]
2527 #define SWIGTYPE_p_wxMouseEvent swig_types[61]
2528 #define SWIGTYPE_p_wxMoveEvent swig_types[62]
2529 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[63]
2530 #define SWIGTYPE_p_wxNcPaintEvent swig_types[64]
2531 #define SWIGTYPE_p_wxNotifyEvent swig_types[65]
2532 #define SWIGTYPE_p_wxObject swig_types[66]
2533 #define SWIGTYPE_p_wxOutputStream swig_types[67]
2534 #define SWIGTYPE_p_wxPCXHandler swig_types[68]
2535 #define SWIGTYPE_p_wxPNGHandler swig_types[69]
2536 #define SWIGTYPE_p_wxPNMHandler swig_types[70]
2537 #define SWIGTYPE_p_wxPaintEvent swig_types[71]
2538 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[72]
2539 #define SWIGTYPE_p_wxPanel swig_types[73]
2540 #define SWIGTYPE_p_wxPaperSize swig_types[74]
2541 #define SWIGTYPE_p_wxPoint swig_types[75]
2542 #define SWIGTYPE_p_wxPyApp swig_types[76]
2543 #define SWIGTYPE_p_wxPyCommandEvent swig_types[77]
2544 #define SWIGTYPE_p_wxPyEvent swig_types[78]
2545 #define SWIGTYPE_p_wxPyImageHandler swig_types[79]
2546 #define SWIGTYPE_p_wxPySizer swig_types[80]
2547 #define SWIGTYPE_p_wxPyValidator swig_types[81]
2548 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[82]
2549 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[83]
2550 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[84]
2551 #define SWIGTYPE_p_wxScrollEvent swig_types[85]
2552 #define SWIGTYPE_p_wxScrollWinEvent swig_types[86]
2553 #define SWIGTYPE_p_wxSetCursorEvent swig_types[87]
2554 #define SWIGTYPE_p_wxShowEvent swig_types[88]
2555 #define SWIGTYPE_p_wxSize swig_types[89]
2556 #define SWIGTYPE_p_wxSizeEvent swig_types[90]
2557 #define SWIGTYPE_p_wxSizer swig_types[91]
2558 #define SWIGTYPE_p_wxSizerItem swig_types[92]
2559 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[93]
2560 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[94]
2561 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[95]
2562 #define SWIGTYPE_p_wxTGAHandler swig_types[96]
2563 #define SWIGTYPE_p_wxTIFFHandler swig_types[97]
2564 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[98]
2565 #define SWIGTYPE_p_wxValidator swig_types[99]
2566 #define SWIGTYPE_p_wxWindow swig_types[100]
2567 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[101]
2568 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[102]
2569 #define SWIGTYPE_p_wxXPMHandler swig_types[103]
2570 #define SWIGTYPE_p_wxXmlDocument swig_types[104]
2571 #define SWIGTYPE_p_wxXmlNode swig_types[105]
2572 #define SWIGTYPE_p_wxXmlProperty swig_types[106]
2573 #define SWIGTYPE_p_wxXmlResource swig_types[107]
2574 static swig_type_info *swig_types[109];
2575 static swig_module_info swig_module = {swig_types, 108, 0, 0, 0, 0};
2576 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2577 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2578
2579 /* -------- TYPES TABLE (END) -------- */
2580
2581 #if (PY_VERSION_HEX <= 0x02000000)
2582 # if !defined(SWIG_PYTHON_CLASSIC)
2583 # error "This python version requires to use swig with the '-classic' option"
2584 # endif
2585 #endif
2586 #if (PY_VERSION_HEX <= 0x02020000)
2587 # error "This python version requires to use swig with the '-nomodern' option"
2588 #endif
2589 #if (PY_VERSION_HEX <= 0x02020000)
2590 # error "This python version requires to use swig with the '-nomodernargs' option"
2591 #endif
2592 #ifndef METH_O
2593 # error "This python version requires to use swig with the '-nofastunpack' option"
2594 #endif
2595
2596 /*-----------------------------------------------
2597 @(target):= _xrc.so
2598 ------------------------------------------------*/
2599 #define SWIG_init init_xrc
2600
2601 #define SWIG_name "_xrc"
2602
2603 #define SWIGVERSION 0x010329
2604
2605
2606 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2607 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2608
2609
2610 #include <stdexcept>
2611
2612
2613 namespace swig {
2614 class PyObject_ptr {
2615 protected:
2616 PyObject *_obj;
2617
2618 public:
2619 PyObject_ptr() :_obj(0)
2620 {
2621 }
2622
2623 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2624 {
2625 Py_XINCREF(_obj);
2626 }
2627
2628 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2629 {
2630 if (initial_ref) Py_XINCREF(_obj);
2631 }
2632
2633 PyObject_ptr & operator=(const PyObject_ptr& item)
2634 {
2635 Py_XINCREF(item._obj);
2636 Py_XDECREF(_obj);
2637 _obj = item._obj;
2638 return *this;
2639 }
2640
2641 ~PyObject_ptr()
2642 {
2643 Py_XDECREF(_obj);
2644 }
2645
2646 operator PyObject *() const
2647 {
2648 return _obj;
2649 }
2650
2651 PyObject *operator->() const
2652 {
2653 return _obj;
2654 }
2655 };
2656 }
2657
2658
2659 namespace swig {
2660 struct PyObject_var : PyObject_ptr {
2661 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2662
2663 PyObject_var & operator = (PyObject* obj)
2664 {
2665 Py_XDECREF(_obj);
2666 _obj = obj;
2667 return *this;
2668 }
2669 };
2670 }
2671
2672
2673 #include "wx/wxPython/wxPython.h"
2674 #include "wx/wxPython/pyclasses.h"
2675 #include "wx/wxPython/pyistream.h"
2676
2677 #include <wx/xml/xml.h>
2678 #include <wx/xrc/xmlres.h>
2679
2680 static const wxString wxPyEmptyString(wxEmptyString);
2681 static const wxString wxPyUTF8String(wxT("UTF-8"));
2682 static const wxString wxPyStyleString(wxT("style"));
2683 static const wxString wxPySizeString(wxT("size"));
2684 static const wxString wxPyPosString(wxT("pos"));
2685 static const wxString wxPyBitmapString(wxT("bitmap"));
2686 static const wxString wxPyIconString(wxT("icon"));
2687 static const wxString wxPyFontString(wxT("font"));
2688 static const wxString wxPyAnimationString(wxT("animation"));
2689
2690 #define SWIG_From_long PyInt_FromLong
2691
2692
2693 SWIGINTERNINLINE PyObject *
2694 SWIG_From_int (int value)
2695 {
2696 return SWIG_From_long (value);
2697 }
2698
2699
2700 #include <limits.h>
2701 #ifndef LLONG_MIN
2702 # define LLONG_MIN LONG_LONG_MIN
2703 #endif
2704 #ifndef LLONG_MAX
2705 # define LLONG_MAX LONG_LONG_MAX
2706 #endif
2707 #ifndef ULLONG_MAX
2708 # define ULLONG_MAX ULONG_LONG_MAX
2709 #endif
2710
2711
2712 SWIGINTERN int
2713 SWIG_AsVal_long (PyObject* obj, long* val)
2714 {
2715 if (PyNumber_Check(obj)) {
2716 if (val) *val = PyInt_AsLong(obj);
2717 return SWIG_OK;
2718 }
2719 return SWIG_TypeError;
2720 }
2721
2722
2723 SWIGINTERN int
2724 SWIG_AsVal_int (PyObject * obj, int *val)
2725 {
2726 long v;
2727 int res = SWIG_AsVal_long (obj, &v);
2728 if (SWIG_IsOK(res)) {
2729 if ((v < INT_MIN || v > INT_MAX)) {
2730 return SWIG_OverflowError;
2731 } else {
2732 if (val) *val = static_cast< int >(v);
2733 }
2734 }
2735 return res;
2736 }
2737
2738 SWIGINTERN bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){
2739 static int s_memFileIdx = 0;
2740
2741 // Check for memory FS. If not present, load the handler:
2742 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
2743 wxT("dummy data"));
2744 wxFileSystem fsys;
2745 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
2746 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
2747 if (f)
2748 delete f;
2749 else
2750 wxFileSystem::AddHandler(new wxMemoryFSHandler);
2751
2752 // Now put the resource data into the memory FS
2753 wxString filename(wxT("XRC_resource/data_string_"));
2754 filename << s_memFileIdx;
2755 s_memFileIdx += 1;
2756 wxMemoryFSHandler::AddFile(filename, data);
2757
2758 // Load the "file" into the resource object
2759 bool retval = self->Load(wxT("memory:") + filename );
2760
2761 return retval;
2762 }
2763
2764 class wxPyXmlSubclassFactory : public wxXmlSubclassFactory
2765 {
2766 public:
2767 wxPyXmlSubclassFactory() {}
2768 DEC_PYCALLBACK_OBJECT_STRING_pure(Create);
2769 PYPRIVATE;
2770 };
2771
2772 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create);
2773
2774 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
2775 // callbacks, as well as to make some protected things public so they can
2776 // be wrapped.
2777 class wxPyXmlResourceHandler : public wxXmlResourceHandler {
2778 public:
2779 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
2780 ~wxPyXmlResourceHandler() {}
2781
2782 // Base class virtuals
2783
2784 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource);
2785 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle);
2786
2787
2788 // accessors for protected members
2789
2790 wxXmlResource* GetResource() { return m_resource; }
2791 wxXmlNode* GetNode() { return m_node; }
2792 wxString GetClass() { return m_class; }
2793 wxObject* GetParent() { return m_parent; }
2794 wxObject* GetInstance() { return m_instance; }
2795 wxWindow* GetParentAsWindow() { return m_parentAsWindow; }
2796
2797
2798 // turn some protected methods into public via delegation
2799
2800 bool IsOfClass(wxXmlNode *node, const wxString& classname)
2801 { return wxXmlResourceHandler::IsOfClass(node, classname); }
2802
2803 wxString GetNodeContent(wxXmlNode *node)
2804 { return wxXmlResourceHandler::GetNodeContent(node); }
2805
2806 bool HasParam(const wxString& param)
2807 { return wxXmlResourceHandler::HasParam(param); }
2808
2809 wxXmlNode *GetParamNode(const wxString& param)
2810 { return wxXmlResourceHandler::GetParamNode(param); }
2811
2812 wxString GetParamValue(const wxString& param)
2813 { return wxXmlResourceHandler::GetParamValue(param); }
2814
2815 void AddStyle(const wxString& name, int value)
2816 { wxXmlResourceHandler::AddStyle(name, value); }
2817
2818 void AddWindowStyles()
2819 { wxXmlResourceHandler::AddWindowStyles(); }
2820
2821 int GetStyle(const wxString& param = wxT("style"), int defaults = 0)
2822 { return wxXmlResourceHandler::GetStyle(param, defaults); }
2823
2824 wxString GetText(const wxString& param, bool translate = true)
2825 { return wxXmlResourceHandler::GetText(param, translate); }
2826
2827 int GetID()
2828 { return wxXmlResourceHandler::GetID(); }
2829
2830 wxString GetName()
2831 { return wxXmlResourceHandler::GetName(); }
2832
2833 bool GetBool(const wxString& param, bool defaultv = false)
2834 { return wxXmlResourceHandler::GetBool(param, defaultv); }
2835
2836 long GetLong( const wxString& param, long defaultv = 0 )
2837 { return wxXmlResourceHandler::GetLong(param, defaultv); }
2838
2839 wxColour GetColour(const wxString& param)
2840 { return wxXmlResourceHandler::GetColour(param); }
2841
2842 wxSize GetSize(const wxString& param = wxT("size"))
2843 { return wxXmlResourceHandler::GetSize(param); }
2844
2845 wxPoint GetPosition(const wxString& param = wxT("pos"))
2846 { return wxXmlResourceHandler::GetPosition(param); }
2847
2848 wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0)
2849 { return wxXmlResourceHandler::GetDimension(param, defaultv); }
2850
2851 wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
2852 const wxArtClient& defaultArtClient = wxART_OTHER,
2853 wxSize size = wxDefaultSize)
2854 { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); }
2855
2856 wxIcon GetIcon(const wxString& param = wxT("icon"),
2857 const wxArtClient& defaultArtClient = wxART_OTHER,
2858 wxSize size = wxDefaultSize)
2859 { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); }
2860
2861 wxAnimation GetAnimation(const wxString& param = wxT("animation"))
2862 { return wxXmlResourceHandler::GetAnimation(param); }
2863
2864 wxFont GetFont(const wxString& param = wxT("font"))
2865 { return wxXmlResourceHandler::GetFont(param); }
2866
2867 void SetupWindow(wxWindow *wnd)
2868 { wxXmlResourceHandler::SetupWindow(wnd); }
2869
2870 void CreateChildren(wxObject *parent, bool this_hnd_only = false)
2871 { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); }
2872
2873 void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL)
2874 { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); }
2875
2876 wxObject *CreateResFromNode(wxXmlNode *node,
2877 wxObject *parent, wxObject *instance = NULL)
2878 { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); }
2879
2880 wxFileSystem& GetCurFileSystem()
2881 { return wxXmlResourceHandler::GetCurFileSystem(); }
2882
2883
2884 PYPRIVATE;
2885 };
2886
2887 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource);
2888 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle);
2889
2890
2891
2892 SWIGINTERN int
2893 SWIG_AsVal_bool (PyObject *obj, bool *val)
2894 {
2895 if (obj == Py_True) {
2896 if (val) *val = true;
2897 return SWIG_OK;
2898 } else if (obj == Py_False) {
2899 if (val) *val = false;
2900 return SWIG_OK;
2901 } else {
2902 long v = 0;
2903 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2904 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2905 return res;
2906 }
2907 }
2908
2909 #ifdef __cplusplus
2910 extern "C" {
2911 #endif
2912 SWIGINTERN int UTF8String_set(PyObject *) {
2913 SWIG_Error(SWIG_AttributeError,"Variable UTF8String is read-only.");
2914 return 1;
2915 }
2916
2917
2918 SWIGINTERN PyObject *UTF8String_get(void) {
2919 PyObject *pyobj = 0;
2920
2921 {
2922 #if wxUSE_UNICODE
2923 pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
2924 #else
2925 pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
2926 #endif
2927 }
2928 return pyobj;
2929 }
2930
2931
2932 SWIGINTERN int StyleString_set(PyObject *) {
2933 SWIG_Error(SWIG_AttributeError,"Variable StyleString is read-only.");
2934 return 1;
2935 }
2936
2937
2938 SWIGINTERN PyObject *StyleString_get(void) {
2939 PyObject *pyobj = 0;
2940
2941 {
2942 #if wxUSE_UNICODE
2943 pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
2944 #else
2945 pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
2946 #endif
2947 }
2948 return pyobj;
2949 }
2950
2951
2952 SWIGINTERN int SizeString_set(PyObject *) {
2953 SWIG_Error(SWIG_AttributeError,"Variable SizeString is read-only.");
2954 return 1;
2955 }
2956
2957
2958 SWIGINTERN PyObject *SizeString_get(void) {
2959 PyObject *pyobj = 0;
2960
2961 {
2962 #if wxUSE_UNICODE
2963 pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
2964 #else
2965 pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
2966 #endif
2967 }
2968 return pyobj;
2969 }
2970
2971
2972 SWIGINTERN int PosString_set(PyObject *) {
2973 SWIG_Error(SWIG_AttributeError,"Variable PosString is read-only.");
2974 return 1;
2975 }
2976
2977
2978 SWIGINTERN PyObject *PosString_get(void) {
2979 PyObject *pyobj = 0;
2980
2981 {
2982 #if wxUSE_UNICODE
2983 pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
2984 #else
2985 pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
2986 #endif
2987 }
2988 return pyobj;
2989 }
2990
2991
2992 SWIGINTERN int BitmapString_set(PyObject *) {
2993 SWIG_Error(SWIG_AttributeError,"Variable BitmapString is read-only.");
2994 return 1;
2995 }
2996
2997
2998 SWIGINTERN PyObject *BitmapString_get(void) {
2999 PyObject *pyobj = 0;
3000
3001 {
3002 #if wxUSE_UNICODE
3003 pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
3004 #else
3005 pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
3006 #endif
3007 }
3008 return pyobj;
3009 }
3010
3011
3012 SWIGINTERN int IconString_set(PyObject *) {
3013 SWIG_Error(SWIG_AttributeError,"Variable IconString is read-only.");
3014 return 1;
3015 }
3016
3017
3018 SWIGINTERN PyObject *IconString_get(void) {
3019 PyObject *pyobj = 0;
3020
3021 {
3022 #if wxUSE_UNICODE
3023 pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
3024 #else
3025 pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
3026 #endif
3027 }
3028 return pyobj;
3029 }
3030
3031
3032 SWIGINTERN int FontString_set(PyObject *) {
3033 SWIG_Error(SWIG_AttributeError,"Variable FontString is read-only.");
3034 return 1;
3035 }
3036
3037
3038 SWIGINTERN PyObject *FontString_get(void) {
3039 PyObject *pyobj = 0;
3040
3041 {
3042 #if wxUSE_UNICODE
3043 pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
3044 #else
3045 pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
3046 #endif
3047 }
3048 return pyobj;
3049 }
3050
3051
3052 SWIGINTERN int AnimationString_set(PyObject *) {
3053 SWIG_Error(SWIG_AttributeError,"Variable AnimationString is read-only.");
3054 return 1;
3055 }
3056
3057
3058 SWIGINTERN PyObject *AnimationString_get(void) {
3059 PyObject *pyobj = 0;
3060
3061 {
3062 #if wxUSE_UNICODE
3063 pyobj = PyUnicode_FromWideChar((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len());
3064 #else
3065 pyobj = PyString_FromStringAndSize((&wxPyAnimationString)->c_str(), (&wxPyAnimationString)->Len());
3066 #endif
3067 }
3068 return pyobj;
3069 }
3070
3071
3072 SWIGINTERN PyObject *_wrap_new_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3073 PyObject *resultobj = 0;
3074 wxString *arg1 = 0 ;
3075 int arg2 = (int) wxXRC_USE_LOCALE ;
3076 wxString const &arg3_defvalue = wxEmptyString ;
3077 wxString *arg3 = (wxString *) &arg3_defvalue ;
3078 wxXmlResource *result = 0 ;
3079 bool temp1 = false ;
3080 int val2 ;
3081 int ecode2 = 0 ;
3082 bool temp3 = false ;
3083 PyObject * obj0 = 0 ;
3084 PyObject * obj1 = 0 ;
3085 PyObject * obj2 = 0 ;
3086 char * kwnames[] = {
3087 (char *) "filemask",(char *) "flags",(char *) "domain", NULL
3088 };
3089
3090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_XmlResource",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3091 {
3092 arg1 = wxString_in_helper(obj0);
3093 if (arg1 == NULL) SWIG_fail;
3094 temp1 = true;
3095 }
3096 if (obj1) {
3097 ecode2 = SWIG_AsVal_int(obj1, &val2);
3098 if (!SWIG_IsOK(ecode2)) {
3099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'");
3100 }
3101 arg2 = static_cast< int >(val2);
3102 }
3103 if (obj2) {
3104 {
3105 arg3 = wxString_in_helper(obj2);
3106 if (arg3 == NULL) SWIG_fail;
3107 temp3 = true;
3108 }
3109 }
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2,(wxString const &)*arg3);
3113 wxPyEndAllowThreads(__tstate);
3114 if (PyErr_Occurred()) SWIG_fail;
3115 }
3116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_NEW | 0 );
3117 {
3118 if (temp1)
3119 delete arg1;
3120 }
3121 {
3122 if (temp3)
3123 delete arg3;
3124 }
3125 return resultobj;
3126 fail:
3127 {
3128 if (temp1)
3129 delete arg1;
3130 }
3131 {
3132 if (temp3)
3133 delete arg3;
3134 }
3135 return NULL;
3136 }
3137
3138
3139 SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3140 PyObject *resultobj = 0;
3141 int arg1 = (int) wxXRC_USE_LOCALE ;
3142 wxString const &arg2_defvalue = wxEmptyString ;
3143 wxString *arg2 = (wxString *) &arg2_defvalue ;
3144 wxXmlResource *result = 0 ;
3145 int val1 ;
3146 int ecode1 = 0 ;
3147 bool temp2 = false ;
3148 PyObject * obj0 = 0 ;
3149 PyObject * obj1 = 0 ;
3150 char * kwnames[] = {
3151 (char *) "flags",(char *) "domain", NULL
3152 };
3153
3154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EmptyXmlResource",kwnames,&obj0,&obj1)) SWIG_fail;
3155 if (obj0) {
3156 ecode1 = SWIG_AsVal_int(obj0, &val1);
3157 if (!SWIG_IsOK(ecode1)) {
3158 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'");
3159 }
3160 arg1 = static_cast< int >(val1);
3161 }
3162 if (obj1) {
3163 {
3164 arg2 = wxString_in_helper(obj1);
3165 if (arg2 == NULL) SWIG_fail;
3166 temp2 = true;
3167 }
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 result = (wxXmlResource *)new wxXmlResource(arg1,(wxString const &)*arg2);
3172 wxPyEndAllowThreads(__tstate);
3173 if (PyErr_Occurred()) SWIG_fail;
3174 }
3175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 );
3176 {
3177 if (temp2)
3178 delete arg2;
3179 }
3180 return resultobj;
3181 fail:
3182 {
3183 if (temp2)
3184 delete arg2;
3185 }
3186 return NULL;
3187 }
3188
3189
3190 SWIGINTERN PyObject *_wrap_delete_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3191 PyObject *resultobj = 0;
3192 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3193 void *argp1 = 0 ;
3194 int res1 = 0 ;
3195 PyObject *swig_obj[1] ;
3196
3197 if (!args) SWIG_fail;
3198 swig_obj[0] = args;
3199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, SWIG_POINTER_DISOWN | 0 );
3200 if (!SWIG_IsOK(res1)) {
3201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3202 }
3203 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 delete arg1;
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 resultobj = SWIG_Py_Void();
3212 return resultobj;
3213 fail:
3214 return NULL;
3215 }
3216
3217
3218 SWIGINTERN PyObject *_wrap_XmlResource_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3219 PyObject *resultobj = 0;
3220 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3221 wxString *arg2 = 0 ;
3222 bool result;
3223 void *argp1 = 0 ;
3224 int res1 = 0 ;
3225 bool temp2 = false ;
3226 PyObject * obj0 = 0 ;
3227 PyObject * obj1 = 0 ;
3228 char * kwnames[] = {
3229 (char *) "self",(char *) "filemask", NULL
3230 };
3231
3232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) SWIG_fail;
3233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3234 if (!SWIG_IsOK(res1)) {
3235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3236 }
3237 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3238 {
3239 arg2 = wxString_in_helper(obj1);
3240 if (arg2 == NULL) SWIG_fail;
3241 temp2 = true;
3242 }
3243 {
3244 PyThreadState* __tstate = wxPyBeginAllowThreads();
3245 result = (bool)(arg1)->Load((wxString const &)*arg2);
3246 wxPyEndAllowThreads(__tstate);
3247 if (PyErr_Occurred()) SWIG_fail;
3248 }
3249 {
3250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3251 }
3252 {
3253 if (temp2)
3254 delete arg2;
3255 }
3256 return resultobj;
3257 fail:
3258 {
3259 if (temp2)
3260 delete arg2;
3261 }
3262 return NULL;
3263 }
3264
3265
3266 SWIGINTERN PyObject *_wrap_XmlResource_LoadFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3267 PyObject *resultobj = 0;
3268 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3269 wxString *arg2 = 0 ;
3270 bool result;
3271 void *argp1 = 0 ;
3272 int res1 = 0 ;
3273 bool temp2 = false ;
3274 PyObject * obj0 = 0 ;
3275 PyObject * obj1 = 0 ;
3276 char * kwnames[] = {
3277 (char *) "self",(char *) "data", NULL
3278 };
3279
3280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) SWIG_fail;
3281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3282 if (!SWIG_IsOK(res1)) {
3283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3284 }
3285 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3286 {
3287 arg2 = wxString_in_helper(obj1);
3288 if (arg2 == NULL) SWIG_fail;
3289 temp2 = true;
3290 }
3291 {
3292 PyThreadState* __tstate = wxPyBeginAllowThreads();
3293 result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2);
3294 wxPyEndAllowThreads(__tstate);
3295 if (PyErr_Occurred()) SWIG_fail;
3296 }
3297 {
3298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3299 }
3300 {
3301 if (temp2)
3302 delete arg2;
3303 }
3304 return resultobj;
3305 fail:
3306 {
3307 if (temp2)
3308 delete arg2;
3309 }
3310 return NULL;
3311 }
3312
3313
3314 SWIGINTERN PyObject *_wrap_XmlResource_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3315 PyObject *resultobj = 0;
3316 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3317 wxString *arg2 = 0 ;
3318 bool result;
3319 void *argp1 = 0 ;
3320 int res1 = 0 ;
3321 bool temp2 = false ;
3322 PyObject * obj0 = 0 ;
3323 PyObject * obj1 = 0 ;
3324 char * kwnames[] = {
3325 (char *) "self",(char *) "filename", NULL
3326 };
3327
3328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) SWIG_fail;
3329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3330 if (!SWIG_IsOK(res1)) {
3331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3332 }
3333 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3334 {
3335 arg2 = wxString_in_helper(obj1);
3336 if (arg2 == NULL) SWIG_fail;
3337 temp2 = true;
3338 }
3339 {
3340 PyThreadState* __tstate = wxPyBeginAllowThreads();
3341 result = (bool)(arg1)->Unload((wxString const &)*arg2);
3342 wxPyEndAllowThreads(__tstate);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 }
3345 {
3346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3347 }
3348 {
3349 if (temp2)
3350 delete arg2;
3351 }
3352 return resultobj;
3353 fail:
3354 {
3355 if (temp2)
3356 delete arg2;
3357 }
3358 return NULL;
3359 }
3360
3361
3362 SWIGINTERN PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3363 PyObject *resultobj = 0;
3364 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3365 void *argp1 = 0 ;
3366 int res1 = 0 ;
3367 PyObject *swig_obj[1] ;
3368
3369 if (!args) SWIG_fail;
3370 swig_obj[0] = args;
3371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3372 if (!SWIG_IsOK(res1)) {
3373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3374 }
3375 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 (arg1)->InitAllHandlers();
3379 wxPyEndAllowThreads(__tstate);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 resultobj = SWIG_Py_Void();
3383 return resultobj;
3384 fail:
3385 return NULL;
3386 }
3387
3388
3389 SWIGINTERN PyObject *_wrap_XmlResource_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3390 PyObject *resultobj = 0;
3391 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3392 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
3393 void *argp1 = 0 ;
3394 int res1 = 0 ;
3395 int res2 = 0 ;
3396 PyObject * obj0 = 0 ;
3397 PyObject * obj1 = 0 ;
3398 char * kwnames[] = {
3399 (char *) "self",(char *) "handler", NULL
3400 };
3401
3402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) SWIG_fail;
3403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3404 if (!SWIG_IsOK(res1)) {
3405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3406 }
3407 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3408 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
3409 if (!SWIG_IsOK(res2)) {
3410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3411 }
3412 {
3413 PyThreadState* __tstate = wxPyBeginAllowThreads();
3414 (arg1)->AddHandler(arg2);
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 resultobj = SWIG_Py_Void();
3419 return resultobj;
3420 fail:
3421 return NULL;
3422 }
3423
3424
3425 SWIGINTERN PyObject *_wrap_XmlResource_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj = 0;
3427 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3428 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
3429 void *argp1 = 0 ;
3430 int res1 = 0 ;
3431 int res2 = 0 ;
3432 PyObject * obj0 = 0 ;
3433 PyObject * obj1 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "self",(char *) "handler", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) SWIG_fail;
3439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3440 if (!SWIG_IsOK(res1)) {
3441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3442 }
3443 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3444 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
3445 if (!SWIG_IsOK(res2)) {
3446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3447 }
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 (arg1)->InsertHandler(arg2);
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 resultobj = SWIG_Py_Void();
3455 return resultobj;
3456 fail:
3457 return NULL;
3458 }
3459
3460
3461 SWIGINTERN PyObject *_wrap_XmlResource_ClearHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3462 PyObject *resultobj = 0;
3463 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3464 void *argp1 = 0 ;
3465 int res1 = 0 ;
3466 PyObject *swig_obj[1] ;
3467
3468 if (!args) SWIG_fail;
3469 swig_obj[0] = args;
3470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3471 if (!SWIG_IsOK(res1)) {
3472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3473 }
3474 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3475 {
3476 PyThreadState* __tstate = wxPyBeginAllowThreads();
3477 (arg1)->ClearHandlers();
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) SWIG_fail;
3480 }
3481 resultobj = SWIG_Py_Void();
3482 return resultobj;
3483 fail:
3484 return NULL;
3485 }
3486
3487
3488 SWIGINTERN PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3489 PyObject *resultobj = 0;
3490 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
3491 void *argp1 = 0 ;
3492 int res1 = 0 ;
3493 PyObject * obj0 = 0 ;
3494 char * kwnames[] = {
3495 (char *) "factory", NULL
3496 };
3497
3498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) SWIG_fail;
3499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 );
3500 if (!SWIG_IsOK(res1)) {
3501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
3502 }
3503 arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1);
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 wxXmlResource::AddSubclassFactory(arg1);
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 resultobj = SWIG_Py_Void();
3511 return resultobj;
3512 fail:
3513 return NULL;
3514 }
3515
3516
3517 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj = 0;
3519 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3520 wxString *arg2 = 0 ;
3521 wxMenu *result = 0 ;
3522 void *argp1 = 0 ;
3523 int res1 = 0 ;
3524 bool temp2 = false ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char * kwnames[] = {
3528 (char *) "self",(char *) "name", NULL
3529 };
3530
3531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) SWIG_fail;
3532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3533 if (!SWIG_IsOK(res1)) {
3534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3535 }
3536 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3537 {
3538 arg2 = wxString_in_helper(obj1);
3539 if (arg2 == NULL) SWIG_fail;
3540 temp2 = true;
3541 }
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2);
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 {
3549 resultobj = wxPyMake_wxObject(result, 0);
3550 }
3551 {
3552 if (temp2)
3553 delete arg2;
3554 }
3555 return resultobj;
3556 fail:
3557 {
3558 if (temp2)
3559 delete arg2;
3560 }
3561 return NULL;
3562 }
3563
3564
3565 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3566 PyObject *resultobj = 0;
3567 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3568 wxString *arg2 = 0 ;
3569 wxMenuBar *result = 0 ;
3570 void *argp1 = 0 ;
3571 int res1 = 0 ;
3572 bool temp2 = false ;
3573 PyObject * obj0 = 0 ;
3574 PyObject * obj1 = 0 ;
3575 char * kwnames[] = {
3576 (char *) "self",(char *) "name", NULL
3577 };
3578
3579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) SWIG_fail;
3580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3581 if (!SWIG_IsOK(res1)) {
3582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3583 }
3584 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3585 {
3586 arg2 = wxString_in_helper(obj1);
3587 if (arg2 == NULL) SWIG_fail;
3588 temp2 = true;
3589 }
3590 {
3591 PyThreadState* __tstate = wxPyBeginAllowThreads();
3592 result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2);
3593 wxPyEndAllowThreads(__tstate);
3594 if (PyErr_Occurred()) SWIG_fail;
3595 }
3596 {
3597 resultobj = wxPyMake_wxObject(result, 0);
3598 }
3599 {
3600 if (temp2)
3601 delete arg2;
3602 }
3603 return resultobj;
3604 fail:
3605 {
3606 if (temp2)
3607 delete arg2;
3608 }
3609 return NULL;
3610 }
3611
3612
3613 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj = 0;
3615 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3616 wxWindow *arg2 = (wxWindow *) 0 ;
3617 wxString *arg3 = 0 ;
3618 wxMenuBar *result = 0 ;
3619 void *argp1 = 0 ;
3620 int res1 = 0 ;
3621 void *argp2 = 0 ;
3622 int res2 = 0 ;
3623 bool temp3 = false ;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 PyObject * obj2 = 0 ;
3627 char * kwnames[] = {
3628 (char *) "self",(char *) "parent",(char *) "name", NULL
3629 };
3630
3631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3633 if (!SWIG_IsOK(res1)) {
3634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3635 }
3636 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3637 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3638 if (!SWIG_IsOK(res2)) {
3639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
3640 }
3641 arg2 = reinterpret_cast< wxWindow * >(argp2);
3642 {
3643 arg3 = wxString_in_helper(obj2);
3644 if (arg3 == NULL) SWIG_fail;
3645 temp3 = true;
3646 }
3647 {
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3);
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 {
3654 resultobj = wxPyMake_wxObject(result, 0);
3655 }
3656 {
3657 if (temp3)
3658 delete arg3;
3659 }
3660 return resultobj;
3661 fail:
3662 {
3663 if (temp3)
3664 delete arg3;
3665 }
3666 return NULL;
3667 }
3668
3669
3670 SWIGINTERN PyObject *_wrap_XmlResource_LoadToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj = 0;
3672 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3673 wxWindow *arg2 = (wxWindow *) 0 ;
3674 wxString *arg3 = 0 ;
3675 wxToolBar *result = 0 ;
3676 void *argp1 = 0 ;
3677 int res1 = 0 ;
3678 void *argp2 = 0 ;
3679 int res2 = 0 ;
3680 bool temp3 = false ;
3681 PyObject * obj0 = 0 ;
3682 PyObject * obj1 = 0 ;
3683 PyObject * obj2 = 0 ;
3684 char * kwnames[] = {
3685 (char *) "self",(char *) "parent",(char *) "name", NULL
3686 };
3687
3688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3690 if (!SWIG_IsOK(res1)) {
3691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3692 }
3693 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3694 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3695 if (!SWIG_IsOK(res2)) {
3696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'");
3697 }
3698 arg2 = reinterpret_cast< wxWindow * >(argp2);
3699 {
3700 arg3 = wxString_in_helper(obj2);
3701 if (arg3 == NULL) SWIG_fail;
3702 temp3 = true;
3703 }
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3);
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 {
3711 resultobj = wxPyMake_wxObject(result, (bool)0);
3712 }
3713 {
3714 if (temp3)
3715 delete arg3;
3716 }
3717 return resultobj;
3718 fail:
3719 {
3720 if (temp3)
3721 delete arg3;
3722 }
3723 return NULL;
3724 }
3725
3726
3727 SWIGINTERN PyObject *_wrap_XmlResource_LoadDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = 0;
3729 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3730 wxWindow *arg2 = (wxWindow *) 0 ;
3731 wxString *arg3 = 0 ;
3732 wxDialog *result = 0 ;
3733 void *argp1 = 0 ;
3734 int res1 = 0 ;
3735 void *argp2 = 0 ;
3736 int res2 = 0 ;
3737 bool temp3 = false ;
3738 PyObject * obj0 = 0 ;
3739 PyObject * obj1 = 0 ;
3740 PyObject * obj2 = 0 ;
3741 char * kwnames[] = {
3742 (char *) "self",(char *) "parent",(char *) "name", NULL
3743 };
3744
3745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3747 if (!SWIG_IsOK(res1)) {
3748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3749 }
3750 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3751 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3752 if (!SWIG_IsOK(res2)) {
3753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'");
3754 }
3755 arg2 = reinterpret_cast< wxWindow * >(argp2);
3756 {
3757 arg3 = wxString_in_helper(obj2);
3758 if (arg3 == NULL) SWIG_fail;
3759 temp3 = true;
3760 }
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3);
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 {
3768 resultobj = wxPyMake_wxObject(result, (bool)0);
3769 }
3770 {
3771 if (temp3)
3772 delete arg3;
3773 }
3774 return resultobj;
3775 fail:
3776 {
3777 if (temp3)
3778 delete arg3;
3779 }
3780 return NULL;
3781 }
3782
3783
3784 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj = 0;
3786 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3787 wxDialog *arg2 = (wxDialog *) 0 ;
3788 wxWindow *arg3 = (wxWindow *) 0 ;
3789 wxString *arg4 = 0 ;
3790 bool result;
3791 void *argp1 = 0 ;
3792 int res1 = 0 ;
3793 void *argp2 = 0 ;
3794 int res2 = 0 ;
3795 void *argp3 = 0 ;
3796 int res3 = 0 ;
3797 bool temp4 = false ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 PyObject * obj2 = 0 ;
3801 PyObject * obj3 = 0 ;
3802 char * kwnames[] = {
3803 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
3804 };
3805
3806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3808 if (!SWIG_IsOK(res1)) {
3809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3810 }
3811 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDialog, 0 | 0 );
3813 if (!SWIG_IsOK(res2)) {
3814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'");
3815 }
3816 arg2 = reinterpret_cast< wxDialog * >(argp2);
3817 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
3818 if (!SWIG_IsOK(res3)) {
3819 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'");
3820 }
3821 arg3 = reinterpret_cast< wxWindow * >(argp3);
3822 {
3823 arg4 = wxString_in_helper(obj3);
3824 if (arg4 == NULL) SWIG_fail;
3825 temp4 = true;
3826 }
3827 {
3828 PyThreadState* __tstate = wxPyBeginAllowThreads();
3829 result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4);
3830 wxPyEndAllowThreads(__tstate);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 {
3834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3835 }
3836 {
3837 if (temp4)
3838 delete arg4;
3839 }
3840 return resultobj;
3841 fail:
3842 {
3843 if (temp4)
3844 delete arg4;
3845 }
3846 return NULL;
3847 }
3848
3849
3850 SWIGINTERN PyObject *_wrap_XmlResource_LoadPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3851 PyObject *resultobj = 0;
3852 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3853 wxWindow *arg2 = (wxWindow *) 0 ;
3854 wxString *arg3 = 0 ;
3855 wxPanel *result = 0 ;
3856 void *argp1 = 0 ;
3857 int res1 = 0 ;
3858 void *argp2 = 0 ;
3859 int res2 = 0 ;
3860 bool temp3 = false ;
3861 PyObject * obj0 = 0 ;
3862 PyObject * obj1 = 0 ;
3863 PyObject * obj2 = 0 ;
3864 char * kwnames[] = {
3865 (char *) "self",(char *) "parent",(char *) "name", NULL
3866 };
3867
3868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3870 if (!SWIG_IsOK(res1)) {
3871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3872 }
3873 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3875 if (!SWIG_IsOK(res2)) {
3876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'");
3877 }
3878 arg2 = reinterpret_cast< wxWindow * >(argp2);
3879 {
3880 arg3 = wxString_in_helper(obj2);
3881 if (arg3 == NULL) SWIG_fail;
3882 temp3 = true;
3883 }
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3);
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 {
3891 resultobj = wxPyMake_wxObject(result, (bool)0);
3892 }
3893 {
3894 if (temp3)
3895 delete arg3;
3896 }
3897 return resultobj;
3898 fail:
3899 {
3900 if (temp3)
3901 delete arg3;
3902 }
3903 return NULL;
3904 }
3905
3906
3907 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3908 PyObject *resultobj = 0;
3909 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3910 wxPanel *arg2 = (wxPanel *) 0 ;
3911 wxWindow *arg3 = (wxWindow *) 0 ;
3912 wxString *arg4 = 0 ;
3913 bool result;
3914 void *argp1 = 0 ;
3915 int res1 = 0 ;
3916 void *argp2 = 0 ;
3917 int res2 = 0 ;
3918 void *argp3 = 0 ;
3919 int res3 = 0 ;
3920 bool temp4 = false ;
3921 PyObject * obj0 = 0 ;
3922 PyObject * obj1 = 0 ;
3923 PyObject * obj2 = 0 ;
3924 PyObject * obj3 = 0 ;
3925 char * kwnames[] = {
3926 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
3927 };
3928
3929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3931 if (!SWIG_IsOK(res1)) {
3932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3933 }
3934 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3935 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPanel, 0 | 0 );
3936 if (!SWIG_IsOK(res2)) {
3937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'");
3938 }
3939 arg2 = reinterpret_cast< wxPanel * >(argp2);
3940 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
3941 if (!SWIG_IsOK(res3)) {
3942 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'");
3943 }
3944 arg3 = reinterpret_cast< wxWindow * >(argp3);
3945 {
3946 arg4 = wxString_in_helper(obj3);
3947 if (arg4 == NULL) SWIG_fail;
3948 temp4 = true;
3949 }
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4);
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 {
3957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3958 }
3959 {
3960 if (temp4)
3961 delete arg4;
3962 }
3963 return resultobj;
3964 fail:
3965 {
3966 if (temp4)
3967 delete arg4;
3968 }
3969 return NULL;
3970 }
3971
3972
3973 SWIGINTERN PyObject *_wrap_XmlResource_LoadFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj = 0;
3975 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3976 wxWindow *arg2 = (wxWindow *) 0 ;
3977 wxString *arg3 = 0 ;
3978 wxFrame *result = 0 ;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 void *argp2 = 0 ;
3982 int res2 = 0 ;
3983 bool temp3 = false ;
3984 PyObject * obj0 = 0 ;
3985 PyObject * obj1 = 0 ;
3986 PyObject * obj2 = 0 ;
3987 char * kwnames[] = {
3988 (char *) "self",(char *) "parent",(char *) "name", NULL
3989 };
3990
3991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3993 if (!SWIG_IsOK(res1)) {
3994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3995 }
3996 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3998 if (!SWIG_IsOK(res2)) {
3999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
4000 }
4001 arg2 = reinterpret_cast< wxWindow * >(argp2);
4002 {
4003 arg3 = wxString_in_helper(obj2);
4004 if (arg3 == NULL) SWIG_fail;
4005 temp3 = true;
4006 }
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3);
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 {
4014 resultobj = wxPyMake_wxObject(result, (bool)0);
4015 }
4016 {
4017 if (temp3)
4018 delete arg3;
4019 }
4020 return resultobj;
4021 fail:
4022 {
4023 if (temp3)
4024 delete arg3;
4025 }
4026 return NULL;
4027 }
4028
4029
4030 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4031 PyObject *resultobj = 0;
4032 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4033 wxFrame *arg2 = (wxFrame *) 0 ;
4034 wxWindow *arg3 = (wxWindow *) 0 ;
4035 wxString *arg4 = 0 ;
4036 bool result;
4037 void *argp1 = 0 ;
4038 int res1 = 0 ;
4039 void *argp2 = 0 ;
4040 int res2 = 0 ;
4041 void *argp3 = 0 ;
4042 int res3 = 0 ;
4043 bool temp4 = false ;
4044 PyObject * obj0 = 0 ;
4045 PyObject * obj1 = 0 ;
4046 PyObject * obj2 = 0 ;
4047 PyObject * obj3 = 0 ;
4048 char * kwnames[] = {
4049 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
4050 };
4051
4052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4056 }
4057 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 );
4059 if (!SWIG_IsOK(res2)) {
4060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'");
4061 }
4062 arg2 = reinterpret_cast< wxFrame * >(argp2);
4063 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4064 if (!SWIG_IsOK(res3)) {
4065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'");
4066 }
4067 arg3 = reinterpret_cast< wxWindow * >(argp3);
4068 {
4069 arg4 = wxString_in_helper(obj3);
4070 if (arg4 == NULL) SWIG_fail;
4071 temp4 = true;
4072 }
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4);
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 {
4080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4081 }
4082 {
4083 if (temp4)
4084 delete arg4;
4085 }
4086 return resultobj;
4087 fail:
4088 {
4089 if (temp4)
4090 delete arg4;
4091 }
4092 return NULL;
4093 }
4094
4095
4096 SWIGINTERN PyObject *_wrap_XmlResource_LoadObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4097 PyObject *resultobj = 0;
4098 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4099 wxWindow *arg2 = (wxWindow *) 0 ;
4100 wxString *arg3 = 0 ;
4101 wxString *arg4 = 0 ;
4102 wxObject *result = 0 ;
4103 void *argp1 = 0 ;
4104 int res1 = 0 ;
4105 void *argp2 = 0 ;
4106 int res2 = 0 ;
4107 bool temp3 = false ;
4108 bool temp4 = false ;
4109 PyObject * obj0 = 0 ;
4110 PyObject * obj1 = 0 ;
4111 PyObject * obj2 = 0 ;
4112 PyObject * obj3 = 0 ;
4113 char * kwnames[] = {
4114 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
4115 };
4116
4117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4119 if (!SWIG_IsOK(res1)) {
4120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4121 }
4122 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4124 if (!SWIG_IsOK(res2)) {
4125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'");
4126 }
4127 arg2 = reinterpret_cast< wxWindow * >(argp2);
4128 {
4129 arg3 = wxString_in_helper(obj2);
4130 if (arg3 == NULL) SWIG_fail;
4131 temp3 = true;
4132 }
4133 {
4134 arg4 = wxString_in_helper(obj3);
4135 if (arg4 == NULL) SWIG_fail;
4136 temp4 = true;
4137 }
4138 {
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 {
4145 resultobj = wxPyMake_wxObject(result, (bool)0);
4146 }
4147 {
4148 if (temp3)
4149 delete arg3;
4150 }
4151 {
4152 if (temp4)
4153 delete arg4;
4154 }
4155 return resultobj;
4156 fail:
4157 {
4158 if (temp3)
4159 delete arg3;
4160 }
4161 {
4162 if (temp4)
4163 delete arg4;
4164 }
4165 return NULL;
4166 }
4167
4168
4169 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj = 0;
4171 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4172 wxObject *arg2 = (wxObject *) 0 ;
4173 wxWindow *arg3 = (wxWindow *) 0 ;
4174 wxString *arg4 = 0 ;
4175 wxString *arg5 = 0 ;
4176 bool result;
4177 void *argp1 = 0 ;
4178 int res1 = 0 ;
4179 void *argp2 = 0 ;
4180 int res2 = 0 ;
4181 void *argp3 = 0 ;
4182 int res3 = 0 ;
4183 bool temp4 = false ;
4184 bool temp5 = false ;
4185 PyObject * obj0 = 0 ;
4186 PyObject * obj1 = 0 ;
4187 PyObject * obj2 = 0 ;
4188 PyObject * obj3 = 0 ;
4189 PyObject * obj4 = 0 ;
4190 char * kwnames[] = {
4191 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4196 if (!SWIG_IsOK(res1)) {
4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4198 }
4199 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
4201 if (!SWIG_IsOK(res2)) {
4202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'");
4203 }
4204 arg2 = reinterpret_cast< wxObject * >(argp2);
4205 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4206 if (!SWIG_IsOK(res3)) {
4207 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'");
4208 }
4209 arg3 = reinterpret_cast< wxWindow * >(argp3);
4210 {
4211 arg4 = wxString_in_helper(obj3);
4212 if (arg4 == NULL) SWIG_fail;
4213 temp4 = true;
4214 }
4215 {
4216 arg5 = wxString_in_helper(obj4);
4217 if (arg5 == NULL) SWIG_fail;
4218 temp5 = true;
4219 }
4220 {
4221 PyThreadState* __tstate = wxPyBeginAllowThreads();
4222 result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4228 }
4229 {
4230 if (temp4)
4231 delete arg4;
4232 }
4233 {
4234 if (temp5)
4235 delete arg5;
4236 }
4237 return resultobj;
4238 fail:
4239 {
4240 if (temp4)
4241 delete arg4;
4242 }
4243 {
4244 if (temp5)
4245 delete arg5;
4246 }
4247 return NULL;
4248 }
4249
4250
4251 SWIGINTERN PyObject *_wrap_XmlResource_LoadBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj = 0;
4253 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4254 wxString *arg2 = 0 ;
4255 wxBitmap result;
4256 void *argp1 = 0 ;
4257 int res1 = 0 ;
4258 bool temp2 = false ;
4259 PyObject * obj0 = 0 ;
4260 PyObject * obj1 = 0 ;
4261 char * kwnames[] = {
4262 (char *) "self",(char *) "name", NULL
4263 };
4264
4265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
4266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4267 if (!SWIG_IsOK(res1)) {
4268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4269 }
4270 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4271 {
4272 arg2 = wxString_in_helper(obj1);
4273 if (arg2 == NULL) SWIG_fail;
4274 temp2 = true;
4275 }
4276 {
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = (arg1)->LoadBitmap((wxString const &)*arg2);
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4283 {
4284 if (temp2)
4285 delete arg2;
4286 }
4287 return resultobj;
4288 fail:
4289 {
4290 if (temp2)
4291 delete arg2;
4292 }
4293 return NULL;
4294 }
4295
4296
4297 SWIGINTERN PyObject *_wrap_XmlResource_LoadIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4298 PyObject *resultobj = 0;
4299 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4300 wxString *arg2 = 0 ;
4301 wxIcon result;
4302 void *argp1 = 0 ;
4303 int res1 = 0 ;
4304 bool temp2 = false ;
4305 PyObject * obj0 = 0 ;
4306 PyObject * obj1 = 0 ;
4307 char * kwnames[] = {
4308 (char *) "self",(char *) "name", NULL
4309 };
4310
4311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) SWIG_fail;
4312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4313 if (!SWIG_IsOK(res1)) {
4314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4315 }
4316 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4317 {
4318 arg2 = wxString_in_helper(obj1);
4319 if (arg2 == NULL) SWIG_fail;
4320 temp2 = true;
4321 }
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 result = (arg1)->LoadIcon((wxString const &)*arg2);
4325 wxPyEndAllowThreads(__tstate);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 }
4328 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
4329 {
4330 if (temp2)
4331 delete arg2;
4332 }
4333 return resultobj;
4334 fail:
4335 {
4336 if (temp2)
4337 delete arg2;
4338 }
4339 return NULL;
4340 }
4341
4342
4343 SWIGINTERN PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj = 0;
4345 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4346 wxString *arg2 = 0 ;
4347 wxWindow *arg3 = (wxWindow *) 0 ;
4348 wxWindow *arg4 = (wxWindow *) NULL ;
4349 bool result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 bool temp2 = false ;
4353 void *argp3 = 0 ;
4354 int res3 = 0 ;
4355 void *argp4 = 0 ;
4356 int res4 = 0 ;
4357 PyObject * obj0 = 0 ;
4358 PyObject * obj1 = 0 ;
4359 PyObject * obj2 = 0 ;
4360 PyObject * obj3 = 0 ;
4361 char * kwnames[] = {
4362 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
4363 };
4364
4365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4367 if (!SWIG_IsOK(res1)) {
4368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4369 }
4370 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4371 {
4372 arg2 = wxString_in_helper(obj1);
4373 if (arg2 == NULL) SWIG_fail;
4374 temp2 = true;
4375 }
4376 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4377 if (!SWIG_IsOK(res3)) {
4378 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'");
4379 }
4380 arg3 = reinterpret_cast< wxWindow * >(argp3);
4381 if (obj3) {
4382 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
4383 if (!SWIG_IsOK(res4)) {
4384 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'");
4385 }
4386 arg4 = reinterpret_cast< wxWindow * >(argp4);
4387 }
4388 {
4389 PyThreadState* __tstate = wxPyBeginAllowThreads();
4390 result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4);
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 {
4395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4396 }
4397 {
4398 if (temp2)
4399 delete arg2;
4400 }
4401 return resultobj;
4402 fail:
4403 {
4404 if (temp2)
4405 delete arg2;
4406 }
4407 return NULL;
4408 }
4409
4410
4411 SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj = 0;
4413 wxString *arg1 = 0 ;
4414 int arg2 = (int) wxID_NONE ;
4415 int result;
4416 bool temp1 = false ;
4417 int val2 ;
4418 int ecode2 = 0 ;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 char * kwnames[] = {
4422 (char *) "str_id",(char *) "value_if_not_found", NULL
4423 };
4424
4425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail;
4426 {
4427 arg1 = wxString_in_helper(obj0);
4428 if (arg1 == NULL) SWIG_fail;
4429 temp1 = true;
4430 }
4431 if (obj1) {
4432 ecode2 = SWIG_AsVal_int(obj1, &val2);
4433 if (!SWIG_IsOK(ecode2)) {
4434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'");
4435 }
4436 arg2 = static_cast< int >(val2);
4437 }
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1,arg2);
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 resultobj = SWIG_From_int(static_cast< int >(result));
4445 {
4446 if (temp1)
4447 delete arg1;
4448 }
4449 return resultobj;
4450 fail:
4451 {
4452 if (temp1)
4453 delete arg1;
4454 }
4455 return NULL;
4456 }
4457
4458
4459 SWIGINTERN PyObject *_wrap_XmlResource_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4460 PyObject *resultobj = 0;
4461 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4462 long result;
4463 void *argp1 = 0 ;
4464 int res1 = 0 ;
4465 PyObject *swig_obj[1] ;
4466
4467 if (!args) SWIG_fail;
4468 swig_obj[0] = args;
4469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4470 if (!SWIG_IsOK(res1)) {
4471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4472 }
4473 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 result = (long)((wxXmlResource const *)arg1)->GetVersion();
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_From_long(static_cast< long >(result));
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_XmlResource_CompareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4490 int arg2 ;
4491 int arg3 ;
4492 int arg4 ;
4493 int arg5 ;
4494 int result;
4495 void *argp1 = 0 ;
4496 int res1 = 0 ;
4497 int val2 ;
4498 int ecode2 = 0 ;
4499 int val3 ;
4500 int ecode3 = 0 ;
4501 int val4 ;
4502 int ecode4 = 0 ;
4503 int val5 ;
4504 int ecode5 = 0 ;
4505 PyObject * obj0 = 0 ;
4506 PyObject * obj1 = 0 ;
4507 PyObject * obj2 = 0 ;
4508 PyObject * obj3 = 0 ;
4509 PyObject * obj4 = 0 ;
4510 char * kwnames[] = {
4511 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
4512 };
4513
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4516 if (!SWIG_IsOK(res1)) {
4517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4518 }
4519 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4520 ecode2 = SWIG_AsVal_int(obj1, &val2);
4521 if (!SWIG_IsOK(ecode2)) {
4522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'");
4523 }
4524 arg2 = static_cast< int >(val2);
4525 ecode3 = SWIG_AsVal_int(obj2, &val3);
4526 if (!SWIG_IsOK(ecode3)) {
4527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'");
4528 }
4529 arg3 = static_cast< int >(val3);
4530 ecode4 = SWIG_AsVal_int(obj3, &val4);
4531 if (!SWIG_IsOK(ecode4)) {
4532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'");
4533 }
4534 arg4 = static_cast< int >(val4);
4535 ecode5 = SWIG_AsVal_int(obj4, &val5);
4536 if (!SWIG_IsOK(ecode5)) {
4537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'");
4538 }
4539 arg5 = static_cast< int >(val5);
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5);
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) SWIG_fail;
4545 }
4546 resultobj = SWIG_From_int(static_cast< int >(result));
4547 return resultobj;
4548 fail:
4549 return NULL;
4550 }
4551
4552
4553 SWIGINTERN PyObject *_wrap_XmlResource_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4554 PyObject *resultobj = 0;
4555 wxXmlResource *result = 0 ;
4556
4557 if (!SWIG_Python_UnpackTuple(args,"XmlResource_Get",0,0,0)) SWIG_fail;
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (wxXmlResource *)wxXmlResource::Get();
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
4565 return resultobj;
4566 fail:
4567 return NULL;
4568 }
4569
4570
4571 SWIGINTERN PyObject *_wrap_XmlResource_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj = 0;
4573 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4574 wxXmlResource *result = 0 ;
4575 void *argp1 = 0 ;
4576 int res1 = 0 ;
4577 PyObject * obj0 = 0 ;
4578 char * kwnames[] = {
4579 (char *) "res", NULL
4580 };
4581
4582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) SWIG_fail;
4583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4584 if (!SWIG_IsOK(res1)) {
4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4586 }
4587 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 result = (wxXmlResource *)wxXmlResource::Set(arg1);
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 SWIGINTERN PyObject *_wrap_XmlResource_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 PyObject *resultobj = 0;
4603 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4604 int result;
4605 void *argp1 = 0 ;
4606 int res1 = 0 ;
4607 PyObject *swig_obj[1] ;
4608
4609 if (!args) SWIG_fail;
4610 swig_obj[0] = args;
4611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4614 }
4615 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (int)(arg1)->GetFlags();
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_From_int(static_cast< int >(result));
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 SWIGINTERN PyObject *_wrap_XmlResource_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4632 int arg2 ;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 PyObject * obj0 = 0 ;
4638 PyObject * obj1 = 0 ;
4639 char * kwnames[] = {
4640 (char *) "self",(char *) "flags", NULL
4641 };
4642
4643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4645 if (!SWIG_IsOK(res1)) {
4646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4647 }
4648 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4649 ecode2 = SWIG_AsVal_int(obj1, &val2);
4650 if (!SWIG_IsOK(ecode2)) {
4651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'");
4652 }
4653 arg2 = static_cast< int >(val2);
4654 {
4655 PyThreadState* __tstate = wxPyBeginAllowThreads();
4656 (arg1)->SetFlags(arg2);
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = SWIG_Py_Void();
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 SWIGINTERN PyObject *_wrap_XmlResource_GetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4668 PyObject *resultobj = 0;
4669 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4670 wxString result;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
4673 PyObject *swig_obj[1] ;
4674
4675 if (!args) SWIG_fail;
4676 swig_obj[0] = args;
4677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4678 if (!SWIG_IsOK(res1)) {
4679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetDomain" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4680 }
4681 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4682 {
4683 PyThreadState* __tstate = wxPyBeginAllowThreads();
4684 result = ((wxXmlResource const *)arg1)->GetDomain();
4685 wxPyEndAllowThreads(__tstate);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 #if wxUSE_UNICODE
4690 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4691 #else
4692 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4693 #endif
4694 }
4695 return resultobj;
4696 fail:
4697 return NULL;
4698 }
4699
4700
4701 SWIGINTERN PyObject *_wrap_XmlResource_SetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4702 PyObject *resultobj = 0;
4703 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4704 wxString *arg2 = 0 ;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
4707 bool temp2 = false ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char * kwnames[] = {
4711 (char *) "self",(char *) "domain", NULL
4712 };
4713
4714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetDomain",kwnames,&obj0,&obj1)) SWIG_fail;
4715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetDomain" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4718 }
4719 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4720 {
4721 arg2 = wxString_in_helper(obj1);
4722 if (arg2 == NULL) SWIG_fail;
4723 temp2 = true;
4724 }
4725 {
4726 PyThreadState* __tstate = wxPyBeginAllowThreads();
4727 (arg1)->SetDomain((wxString const &)*arg2);
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = SWIG_Py_Void();
4732 {
4733 if (temp2)
4734 delete arg2;
4735 }
4736 return resultobj;
4737 fail:
4738 {
4739 if (temp2)
4740 delete arg2;
4741 }
4742 return NULL;
4743 }
4744
4745
4746 SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 PyObject *obj;
4748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4749 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource, SWIG_NewClientData(obj));
4750 return SWIG_Py_Void();
4751 }
4752
4753 SWIGINTERN PyObject *XmlResource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4754 return SWIG_Python_InitShadowInstance(args);
4755 }
4756
4757 SWIGINTERN PyObject *_wrap_new_XmlSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4758 PyObject *resultobj = 0;
4759 wxPyXmlSubclassFactory *result = 0 ;
4760
4761 if (!SWIG_Python_UnpackTuple(args,"new_XmlSubclassFactory",0,0,0)) SWIG_fail;
4762 {
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory();
4765 wxPyEndAllowThreads(__tstate);
4766 if (PyErr_Occurred()) SWIG_fail;
4767 }
4768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_NEW | 0 );
4769 return resultobj;
4770 fail:
4771 return NULL;
4772 }
4773
4774
4775 SWIGINTERN PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4776 PyObject *resultobj = 0;
4777 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
4778 PyObject *arg2 = (PyObject *) 0 ;
4779 PyObject *arg3 = (PyObject *) 0 ;
4780 void *argp1 = 0 ;
4781 int res1 = 0 ;
4782 PyObject * obj0 = 0 ;
4783 PyObject * obj1 = 0 ;
4784 PyObject * obj2 = 0 ;
4785 char * kwnames[] = {
4786 (char *) "self",(char *) "self",(char *) "_class", NULL
4787 };
4788
4789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 );
4791 if (!SWIG_IsOK(res1)) {
4792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
4793 }
4794 arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1);
4795 arg2 = obj1;
4796 arg3 = obj2;
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 (arg1)->_setCallbackInfo(arg2,arg3);
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 resultobj = SWIG_Py_Void();
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 SWIGINTERN PyObject *XmlSubclassFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4811 PyObject *obj;
4812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4813 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_NewClientData(obj));
4814 return SWIG_Py_Void();
4815 }
4816
4817 SWIGINTERN PyObject *XmlSubclassFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4818 return SWIG_Python_InitShadowInstance(args);
4819 }
4820
4821 SWIGINTERN PyObject *_wrap_new_XmlProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj = 0;
4823 wxString const &arg1_defvalue = wxPyEmptyString ;
4824 wxString *arg1 = (wxString *) &arg1_defvalue ;
4825 wxString const &arg2_defvalue = wxPyEmptyString ;
4826 wxString *arg2 = (wxString *) &arg2_defvalue ;
4827 wxXmlProperty *arg3 = (wxXmlProperty *) NULL ;
4828 wxXmlProperty *result = 0 ;
4829 bool temp1 = false ;
4830 bool temp2 = false ;
4831 void *argp3 = 0 ;
4832 int res3 = 0 ;
4833 PyObject * obj0 = 0 ;
4834 PyObject * obj1 = 0 ;
4835 PyObject * obj2 = 0 ;
4836 char * kwnames[] = {
4837 (char *) "name",(char *) "value",(char *) "next", NULL
4838 };
4839
4840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4841 if (obj0) {
4842 {
4843 arg1 = wxString_in_helper(obj0);
4844 if (arg1 == NULL) SWIG_fail;
4845 temp1 = true;
4846 }
4847 }
4848 if (obj1) {
4849 {
4850 arg2 = wxString_in_helper(obj1);
4851 if (arg2 == NULL) SWIG_fail;
4852 temp2 = true;
4853 }
4854 }
4855 if (obj2) {
4856 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4857 if (!SWIG_IsOK(res3)) {
4858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'");
4859 }
4860 arg3 = reinterpret_cast< wxXmlProperty * >(argp3);
4861 }
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3);
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_NEW | 0 );
4869 {
4870 if (temp1)
4871 delete arg1;
4872 }
4873 {
4874 if (temp2)
4875 delete arg2;
4876 }
4877 return resultobj;
4878 fail:
4879 {
4880 if (temp1)
4881 delete arg1;
4882 }
4883 {
4884 if (temp2)
4885 delete arg2;
4886 }
4887 return NULL;
4888 }
4889
4890
4891 SWIGINTERN PyObject *_wrap_XmlProperty_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4892 PyObject *resultobj = 0;
4893 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4894 wxString result;
4895 void *argp1 = 0 ;
4896 int res1 = 0 ;
4897 PyObject *swig_obj[1] ;
4898
4899 if (!args) SWIG_fail;
4900 swig_obj[0] = args;
4901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4902 if (!SWIG_IsOK(res1)) {
4903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4904 }
4905 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4906 {
4907 PyThreadState* __tstate = wxPyBeginAllowThreads();
4908 result = ((wxXmlProperty const *)arg1)->GetName();
4909 wxPyEndAllowThreads(__tstate);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 {
4913 #if wxUSE_UNICODE
4914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4915 #else
4916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4917 #endif
4918 }
4919 return resultobj;
4920 fail:
4921 return NULL;
4922 }
4923
4924
4925 SWIGINTERN PyObject *_wrap_XmlProperty_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4926 PyObject *resultobj = 0;
4927 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4928 wxString result;
4929 void *argp1 = 0 ;
4930 int res1 = 0 ;
4931 PyObject *swig_obj[1] ;
4932
4933 if (!args) SWIG_fail;
4934 swig_obj[0] = args;
4935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4936 if (!SWIG_IsOK(res1)) {
4937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4938 }
4939 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 result = ((wxXmlProperty const *)arg1)->GetValue();
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 {
4947 #if wxUSE_UNICODE
4948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4949 #else
4950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4951 #endif
4952 }
4953 return resultobj;
4954 fail:
4955 return NULL;
4956 }
4957
4958
4959 SWIGINTERN PyObject *_wrap_XmlProperty_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4960 PyObject *resultobj = 0;
4961 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4962 wxXmlProperty *result = 0 ;
4963 void *argp1 = 0 ;
4964 int res1 = 0 ;
4965 PyObject *swig_obj[1] ;
4966
4967 if (!args) SWIG_fail;
4968 swig_obj[0] = args;
4969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4970 if (!SWIG_IsOK(res1)) {
4971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4972 }
4973 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4974 {
4975 PyThreadState* __tstate = wxPyBeginAllowThreads();
4976 result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext();
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4981 return resultobj;
4982 fail:
4983 return NULL;
4984 }
4985
4986
4987 SWIGINTERN PyObject *_wrap_XmlProperty_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj = 0;
4989 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4990 wxString *arg2 = 0 ;
4991 void *argp1 = 0 ;
4992 int res1 = 0 ;
4993 bool temp2 = false ;
4994 PyObject * obj0 = 0 ;
4995 PyObject * obj1 = 0 ;
4996 char * kwnames[] = {
4997 (char *) "self",(char *) "name", NULL
4998 };
4999
5000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
5001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
5004 }
5005 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
5006 {
5007 arg2 = wxString_in_helper(obj1);
5008 if (arg2 == NULL) SWIG_fail;
5009 temp2 = true;
5010 }
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 (arg1)->SetName((wxString const &)*arg2);
5014 wxPyEndAllowThreads(__tstate);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 }
5017 resultobj = SWIG_Py_Void();
5018 {
5019 if (temp2)
5020 delete arg2;
5021 }
5022 return resultobj;
5023 fail:
5024 {
5025 if (temp2)
5026 delete arg2;
5027 }
5028 return NULL;
5029 }
5030
5031
5032 SWIGINTERN PyObject *_wrap_XmlProperty_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj = 0;
5034 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
5035 wxString *arg2 = 0 ;
5036 void *argp1 = 0 ;
5037 int res1 = 0 ;
5038 bool temp2 = false ;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 char * kwnames[] = {
5042 (char *) "self",(char *) "value", NULL
5043 };
5044
5045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5047 if (!SWIG_IsOK(res1)) {
5048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
5049 }
5050 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
5051 {
5052 arg2 = wxString_in_helper(obj1);
5053 if (arg2 == NULL) SWIG_fail;
5054 temp2 = true;
5055 }
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 (arg1)->SetValue((wxString const &)*arg2);
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 resultobj = SWIG_Py_Void();
5063 {
5064 if (temp2)
5065 delete arg2;
5066 }
5067 return resultobj;
5068 fail:
5069 {
5070 if (temp2)
5071 delete arg2;
5072 }
5073 return NULL;
5074 }
5075
5076
5077 SWIGINTERN PyObject *_wrap_XmlProperty_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj = 0;
5079 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
5080 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
5081 void *argp1 = 0 ;
5082 int res1 = 0 ;
5083 void *argp2 = 0 ;
5084 int res2 = 0 ;
5085 PyObject * obj0 = 0 ;
5086 PyObject * obj1 = 0 ;
5087 char * kwnames[] = {
5088 (char *) "self",(char *) "next", NULL
5089 };
5090
5091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) SWIG_fail;
5092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5093 if (!SWIG_IsOK(res1)) {
5094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
5095 }
5096 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
5097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5098 if (!SWIG_IsOK(res2)) {
5099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5100 }
5101 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 (arg1)->SetNext(arg2);
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 resultobj = SWIG_Py_Void();
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 SWIGINTERN PyObject *XmlProperty_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5116 PyObject *obj;
5117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5118 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty, SWIG_NewClientData(obj));
5119 return SWIG_Py_Void();
5120 }
5121
5122 SWIGINTERN PyObject *XmlProperty_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5123 return SWIG_Python_InitShadowInstance(args);
5124 }
5125
5126 SWIGINTERN PyObject *_wrap_new_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj = 0;
5128 wxXmlNode *arg1 = (wxXmlNode *) NULL ;
5129 wxXmlNodeType arg2 = (wxXmlNodeType) 0 ;
5130 wxString const &arg3_defvalue = wxPyEmptyString ;
5131 wxString *arg3 = (wxString *) &arg3_defvalue ;
5132 wxString const &arg4_defvalue = wxPyEmptyString ;
5133 wxString *arg4 = (wxString *) &arg4_defvalue ;
5134 wxXmlProperty *arg5 = (wxXmlProperty *) NULL ;
5135 wxXmlNode *arg6 = (wxXmlNode *) NULL ;
5136 wxXmlNode *result = 0 ;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 int val2 ;
5140 int ecode2 = 0 ;
5141 bool temp3 = false ;
5142 bool temp4 = false ;
5143 void *argp5 = 0 ;
5144 int res5 = 0 ;
5145 void *argp6 = 0 ;
5146 int res6 = 0 ;
5147 PyObject * obj0 = 0 ;
5148 PyObject * obj1 = 0 ;
5149 PyObject * obj2 = 0 ;
5150 PyObject * obj3 = 0 ;
5151 PyObject * obj4 = 0 ;
5152 PyObject * obj5 = 0 ;
5153 char * kwnames[] = {
5154 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
5155 };
5156
5157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
5158 if (obj0) {
5159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5160 if (!SWIG_IsOK(res1)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5162 }
5163 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5164 }
5165 if (obj1) {
5166 ecode2 = SWIG_AsVal_int(obj1, &val2);
5167 if (!SWIG_IsOK(ecode2)) {
5168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5169 }
5170 arg2 = static_cast< wxXmlNodeType >(val2);
5171 }
5172 if (obj2) {
5173 {
5174 arg3 = wxString_in_helper(obj2);
5175 if (arg3 == NULL) SWIG_fail;
5176 temp3 = true;
5177 }
5178 }
5179 if (obj3) {
5180 {
5181 arg4 = wxString_in_helper(obj3);
5182 if (arg4 == NULL) SWIG_fail;
5183 temp4 = true;
5184 }
5185 }
5186 if (obj4) {
5187 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5188 if (!SWIG_IsOK(res5)) {
5189 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'");
5190 }
5191 arg5 = reinterpret_cast< wxXmlProperty * >(argp5);
5192 }
5193 if (obj5) {
5194 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5195 if (!SWIG_IsOK(res6)) {
5196 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'");
5197 }
5198 arg6 = reinterpret_cast< wxXmlNode * >(argp6);
5199 }
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_NEW | 0 );
5207 {
5208 if (temp3)
5209 delete arg3;
5210 }
5211 {
5212 if (temp4)
5213 delete arg4;
5214 }
5215 return resultobj;
5216 fail:
5217 {
5218 if (temp3)
5219 delete arg3;
5220 }
5221 {
5222 if (temp4)
5223 delete arg4;
5224 }
5225 return NULL;
5226 }
5227
5228
5229 SWIGINTERN PyObject *_wrap_delete_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230 PyObject *resultobj = 0;
5231 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5232 void *argp1 = 0 ;
5233 int res1 = 0 ;
5234 PyObject *swig_obj[1] ;
5235
5236 if (!args) SWIG_fail;
5237 swig_obj[0] = args;
5238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, SWIG_POINTER_DISOWN | 0 );
5239 if (!SWIG_IsOK(res1)) {
5240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5241 }
5242 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 delete arg1;
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 resultobj = SWIG_Py_Void();
5251 return resultobj;
5252 fail:
5253 return NULL;
5254 }
5255
5256
5257 SWIGINTERN PyObject *_wrap_new_XmlNodeEasy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5258 PyObject *resultobj = 0;
5259 wxXmlNodeType arg1 ;
5260 wxString *arg2 = 0 ;
5261 wxString const &arg3_defvalue = wxPyEmptyString ;
5262 wxString *arg3 = (wxString *) &arg3_defvalue ;
5263 wxXmlNode *result = 0 ;
5264 int val1 ;
5265 int ecode1 = 0 ;
5266 bool temp2 = false ;
5267 bool temp3 = false ;
5268 PyObject * obj0 = 0 ;
5269 PyObject * obj1 = 0 ;
5270 PyObject * obj2 = 0 ;
5271 char * kwnames[] = {
5272 (char *) "type",(char *) "name",(char *) "content", NULL
5273 };
5274
5275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5276 ecode1 = SWIG_AsVal_int(obj0, &val1);
5277 if (!SWIG_IsOK(ecode1)) {
5278 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'");
5279 }
5280 arg1 = static_cast< wxXmlNodeType >(val1);
5281 {
5282 arg2 = wxString_in_helper(obj1);
5283 if (arg2 == NULL) SWIG_fail;
5284 temp2 = true;
5285 }
5286 if (obj2) {
5287 {
5288 arg3 = wxString_in_helper(obj2);
5289 if (arg3 == NULL) SWIG_fail;
5290 temp3 = true;
5291 }
5292 }
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_OWN | 0 );
5300 {
5301 if (temp2)
5302 delete arg2;
5303 }
5304 {
5305 if (temp3)
5306 delete arg3;
5307 }
5308 return resultobj;
5309 fail:
5310 {
5311 if (temp2)
5312 delete arg2;
5313 }
5314 {
5315 if (temp3)
5316 delete arg3;
5317 }
5318 return NULL;
5319 }
5320
5321
5322 SWIGINTERN PyObject *_wrap_XmlNode_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj = 0;
5324 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5325 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5326 void *argp1 = 0 ;
5327 int res1 = 0 ;
5328 void *argp2 = 0 ;
5329 int res2 = 0 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 char * kwnames[] = {
5333 (char *) "self",(char *) "child", NULL
5334 };
5335
5336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) SWIG_fail;
5337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5340 }
5341 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5342 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5343 if (!SWIG_IsOK(res2)) {
5344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5345 }
5346 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 (arg1)->AddChild(arg2);
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 SWIGINTERN PyObject *_wrap_XmlNode_InsertChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5363 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5364 wxXmlNode *arg3 = (wxXmlNode *) 0 ;
5365 bool result;
5366 void *argp1 = 0 ;
5367 int res1 = 0 ;
5368 void *argp2 = 0 ;
5369 int res2 = 0 ;
5370 void *argp3 = 0 ;
5371 int res3 = 0 ;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 PyObject * obj2 = 0 ;
5375 char * kwnames[] = {
5376 (char *) "self",(char *) "child",(char *) "before_node", NULL
5377 };
5378
5379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5381 if (!SWIG_IsOK(res1)) {
5382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5383 }
5384 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5386 if (!SWIG_IsOK(res2)) {
5387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5388 }
5389 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5390 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5391 if (!SWIG_IsOK(res3)) {
5392 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'");
5393 }
5394 arg3 = reinterpret_cast< wxXmlNode * >(argp3);
5395 {
5396 PyThreadState* __tstate = wxPyBeginAllowThreads();
5397 result = (bool)(arg1)->InsertChild(arg2,arg3);
5398 wxPyEndAllowThreads(__tstate);
5399 if (PyErr_Occurred()) SWIG_fail;
5400 }
5401 {
5402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5403 }
5404 return resultobj;
5405 fail:
5406 return NULL;
5407 }
5408
5409
5410 SWIGINTERN PyObject *_wrap_XmlNode_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj = 0;
5412 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5413 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5414 bool result;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 void *argp2 = 0 ;
5418 int res2 = 0 ;
5419 PyObject * obj0 = 0 ;
5420 PyObject * obj1 = 0 ;
5421 char * kwnames[] = {
5422 (char *) "self",(char *) "child", NULL
5423 };
5424
5425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail;
5426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5427 if (!SWIG_IsOK(res1)) {
5428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5429 }
5430 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5432 if (!SWIG_IsOK(res2)) {
5433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5434 }
5435 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 result = (bool)(arg1)->RemoveChild(arg2);
5439 wxPyEndAllowThreads(__tstate);
5440 if (PyErr_Occurred()) SWIG_fail;
5441 }
5442 {
5443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5444 }
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *_wrap_XmlNode_AddProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj = 0;
5453 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5454 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
5455 void *argp1 = 0 ;
5456 int res1 = 0 ;
5457 void *argp2 = 0 ;
5458 int res2 = 0 ;
5459 PyObject * obj0 = 0 ;
5460 PyObject * obj1 = 0 ;
5461 char * kwnames[] = {
5462 (char *) "self",(char *) "prop", NULL
5463 };
5464
5465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) SWIG_fail;
5466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5467 if (!SWIG_IsOK(res1)) {
5468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5469 }
5470 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5472 if (!SWIG_IsOK(res2)) {
5473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5474 }
5475 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
5476 {
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 (arg1)->AddProperty(arg2);
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 resultobj = SWIG_Py_Void();
5483 return resultobj;
5484 fail:
5485 return NULL;
5486 }
5487
5488
5489 SWIGINTERN PyObject *_wrap_XmlNode_AddPropertyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5490 PyObject *resultobj = 0;
5491 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5492 wxString *arg2 = 0 ;
5493 wxString *arg3 = 0 ;
5494 void *argp1 = 0 ;
5495 int res1 = 0 ;
5496 bool temp2 = false ;
5497 bool temp3 = false ;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 PyObject * obj2 = 0 ;
5501 char * kwnames[] = {
5502 (char *) "self",(char *) "name",(char *) "value", NULL
5503 };
5504
5505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5507 if (!SWIG_IsOK(res1)) {
5508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5509 }
5510 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5511 {
5512 arg2 = wxString_in_helper(obj1);
5513 if (arg2 == NULL) SWIG_fail;
5514 temp2 = true;
5515 }
5516 {
5517 arg3 = wxString_in_helper(obj2);
5518 if (arg3 == NULL) SWIG_fail;
5519 temp3 = true;
5520 }
5521 {
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3);
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 resultobj = SWIG_Py_Void();
5528 {
5529 if (temp2)
5530 delete arg2;
5531 }
5532 {
5533 if (temp3)
5534 delete arg3;
5535 }
5536 return resultobj;
5537 fail:
5538 {
5539 if (temp2)
5540 delete arg2;
5541 }
5542 {
5543 if (temp3)
5544 delete arg3;
5545 }
5546 return NULL;
5547 }
5548
5549
5550 SWIGINTERN PyObject *_wrap_XmlNode_DeleteProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5551 PyObject *resultobj = 0;
5552 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5553 wxString *arg2 = 0 ;
5554 bool result;
5555 void *argp1 = 0 ;
5556 int res1 = 0 ;
5557 bool temp2 = false ;
5558 PyObject * obj0 = 0 ;
5559 PyObject * obj1 = 0 ;
5560 char * kwnames[] = {
5561 (char *) "self",(char *) "name", NULL
5562 };
5563
5564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) SWIG_fail;
5565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5566 if (!SWIG_IsOK(res1)) {
5567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5568 }
5569 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5570 {
5571 arg2 = wxString_in_helper(obj1);
5572 if (arg2 == NULL) SWIG_fail;
5573 temp2 = true;
5574 }
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2);
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 {
5582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5583 }
5584 {
5585 if (temp2)
5586 delete arg2;
5587 }
5588 return resultobj;
5589 fail:
5590 {
5591 if (temp2)
5592 delete arg2;
5593 }
5594 return NULL;
5595 }
5596
5597
5598 SWIGINTERN PyObject *_wrap_XmlNode_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5599 PyObject *resultobj = 0;
5600 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5601 wxXmlNodeType result;
5602 void *argp1 = 0 ;
5603 int res1 = 0 ;
5604 PyObject *swig_obj[1] ;
5605
5606 if (!args) SWIG_fail;
5607 swig_obj[0] = args;
5608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5609 if (!SWIG_IsOK(res1)) {
5610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5611 }
5612 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5613 {
5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
5615 result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType();
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 resultobj = SWIG_From_int(static_cast< int >(result));
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 SWIGINTERN PyObject *_wrap_XmlNode_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5627 PyObject *resultobj = 0;
5628 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5629 wxString result;
5630 void *argp1 = 0 ;
5631 int res1 = 0 ;
5632 PyObject *swig_obj[1] ;
5633
5634 if (!args) SWIG_fail;
5635 swig_obj[0] = args;
5636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5637 if (!SWIG_IsOK(res1)) {
5638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5639 }
5640 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5641 {
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = ((wxXmlNode const *)arg1)->GetName();
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 {
5648 #if wxUSE_UNICODE
5649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5650 #else
5651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5652 #endif
5653 }
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 SWIGINTERN PyObject *_wrap_XmlNode_GetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5661 PyObject *resultobj = 0;
5662 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5663 wxString result;
5664 void *argp1 = 0 ;
5665 int res1 = 0 ;
5666 PyObject *swig_obj[1] ;
5667
5668 if (!args) SWIG_fail;
5669 swig_obj[0] = args;
5670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5671 if (!SWIG_IsOK(res1)) {
5672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5673 }
5674 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5675 {
5676 PyThreadState* __tstate = wxPyBeginAllowThreads();
5677 result = ((wxXmlNode const *)arg1)->GetContent();
5678 wxPyEndAllowThreads(__tstate);
5679 if (PyErr_Occurred()) SWIG_fail;
5680 }
5681 {
5682 #if wxUSE_UNICODE
5683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5684 #else
5685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5686 #endif
5687 }
5688 return resultobj;
5689 fail:
5690 return NULL;
5691 }
5692
5693
5694 SWIGINTERN PyObject *_wrap_XmlNode_IsWhitespaceOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 PyObject *resultobj = 0;
5696 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5697 bool result;
5698 void *argp1 = 0 ;
5699 int res1 = 0 ;
5700 PyObject *swig_obj[1] ;
5701
5702 if (!args) SWIG_fail;
5703 swig_obj[0] = args;
5704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5705 if (!SWIG_IsOK(res1)) {
5706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_IsWhitespaceOnly" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5707 }
5708 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 result = (bool)((wxXmlNode const *)arg1)->IsWhitespaceOnly();
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 {
5716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5717 }
5718 return resultobj;
5719 fail:
5720 return NULL;
5721 }
5722
5723
5724 SWIGINTERN PyObject *_wrap_XmlNode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5725 PyObject *resultobj = 0;
5726 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5727 wxXmlNode *arg2 = (wxXmlNode *) NULL ;
5728 int result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 void *argp2 = 0 ;
5732 int res2 = 0 ;
5733 PyObject * obj0 = 0 ;
5734 PyObject * obj1 = 0 ;
5735 char * kwnames[] = {
5736 (char *) "self",(char *) "grandparent", NULL
5737 };
5738
5739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlNode_GetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
5740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetDepth" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5743 }
5744 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5745 if (obj1) {
5746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5747 if (!SWIG_IsOK(res2)) {
5748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_GetDepth" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5749 }
5750 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5751 }
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (int)((wxXmlNode const *)arg1)->GetDepth(arg2);
5755 wxPyEndAllowThreads(__tstate);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 }
5758 resultobj = SWIG_From_int(static_cast< int >(result));
5759 return resultobj;
5760 fail:
5761 return NULL;
5762 }
5763
5764
5765 SWIGINTERN PyObject *_wrap_XmlNode_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5766 PyObject *resultobj = 0;
5767 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5768 wxString result;
5769 void *argp1 = 0 ;
5770 int res1 = 0 ;
5771 PyObject *swig_obj[1] ;
5772
5773 if (!args) SWIG_fail;
5774 swig_obj[0] = args;
5775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5776 if (!SWIG_IsOK(res1)) {
5777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNodeContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5778 }
5779 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 result = ((wxXmlNode const *)arg1)->GetNodeContent();
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 {
5787 #if wxUSE_UNICODE
5788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5789 #else
5790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5791 #endif
5792 }
5793 return resultobj;
5794 fail:
5795 return NULL;
5796 }
5797
5798
5799 SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5800 PyObject *resultobj = 0;
5801 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5802 wxXmlNode *result = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 PyObject *swig_obj[1] ;
5806
5807 if (!args) SWIG_fail;
5808 swig_obj[0] = args;
5809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5810 if (!SWIG_IsOK(res1)) {
5811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5812 }
5813 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5814 {
5815 PyThreadState* __tstate = wxPyBeginAllowThreads();
5816 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent();
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 SWIGINTERN PyObject *_wrap_XmlNode_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5828 PyObject *resultobj = 0;
5829 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5830 wxXmlNode *result = 0 ;
5831 void *argp1 = 0 ;
5832 int res1 = 0 ;
5833 PyObject *swig_obj[1] ;
5834
5835 if (!args) SWIG_fail;
5836 swig_obj[0] = args;
5837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5838 if (!SWIG_IsOK(res1)) {
5839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5840 }
5841 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5842 {
5843 PyThreadState* __tstate = wxPyBeginAllowThreads();
5844 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext();
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 SWIGINTERN PyObject *_wrap_XmlNode_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5856 PyObject *resultobj = 0;
5857 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5858 wxXmlNode *result = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 PyObject *swig_obj[1] ;
5862
5863 if (!args) SWIG_fail;
5864 swig_obj[0] = args;
5865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5866 if (!SWIG_IsOK(res1)) {
5867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5868 }
5869 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren();
5873 wxPyEndAllowThreads(__tstate);
5874 if (PyErr_Occurred()) SWIG_fail;
5875 }
5876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5877 return resultobj;
5878 fail:
5879 return NULL;
5880 }
5881
5882
5883 SWIGINTERN PyObject *_wrap_XmlNode_GetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5884 PyObject *resultobj = 0;
5885 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5886 wxXmlProperty *result = 0 ;
5887 void *argp1 = 0 ;
5888 int res1 = 0 ;
5889 PyObject *swig_obj[1] ;
5890
5891 if (!args) SWIG_fail;
5892 swig_obj[0] = args;
5893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5894 if (!SWIG_IsOK(res1)) {
5895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5896 }
5897 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties();
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 SWIGINTERN PyObject *_wrap_XmlNode_GetPropVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5912 PyObject *resultobj = 0;
5913 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5914 wxString *arg2 = 0 ;
5915 wxString *arg3 = 0 ;
5916 wxString result;
5917 void *argp1 = 0 ;
5918 int res1 = 0 ;
5919 bool temp2 = false ;
5920 bool temp3 = false ;
5921 PyObject * obj0 = 0 ;
5922 PyObject * obj1 = 0 ;
5923 PyObject * obj2 = 0 ;
5924 char * kwnames[] = {
5925 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
5926 };
5927
5928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5930 if (!SWIG_IsOK(res1)) {
5931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5932 }
5933 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5934 {
5935 arg2 = wxString_in_helper(obj1);
5936 if (arg2 == NULL) SWIG_fail;
5937 temp2 = true;
5938 }
5939 {
5940 arg3 = wxString_in_helper(obj2);
5941 if (arg3 == NULL) SWIG_fail;
5942 temp3 = true;
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3);
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 {
5951 #if wxUSE_UNICODE
5952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5953 #else
5954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5955 #endif
5956 }
5957 {
5958 if (temp2)
5959 delete arg2;
5960 }
5961 {
5962 if (temp3)
5963 delete arg3;
5964 }
5965 return resultobj;
5966 fail:
5967 {
5968 if (temp2)
5969 delete arg2;
5970 }
5971 {
5972 if (temp3)
5973 delete arg3;
5974 }
5975 return NULL;
5976 }
5977
5978
5979 SWIGINTERN PyObject *_wrap_XmlNode_HasProp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5980 PyObject *resultobj = 0;
5981 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5982 wxString *arg2 = 0 ;
5983 bool result;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 bool temp2 = false ;
5987 PyObject * obj0 = 0 ;
5988 PyObject * obj1 = 0 ;
5989 char * kwnames[] = {
5990 (char *) "self",(char *) "propName", NULL
5991 };
5992
5993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) SWIG_fail;
5994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5995 if (!SWIG_IsOK(res1)) {
5996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5997 }
5998 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5999 {
6000 arg2 = wxString_in_helper(obj1);
6001 if (arg2 == NULL) SWIG_fail;
6002 temp2 = true;
6003 }
6004 {
6005 PyThreadState* __tstate = wxPyBeginAllowThreads();
6006 result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2);
6007 wxPyEndAllowThreads(__tstate);
6008 if (PyErr_Occurred()) SWIG_fail;
6009 }
6010 {
6011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6012 }
6013 {
6014 if (temp2)
6015 delete arg2;
6016 }
6017 return resultobj;
6018 fail:
6019 {
6020 if (temp2)
6021 delete arg2;
6022 }
6023 return NULL;
6024 }
6025
6026
6027 SWIGINTERN PyObject *_wrap_XmlNode_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6028 PyObject *resultobj = 0;
6029 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6030 wxXmlNodeType arg2 ;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 int val2 ;
6034 int ecode2 = 0 ;
6035 PyObject * obj0 = 0 ;
6036 PyObject * obj1 = 0 ;
6037 char * kwnames[] = {
6038 (char *) "self",(char *) "type", NULL
6039 };
6040
6041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
6042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6043 if (!SWIG_IsOK(res1)) {
6044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6045 }
6046 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6047 ecode2 = SWIG_AsVal_int(obj1, &val2);
6048 if (!SWIG_IsOK(ecode2)) {
6049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
6050 }
6051 arg2 = static_cast< wxXmlNodeType >(val2);
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->SetType(arg2);
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_Py_Void();
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 SWIGINTERN PyObject *_wrap_XmlNode_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj = 0;
6067 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6068 wxString *arg2 = 0 ;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 bool temp2 = false ;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 char * kwnames[] = {
6075 (char *) "self",(char *) "name", NULL
6076 };
6077
6078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
6079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6080 if (!SWIG_IsOK(res1)) {
6081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6082 }
6083 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6084 {
6085 arg2 = wxString_in_helper(obj1);
6086 if (arg2 == NULL) SWIG_fail;
6087 temp2 = true;
6088 }
6089 {
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 (arg1)->SetName((wxString const &)*arg2);
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_Py_Void();
6096 {
6097 if (temp2)
6098 delete arg2;
6099 }
6100 return resultobj;
6101 fail:
6102 {
6103 if (temp2)
6104 delete arg2;
6105 }
6106 return NULL;
6107 }
6108
6109
6110 SWIGINTERN PyObject *_wrap_XmlNode_SetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj = 0;
6112 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6113 wxString *arg2 = 0 ;
6114 void *argp1 = 0 ;
6115 int res1 = 0 ;
6116 bool temp2 = false ;
6117 PyObject * obj0 = 0 ;
6118 PyObject * obj1 = 0 ;
6119 char * kwnames[] = {
6120 (char *) "self",(char *) "con", NULL
6121 };
6122
6123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) SWIG_fail;
6124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6125 if (!SWIG_IsOK(res1)) {
6126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6127 }
6128 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6129 {
6130 arg2 = wxString_in_helper(obj1);
6131 if (arg2 == NULL) SWIG_fail;
6132 temp2 = true;
6133 }
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 (arg1)->SetContent((wxString const &)*arg2);
6137 wxPyEndAllowThreads(__tstate);
6138 if (PyErr_Occurred()) SWIG_fail;
6139 }
6140 resultobj = SWIG_Py_Void();
6141 {
6142 if (temp2)
6143 delete arg2;
6144 }
6145 return resultobj;
6146 fail:
6147 {
6148 if (temp2)
6149 delete arg2;
6150 }
6151 return NULL;
6152 }
6153
6154
6155 SWIGINTERN PyObject *_wrap_XmlNode_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj = 0;
6157 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6158 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 void *argp2 = 0 ;
6162 int res2 = 0 ;
6163 PyObject * obj0 = 0 ;
6164 PyObject * obj1 = 0 ;
6165 char * kwnames[] = {
6166 (char *) "self",(char *) "parent", NULL
6167 };
6168
6169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) SWIG_fail;
6170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6171 if (!SWIG_IsOK(res1)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6173 }
6174 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6176 if (!SWIG_IsOK(res2)) {
6177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6178 }
6179 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->SetParent(arg2);
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_Py_Void();
6187 return resultobj;
6188 fail:
6189 return NULL;
6190 }
6191
6192
6193 SWIGINTERN PyObject *_wrap_XmlNode_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj = 0;
6195 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6196 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 void *argp2 = 0 ;
6200 int res2 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char * kwnames[] = {
6204 (char *) "self",(char *) "next", NULL
6205 };
6206
6207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) SWIG_fail;
6208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6211 }
6212 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6213 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6214 if (!SWIG_IsOK(res2)) {
6215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6216 }
6217 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 (arg1)->SetNext(arg2);
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 resultobj = SWIG_Py_Void();
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_XmlNode_SetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj = 0;
6233 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6234 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 void *argp2 = 0 ;
6238 int res2 = 0 ;
6239 PyObject * obj0 = 0 ;
6240 PyObject * obj1 = 0 ;
6241 char * kwnames[] = {
6242 (char *) "self",(char *) "child", NULL
6243 };
6244
6245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) SWIG_fail;
6246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6247 if (!SWIG_IsOK(res1)) {
6248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6249 }
6250 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6252 if (!SWIG_IsOK(res2)) {
6253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6254 }
6255 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6256 {
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 (arg1)->SetChildren(arg2);
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_Py_Void();
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_XmlNode_SetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6272 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 void *argp2 = 0 ;
6276 int res2 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char * kwnames[] = {
6280 (char *) "self",(char *) "prop", NULL
6281 };
6282
6283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) SWIG_fail;
6284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6285 if (!SWIG_IsOK(res1)) {
6286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6287 }
6288 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
6290 if (!SWIG_IsOK(res2)) {
6291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
6292 }
6293 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetProperties(arg2);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 SWIGINTERN PyObject *XmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6308 PyObject *obj;
6309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6310 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode, SWIG_NewClientData(obj));
6311 return SWIG_Py_Void();
6312 }
6313
6314 SWIGINTERN PyObject *XmlNode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6315 return SWIG_Python_InitShadowInstance(args);
6316 }
6317
6318 SWIGINTERN PyObject *_wrap_new_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj = 0;
6320 wxString *arg1 = 0 ;
6321 wxString const &arg2_defvalue = wxPyUTF8String ;
6322 wxString *arg2 = (wxString *) &arg2_defvalue ;
6323 wxXmlDocument *result = 0 ;
6324 bool temp1 = false ;
6325 bool temp2 = false ;
6326 PyObject * obj0 = 0 ;
6327 PyObject * obj1 = 0 ;
6328 char * kwnames[] = {
6329 (char *) "filename",(char *) "encoding", NULL
6330 };
6331
6332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) SWIG_fail;
6333 {
6334 arg1 = wxString_in_helper(obj0);
6335 if (arg1 == NULL) SWIG_fail;
6336 temp1 = true;
6337 }
6338 if (obj1) {
6339 {
6340 arg2 = wxString_in_helper(obj1);
6341 if (arg2 == NULL) SWIG_fail;
6342 temp2 = true;
6343 }
6344 }
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2);
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_NEW | 0 );
6352 {
6353 if (temp1)
6354 delete arg1;
6355 }
6356 {
6357 if (temp2)
6358 delete arg2;
6359 }
6360 return resultobj;
6361 fail:
6362 {
6363 if (temp1)
6364 delete arg1;
6365 }
6366 {
6367 if (temp2)
6368 delete arg2;
6369 }
6370 return NULL;
6371 }
6372
6373
6374 SWIGINTERN PyObject *_wrap_new_XmlDocumentFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj = 0;
6376 wxInputStream *arg1 = 0 ;
6377 wxString const &arg2_defvalue = wxPyUTF8String ;
6378 wxString *arg2 = (wxString *) &arg2_defvalue ;
6379 wxXmlDocument *result = 0 ;
6380 wxPyInputStream *temp1 ;
6381 bool created1 ;
6382 bool temp2 = false ;
6383 PyObject * obj0 = 0 ;
6384 PyObject * obj1 = 0 ;
6385 char * kwnames[] = {
6386 (char *) "stream",(char *) "encoding", NULL
6387 };
6388
6389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) SWIG_fail;
6390 {
6391 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6392 arg1 = temp1->m_wxis;
6393 created1 = false;
6394 } else {
6395 PyErr_Clear(); // clear the failure of the wxPyConvert above
6396 arg1 = wxPyCBInputStream_create(obj0, false);
6397 if (arg1 == NULL) {
6398 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
6399 SWIG_fail;
6400 }
6401 created1 = true;
6402 }
6403 }
6404 if (obj1) {
6405 {
6406 arg2 = wxString_in_helper(obj1);
6407 if (arg2 == NULL) SWIG_fail;
6408 temp2 = true;
6409 }
6410 }
6411 {
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2);
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 );
6418 {
6419 if (created1) delete arg1;
6420 }
6421 {
6422 if (temp2)
6423 delete arg2;
6424 }
6425 return resultobj;
6426 fail:
6427 {
6428 if (created1) delete arg1;
6429 }
6430 {
6431 if (temp2)
6432 delete arg2;
6433 }
6434 return NULL;
6435 }
6436
6437
6438 SWIGINTERN PyObject *_wrap_new_EmptyXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6439 PyObject *resultobj = 0;
6440 wxXmlDocument *result = 0 ;
6441
6442 if (!SWIG_Python_UnpackTuple(args,"new_EmptyXmlDocument",0,0,0)) SWIG_fail;
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (wxXmlDocument *)new wxXmlDocument();
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 );
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 SWIGINTERN PyObject *_wrap_delete_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6457 PyObject *resultobj = 0;
6458 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 PyObject *swig_obj[1] ;
6462
6463 if (!args) SWIG_fail;
6464 swig_obj[0] = args;
6465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_DISOWN | 0 );
6466 if (!SWIG_IsOK(res1)) {
6467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6468 }
6469 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 delete arg1;
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_Py_Void();
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 SWIGINTERN PyObject *_wrap_XmlDocument_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6485 PyObject *resultobj = 0;
6486 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6487 wxString *arg2 = 0 ;
6488 wxString const &arg3_defvalue = wxPyUTF8String ;
6489 wxString *arg3 = (wxString *) &arg3_defvalue ;
6490 int arg4 = (int) wxXMLDOC_NONE ;
6491 bool result;
6492 void *argp1 = 0 ;
6493 int res1 = 0 ;
6494 bool temp2 = false ;
6495 bool temp3 = false ;
6496 int val4 ;
6497 int ecode4 = 0 ;
6498 PyObject * obj0 = 0 ;
6499 PyObject * obj1 = 0 ;
6500 PyObject * obj2 = 0 ;
6501 PyObject * obj3 = 0 ;
6502 char * kwnames[] = {
6503 (char *) "self",(char *) "filename",(char *) "encoding",(char *) "flags", NULL
6504 };
6505
6506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6508 if (!SWIG_IsOK(res1)) {
6509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6510 }
6511 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6512 {
6513 arg2 = wxString_in_helper(obj1);
6514 if (arg2 == NULL) SWIG_fail;
6515 temp2 = true;
6516 }
6517 if (obj2) {
6518 {
6519 arg3 = wxString_in_helper(obj2);
6520 if (arg3 == NULL) SWIG_fail;
6521 temp3 = true;
6522 }
6523 }
6524 if (obj3) {
6525 ecode4 = SWIG_AsVal_int(obj3, &val4);
6526 if (!SWIG_IsOK(ecode4)) {
6527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_Load" "', expected argument " "4"" of type '" "int""'");
6528 }
6529 arg4 = static_cast< int >(val4);
6530 }
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3,arg4);
6534 wxPyEndAllowThreads(__tstate);
6535 if (PyErr_Occurred()) SWIG_fail;
6536 }
6537 {
6538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6539 }
6540 {
6541 if (temp2)
6542 delete arg2;
6543 }
6544 {
6545 if (temp3)
6546 delete arg3;
6547 }
6548 return resultobj;
6549 fail:
6550 {
6551 if (temp2)
6552 delete arg2;
6553 }
6554 {
6555 if (temp3)
6556 delete arg3;
6557 }
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6565 wxInputStream *arg2 = 0 ;
6566 wxString const &arg3_defvalue = wxPyUTF8String ;
6567 wxString *arg3 = (wxString *) &arg3_defvalue ;
6568 int arg4 = (int) wxXMLDOC_NONE ;
6569 bool result;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 wxPyInputStream *temp2 ;
6573 bool created2 ;
6574 bool temp3 = false ;
6575 int val4 ;
6576 int ecode4 = 0 ;
6577 PyObject * obj0 = 0 ;
6578 PyObject * obj1 = 0 ;
6579 PyObject * obj2 = 0 ;
6580 PyObject * obj3 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "stream",(char *) "encoding",(char *) "flags", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6589 }
6590 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6591 {
6592 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
6593 arg2 = temp2->m_wxis;
6594 created2 = false;
6595 } else {
6596 PyErr_Clear(); // clear the failure of the wxPyConvert above
6597 arg2 = wxPyCBInputStream_create(obj1, false);
6598 if (arg2 == NULL) {
6599 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
6600 SWIG_fail;
6601 }
6602 created2 = true;
6603 }
6604 }
6605 if (obj2) {
6606 {
6607 arg3 = wxString_in_helper(obj2);
6608 if (arg3 == NULL) SWIG_fail;
6609 temp3 = true;
6610 }
6611 }
6612 if (obj3) {
6613 ecode4 = SWIG_AsVal_int(obj3, &val4);
6614 if (!SWIG_IsOK(ecode4)) {
6615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "4"" of type '" "int""'");
6616 }
6617 arg4 = static_cast< int >(val4);
6618 }
6619 {
6620 PyThreadState* __tstate = wxPyBeginAllowThreads();
6621 result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3,arg4);
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 {
6626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6627 }
6628 {
6629 if (created2) delete arg2;
6630 }
6631 {
6632 if (temp3)
6633 delete arg3;
6634 }
6635 return resultobj;
6636 fail:
6637 {
6638 if (created2) delete arg2;
6639 }
6640 {
6641 if (temp3)
6642 delete arg3;
6643 }
6644 return NULL;
6645 }
6646
6647
6648 SWIGINTERN PyObject *_wrap_XmlDocument_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj = 0;
6650 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6651 wxString *arg2 = 0 ;
6652 int arg3 = (int) 1 ;
6653 bool result;
6654 void *argp1 = 0 ;
6655 int res1 = 0 ;
6656 bool temp2 = false ;
6657 int val3 ;
6658 int ecode3 = 0 ;
6659 PyObject * obj0 = 0 ;
6660 PyObject * obj1 = 0 ;
6661 PyObject * obj2 = 0 ;
6662 char * kwnames[] = {
6663 (char *) "self",(char *) "filename",(char *) "indentstep", NULL
6664 };
6665
6666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Save",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6668 if (!SWIG_IsOK(res1)) {
6669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6670 }
6671 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6672 {
6673 arg2 = wxString_in_helper(obj1);
6674 if (arg2 == NULL) SWIG_fail;
6675 temp2 = true;
6676 }
6677 if (obj2) {
6678 ecode3 = SWIG_AsVal_int(obj2, &val3);
6679 if (!SWIG_IsOK(ecode3)) {
6680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_Save" "', expected argument " "3"" of type '" "int""'");
6681 }
6682 arg3 = static_cast< int >(val3);
6683 }
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2,arg3);
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 {
6691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6692 }
6693 {
6694 if (temp2)
6695 delete arg2;
6696 }
6697 return resultobj;
6698 fail:
6699 {
6700 if (temp2)
6701 delete arg2;
6702 }
6703 return NULL;
6704 }
6705
6706
6707 SWIGINTERN PyObject *_wrap_XmlDocument_SaveToStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6710 wxOutputStream *arg2 = 0 ;
6711 int arg3 = (int) 1 ;
6712 bool result;
6713 void *argp1 = 0 ;
6714 int res1 = 0 ;
6715 void *argp2 = 0 ;
6716 int res2 = 0 ;
6717 int val3 ;
6718 int ecode3 = 0 ;
6719 PyObject * obj0 = 0 ;
6720 PyObject * obj1 = 0 ;
6721 PyObject * obj2 = 0 ;
6722 char * kwnames[] = {
6723 (char *) "self",(char *) "stream",(char *) "indentstep", NULL
6724 };
6725
6726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_SaveToStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6728 if (!SWIG_IsOK(res1)) {
6729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6730 }
6731 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxOutputStream, 0 );
6733 if (!SWIG_IsOK(res2)) {
6734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6735 }
6736 if (!argp2) {
6737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6738 }
6739 arg2 = reinterpret_cast< wxOutputStream * >(argp2);
6740 if (obj2) {
6741 ecode3 = SWIG_AsVal_int(obj2, &val3);
6742 if (!SWIG_IsOK(ecode3)) {
6743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_SaveToStream" "', expected argument " "3"" of type '" "int""'");
6744 }
6745 arg3 = static_cast< int >(val3);
6746 }
6747 {
6748 PyThreadState* __tstate = wxPyBeginAllowThreads();
6749 result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2,arg3);
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6755 }
6756 return resultobj;
6757 fail:
6758 return NULL;
6759 }
6760
6761
6762 SWIGINTERN PyObject *_wrap_XmlDocument_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6763 PyObject *resultobj = 0;
6764 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6765 bool result;
6766 void *argp1 = 0 ;
6767 int res1 = 0 ;
6768 PyObject *swig_obj[1] ;
6769
6770 if (!args) SWIG_fail;
6771 swig_obj[0] = args;
6772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6773 if (!SWIG_IsOK(res1)) {
6774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6775 }
6776 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6777 {
6778 PyThreadState* __tstate = wxPyBeginAllowThreads();
6779 result = (bool)((wxXmlDocument const *)arg1)->IsOk();
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 {
6784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6785 }
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 SWIGINTERN PyObject *_wrap_XmlDocument_GetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6793 PyObject *resultobj = 0;
6794 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6795 wxXmlNode *result = 0 ;
6796 void *argp1 = 0 ;
6797 int res1 = 0 ;
6798 PyObject *swig_obj[1] ;
6799
6800 if (!args) SWIG_fail;
6801 swig_obj[0] = args;
6802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6803 if (!SWIG_IsOK(res1)) {
6804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6805 }
6806 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6807 {
6808 PyThreadState* __tstate = wxPyBeginAllowThreads();
6809 result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot();
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
6814 return resultobj;
6815 fail:
6816 return NULL;
6817 }
6818
6819
6820 SWIGINTERN PyObject *_wrap_XmlDocument_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6821 PyObject *resultobj = 0;
6822 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6823 wxString result;
6824 void *argp1 = 0 ;
6825 int res1 = 0 ;
6826 PyObject *swig_obj[1] ;
6827
6828 if (!args) SWIG_fail;
6829 swig_obj[0] = args;
6830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6831 if (!SWIG_IsOK(res1)) {
6832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6833 }
6834 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6835 {
6836 PyThreadState* __tstate = wxPyBeginAllowThreads();
6837 result = ((wxXmlDocument const *)arg1)->GetVersion();
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 #if wxUSE_UNICODE
6843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6844 #else
6845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6846 #endif
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 SWIGINTERN PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6855 PyObject *resultobj = 0;
6856 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6857 wxString result;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 PyObject *swig_obj[1] ;
6861
6862 if (!args) SWIG_fail;
6863 swig_obj[0] = args;
6864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6865 if (!SWIG_IsOK(res1)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6867 }
6868 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 result = ((wxXmlDocument const *)arg1)->GetFileEncoding();
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 {
6876 #if wxUSE_UNICODE
6877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6878 #else
6879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6880 #endif
6881 }
6882 return resultobj;
6883 fail:
6884 return NULL;
6885 }
6886
6887
6888 SWIGINTERN PyObject *_wrap_XmlDocument_DetachRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6889 PyObject *resultobj = 0;
6890 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6891 wxXmlNode *result = 0 ;
6892 void *argp1 = 0 ;
6893 int res1 = 0 ;
6894 PyObject *swig_obj[1] ;
6895
6896 if (!args) SWIG_fail;
6897 swig_obj[0] = args;
6898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6899 if (!SWIG_IsOK(res1)) {
6900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_DetachRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6901 }
6902 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6903 {
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (wxXmlNode *)(arg1)->DetachRoot();
6906 wxPyEndAllowThreads(__tstate);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj = 0;
6918 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6919 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6920 void *argp1 = 0 ;
6921 int res1 = 0 ;
6922 void *argp2 = 0 ;
6923 int res2 = 0 ;
6924 PyObject * obj0 = 0 ;
6925 PyObject * obj1 = 0 ;
6926 char * kwnames[] = {
6927 (char *) "self",(char *) "node", NULL
6928 };
6929
6930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) SWIG_fail;
6931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6932 if (!SWIG_IsOK(res1)) {
6933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6934 }
6935 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6937 if (!SWIG_IsOK(res2)) {
6938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6939 }
6940 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 (arg1)->SetRoot(arg2);
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 resultobj = SWIG_Py_Void();
6948 return resultobj;
6949 fail:
6950 return NULL;
6951 }
6952
6953
6954 SWIGINTERN PyObject *_wrap_XmlDocument_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6955 PyObject *resultobj = 0;
6956 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6957 wxString *arg2 = 0 ;
6958 void *argp1 = 0 ;
6959 int res1 = 0 ;
6960 bool temp2 = false ;
6961 PyObject * obj0 = 0 ;
6962 PyObject * obj1 = 0 ;
6963 char * kwnames[] = {
6964 (char *) "self",(char *) "version", NULL
6965 };
6966
6967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail;
6968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6969 if (!SWIG_IsOK(res1)) {
6970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6971 }
6972 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6973 {
6974 arg2 = wxString_in_helper(obj1);
6975 if (arg2 == NULL) SWIG_fail;
6976 temp2 = true;
6977 }
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 (arg1)->SetVersion((wxString const &)*arg2);
6981 wxPyEndAllowThreads(__tstate);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 resultobj = SWIG_Py_Void();
6985 {
6986 if (temp2)
6987 delete arg2;
6988 }
6989 return resultobj;
6990 fail:
6991 {
6992 if (temp2)
6993 delete arg2;
6994 }
6995 return NULL;
6996 }
6997
6998
6999 SWIGINTERN PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj = 0;
7001 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
7002 wxString *arg2 = 0 ;
7003 void *argp1 = 0 ;
7004 int res1 = 0 ;
7005 bool temp2 = false ;
7006 PyObject * obj0 = 0 ;
7007 PyObject * obj1 = 0 ;
7008 char * kwnames[] = {
7009 (char *) "self",(char *) "encoding", NULL
7010 };
7011
7012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
7013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
7014 if (!SWIG_IsOK(res1)) {
7015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
7016 }
7017 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
7018 {
7019 arg2 = wxString_in_helper(obj1);
7020 if (arg2 == NULL) SWIG_fail;
7021 temp2 = true;
7022 }
7023 {
7024 PyThreadState* __tstate = wxPyBeginAllowThreads();
7025 (arg1)->SetFileEncoding((wxString const &)*arg2);
7026 wxPyEndAllowThreads(__tstate);
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 resultobj = SWIG_Py_Void();
7030 {
7031 if (temp2)
7032 delete arg2;
7033 }
7034 return resultobj;
7035 fail:
7036 {
7037 if (temp2)
7038 delete arg2;
7039 }
7040 return NULL;
7041 }
7042
7043
7044 SWIGINTERN PyObject *XmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7045 PyObject *obj;
7046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7047 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument, SWIG_NewClientData(obj));
7048 return SWIG_Py_Void();
7049 }
7050
7051 SWIGINTERN PyObject *XmlDocument_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7052 return SWIG_Python_InitShadowInstance(args);
7053 }
7054
7055 SWIGINTERN PyObject *_wrap_new_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7056 PyObject *resultobj = 0;
7057 wxPyXmlResourceHandler *result = 0 ;
7058
7059 if (!SWIG_Python_UnpackTuple(args,"new_XmlResourceHandler",0,0,0)) SWIG_fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler();
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_NEW | 0 );
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 SWIGINTERN PyObject *_wrap_delete_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7074 PyObject *resultobj = 0;
7075 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7076 void *argp1 = 0 ;
7077 int res1 = 0 ;
7078 PyObject *swig_obj[1] ;
7079
7080 if (!args) SWIG_fail;
7081 swig_obj[0] = args;
7082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResourceHandler" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7085 }
7086 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 delete arg1;
7090
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_Py_Void();
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj = 0;
7103 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7104 PyObject *arg2 = (PyObject *) 0 ;
7105 PyObject *arg3 = (PyObject *) 0 ;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject * obj0 = 0 ;
7109 PyObject * obj1 = 0 ;
7110 PyObject * obj2 = 0 ;
7111 char * kwnames[] = {
7112 (char *) "self",(char *) "self",(char *) "_class", NULL
7113 };
7114
7115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7117 if (!SWIG_IsOK(res1)) {
7118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7119 }
7120 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7121 arg2 = obj1;
7122 arg3 = obj2;
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 (arg1)->_setCallbackInfo(arg2,arg3);
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_Py_Void();
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj = 0;
7138 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7139 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7140 wxObject *arg3 = (wxObject *) 0 ;
7141 wxObject *arg4 = (wxObject *) 0 ;
7142 wxObject *result = 0 ;
7143 void *argp1 = 0 ;
7144 int res1 = 0 ;
7145 void *argp2 = 0 ;
7146 int res2 = 0 ;
7147 void *argp3 = 0 ;
7148 int res3 = 0 ;
7149 void *argp4 = 0 ;
7150 int res4 = 0 ;
7151 PyObject * obj0 = 0 ;
7152 PyObject * obj1 = 0 ;
7153 PyObject * obj2 = 0 ;
7154 PyObject * obj3 = 0 ;
7155 char * kwnames[] = {
7156 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
7157 };
7158
7159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7161 if (!SWIG_IsOK(res1)) {
7162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7163 }
7164 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7165 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7166 if (!SWIG_IsOK(res2)) {
7167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7168 }
7169 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7170 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 );
7171 if (!SWIG_IsOK(res3)) {
7172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'");
7173 }
7174 arg3 = reinterpret_cast< wxObject * >(argp3);
7175 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 );
7176 if (!SWIG_IsOK(res4)) {
7177 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'");
7178 }
7179 arg4 = reinterpret_cast< wxObject * >(argp4);
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4);
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 {
7187 resultobj = wxPyMake_wxObject(result, (bool)0);
7188 }
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj = 0;
7197 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7198 wxXmlResource *arg2 = (wxXmlResource *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 void *argp2 = 0 ;
7202 int res2 = 0 ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 char * kwnames[] = {
7206 (char *) "self",(char *) "res", NULL
7207 };
7208
7209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) SWIG_fail;
7210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7211 if (!SWIG_IsOK(res1)) {
7212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7213 }
7214 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlResource, 0 | 0 );
7216 if (!SWIG_IsOK(res2)) {
7217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'");
7218 }
7219 arg2 = reinterpret_cast< wxXmlResource * >(argp2);
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 (arg1)->SetParentResource(arg2);
7223 wxPyEndAllowThreads(__tstate);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = SWIG_Py_Void();
7227 return resultobj;
7228 fail:
7229 return NULL;
7230 }
7231
7232
7233 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7234 PyObject *resultobj = 0;
7235 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7236 wxXmlResource *result = 0 ;
7237 void *argp1 = 0 ;
7238 int res1 = 0 ;
7239 PyObject *swig_obj[1] ;
7240
7241 if (!args) SWIG_fail;
7242 swig_obj[0] = args;
7243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7244 if (!SWIG_IsOK(res1)) {
7245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7246 }
7247 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 result = (wxXmlResource *)(arg1)->GetResource();
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7262 PyObject *resultobj = 0;
7263 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7264 wxXmlNode *result = 0 ;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 PyObject *swig_obj[1] ;
7268
7269 if (!args) SWIG_fail;
7270 swig_obj[0] = args;
7271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7272 if (!SWIG_IsOK(res1)) {
7273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7274 }
7275 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7276 {
7277 PyThreadState* __tstate = wxPyBeginAllowThreads();
7278 result = (wxXmlNode *)(arg1)->GetNode();
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
7283 return resultobj;
7284 fail:
7285 return NULL;
7286 }
7287
7288
7289 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7292 wxString result;
7293 void *argp1 = 0 ;
7294 int res1 = 0 ;
7295 PyObject *swig_obj[1] ;
7296
7297 if (!args) SWIG_fail;
7298 swig_obj[0] = args;
7299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7300 if (!SWIG_IsOK(res1)) {
7301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7302 }
7303 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7304 {
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 result = (arg1)->GetClass();
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 {
7311 #if wxUSE_UNICODE
7312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7313 #else
7314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7315 #endif
7316 }
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *resultobj = 0;
7325 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7326 wxObject *result = 0 ;
7327 void *argp1 = 0 ;
7328 int res1 = 0 ;
7329 PyObject *swig_obj[1] ;
7330
7331 if (!args) SWIG_fail;
7332 swig_obj[0] = args;
7333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7334 if (!SWIG_IsOK(res1)) {
7335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7336 }
7337 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = (wxObject *)(arg1)->GetParent();
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = wxPyMake_wxObject(result, (bool)0);
7346 }
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7356 wxObject *result = 0 ;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7366 }
7367 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (wxObject *)(arg1)->GetInstance();
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375 resultobj = wxPyMake_wxObject(result, (bool)0);
7376 }
7377 return resultobj;
7378 fail:
7379 return NULL;
7380 }
7381
7382
7383 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7384 PyObject *resultobj = 0;
7385 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7386 wxWindow *result = 0 ;
7387 void *argp1 = 0 ;
7388 int res1 = 0 ;
7389 PyObject *swig_obj[1] ;
7390
7391 if (!args) SWIG_fail;
7392 swig_obj[0] = args;
7393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7394 if (!SWIG_IsOK(res1)) {
7395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7396 }
7397 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 result = (wxWindow *)(arg1)->GetParentAsWindow();
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 {
7405 resultobj = wxPyMake_wxObject(result, 0);
7406 }
7407 return resultobj;
7408 fail:
7409 return NULL;
7410 }
7411
7412
7413 SWIGINTERN PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj = 0;
7415 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7416 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7417 wxString *arg3 = 0 ;
7418 bool result;
7419 void *argp1 = 0 ;
7420 int res1 = 0 ;
7421 void *argp2 = 0 ;
7422 int res2 = 0 ;
7423 bool temp3 = false ;
7424 PyObject * obj0 = 0 ;
7425 PyObject * obj1 = 0 ;
7426 PyObject * obj2 = 0 ;
7427 char * kwnames[] = {
7428 (char *) "self",(char *) "node",(char *) "classname", NULL
7429 };
7430
7431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7433 if (!SWIG_IsOK(res1)) {
7434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7435 }
7436 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7437 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7438 if (!SWIG_IsOK(res2)) {
7439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7440 }
7441 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7442 {
7443 arg3 = wxString_in_helper(obj2);
7444 if (arg3 == NULL) SWIG_fail;
7445 temp3 = true;
7446 }
7447 {
7448 PyThreadState* __tstate = wxPyBeginAllowThreads();
7449 result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3);
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 {
7454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7455 }
7456 {
7457 if (temp3)
7458 delete arg3;
7459 }
7460 return resultobj;
7461 fail:
7462 {
7463 if (temp3)
7464 delete arg3;
7465 }
7466 return NULL;
7467 }
7468
7469
7470 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj = 0;
7472 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7473 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7474 wxString result;
7475 void *argp1 = 0 ;
7476 int res1 = 0 ;
7477 void *argp2 = 0 ;
7478 int res2 = 0 ;
7479 PyObject * obj0 = 0 ;
7480 PyObject * obj1 = 0 ;
7481 char * kwnames[] = {
7482 (char *) "self",(char *) "node", NULL
7483 };
7484
7485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) SWIG_fail;
7486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7487 if (!SWIG_IsOK(res1)) {
7488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7489 }
7490 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7492 if (!SWIG_IsOK(res2)) {
7493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7494 }
7495 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7496 {
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 result = (arg1)->GetNodeContent(arg2);
7499 wxPyEndAllowThreads(__tstate);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 {
7503 #if wxUSE_UNICODE
7504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7505 #else
7506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7507 #endif
7508 }
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 SWIGINTERN PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7516 PyObject *resultobj = 0;
7517 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7518 wxString *arg2 = 0 ;
7519 bool result;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 bool temp2 = false ;
7523 PyObject * obj0 = 0 ;
7524 PyObject * obj1 = 0 ;
7525 char * kwnames[] = {
7526 (char *) "self",(char *) "param", NULL
7527 };
7528
7529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) SWIG_fail;
7530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7531 if (!SWIG_IsOK(res1)) {
7532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7533 }
7534 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7535 {
7536 arg2 = wxString_in_helper(obj1);
7537 if (arg2 == NULL) SWIG_fail;
7538 temp2 = true;
7539 }
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (bool)(arg1)->HasParam((wxString const &)*arg2);
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7548 }
7549 {
7550 if (temp2)
7551 delete arg2;
7552 }
7553 return resultobj;
7554 fail:
7555 {
7556 if (temp2)
7557 delete arg2;
7558 }
7559 return NULL;
7560 }
7561
7562
7563 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj = 0;
7565 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7566 wxString *arg2 = 0 ;
7567 wxXmlNode *result = 0 ;
7568 void *argp1 = 0 ;
7569 int res1 = 0 ;
7570 bool temp2 = false ;
7571 PyObject * obj0 = 0 ;
7572 PyObject * obj1 = 0 ;
7573 char * kwnames[] = {
7574 (char *) "self",(char *) "param", NULL
7575 };
7576
7577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) SWIG_fail;
7578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7581 }
7582 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7583 {
7584 arg2 = wxString_in_helper(obj1);
7585 if (arg2 == NULL) SWIG_fail;
7586 temp2 = true;
7587 }
7588 {
7589 PyThreadState* __tstate = wxPyBeginAllowThreads();
7590 result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2);
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
7595 {
7596 if (temp2)
7597 delete arg2;
7598 }
7599 return resultobj;
7600 fail:
7601 {
7602 if (temp2)
7603 delete arg2;
7604 }
7605 return NULL;
7606 }
7607
7608
7609 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7610 PyObject *resultobj = 0;
7611 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7612 wxString *arg2 = 0 ;
7613 wxString result;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 bool temp2 = false ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 char * kwnames[] = {
7620 (char *) "self",(char *) "param", NULL
7621 };
7622
7623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) SWIG_fail;
7624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7625 if (!SWIG_IsOK(res1)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7627 }
7628 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7629 {
7630 arg2 = wxString_in_helper(obj1);
7631 if (arg2 == NULL) SWIG_fail;
7632 temp2 = true;
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 result = (arg1)->GetParamValue((wxString const &)*arg2);
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 {
7641 #if wxUSE_UNICODE
7642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7643 #else
7644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7645 #endif
7646 }
7647 {
7648 if (temp2)
7649 delete arg2;
7650 }
7651 return resultobj;
7652 fail:
7653 {
7654 if (temp2)
7655 delete arg2;
7656 }
7657 return NULL;
7658 }
7659
7660
7661 SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj = 0;
7663 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7664 wxString *arg2 = 0 ;
7665 int arg3 ;
7666 void *argp1 = 0 ;
7667 int res1 = 0 ;
7668 bool temp2 = false ;
7669 int val3 ;
7670 int ecode3 = 0 ;
7671 PyObject * obj0 = 0 ;
7672 PyObject * obj1 = 0 ;
7673 PyObject * obj2 = 0 ;
7674 char * kwnames[] = {
7675 (char *) "self",(char *) "name",(char *) "value", NULL
7676 };
7677
7678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7680 if (!SWIG_IsOK(res1)) {
7681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7682 }
7683 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7684 {
7685 arg2 = wxString_in_helper(obj1);
7686 if (arg2 == NULL) SWIG_fail;
7687 temp2 = true;
7688 }
7689 ecode3 = SWIG_AsVal_int(obj2, &val3);
7690 if (!SWIG_IsOK(ecode3)) {
7691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'");
7692 }
7693 arg3 = static_cast< int >(val3);
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 (arg1)->AddStyle((wxString const &)*arg2,arg3);
7697 wxPyEndAllowThreads(__tstate);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 resultobj = SWIG_Py_Void();
7701 {
7702 if (temp2)
7703 delete arg2;
7704 }
7705 return resultobj;
7706 fail:
7707 {
7708 if (temp2)
7709 delete arg2;
7710 }
7711 return NULL;
7712 }
7713
7714
7715 SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7716 PyObject *resultobj = 0;
7717 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7718 void *argp1 = 0 ;
7719 int res1 = 0 ;
7720 PyObject *swig_obj[1] ;
7721
7722 if (!args) SWIG_fail;
7723 swig_obj[0] = args;
7724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7725 if (!SWIG_IsOK(res1)) {
7726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7727 }
7728 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 (arg1)->AddWindowStyles();
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_Py_Void();
7736 return resultobj;
7737 fail:
7738 return NULL;
7739 }
7740
7741
7742 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj = 0;
7744 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7745 wxString const &arg2_defvalue = wxPyStyleString ;
7746 wxString *arg2 = (wxString *) &arg2_defvalue ;
7747 int arg3 = (int) 0 ;
7748 int result;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 bool temp2 = false ;
7752 int val3 ;
7753 int ecode3 = 0 ;
7754 PyObject * obj0 = 0 ;
7755 PyObject * obj1 = 0 ;
7756 PyObject * obj2 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "self",(char *) "param",(char *) "defaults", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7765 }
7766 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7767 if (obj1) {
7768 {
7769 arg2 = wxString_in_helper(obj1);
7770 if (arg2 == NULL) SWIG_fail;
7771 temp2 = true;
7772 }
7773 }
7774 if (obj2) {
7775 ecode3 = SWIG_AsVal_int(obj2, &val3);
7776 if (!SWIG_IsOK(ecode3)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'");
7778 }
7779 arg3 = static_cast< int >(val3);
7780 }
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3);
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_From_int(static_cast< int >(result));
7788 {
7789 if (temp2)
7790 delete arg2;
7791 }
7792 return resultobj;
7793 fail:
7794 {
7795 if (temp2)
7796 delete arg2;
7797 }
7798 return NULL;
7799 }
7800
7801
7802 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj = 0;
7804 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7805 wxString *arg2 = 0 ;
7806 bool arg3 = (bool) true ;
7807 wxString result;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 bool temp2 = false ;
7811 bool val3 ;
7812 int ecode3 = 0 ;
7813 PyObject * obj0 = 0 ;
7814 PyObject * obj1 = 0 ;
7815 PyObject * obj2 = 0 ;
7816 char * kwnames[] = {
7817 (char *) "self",(char *) "param",(char *) "translate", NULL
7818 };
7819
7820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7822 if (!SWIG_IsOK(res1)) {
7823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7824 }
7825 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7826 {
7827 arg2 = wxString_in_helper(obj1);
7828 if (arg2 == NULL) SWIG_fail;
7829 temp2 = true;
7830 }
7831 if (obj2) {
7832 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7833 if (!SWIG_IsOK(ecode3)) {
7834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'");
7835 }
7836 arg3 = static_cast< bool >(val3);
7837 }
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (arg1)->GetText((wxString const &)*arg2,arg3);
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 {
7845 #if wxUSE_UNICODE
7846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7847 #else
7848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7849 #endif
7850 }
7851 {
7852 if (temp2)
7853 delete arg2;
7854 }
7855 return resultobj;
7856 fail:
7857 {
7858 if (temp2)
7859 delete arg2;
7860 }
7861 return NULL;
7862 }
7863
7864
7865 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7866 PyObject *resultobj = 0;
7867 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7868 int result;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871 PyObject *swig_obj[1] ;
7872
7873 if (!args) SWIG_fail;
7874 swig_obj[0] = args;
7875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7876 if (!SWIG_IsOK(res1)) {
7877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7878 }
7879 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = (int)(arg1)->GetID();
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_From_int(static_cast< int >(result));
7887 return resultobj;
7888 fail:
7889 return NULL;
7890 }
7891
7892
7893 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7894 PyObject *resultobj = 0;
7895 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7896 wxString result;
7897 void *argp1 = 0 ;
7898 int res1 = 0 ;
7899 PyObject *swig_obj[1] ;
7900
7901 if (!args) SWIG_fail;
7902 swig_obj[0] = args;
7903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7904 if (!SWIG_IsOK(res1)) {
7905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7906 }
7907 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7908 {
7909 PyThreadState* __tstate = wxPyBeginAllowThreads();
7910 result = (arg1)->GetName();
7911 wxPyEndAllowThreads(__tstate);
7912 if (PyErr_Occurred()) SWIG_fail;
7913 }
7914 {
7915 #if wxUSE_UNICODE
7916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7917 #else
7918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7919 #endif
7920 }
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj = 0;
7929 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7930 wxString *arg2 = 0 ;
7931 bool arg3 = (bool) false ;
7932 bool result;
7933 void *argp1 = 0 ;
7934 int res1 = 0 ;
7935 bool temp2 = false ;
7936 bool val3 ;
7937 int ecode3 = 0 ;
7938 PyObject * obj0 = 0 ;
7939 PyObject * obj1 = 0 ;
7940 PyObject * obj2 = 0 ;
7941 char * kwnames[] = {
7942 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7943 };
7944
7945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7947 if (!SWIG_IsOK(res1)) {
7948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7949 }
7950 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7951 {
7952 arg2 = wxString_in_helper(obj1);
7953 if (arg2 == NULL) SWIG_fail;
7954 temp2 = true;
7955 }
7956 if (obj2) {
7957 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7958 if (!SWIG_IsOK(ecode3)) {
7959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'");
7960 }
7961 arg3 = static_cast< bool >(val3);
7962 }
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3);
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 {
7970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7971 }
7972 {
7973 if (temp2)
7974 delete arg2;
7975 }
7976 return resultobj;
7977 fail:
7978 {
7979 if (temp2)
7980 delete arg2;
7981 }
7982 return NULL;
7983 }
7984
7985
7986 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj = 0;
7988 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7989 wxString *arg2 = 0 ;
7990 long arg3 = (long) 0 ;
7991 long result;
7992 void *argp1 = 0 ;
7993 int res1 = 0 ;
7994 bool temp2 = false ;
7995 long val3 ;
7996 int ecode3 = 0 ;
7997 PyObject * obj0 = 0 ;
7998 PyObject * obj1 = 0 ;
7999 PyObject * obj2 = 0 ;
8000 char * kwnames[] = {
8001 (char *) "self",(char *) "param",(char *) "defaultv", NULL
8002 };
8003
8004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8008 }
8009 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8010 {
8011 arg2 = wxString_in_helper(obj1);
8012 if (arg2 == NULL) SWIG_fail;
8013 temp2 = true;
8014 }
8015 if (obj2) {
8016 ecode3 = SWIG_AsVal_long(obj2, &val3);
8017 if (!SWIG_IsOK(ecode3)) {
8018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'");
8019 }
8020 arg3 = static_cast< long >(val3);
8021 }
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3);
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = SWIG_From_long(static_cast< long >(result));
8029 {
8030 if (temp2)
8031 delete arg2;
8032 }
8033 return resultobj;
8034 fail:
8035 {
8036 if (temp2)
8037 delete arg2;
8038 }
8039 return NULL;
8040 }
8041
8042
8043 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8044 PyObject *resultobj = 0;
8045 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8046 wxString *arg2 = 0 ;
8047 wxColour result;
8048 void *argp1 = 0 ;
8049 int res1 = 0 ;
8050 bool temp2 = false ;
8051 PyObject * obj0 = 0 ;
8052 PyObject * obj1 = 0 ;
8053 char * kwnames[] = {
8054 (char *) "self",(char *) "param", NULL
8055 };
8056
8057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) SWIG_fail;
8058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8059 if (!SWIG_IsOK(res1)) {
8060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8061 }
8062 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8063 {
8064 arg2 = wxString_in_helper(obj1);
8065 if (arg2 == NULL) SWIG_fail;
8066 temp2 = true;
8067 }
8068 {
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 result = (arg1)->GetColour((wxString const &)*arg2);
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
8075 {
8076 if (temp2)
8077 delete arg2;
8078 }
8079 return resultobj;
8080 fail:
8081 {
8082 if (temp2)
8083 delete arg2;
8084 }
8085 return NULL;
8086 }
8087
8088
8089 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = 0;
8091 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8092 wxString const &arg2_defvalue = wxPySizeString ;
8093 wxString *arg2 = (wxString *) &arg2_defvalue ;
8094 wxSize result;
8095 void *argp1 = 0 ;
8096 int res1 = 0 ;
8097 bool temp2 = false ;
8098 PyObject * obj0 = 0 ;
8099 PyObject * obj1 = 0 ;
8100 char * kwnames[] = {
8101 (char *) "self",(char *) "param", NULL
8102 };
8103
8104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8106 if (!SWIG_IsOK(res1)) {
8107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8108 }
8109 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8110 if (obj1) {
8111 {
8112 arg2 = wxString_in_helper(obj1);
8113 if (arg2 == NULL) SWIG_fail;
8114 temp2 = true;
8115 }
8116 }
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (arg1)->GetSize((wxString const &)*arg2);
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
8124 {
8125 if (temp2)
8126 delete arg2;
8127 }
8128 return resultobj;
8129 fail:
8130 {
8131 if (temp2)
8132 delete arg2;
8133 }
8134 return NULL;
8135 }
8136
8137
8138 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8139 PyObject *resultobj = 0;
8140 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8141 wxString const &arg2_defvalue = wxPyPosString ;
8142 wxString *arg2 = (wxString *) &arg2_defvalue ;
8143 wxPoint result;
8144 void *argp1 = 0 ;
8145 int res1 = 0 ;
8146 bool temp2 = false ;
8147 PyObject * obj0 = 0 ;
8148 PyObject * obj1 = 0 ;
8149 char * kwnames[] = {
8150 (char *) "self",(char *) "param", NULL
8151 };
8152
8153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
8154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8155 if (!SWIG_IsOK(res1)) {
8156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8157 }
8158 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8159 if (obj1) {
8160 {
8161 arg2 = wxString_in_helper(obj1);
8162 if (arg2 == NULL) SWIG_fail;
8163 temp2 = true;
8164 }
8165 }
8166 {
8167 PyThreadState* __tstate = wxPyBeginAllowThreads();
8168 result = (arg1)->GetPosition((wxString const &)*arg2);
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
8173 {
8174 if (temp2)
8175 delete arg2;
8176 }
8177 return resultobj;
8178 fail:
8179 {
8180 if (temp2)
8181 delete arg2;
8182 }
8183 return NULL;
8184 }
8185
8186
8187 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8188 PyObject *resultobj = 0;
8189 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8190 wxString *arg2 = 0 ;
8191 int arg3 = (int) 0 ;
8192 int result;
8193 void *argp1 = 0 ;
8194 int res1 = 0 ;
8195 bool temp2 = false ;
8196 int val3 ;
8197 int ecode3 = 0 ;
8198 PyObject * obj0 = 0 ;
8199 PyObject * obj1 = 0 ;
8200 PyObject * obj2 = 0 ;
8201 char * kwnames[] = {
8202 (char *) "self",(char *) "param",(char *) "defaultv", NULL
8203 };
8204
8205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8207 if (!SWIG_IsOK(res1)) {
8208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8209 }
8210 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8211 {
8212 arg2 = wxString_in_helper(obj1);
8213 if (arg2 == NULL) SWIG_fail;
8214 temp2 = true;
8215 }
8216 if (obj2) {
8217 ecode3 = SWIG_AsVal_int(obj2, &val3);
8218 if (!SWIG_IsOK(ecode3)) {
8219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'");
8220 }
8221 arg3 = static_cast< int >(val3);
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3);
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 resultobj = SWIG_From_int(static_cast< int >(result));
8230 {
8231 if (temp2)
8232 delete arg2;
8233 }
8234 return resultobj;
8235 fail:
8236 {
8237 if (temp2)
8238 delete arg2;
8239 }
8240 return NULL;
8241 }
8242
8243
8244 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj = 0;
8246 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8247 wxString const &arg2_defvalue = wxPyBitmapString ;
8248 wxString *arg2 = (wxString *) &arg2_defvalue ;
8249 wxArtClient const &arg3_defvalue = wxART_OTHER ;
8250 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
8251 wxSize arg4 = (wxSize) wxDefaultSize ;
8252 wxBitmap result;
8253 void *argp1 = 0 ;
8254 int res1 = 0 ;
8255 bool temp2 = false ;
8256 void *argp3 = 0 ;
8257 int res3 = 0 ;
8258 void *argp4 ;
8259 int res4 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 PyObject * obj2 = 0 ;
8263 PyObject * obj3 = 0 ;
8264 char * kwnames[] = {
8265 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
8266 };
8267
8268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8272 }
8273 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8274 if (obj1) {
8275 {
8276 arg2 = wxString_in_helper(obj1);
8277 if (arg2 == NULL) SWIG_fail;
8278 temp2 = true;
8279 }
8280 }
8281 if (obj2) {
8282 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0);
8283 if (!SWIG_IsOK(res3)) {
8284 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8285 }
8286 if (!argp3) {
8287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8288 }
8289 arg3 = reinterpret_cast< wxArtClient * >(argp3);
8290 }
8291 if (obj3) {
8292 {
8293 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0);
8294 if (!SWIG_IsOK(res4)) {
8295 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
8296 }
8297 if (!argp4) {
8298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
8299 } else {
8300 wxSize * temp = reinterpret_cast< wxSize * >(argp4);
8301 arg4 = *temp;
8302 if (SWIG_IsNewObj(res4)) delete temp;
8303 }
8304 }
8305 }
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8313 {
8314 if (temp2)
8315 delete arg2;
8316 }
8317 return resultobj;
8318 fail:
8319 {
8320 if (temp2)
8321 delete arg2;
8322 }
8323 return NULL;
8324 }
8325
8326
8327 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8328 PyObject *resultobj = 0;
8329 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8330 wxString const &arg2_defvalue = wxPyIconString ;
8331 wxString *arg2 = (wxString *) &arg2_defvalue ;
8332 wxArtClient const &arg3_defvalue = wxART_OTHER ;
8333 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
8334 wxSize arg4 = (wxSize) wxDefaultSize ;
8335 wxIcon result;
8336 void *argp1 = 0 ;
8337 int res1 = 0 ;
8338 bool temp2 = false ;
8339 void *argp3 = 0 ;
8340 int res3 = 0 ;
8341 void *argp4 ;
8342 int res4 = 0 ;
8343 PyObject * obj0 = 0 ;
8344 PyObject * obj1 = 0 ;
8345 PyObject * obj2 = 0 ;
8346 PyObject * obj3 = 0 ;
8347 char * kwnames[] = {
8348 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
8349 };
8350
8351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8353 if (!SWIG_IsOK(res1)) {
8354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8355 }
8356 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8357 if (obj1) {
8358 {
8359 arg2 = wxString_in_helper(obj1);
8360 if (arg2 == NULL) SWIG_fail;
8361 temp2 = true;
8362 }
8363 }
8364 if (obj2) {
8365 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0);
8366 if (!SWIG_IsOK(res3)) {
8367 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8368 }
8369 if (!argp3) {
8370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8371 }
8372 arg3 = reinterpret_cast< wxArtClient * >(argp3);
8373 }
8374 if (obj3) {
8375 {
8376 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0);
8377 if (!SWIG_IsOK(res4)) {
8378 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8379 }
8380 if (!argp4) {
8381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8382 } else {
8383 wxSize * temp = reinterpret_cast< wxSize * >(argp4);
8384 arg4 = *temp;
8385 if (SWIG_IsNewObj(res4)) delete temp;
8386 }
8387 }
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8396 {
8397 if (temp2)
8398 delete arg2;
8399 }
8400 return resultobj;
8401 fail:
8402 {
8403 if (temp2)
8404 delete arg2;
8405 }
8406 return NULL;
8407 }
8408
8409
8410 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj = 0;
8412 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8413 wxString const &arg2_defvalue = wxPyFontString ;
8414 wxString *arg2 = (wxString *) &arg2_defvalue ;
8415 wxFont result;
8416 void *argp1 = 0 ;
8417 int res1 = 0 ;
8418 bool temp2 = false ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 char * kwnames[] = {
8422 (char *) "self",(char *) "param", NULL
8423 };
8424
8425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
8426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8427 if (!SWIG_IsOK(res1)) {
8428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8429 }
8430 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8431 if (obj1) {
8432 {
8433 arg2 = wxString_in_helper(obj1);
8434 if (arg2 == NULL) SWIG_fail;
8435 temp2 = true;
8436 }
8437 }
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (arg1)->GetFont((wxString const &)*arg2);
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
8445 {
8446 if (temp2)
8447 delete arg2;
8448 }
8449 return resultobj;
8450 fail:
8451 {
8452 if (temp2)
8453 delete arg2;
8454 }
8455 return NULL;
8456 }
8457
8458
8459 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetAnimation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj = 0;
8461 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8462 wxString const &arg2_defvalue = wxPyAnimationString ;
8463 wxString *arg2 = (wxString *) &arg2_defvalue ;
8464 wxAnimation result;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 bool temp2 = false ;
8468 PyObject * obj0 = 0 ;
8469 PyObject * obj1 = 0 ;
8470 char * kwnames[] = {
8471 (char *) "self",(char *) "param", NULL
8472 };
8473
8474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetAnimation",kwnames,&obj0,&obj1)) SWIG_fail;
8475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8476 if (!SWIG_IsOK(res1)) {
8477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetAnimation" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8478 }
8479 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8480 if (obj1) {
8481 {
8482 arg2 = wxString_in_helper(obj1);
8483 if (arg2 == NULL) SWIG_fail;
8484 temp2 = true;
8485 }
8486 }
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 result = (arg1)->GetAnimation((wxString const &)*arg2);
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 resultobj = SWIG_NewPointerObj((new wxAnimation(static_cast< const wxAnimation& >(result))), SWIGTYPE_p_wxAnimation, SWIG_POINTER_OWN | 0 );
8494 {
8495 if (temp2)
8496 delete arg2;
8497 }
8498 return resultobj;
8499 fail:
8500 {
8501 if (temp2)
8502 delete arg2;
8503 }
8504 return NULL;
8505 }
8506
8507
8508 SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8509 PyObject *resultobj = 0;
8510 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8511 wxWindow *arg2 = (wxWindow *) 0 ;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 void *argp2 = 0 ;
8515 int res2 = 0 ;
8516 PyObject * obj0 = 0 ;
8517 PyObject * obj1 = 0 ;
8518 char * kwnames[] = {
8519 (char *) "self",(char *) "wnd", NULL
8520 };
8521
8522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) SWIG_fail;
8523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8524 if (!SWIG_IsOK(res1)) {
8525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8526 }
8527 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8529 if (!SWIG_IsOK(res2)) {
8530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
8531 }
8532 arg2 = reinterpret_cast< wxWindow * >(argp2);
8533 {
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 (arg1)->SetupWindow(arg2);
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_Py_Void();
8540 return resultobj;
8541 fail:
8542 return NULL;
8543 }
8544
8545
8546 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj = 0;
8548 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8549 wxObject *arg2 = (wxObject *) 0 ;
8550 bool arg3 = (bool) false ;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 void *argp2 = 0 ;
8554 int res2 = 0 ;
8555 bool val3 ;
8556 int ecode3 = 0 ;
8557 PyObject * obj0 = 0 ;
8558 PyObject * obj1 = 0 ;
8559 PyObject * obj2 = 0 ;
8560 char * kwnames[] = {
8561 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
8562 };
8563
8564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8566 if (!SWIG_IsOK(res1)) {
8567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8568 }
8569 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
8571 if (!SWIG_IsOK(res2)) {
8572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'");
8573 }
8574 arg2 = reinterpret_cast< wxObject * >(argp2);
8575 if (obj2) {
8576 ecode3 = SWIG_AsVal_bool(obj2, &val3);
8577 if (!SWIG_IsOK(ecode3)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'");
8579 }
8580 arg3 = static_cast< bool >(val3);
8581 }
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 (arg1)->CreateChildren(arg2,arg3);
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = SWIG_Py_Void();
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj = 0;
8597 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8598 wxObject *arg2 = (wxObject *) 0 ;
8599 wxXmlNode *arg3 = (wxXmlNode *) NULL ;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 void *argp2 = 0 ;
8603 int res2 = 0 ;
8604 void *argp3 = 0 ;
8605 int res3 = 0 ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 PyObject * obj2 = 0 ;
8609 char * kwnames[] = {
8610 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
8611 };
8612
8613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8615 if (!SWIG_IsOK(res1)) {
8616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8617 }
8618 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
8620 if (!SWIG_IsOK(res2)) {
8621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'");
8622 }
8623 arg2 = reinterpret_cast< wxObject * >(argp2);
8624 if (obj2) {
8625 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 );
8626 if (!SWIG_IsOK(res3)) {
8627 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'");
8628 }
8629 arg3 = reinterpret_cast< wxXmlNode * >(argp3);
8630 }
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 (arg1)->CreateChildrenPrivately(arg2,arg3);
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 resultobj = SWIG_Py_Void();
8638 return resultobj;
8639 fail:
8640 return NULL;
8641 }
8642
8643
8644 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8645 PyObject *resultobj = 0;
8646 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8647 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
8648 wxObject *arg3 = (wxObject *) 0 ;
8649 wxObject *arg4 = (wxObject *) NULL ;
8650 wxObject *result = 0 ;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 void *argp2 = 0 ;
8654 int res2 = 0 ;
8655 void *argp3 = 0 ;
8656 int res3 = 0 ;
8657 void *argp4 = 0 ;
8658 int res4 = 0 ;
8659 PyObject * obj0 = 0 ;
8660 PyObject * obj1 = 0 ;
8661 PyObject * obj2 = 0 ;
8662 PyObject * obj3 = 0 ;
8663 char * kwnames[] = {
8664 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
8665 };
8666
8667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8669 if (!SWIG_IsOK(res1)) {
8670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8671 }
8672 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
8674 if (!SWIG_IsOK(res2)) {
8675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'");
8676 }
8677 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
8678 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 );
8679 if (!SWIG_IsOK(res3)) {
8680 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'");
8681 }
8682 arg3 = reinterpret_cast< wxObject * >(argp3);
8683 if (obj3) {
8684 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 );
8685 if (!SWIG_IsOK(res4)) {
8686 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'");
8687 }
8688 arg4 = reinterpret_cast< wxObject * >(argp4);
8689 }
8690 {
8691 PyThreadState* __tstate = wxPyBeginAllowThreads();
8692 result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4);
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 {
8697 resultobj = wxPyMake_wxObject(result, (bool)0);
8698 }
8699 return resultobj;
8700 fail:
8701 return NULL;
8702 }
8703
8704
8705 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8706 PyObject *resultobj = 0;
8707 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8708 wxFileSystem *result = 0 ;
8709 void *argp1 = 0 ;
8710 int res1 = 0 ;
8711 PyObject *swig_obj[1] ;
8712
8713 if (!args) SWIG_fail;
8714 swig_obj[0] = args;
8715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8716 if (!SWIG_IsOK(res1)) {
8717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8718 }
8719 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 {
8723 wxFileSystem &_result_ref = (arg1)->GetCurFileSystem();
8724 result = (wxFileSystem *) &_result_ref;
8725 }
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 );
8730 return resultobj;
8731 fail:
8732 return NULL;
8733 }
8734
8735
8736 SWIGINTERN PyObject *XmlResourceHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8737 PyObject *obj;
8738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8739 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_NewClientData(obj));
8740 return SWIG_Py_Void();
8741 }
8742
8743 SWIGINTERN PyObject *XmlResourceHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8744 return SWIG_Python_InitShadowInstance(args);
8745 }
8746
8747 static PyMethodDef SwigMethods[] = {
8748 { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
8749 { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
8750 { (char *)"delete_XmlResource", (PyCFunction)_wrap_delete_XmlResource, METH_O, NULL},
8751 { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL},
8752 { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL},
8753 { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL},
8754 { (char *)"XmlResource_InitAllHandlers", (PyCFunction)_wrap_XmlResource_InitAllHandlers, METH_O, NULL},
8755 { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
8756 { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
8757 { (char *)"XmlResource_ClearHandlers", (PyCFunction)_wrap_XmlResource_ClearHandlers, METH_O, NULL},
8758 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL},
8759 { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL},
8760 { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
8761 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8762 { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
8763 { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL},
8764 { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL},
8765 { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL},
8766 { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL},
8767 { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8768 { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8769 { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL},
8770 { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL},
8771 { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
8772 { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL},
8773 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL},
8774 { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL},
8775 { (char *)"XmlResource_GetVersion", (PyCFunction)_wrap_XmlResource_GetVersion, METH_O, NULL},
8776 { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL},
8777 { (char *)"XmlResource_Get", (PyCFunction)_wrap_XmlResource_Get, METH_NOARGS, NULL},
8778 { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL},
8779 { (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL},
8780 { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
8781 { (char *)"XmlResource_GetDomain", (PyCFunction)_wrap_XmlResource_GetDomain, METH_O, NULL},
8782 { (char *)"XmlResource_SetDomain", (PyCFunction) _wrap_XmlResource_SetDomain, METH_VARARGS | METH_KEYWORDS, NULL},
8783 { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL},
8784 { (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL},
8785 { (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL},
8786 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
8787 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL},
8788 { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit, METH_VARARGS, NULL},
8789 { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8790 { (char *)"XmlProperty_GetName", (PyCFunction)_wrap_XmlProperty_GetName, METH_O, NULL},
8791 { (char *)"XmlProperty_GetValue", (PyCFunction)_wrap_XmlProperty_GetValue, METH_O, NULL},
8792 { (char *)"XmlProperty_GetNext", (PyCFunction)_wrap_XmlProperty_GetNext, METH_O, NULL},
8793 { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
8794 { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
8795 { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
8796 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL},
8797 { (char *)"XmlProperty_swiginit", XmlProperty_swiginit, METH_VARARGS, NULL},
8798 { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL},
8799 { (char *)"delete_XmlNode", (PyCFunction)_wrap_delete_XmlNode, METH_O, NULL},
8800 { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL},
8801 { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
8802 { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL},
8803 { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
8804 { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8805 { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL},
8806 { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8807 { (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL},
8808 { (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL},
8809 { (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL},
8810 { (char *)"XmlNode_IsWhitespaceOnly", (PyCFunction)_wrap_XmlNode_IsWhitespaceOnly, METH_O, NULL},
8811 { (char *)"XmlNode_GetDepth", (PyCFunction) _wrap_XmlNode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
8812 { (char *)"XmlNode_GetNodeContent", (PyCFunction)_wrap_XmlNode_GetNodeContent, METH_O, NULL},
8813 { (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL},
8814 { (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL},
8815 { (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL},
8816 { (char *)"XmlNode_GetProperties", (PyCFunction)_wrap_XmlNode_GetProperties, METH_O, NULL},
8817 { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL},
8818 { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL},
8819 { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
8820 { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
8821 { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL},
8822 { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
8823 { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
8824 { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
8825 { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL},
8826 { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL},
8827 { (char *)"XmlNode_swiginit", XmlNode_swiginit, METH_VARARGS, NULL},
8828 { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL},
8829 { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
8830 { (char *)"new_EmptyXmlDocument", (PyCFunction)_wrap_new_EmptyXmlDocument, METH_NOARGS, NULL},
8831 { (char *)"delete_XmlDocument", (PyCFunction)_wrap_delete_XmlDocument, METH_O, NULL},
8832 { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL},
8833 { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
8834 { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL},
8835 { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL},
8836 { (char *)"XmlDocument_IsOk", (PyCFunction)_wrap_XmlDocument_IsOk, METH_O, NULL},
8837 { (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL},
8838 { (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL},
8839 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL},
8840 { (char *)"XmlDocument_DetachRoot", (PyCFunction)_wrap_XmlDocument_DetachRoot, METH_O, NULL},
8841 { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL},
8842 { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
8843 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
8844 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL},
8845 { (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL},
8846 { (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL},
8847 { (char *)"delete_XmlResourceHandler", (PyCFunction)_wrap_delete_XmlResourceHandler, METH_O, NULL},
8848 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
8849 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL},
8850 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL},
8851 { (char *)"XmlResourceHandler_GetResource", (PyCFunction)_wrap_XmlResourceHandler_GetResource, METH_O, NULL},
8852 { (char *)"XmlResourceHandler_GetNode", (PyCFunction)_wrap_XmlResourceHandler_GetNode, METH_O, NULL},
8853 { (char *)"XmlResourceHandler_GetClass", (PyCFunction)_wrap_XmlResourceHandler_GetClass, METH_O, NULL},
8854 { (char *)"XmlResourceHandler_GetParent", (PyCFunction)_wrap_XmlResourceHandler_GetParent, METH_O, NULL},
8855 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction)_wrap_XmlResourceHandler_GetInstance, METH_O, NULL},
8856 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction)_wrap_XmlResourceHandler_GetParentAsWindow, METH_O, NULL},
8857 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL},
8858 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL},
8859 { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL},
8860 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL},
8861 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL},
8862 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL},
8863 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction)_wrap_XmlResourceHandler_AddWindowStyles, METH_O, NULL},
8864 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
8865 { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
8866 { (char *)"XmlResourceHandler_GetID", (PyCFunction)_wrap_XmlResourceHandler_GetID, METH_O, NULL},
8867 { (char *)"XmlResourceHandler_GetName", (PyCFunction)_wrap_XmlResourceHandler_GetName, METH_O, NULL},
8868 { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL},
8869 { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL},
8870 { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
8871 { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8872 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
8873 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
8874 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
8875 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
8876 { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
8877 { (char *)"XmlResourceHandler_GetAnimation", (PyCFunction) _wrap_XmlResourceHandler_GetAnimation, METH_VARARGS | METH_KEYWORDS, NULL},
8878 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL},
8879 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL},
8880 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL},
8881 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL},
8882 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction)_wrap_XmlResourceHandler_GetCurFileSystem, METH_O, NULL},
8883 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL},
8884 { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit, METH_VARARGS, NULL},
8885 { NULL, NULL, 0, NULL }
8886 };
8887
8888
8889 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8890
8891 static void *_p_wxControlTo_p_wxWindow(void *x) {
8892 return (void *)((wxWindow *) ((wxControl *) x));
8893 }
8894 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
8895 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
8896 }
8897 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
8898 return (void *)((wxWindow *) ((wxMenuBar *) x));
8899 }
8900 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
8901 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
8902 }
8903 static void *_p_wxXmlDocumentTo_p_wxObject(void *x) {
8904 return (void *)((wxObject *) ((wxXmlDocument *) x));
8905 }
8906 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
8907 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
8908 }
8909 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
8910 return (void *)((wxObject *) ((wxSizerItem *) x));
8911 }
8912 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
8913 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
8914 }
8915 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
8916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
8917 }
8918 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
8919 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
8920 }
8921 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
8922 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
8923 }
8924 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
8925 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
8926 }
8927 static void *_p_wxSizerTo_p_wxObject(void *x) {
8928 return (void *)((wxObject *) ((wxSizer *) x));
8929 }
8930 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
8931 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
8932 }
8933 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
8934 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
8935 }
8936 static void *_p_wxEventTo_p_wxObject(void *x) {
8937 return (void *)((wxObject *) ((wxEvent *) x));
8938 }
8939 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
8940 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
8941 }
8942 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
8943 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
8944 }
8945 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
8946 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
8947 }
8948 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
8949 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
8950 }
8951 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
8952 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
8953 }
8954 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
8955 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
8956 }
8957 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
8958 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
8959 }
8960 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
8961 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
8962 }
8963 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
8964 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
8965 }
8966 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
8967 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
8968 }
8969 static void *_p_wxControlTo_p_wxObject(void *x) {
8970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
8971 }
8972 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
8973 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
8974 }
8975 static void *_p_wxFSFileTo_p_wxObject(void *x) {
8976 return (void *)((wxObject *) ((wxFSFile *) x));
8977 }
8978 static void *_p_wxPySizerTo_p_wxObject(void *x) {
8979 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
8980 }
8981 static void *_p_wxPyEventTo_p_wxObject(void *x) {
8982 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
8983 }
8984 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
8985 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
8986 }
8987 static void *_p_wxShowEventTo_p_wxObject(void *x) {
8988 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
8989 }
8990 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
8991 return (void *)((wxObject *) ((wxMenuItem *) x));
8992 }
8993 static void *_p_wxDateEventTo_p_wxObject(void *x) {
8994 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
8995 }
8996 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
8997 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
8998 }
8999 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
9000 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
9001 }
9002 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
9003 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
9004 }
9005 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
9006 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
9007 }
9008 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
9009 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
9010 }
9011 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
9012 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
9013 }
9014 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
9015 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
9016 }
9017 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
9018 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
9019 }
9020 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
9021 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
9022 }
9023 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
9024 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
9025 }
9026 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
9027 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
9028 }
9029 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
9030 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
9031 }
9032 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
9033 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
9034 }
9035 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
9036 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
9037 }
9038 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
9039 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
9040 }
9041 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
9042 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
9043 }
9044 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
9045 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
9046 }
9047 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
9048 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
9049 }
9050 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
9051 return (void *)((wxObject *) ((wxImageHandler *) x));
9052 }
9053 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
9054 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
9055 }
9056 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
9057 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
9058 }
9059 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
9060 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
9061 }
9062 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
9063 return (void *)((wxObject *) ((wxEvtHandler *) x));
9064 }
9065 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
9066 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
9067 }
9068 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) {
9069 return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x));
9070 }
9071 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
9072 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
9073 }
9074 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
9075 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
9076 }
9077 static void *_p_wxImageTo_p_wxObject(void *x) {
9078 return (void *)((wxObject *) ((wxImage *) x));
9079 }
9080 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
9081 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
9082 }
9083 static void *_p_wxXmlResourceTo_p_wxObject(void *x) {
9084 return (void *)((wxObject *) ((wxXmlResource *) x));
9085 }
9086 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
9087 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
9088 }
9089 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
9090 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
9091 }
9092 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
9093 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
9094 }
9095 static void *_p_wxWindowTo_p_wxObject(void *x) {
9096 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
9097 }
9098 static void *_p_wxMenuTo_p_wxObject(void *x) {
9099 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
9100 }
9101 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
9102 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
9103 }
9104 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
9105 return (void *)((wxObject *) ((wxFileSystem *) x));
9106 }
9107 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
9108 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
9109 }
9110 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
9111 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
9112 }
9113 static void *_p_wxPyAppTo_p_wxObject(void *x) {
9114 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
9115 }
9116 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
9117 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
9118 }
9119 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
9120 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
9121 }
9122 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
9123 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
9124 }
9125 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
9126 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
9127 }
9128 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
9129 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
9130 }
9131 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
9132 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
9133 }
9134 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
9135 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
9136 }
9137 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
9138 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
9139 }
9140 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
9141 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
9142 }
9143 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
9144 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
9145 }
9146 static void *_p_wxValidatorTo_p_wxObject(void *x) {
9147 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
9148 }
9149 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
9150 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
9151 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
9152 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
9153 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
9154 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
9155 static swig_type_info _swigt__p_wxAnimation = {"_p_wxAnimation", "wxAnimation *", 0, 0, (void*)0, 0};
9156 static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0};
9157 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
9158 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
9159 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0};
9160 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
9161 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
9162 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
9163 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
9164 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
9165 static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
9166 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
9167 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
9168 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
9169 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
9170 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
9171 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
9172 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
9173 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
9174 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
9175 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
9176 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
9177 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
9178 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
9179 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
9180 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
9181 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
9182 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
9183 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
9184 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
9185 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
9186 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
9187 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
9188 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
9189 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
9190 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
9191 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
9192 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
9193 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
9194 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
9195 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
9196 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
9197 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
9198 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
9199 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
9200 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
9201 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
9202 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
9203 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
9204 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
9205 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
9206 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
9207 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
9208 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
9209 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
9210 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
9211 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
9212 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
9213 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
9214 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
9215 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
9216 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
9217 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
9218 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
9219 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
9220 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
9221 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
9222 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
9223 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
9224 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
9225 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
9226 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
9227 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
9228 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
9229 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
9230 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
9231 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
9232 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
9233 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
9234 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
9235 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
9236 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
9237 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
9238 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
9239 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
9240 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
9241 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
9242 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
9243 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
9244 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
9245 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
9246 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
9247 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
9248 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
9249 static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0};
9250 static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0};
9251 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
9252 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
9253 static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0};
9254 static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0};
9255 static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0};
9256 static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0};
9257
9258 static swig_type_info *swig_type_initial[] = {
9259 &_swigt__p_char,
9260 &_swigt__p_form_ops_t,
9261 &_swigt__p_int,
9262 &_swigt__p_unsigned_char,
9263 &_swigt__p_unsigned_int,
9264 &_swigt__p_unsigned_long,
9265 &_swigt__p_wxANIHandler,
9266 &_swigt__p_wxAcceleratorTable,
9267 &_swigt__p_wxActivateEvent,
9268 &_swigt__p_wxAnimation,
9269 &_swigt__p_wxArtClient,
9270 &_swigt__p_wxBMPHandler,
9271 &_swigt__p_wxBitmap,
9272 &_swigt__p_wxBoxSizer,
9273 &_swigt__p_wxCURHandler,
9274 &_swigt__p_wxChildFocusEvent,
9275 &_swigt__p_wxClipboardTextEvent,
9276 &_swigt__p_wxCloseEvent,
9277 &_swigt__p_wxColour,
9278 &_swigt__p_wxCommandEvent,
9279 &_swigt__p_wxContextMenuEvent,
9280 &_swigt__p_wxControl,
9281 &_swigt__p_wxControlWithItems,
9282 &_swigt__p_wxDateEvent,
9283 &_swigt__p_wxDialog,
9284 &_swigt__p_wxDisplayChangedEvent,
9285 &_swigt__p_wxDropFilesEvent,
9286 &_swigt__p_wxDuplexMode,
9287 &_swigt__p_wxEraseEvent,
9288 &_swigt__p_wxEvent,
9289 &_swigt__p_wxEventBlocker,
9290 &_swigt__p_wxEvtHandler,
9291 &_swigt__p_wxFSFile,
9292 &_swigt__p_wxFileSystem,
9293 &_swigt__p_wxFlexGridSizer,
9294 &_swigt__p_wxFocusEvent,
9295 &_swigt__p_wxFont,
9296 &_swigt__p_wxFrame,
9297 &_swigt__p_wxGBSizerItem,
9298 &_swigt__p_wxGIFHandler,
9299 &_swigt__p_wxGridBagSizer,
9300 &_swigt__p_wxGridSizer,
9301 &_swigt__p_wxICOHandler,
9302 &_swigt__p_wxIcon,
9303 &_swigt__p_wxIconizeEvent,
9304 &_swigt__p_wxIdleEvent,
9305 &_swigt__p_wxImage,
9306 &_swigt__p_wxImageHandler,
9307 &_swigt__p_wxIndividualLayoutConstraint,
9308 &_swigt__p_wxInitDialogEvent,
9309 &_swigt__p_wxInputStream,
9310 &_swigt__p_wxJPEGHandler,
9311 &_swigt__p_wxKeyEvent,
9312 &_swigt__p_wxLayoutConstraints,
9313 &_swigt__p_wxMaximizeEvent,
9314 &_swigt__p_wxMenu,
9315 &_swigt__p_wxMenuBar,
9316 &_swigt__p_wxMenuEvent,
9317 &_swigt__p_wxMenuItem,
9318 &_swigt__p_wxMouseCaptureChangedEvent,
9319 &_swigt__p_wxMouseCaptureLostEvent,
9320 &_swigt__p_wxMouseEvent,
9321 &_swigt__p_wxMoveEvent,
9322 &_swigt__p_wxNavigationKeyEvent,
9323 &_swigt__p_wxNcPaintEvent,
9324 &_swigt__p_wxNotifyEvent,
9325 &_swigt__p_wxObject,
9326 &_swigt__p_wxOutputStream,
9327 &_swigt__p_wxPCXHandler,
9328 &_swigt__p_wxPNGHandler,
9329 &_swigt__p_wxPNMHandler,
9330 &_swigt__p_wxPaintEvent,
9331 &_swigt__p_wxPaletteChangedEvent,
9332 &_swigt__p_wxPanel,
9333 &_swigt__p_wxPaperSize,
9334 &_swigt__p_wxPoint,
9335 &_swigt__p_wxPyApp,
9336 &_swigt__p_wxPyCommandEvent,
9337 &_swigt__p_wxPyEvent,
9338 &_swigt__p_wxPyImageHandler,
9339 &_swigt__p_wxPySizer,
9340 &_swigt__p_wxPyValidator,
9341 &_swigt__p_wxPyXmlResourceHandler,
9342 &_swigt__p_wxPyXmlSubclassFactory,
9343 &_swigt__p_wxQueryNewPaletteEvent,
9344 &_swigt__p_wxScrollEvent,
9345 &_swigt__p_wxScrollWinEvent,
9346 &_swigt__p_wxSetCursorEvent,
9347 &_swigt__p_wxShowEvent,
9348 &_swigt__p_wxSize,
9349 &_swigt__p_wxSizeEvent,
9350 &_swigt__p_wxSizer,
9351 &_swigt__p_wxSizerItem,
9352 &_swigt__p_wxStaticBoxSizer,
9353 &_swigt__p_wxStdDialogButtonSizer,
9354 &_swigt__p_wxSysColourChangedEvent,
9355 &_swigt__p_wxTGAHandler,
9356 &_swigt__p_wxTIFFHandler,
9357 &_swigt__p_wxUpdateUIEvent,
9358 &_swigt__p_wxValidator,
9359 &_swigt__p_wxWindow,
9360 &_swigt__p_wxWindowCreateEvent,
9361 &_swigt__p_wxWindowDestroyEvent,
9362 &_swigt__p_wxXPMHandler,
9363 &_swigt__p_wxXmlDocument,
9364 &_swigt__p_wxXmlNode,
9365 &_swigt__p_wxXmlProperty,
9366 &_swigt__p_wxXmlResource,
9367 };
9368
9369 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
9370 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
9371 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
9372 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
9373 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
9374 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
9375 static swig_cast_info _swigc__p_wxAnimation[] = { {&_swigt__p_wxAnimation, 0, 0, 0},{0, 0, 0, 0}};
9376 static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}};
9377 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
9378 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
9379 static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
9380 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
9381 static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
9382 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
9383 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
9384 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
9385 static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
9386 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
9387 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
9388 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
9389 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
9390 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
9391 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
9392 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
9393 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
9394 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
9395 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
9396 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
9397 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
9398 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
9399 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
9400 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
9401 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
9402 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
9403 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
9404 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
9405 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9406 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9407 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9408 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9409 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
9410 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
9411 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
9412 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
9413 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
9414 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
9415 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
9416 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
9417 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
9418 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
9419 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
9420 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
9421 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9422 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9423 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9424 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
9425 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
9426 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
9427 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
9428 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
9429 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
9430 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
9431 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
9432 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
9433 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
9434 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
9435 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
9436 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
9437 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
9438 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
9439 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
9440 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
9441 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
9442 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
9443 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
9444 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
9445 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
9446 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
9447 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
9448 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
9449 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
9450 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
9451 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
9452 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
9453 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
9454 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
9455 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
9456 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
9457 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
9458 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
9459 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
9460 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
9461 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
9462 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
9463 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
9464 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_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_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_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler, _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_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}};
9465 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
9466 static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}};
9467 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
9468 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
9469 static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}};
9470 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}};
9471 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
9472 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}};
9473 static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}};
9474 static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}};
9475 static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}};
9476 static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}};
9477
9478 static swig_cast_info *swig_cast_initial[] = {
9479 _swigc__p_char,
9480 _swigc__p_form_ops_t,
9481 _swigc__p_int,
9482 _swigc__p_unsigned_char,
9483 _swigc__p_unsigned_int,
9484 _swigc__p_unsigned_long,
9485 _swigc__p_wxANIHandler,
9486 _swigc__p_wxAcceleratorTable,
9487 _swigc__p_wxActivateEvent,
9488 _swigc__p_wxAnimation,
9489 _swigc__p_wxArtClient,
9490 _swigc__p_wxBMPHandler,
9491 _swigc__p_wxBitmap,
9492 _swigc__p_wxBoxSizer,
9493 _swigc__p_wxCURHandler,
9494 _swigc__p_wxChildFocusEvent,
9495 _swigc__p_wxClipboardTextEvent,
9496 _swigc__p_wxCloseEvent,
9497 _swigc__p_wxColour,
9498 _swigc__p_wxCommandEvent,
9499 _swigc__p_wxContextMenuEvent,
9500 _swigc__p_wxControl,
9501 _swigc__p_wxControlWithItems,
9502 _swigc__p_wxDateEvent,
9503 _swigc__p_wxDialog,
9504 _swigc__p_wxDisplayChangedEvent,
9505 _swigc__p_wxDropFilesEvent,
9506 _swigc__p_wxDuplexMode,
9507 _swigc__p_wxEraseEvent,
9508 _swigc__p_wxEvent,
9509 _swigc__p_wxEventBlocker,
9510 _swigc__p_wxEvtHandler,
9511 _swigc__p_wxFSFile,
9512 _swigc__p_wxFileSystem,
9513 _swigc__p_wxFlexGridSizer,
9514 _swigc__p_wxFocusEvent,
9515 _swigc__p_wxFont,
9516 _swigc__p_wxFrame,
9517 _swigc__p_wxGBSizerItem,
9518 _swigc__p_wxGIFHandler,
9519 _swigc__p_wxGridBagSizer,
9520 _swigc__p_wxGridSizer,
9521 _swigc__p_wxICOHandler,
9522 _swigc__p_wxIcon,
9523 _swigc__p_wxIconizeEvent,
9524 _swigc__p_wxIdleEvent,
9525 _swigc__p_wxImage,
9526 _swigc__p_wxImageHandler,
9527 _swigc__p_wxIndividualLayoutConstraint,
9528 _swigc__p_wxInitDialogEvent,
9529 _swigc__p_wxInputStream,
9530 _swigc__p_wxJPEGHandler,
9531 _swigc__p_wxKeyEvent,
9532 _swigc__p_wxLayoutConstraints,
9533 _swigc__p_wxMaximizeEvent,
9534 _swigc__p_wxMenu,
9535 _swigc__p_wxMenuBar,
9536 _swigc__p_wxMenuEvent,
9537 _swigc__p_wxMenuItem,
9538 _swigc__p_wxMouseCaptureChangedEvent,
9539 _swigc__p_wxMouseCaptureLostEvent,
9540 _swigc__p_wxMouseEvent,
9541 _swigc__p_wxMoveEvent,
9542 _swigc__p_wxNavigationKeyEvent,
9543 _swigc__p_wxNcPaintEvent,
9544 _swigc__p_wxNotifyEvent,
9545 _swigc__p_wxObject,
9546 _swigc__p_wxOutputStream,
9547 _swigc__p_wxPCXHandler,
9548 _swigc__p_wxPNGHandler,
9549 _swigc__p_wxPNMHandler,
9550 _swigc__p_wxPaintEvent,
9551 _swigc__p_wxPaletteChangedEvent,
9552 _swigc__p_wxPanel,
9553 _swigc__p_wxPaperSize,
9554 _swigc__p_wxPoint,
9555 _swigc__p_wxPyApp,
9556 _swigc__p_wxPyCommandEvent,
9557 _swigc__p_wxPyEvent,
9558 _swigc__p_wxPyImageHandler,
9559 _swigc__p_wxPySizer,
9560 _swigc__p_wxPyValidator,
9561 _swigc__p_wxPyXmlResourceHandler,
9562 _swigc__p_wxPyXmlSubclassFactory,
9563 _swigc__p_wxQueryNewPaletteEvent,
9564 _swigc__p_wxScrollEvent,
9565 _swigc__p_wxScrollWinEvent,
9566 _swigc__p_wxSetCursorEvent,
9567 _swigc__p_wxShowEvent,
9568 _swigc__p_wxSize,
9569 _swigc__p_wxSizeEvent,
9570 _swigc__p_wxSizer,
9571 _swigc__p_wxSizerItem,
9572 _swigc__p_wxStaticBoxSizer,
9573 _swigc__p_wxStdDialogButtonSizer,
9574 _swigc__p_wxSysColourChangedEvent,
9575 _swigc__p_wxTGAHandler,
9576 _swigc__p_wxTIFFHandler,
9577 _swigc__p_wxUpdateUIEvent,
9578 _swigc__p_wxValidator,
9579 _swigc__p_wxWindow,
9580 _swigc__p_wxWindowCreateEvent,
9581 _swigc__p_wxWindowDestroyEvent,
9582 _swigc__p_wxXPMHandler,
9583 _swigc__p_wxXmlDocument,
9584 _swigc__p_wxXmlNode,
9585 _swigc__p_wxXmlProperty,
9586 _swigc__p_wxXmlResource,
9587 };
9588
9589
9590 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9591
9592 static swig_const_info swig_const_table[] = {
9593 {0, 0, 0, 0.0, 0, 0}};
9594
9595 #ifdef __cplusplus
9596 }
9597 #endif
9598 /* -----------------------------------------------------------------------------
9599 * Type initialization:
9600 * This problem is tough by the requirement that no dynamic
9601 * memory is used. Also, since swig_type_info structures store pointers to
9602 * swig_cast_info structures and swig_cast_info structures store pointers back
9603 * to swig_type_info structures, we need some lookup code at initialization.
9604 * The idea is that swig generates all the structures that are needed.
9605 * The runtime then collects these partially filled structures.
9606 * The SWIG_InitializeModule function takes these initial arrays out of
9607 * swig_module, and does all the lookup, filling in the swig_module.types
9608 * array with the correct data and linking the correct swig_cast_info
9609 * structures together.
9610 *
9611 * The generated swig_type_info structures are assigned staticly to an initial
9612 * array. We just loop though that array, and handle each type individually.
9613 * First we lookup if this type has been already loaded, and if so, use the
9614 * loaded structure instead of the generated one. Then we have to fill in the
9615 * cast linked list. The cast data is initially stored in something like a
9616 * two-dimensional array. Each row corresponds to a type (there are the same
9617 * number of rows as there are in the swig_type_initial array). Each entry in
9618 * a column is one of the swig_cast_info structures for that type.
9619 * The cast_initial array is actually an array of arrays, because each row has
9620 * a variable number of columns. So to actually build the cast linked list,
9621 * we find the array of casts associated with the type, and loop through it
9622 * adding the casts to the list. The one last trick we need to do is making
9623 * sure the type pointer in the swig_cast_info struct is correct.
9624 *
9625 * First off, we lookup the cast->type name to see if it is already loaded.
9626 * There are three cases to handle:
9627 * 1) If the cast->type has already been loaded AND the type we are adding
9628 * casting info to has not been loaded (it is in this module), THEN we
9629 * replace the cast->type pointer with the type pointer that has already
9630 * been loaded.
9631 * 2) If BOTH types (the one we are adding casting info to, and the
9632 * cast->type) are loaded, THEN the cast info has already been loaded by
9633 * the previous module so we just ignore it.
9634 * 3) Finally, if cast->type has not already been loaded, then we add that
9635 * swig_cast_info to the linked list (because the cast->type) pointer will
9636 * be correct.
9637 * ----------------------------------------------------------------------------- */
9638
9639 #ifdef __cplusplus
9640 extern "C" {
9641 #if 0
9642 } /* c-mode */
9643 #endif
9644 #endif
9645
9646 #if 0
9647 #define SWIGRUNTIME_DEBUG
9648 #endif
9649
9650 SWIGRUNTIME void
9651 SWIG_InitializeModule(void *clientdata) {
9652 size_t i;
9653 swig_module_info *module_head;
9654 static int init_run = 0;
9655
9656 clientdata = clientdata;
9657
9658 if (init_run) return;
9659 init_run = 1;
9660
9661 /* Initialize the swig_module */
9662 swig_module.type_initial = swig_type_initial;
9663 swig_module.cast_initial = swig_cast_initial;
9664
9665 /* Try and load any already created modules */
9666 module_head = SWIG_GetModule(clientdata);
9667 if (module_head) {
9668 swig_module.next = module_head->next;
9669 module_head->next = &swig_module;
9670 } else {
9671 /* This is the first module loaded */
9672 swig_module.next = &swig_module;
9673 SWIG_SetModule(clientdata, &swig_module);
9674 }
9675
9676 /* Now work on filling in swig_module.types */
9677 #ifdef SWIGRUNTIME_DEBUG
9678 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
9679 #endif
9680 for (i = 0; i < swig_module.size; ++i) {
9681 swig_type_info *type = 0;
9682 swig_type_info *ret;
9683 swig_cast_info *cast;
9684
9685 #ifdef SWIGRUNTIME_DEBUG
9686 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9687 #endif
9688
9689 /* if there is another module already loaded */
9690 if (swig_module.next != &swig_module) {
9691 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
9692 }
9693 if (type) {
9694 /* Overwrite clientdata field */
9695 #ifdef SWIGRUNTIME_DEBUG
9696 printf("SWIG_InitializeModule: found type %s\n", type->name);
9697 #endif
9698 if (swig_module.type_initial[i]->clientdata) {
9699 type->clientdata = swig_module.type_initial[i]->clientdata;
9700 #ifdef SWIGRUNTIME_DEBUG
9701 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
9702 #endif
9703 }
9704 } else {
9705 type = swig_module.type_initial[i];
9706 }
9707
9708 /* Insert casting types */
9709 cast = swig_module.cast_initial[i];
9710 while (cast->type) {
9711 /* Don't need to add information already in the list */
9712 ret = 0;
9713 #ifdef SWIGRUNTIME_DEBUG
9714 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
9715 #endif
9716 if (swig_module.next != &swig_module) {
9717 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
9718 #ifdef SWIGRUNTIME_DEBUG
9719 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
9720 #endif
9721 }
9722 if (ret) {
9723 if (type == swig_module.type_initial[i]) {
9724 #ifdef SWIGRUNTIME_DEBUG
9725 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
9726 #endif
9727 cast->type = ret;
9728 ret = 0;
9729 } else {
9730 /* Check for casting already in the list */
9731 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
9732 #ifdef SWIGRUNTIME_DEBUG
9733 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
9734 #endif
9735 if (!ocast) ret = 0;
9736 }
9737 }
9738
9739 if (!ret) {
9740 #ifdef SWIGRUNTIME_DEBUG
9741 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
9742 #endif
9743 if (type->cast) {
9744 type->cast->prev = cast;
9745 cast->next = type->cast;
9746 }
9747 type->cast = cast;
9748 }
9749 cast++;
9750 }
9751 /* Set entry in modules->types array equal to the type */
9752 swig_module.types[i] = type;
9753 }
9754 swig_module.types[i] = 0;
9755
9756 #ifdef SWIGRUNTIME_DEBUG
9757 printf("**** SWIG_InitializeModule: Cast List ******\n");
9758 for (i = 0; i < swig_module.size; ++i) {
9759 int j = 0;
9760 swig_cast_info *cast = swig_module.cast_initial[i];
9761 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9762 while (cast->type) {
9763 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
9764 cast++;
9765 ++j;
9766 }
9767 printf("---- Total casts: %d\n",j);
9768 }
9769 printf("**** SWIG_InitializeModule: Cast List ******\n");
9770 #endif
9771 }
9772
9773 /* This function will propagate the clientdata field of type to
9774 * any new swig_type_info structures that have been added into the list
9775 * of equivalent types. It is like calling
9776 * SWIG_TypeClientData(type, clientdata) a second time.
9777 */
9778 SWIGRUNTIME void
9779 SWIG_PropagateClientData(void) {
9780 size_t i;
9781 swig_cast_info *equiv;
9782 static int init_run = 0;
9783
9784 if (init_run) return;
9785 init_run = 1;
9786
9787 for (i = 0; i < swig_module.size; i++) {
9788 if (swig_module.types[i]->clientdata) {
9789 equiv = swig_module.types[i]->cast;
9790 while (equiv) {
9791 if (!equiv->converter) {
9792 if (equiv->type && !equiv->type->clientdata)
9793 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
9794 }
9795 equiv = equiv->next;
9796 }
9797 }
9798 }
9799 }
9800
9801 #ifdef __cplusplus
9802 #if 0
9803 {
9804 /* c-mode */
9805 #endif
9806 }
9807 #endif
9808
9809
9810
9811 #ifdef __cplusplus
9812 extern "C" {
9813 #endif
9814
9815 /* Python-specific SWIG API */
9816 #define SWIG_newvarlink() SWIG_Python_newvarlink()
9817 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
9818 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
9819
9820 /* -----------------------------------------------------------------------------
9821 * global variable support code.
9822 * ----------------------------------------------------------------------------- */
9823
9824 typedef struct swig_globalvar {
9825 char *name; /* Name of global variable */
9826 PyObject *(*get_attr)(void); /* Return the current value */
9827 int (*set_attr)(PyObject *); /* Set the value */
9828 struct swig_globalvar *next;
9829 } swig_globalvar;
9830
9831 typedef struct swig_varlinkobject {
9832 PyObject_HEAD
9833 swig_globalvar *vars;
9834 } swig_varlinkobject;
9835
9836 SWIGINTERN PyObject *
9837 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
9838 return PyString_FromString("<Swig global variables>");
9839 }
9840
9841 SWIGINTERN PyObject *
9842 swig_varlink_str(swig_varlinkobject *v) {
9843 PyObject *str = PyString_FromString("(");
9844 swig_globalvar *var;
9845 for (var = v->vars; var; var=var->next) {
9846 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
9847 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
9848 }
9849 PyString_ConcatAndDel(&str,PyString_FromString(")"));
9850 return str;
9851 }
9852
9853 SWIGINTERN int
9854 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
9855 PyObject *str = swig_varlink_str(v);
9856 fprintf(fp,"Swig global variables ");
9857 fprintf(fp,"%s\n", PyString_AsString(str));
9858 Py_DECREF(str);
9859 return 0;
9860 }
9861
9862 SWIGINTERN void
9863 swig_varlink_dealloc(swig_varlinkobject *v) {
9864 swig_globalvar *var = v->vars;
9865 while (var) {
9866 swig_globalvar *n = var->next;
9867 free(var->name);
9868 free(var);
9869 var = n;
9870 }
9871 }
9872
9873 SWIGINTERN PyObject *
9874 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
9875 PyObject *res = NULL;
9876 swig_globalvar *var = v->vars;
9877 while (var) {
9878 if (strcmp(var->name,n) == 0) {
9879 res = (*var->get_attr)();
9880 break;
9881 }
9882 var = var->next;
9883 }
9884 if (res == NULL && !PyErr_Occurred()) {
9885 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
9886 }
9887 return res;
9888 }
9889
9890 SWIGINTERN int
9891 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
9892 int res = 1;
9893 swig_globalvar *var = v->vars;
9894 while (var) {
9895 if (strcmp(var->name,n) == 0) {
9896 res = (*var->set_attr)(p);
9897 break;
9898 }
9899 var = var->next;
9900 }
9901 if (res == 1 && !PyErr_Occurred()) {
9902 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
9903 }
9904 return res;
9905 }
9906
9907 SWIGINTERN PyTypeObject*
9908 swig_varlink_type(void) {
9909 static char varlink__doc__[] = "Swig var link object";
9910 static PyTypeObject varlink_type;
9911 static int type_init = 0;
9912 if (!type_init) {
9913 const PyTypeObject tmp
9914 = {
9915 PyObject_HEAD_INIT(NULL)
9916 0, /* Number of items in variable part (ob_size) */
9917 (char *)"swigvarlink", /* Type name (tp_name) */
9918 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
9919 0, /* Itemsize (tp_itemsize) */
9920 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
9921 (printfunc) swig_varlink_print, /* Print (tp_print) */
9922 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
9923 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
9924 0, /* tp_compare */
9925 (reprfunc) swig_varlink_repr, /* tp_repr */
9926 0, /* tp_as_number */
9927 0, /* tp_as_sequence */
9928 0, /* tp_as_mapping */
9929 0, /* tp_hash */
9930 0, /* tp_call */
9931 (reprfunc)swig_varlink_str, /* tp_str */
9932 0, /* tp_getattro */
9933 0, /* tp_setattro */
9934 0, /* tp_as_buffer */
9935 0, /* tp_flags */
9936 varlink__doc__, /* tp_doc */
9937 0, /* tp_traverse */
9938 0, /* tp_clear */
9939 0, /* tp_richcompare */
9940 0, /* tp_weaklistoffset */
9941 #if PY_VERSION_HEX >= 0x02020000
9942 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
9943 #endif
9944 #if PY_VERSION_HEX >= 0x02030000
9945 0, /* tp_del */
9946 #endif
9947 #ifdef COUNT_ALLOCS
9948 0,0,0,0 /* tp_alloc -> tp_next */
9949 #endif
9950 };
9951 varlink_type = tmp;
9952 varlink_type.ob_type = &PyType_Type;
9953 type_init = 1;
9954 }
9955 return &varlink_type;
9956 }
9957
9958 /* Create a variable linking object for use later */
9959 SWIGINTERN PyObject *
9960 SWIG_Python_newvarlink(void) {
9961 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
9962 if (result) {
9963 result->vars = 0;
9964 }
9965 return ((PyObject*) result);
9966 }
9967
9968 SWIGINTERN void
9969 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
9970 swig_varlinkobject *v = (swig_varlinkobject *) p;
9971 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
9972 if (gv) {
9973 size_t size = strlen(name)+1;
9974 gv->name = (char *)malloc(size);
9975 if (gv->name) {
9976 strncpy(gv->name,name,size);
9977 gv->get_attr = get_attr;
9978 gv->set_attr = set_attr;
9979 gv->next = v->vars;
9980 }
9981 }
9982 v->vars = gv;
9983 }
9984
9985 SWIGINTERN PyObject *
9986 SWIG_globals() {
9987 static PyObject *_SWIG_globals = 0;
9988 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
9989 return _SWIG_globals;
9990 }
9991
9992 /* -----------------------------------------------------------------------------
9993 * constants/methods manipulation
9994 * ----------------------------------------------------------------------------- */
9995
9996 /* Install Constants */
9997 SWIGINTERN void
9998 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
9999 PyObject *obj = 0;
10000 size_t i;
10001 for (i = 0; constants[i].type; ++i) {
10002 switch(constants[i].type) {
10003 case SWIG_PY_POINTER:
10004 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
10005 break;
10006 case SWIG_PY_BINARY:
10007 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
10008 break;
10009 default:
10010 obj = 0;
10011 break;
10012 }
10013 if (obj) {
10014 PyDict_SetItemString(d, constants[i].name, obj);
10015 Py_DECREF(obj);
10016 }
10017 }
10018 }
10019
10020 /* -----------------------------------------------------------------------------*/
10021 /* Fix SwigMethods to carry the callback ptrs when needed */
10022 /* -----------------------------------------------------------------------------*/
10023
10024 SWIGINTERN void
10025 SWIG_Python_FixMethods(PyMethodDef *methods,
10026 swig_const_info *const_table,
10027 swig_type_info **types,
10028 swig_type_info **types_initial) {
10029 size_t i;
10030 for (i = 0; methods[i].ml_name; ++i) {
10031 const char *c = methods[i].ml_doc;
10032 if (c && (c = strstr(c, "swig_ptr: "))) {
10033 int j;
10034 swig_const_info *ci = 0;
10035 const char *name = c + 10;
10036 for (j = 0; const_table[j].type; ++j) {
10037 if (strncmp(const_table[j].name, name,
10038 strlen(const_table[j].name)) == 0) {
10039 ci = &(const_table[j]);
10040 break;
10041 }
10042 }
10043 if (ci) {
10044 size_t shift = (ci->ptype) - types;
10045 swig_type_info *ty = types_initial[shift];
10046 size_t ldoc = (c - methods[i].ml_doc);
10047 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
10048 char *ndoc = (char*)malloc(ldoc + lptr + 10);
10049 if (ndoc) {
10050 char *buff = ndoc;
10051 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
10052 if (ptr) {
10053 strncpy(buff, methods[i].ml_doc, ldoc);
10054 buff += ldoc;
10055 strncpy(buff, "swig_ptr: ", 10);
10056 buff += 10;
10057 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
10058 methods[i].ml_doc = ndoc;
10059 }
10060 }
10061 }
10062 }
10063 }
10064 }
10065
10066 #ifdef __cplusplus
10067 }
10068 #endif
10069
10070 /* -----------------------------------------------------------------------------*
10071 * Partial Init method
10072 * -----------------------------------------------------------------------------*/
10073
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 SWIGEXPORT void SWIG_init(void) {
10078 PyObject *m, *d;
10079
10080 /* Fix SwigMethods to carry the callback ptrs when needed */
10081 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
10082
10083 m = Py_InitModule((char *) SWIG_name, SwigMethods);
10084 d = PyModule_GetDict(m);
10085
10086 SWIG_InitializeModule(0);
10087 SWIG_InstallConstants(d,swig_const_table);
10088
10089
10090 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
10091 SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get, UTF8String_set);
10092 SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get, StyleString_set);
10093 SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get, SizeString_set);
10094 SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get, PosString_set);
10095 SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get, BitmapString_set);
10096 SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get, IconString_set);
10097 SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get, FontString_set);
10098 SWIG_addvarlink(SWIG_globals(),(char*)"AnimationString",AnimationString_get, AnimationString_set);
10099 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR)));
10100 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR)));
10101 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE)));
10102 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION)));
10103 SWIG_Python_SetConstant(d, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE)));
10104 SWIG_Python_SetConstant(d, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING)));
10105 SWIG_Python_SetConstant(d, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING)));
10106 SWIG_Python_SetConstant(d, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE)));
10107 SWIG_Python_SetConstant(d, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE)));
10108 SWIG_Python_SetConstant(d, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE)));
10109 SWIG_Python_SetConstant(d, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE)));
10110 SWIG_Python_SetConstant(d, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE)));
10111 SWIG_Python_SetConstant(d, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE)));
10112 SWIG_Python_SetConstant(d, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE)));
10113 SWIG_Python_SetConstant(d, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE)));
10114 SWIG_Python_SetConstant(d, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE)));
10115 SWIG_Python_SetConstant(d, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE)));
10116 SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE)));
10117 SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE)));
10118 SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE)));
10119 SWIG_Python_SetConstant(d, "XML_NO_INDENTATION",SWIG_From_int(static_cast< int >(wxXML_NO_INDENTATION)));
10120 SWIG_Python_SetConstant(d, "XMLDOC_NONE",SWIG_From_int(static_cast< int >(wxXMLDOC_NONE)));
10121 SWIG_Python_SetConstant(d, "XMLDOC_KEEP_WHITESPACE_NODES",SWIG_From_int(static_cast< int >(wxXMLDOC_KEEP_WHITESPACE_NODES)));
10122
10123
10124 wxXmlInitResourceModule();
10125 wxXmlResource::Get()->InitAllHandlers();
10126
10127
10128 }
10129