]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/xrc_wrap.cpp
added more properties
[wxWidgets.git] / wxPython / src / mac / 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_wxArtClient swig_types[9]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477 #define SWIGTYPE_p_wxBitmap swig_types[11]
2478 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[13]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[14]
2481 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[15]
2482 #define SWIGTYPE_p_wxCloseEvent swig_types[16]
2483 #define SWIGTYPE_p_wxColour swig_types[17]
2484 #define SWIGTYPE_p_wxCommandEvent swig_types[18]
2485 #define SWIGTYPE_p_wxContextMenuEvent swig_types[19]
2486 #define SWIGTYPE_p_wxControl swig_types[20]
2487 #define SWIGTYPE_p_wxControlWithItems swig_types[21]
2488 #define SWIGTYPE_p_wxDateEvent swig_types[22]
2489 #define SWIGTYPE_p_wxDialog swig_types[23]
2490 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24]
2491 #define SWIGTYPE_p_wxDropFilesEvent swig_types[25]
2492 #define SWIGTYPE_p_wxDuplexMode swig_types[26]
2493 #define SWIGTYPE_p_wxEraseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxEvent swig_types[28]
2495 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
2496 #define SWIGTYPE_p_wxFSFile swig_types[30]
2497 #define SWIGTYPE_p_wxFileSystem swig_types[31]
2498 #define SWIGTYPE_p_wxFlexGridSizer swig_types[32]
2499 #define SWIGTYPE_p_wxFocusEvent swig_types[33]
2500 #define SWIGTYPE_p_wxFont swig_types[34]
2501 #define SWIGTYPE_p_wxFrame swig_types[35]
2502 #define SWIGTYPE_p_wxGBSizerItem swig_types[36]
2503 #define SWIGTYPE_p_wxGIFHandler swig_types[37]
2504 #define SWIGTYPE_p_wxGridBagSizer swig_types[38]
2505 #define SWIGTYPE_p_wxGridSizer swig_types[39]
2506 #define SWIGTYPE_p_wxICOHandler swig_types[40]
2507 #define SWIGTYPE_p_wxIcon swig_types[41]
2508 #define SWIGTYPE_p_wxIconizeEvent swig_types[42]
2509 #define SWIGTYPE_p_wxIdleEvent swig_types[43]
2510 #define SWIGTYPE_p_wxImage swig_types[44]
2511 #define SWIGTYPE_p_wxImageHandler swig_types[45]
2512 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46]
2513 #define SWIGTYPE_p_wxInitDialogEvent swig_types[47]
2514 #define SWIGTYPE_p_wxInputStream swig_types[48]
2515 #define SWIGTYPE_p_wxJPEGHandler swig_types[49]
2516 #define SWIGTYPE_p_wxKeyEvent swig_types[50]
2517 #define SWIGTYPE_p_wxLayoutConstraints swig_types[51]
2518 #define SWIGTYPE_p_wxMaximizeEvent swig_types[52]
2519 #define SWIGTYPE_p_wxMenu swig_types[53]
2520 #define SWIGTYPE_p_wxMenuBar swig_types[54]
2521 #define SWIGTYPE_p_wxMenuEvent swig_types[55]
2522 #define SWIGTYPE_p_wxMenuItem swig_types[56]
2523 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57]
2524 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[58]
2525 #define SWIGTYPE_p_wxMouseEvent swig_types[59]
2526 #define SWIGTYPE_p_wxMoveEvent swig_types[60]
2527 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[61]
2528 #define SWIGTYPE_p_wxNcPaintEvent swig_types[62]
2529 #define SWIGTYPE_p_wxNotifyEvent swig_types[63]
2530 #define SWIGTYPE_p_wxObject swig_types[64]
2531 #define SWIGTYPE_p_wxOutputStream swig_types[65]
2532 #define SWIGTYPE_p_wxPCXHandler swig_types[66]
2533 #define SWIGTYPE_p_wxPNGHandler swig_types[67]
2534 #define SWIGTYPE_p_wxPNMHandler swig_types[68]
2535 #define SWIGTYPE_p_wxPaintEvent swig_types[69]
2536 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[70]
2537 #define SWIGTYPE_p_wxPanel swig_types[71]
2538 #define SWIGTYPE_p_wxPaperSize swig_types[72]
2539 #define SWIGTYPE_p_wxPoint swig_types[73]
2540 #define SWIGTYPE_p_wxPyApp swig_types[74]
2541 #define SWIGTYPE_p_wxPyCommandEvent swig_types[75]
2542 #define SWIGTYPE_p_wxPyEvent swig_types[76]
2543 #define SWIGTYPE_p_wxPyImageHandler swig_types[77]
2544 #define SWIGTYPE_p_wxPySizer swig_types[78]
2545 #define SWIGTYPE_p_wxPyValidator swig_types[79]
2546 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[80]
2547 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[81]
2548 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[82]
2549 #define SWIGTYPE_p_wxScrollEvent swig_types[83]
2550 #define SWIGTYPE_p_wxScrollWinEvent swig_types[84]
2551 #define SWIGTYPE_p_wxSetCursorEvent swig_types[85]
2552 #define SWIGTYPE_p_wxShowEvent swig_types[86]
2553 #define SWIGTYPE_p_wxSize swig_types[87]
2554 #define SWIGTYPE_p_wxSizeEvent swig_types[88]
2555 #define SWIGTYPE_p_wxSizer swig_types[89]
2556 #define SWIGTYPE_p_wxSizerItem swig_types[90]
2557 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[91]
2558 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[92]
2559 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[93]
2560 #define SWIGTYPE_p_wxTIFFHandler swig_types[94]
2561 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[95]
2562 #define SWIGTYPE_p_wxValidator swig_types[96]
2563 #define SWIGTYPE_p_wxWindow swig_types[97]
2564 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[98]
2565 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxXPMHandler swig_types[100]
2567 #define SWIGTYPE_p_wxXmlDocument swig_types[101]
2568 #define SWIGTYPE_p_wxXmlNode swig_types[102]
2569 #define SWIGTYPE_p_wxXmlProperty swig_types[103]
2570 #define SWIGTYPE_p_wxXmlResource swig_types[104]
2571 static swig_type_info *swig_types[106];
2572 static swig_module_info swig_module = {swig_types, 105, 0, 0, 0, 0};
2573 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2574 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2575
2576 /* -------- TYPES TABLE (END) -------- */
2577
2578 #if (PY_VERSION_HEX <= 0x02000000)
2579 # if !defined(SWIG_PYTHON_CLASSIC)
2580 # error "This python version requires to use swig with the '-classic' option"
2581 # endif
2582 #endif
2583 #if (PY_VERSION_HEX <= 0x02020000)
2584 # error "This python version requires to use swig with the '-nomodern' option"
2585 #endif
2586 #if (PY_VERSION_HEX <= 0x02020000)
2587 # error "This python version requires to use swig with the '-nomodernargs' option"
2588 #endif
2589 #ifndef METH_O
2590 # error "This python version requires to use swig with the '-nofastunpack' option"
2591 #endif
2592
2593 /*-----------------------------------------------
2594 @(target):= _xrc.so
2595 ------------------------------------------------*/
2596 #define SWIG_init init_xrc
2597
2598 #define SWIG_name "_xrc"
2599
2600 #define SWIGVERSION 0x010329
2601
2602
2603 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2604 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2605
2606
2607 #include <stdexcept>
2608
2609
2610 namespace swig {
2611 class PyObject_ptr {
2612 protected:
2613 PyObject *_obj;
2614
2615 public:
2616 PyObject_ptr() :_obj(0)
2617 {
2618 }
2619
2620 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2621 {
2622 Py_XINCREF(_obj);
2623 }
2624
2625 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2626 {
2627 if (initial_ref) Py_XINCREF(_obj);
2628 }
2629
2630 PyObject_ptr & operator=(const PyObject_ptr& item)
2631 {
2632 Py_XINCREF(item._obj);
2633 Py_XDECREF(_obj);
2634 _obj = item._obj;
2635 return *this;
2636 }
2637
2638 ~PyObject_ptr()
2639 {
2640 Py_XDECREF(_obj);
2641 }
2642
2643 operator PyObject *() const
2644 {
2645 return _obj;
2646 }
2647
2648 PyObject *operator->() const
2649 {
2650 return _obj;
2651 }
2652 };
2653 }
2654
2655
2656 namespace swig {
2657 struct PyObject_var : PyObject_ptr {
2658 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2659
2660 PyObject_var & operator = (PyObject* obj)
2661 {
2662 Py_XDECREF(_obj);
2663 _obj = obj;
2664 return *this;
2665 }
2666 };
2667 }
2668
2669
2670 #include "wx/wxPython/wxPython.h"
2671 #include "wx/wxPython/pyclasses.h"
2672 #include "wx/wxPython/pyistream.h"
2673
2674 #include <wx/xml/xml.h>
2675 #include <wx/xrc/xmlres.h>
2676
2677 static const wxString wxPyEmptyString(wxEmptyString);
2678 static const wxString wxPyUTF8String(wxT("UTF-8"));
2679 static const wxString wxPyStyleString(wxT("style"));
2680 static const wxString wxPySizeString(wxT("size"));
2681 static const wxString wxPyPosString(wxT("pos"));
2682 static const wxString wxPyBitmapString(wxT("bitmap"));
2683 static const wxString wxPyIconString(wxT("icon"));
2684 static const wxString wxPyFontString(wxT("font"));
2685
2686 #define SWIG_From_long PyInt_FromLong
2687
2688
2689 SWIGINTERNINLINE PyObject *
2690 SWIG_From_int (int value)
2691 {
2692 return SWIG_From_long (value);
2693 }
2694
2695
2696 #include <limits.h>
2697 #ifndef LLONG_MIN
2698 # define LLONG_MIN LONG_LONG_MIN
2699 #endif
2700 #ifndef LLONG_MAX
2701 # define LLONG_MAX LONG_LONG_MAX
2702 #endif
2703 #ifndef ULLONG_MAX
2704 # define ULLONG_MAX ULONG_LONG_MAX
2705 #endif
2706
2707
2708 SWIGINTERN int
2709 SWIG_AsVal_long (PyObject* obj, long* val)
2710 {
2711 if (PyNumber_Check(obj)) {
2712 if (val) *val = PyInt_AsLong(obj);
2713 return SWIG_OK;
2714 }
2715 return SWIG_TypeError;
2716 }
2717
2718
2719 SWIGINTERN int
2720 SWIG_AsVal_int (PyObject * obj, int *val)
2721 {
2722 long v;
2723 int res = SWIG_AsVal_long (obj, &v);
2724 if (SWIG_IsOK(res)) {
2725 if ((v < INT_MIN || v > INT_MAX)) {
2726 return SWIG_OverflowError;
2727 } else {
2728 if (val) *val = static_cast< int >(v);
2729 }
2730 }
2731 return res;
2732 }
2733
2734 SWIGINTERN bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){
2735 static int s_memFileIdx = 0;
2736
2737 // Check for memory FS. If not present, load the handler:
2738 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
2739 wxT("dummy data"));
2740 wxFileSystem fsys;
2741 wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file"));
2742 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
2743 if (f)
2744 delete f;
2745 else
2746 wxFileSystem::AddHandler(new wxMemoryFSHandler);
2747
2748 // Now put the resource data into the memory FS
2749 wxString filename(wxT("XRC_resource/data_string_"));
2750 filename << s_memFileIdx;
2751 s_memFileIdx += 1;
2752 wxMemoryFSHandler::AddFile(filename, data);
2753
2754 // Load the "file" into the resource object
2755 bool retval = self->Load(wxT("memory:") + filename );
2756
2757 return retval;
2758 }
2759
2760 class wxPyXmlSubclassFactory : public wxXmlSubclassFactory
2761 {
2762 public:
2763 wxPyXmlSubclassFactory() {}
2764 DEC_PYCALLBACK_OBJECT_STRING_pure(Create);
2765 PYPRIVATE;
2766 };
2767
2768 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create);
2769
2770 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
2771 // callbacks, as well as to make some protected things public so they can
2772 // be wrapped.
2773 class wxPyXmlResourceHandler : public wxXmlResourceHandler {
2774 public:
2775 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
2776 //~wxPyXmlResourceHandler();
2777
2778 // Base class virtuals
2779
2780 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource);
2781 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle);
2782
2783
2784 // accessors for protected members
2785
2786 wxXmlResource* GetResource() { return m_resource; }
2787 wxXmlNode* GetNode() { return m_node; }
2788 wxString GetClass() { return m_class; }
2789 wxObject* GetParent() { return m_parent; }
2790 wxObject* GetInstance() { return m_instance; }
2791 wxWindow* GetParentAsWindow() { return m_parentAsWindow; }
2792
2793
2794 // turn some protected methods into public via delegation
2795
2796 bool IsOfClass(wxXmlNode *node, const wxString& classname)
2797 { return wxXmlResourceHandler::IsOfClass(node, classname); }
2798
2799 wxString GetNodeContent(wxXmlNode *node)
2800 { return wxXmlResourceHandler::GetNodeContent(node); }
2801
2802 bool HasParam(const wxString& param)
2803 { return wxXmlResourceHandler::HasParam(param); }
2804
2805 wxXmlNode *GetParamNode(const wxString& param)
2806 { return wxXmlResourceHandler::GetParamNode(param); }
2807
2808 wxString GetParamValue(const wxString& param)
2809 { return wxXmlResourceHandler::GetParamValue(param); }
2810
2811 void AddStyle(const wxString& name, int value)
2812 { wxXmlResourceHandler::AddStyle(name, value); }
2813
2814 void AddWindowStyles()
2815 { wxXmlResourceHandler::AddWindowStyles(); }
2816
2817 int GetStyle(const wxString& param = wxT("style"), int defaults = 0)
2818 { return wxXmlResourceHandler::GetStyle(param, defaults); }
2819
2820 wxString GetText(const wxString& param, bool translate = true)
2821 { return wxXmlResourceHandler::GetText(param, translate); }
2822
2823 int GetID()
2824 { return wxXmlResourceHandler::GetID(); }
2825
2826 wxString GetName()
2827 { return wxXmlResourceHandler::GetName(); }
2828
2829 bool GetBool(const wxString& param, bool defaultv = false)
2830 { return wxXmlResourceHandler::GetBool(param, defaultv); }
2831
2832 long GetLong( const wxString& param, long defaultv = 0 )
2833 { return wxXmlResourceHandler::GetLong(param, defaultv); }
2834
2835 wxColour GetColour(const wxString& param)
2836 { return wxXmlResourceHandler::GetColour(param); }
2837
2838 wxSize GetSize(const wxString& param = wxT("size"))
2839 { return wxXmlResourceHandler::GetSize(param); }
2840
2841 wxPoint GetPosition(const wxString& param = wxT("pos"))
2842 { return wxXmlResourceHandler::GetPosition(param); }
2843
2844 wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0)
2845 { return wxXmlResourceHandler::GetDimension(param, defaultv); }
2846
2847 wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
2848 const wxArtClient& defaultArtClient = wxART_OTHER,
2849 wxSize size = wxDefaultSize)
2850 { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); }
2851
2852 wxIcon GetIcon(const wxString& param = wxT("icon"),
2853 const wxArtClient& defaultArtClient = wxART_OTHER,
2854 wxSize size = wxDefaultSize)
2855 { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); }
2856
2857 wxFont GetFont(const wxString& param = wxT("font"))
2858 { return wxXmlResourceHandler::GetFont(param); }
2859
2860 void SetupWindow(wxWindow *wnd)
2861 { wxXmlResourceHandler::SetupWindow(wnd); }
2862
2863 void CreateChildren(wxObject *parent, bool this_hnd_only = false)
2864 { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); }
2865
2866 void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL)
2867 { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); }
2868
2869 wxObject *CreateResFromNode(wxXmlNode *node,
2870 wxObject *parent, wxObject *instance = NULL)
2871 { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); }
2872
2873 wxFileSystem& GetCurFileSystem()
2874 { return wxXmlResourceHandler::GetCurFileSystem(); }
2875
2876
2877 PYPRIVATE;
2878 };
2879
2880 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource);
2881 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle);
2882
2883
2884
2885 SWIGINTERN int
2886 SWIG_AsVal_bool (PyObject *obj, bool *val)
2887 {
2888 if (obj == Py_True) {
2889 if (val) *val = true;
2890 return SWIG_OK;
2891 } else if (obj == Py_False) {
2892 if (val) *val = false;
2893 return SWIG_OK;
2894 } else {
2895 long v = 0;
2896 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2897 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2898 return res;
2899 }
2900 }
2901
2902 #ifdef __cplusplus
2903 extern "C" {
2904 #endif
2905 SWIGINTERN int UTF8String_set(PyObject *) {
2906 SWIG_Error(SWIG_AttributeError,"Variable UTF8String is read-only.");
2907 return 1;
2908 }
2909
2910
2911 SWIGINTERN PyObject *UTF8String_get(void) {
2912 PyObject *pyobj = 0;
2913
2914 {
2915 #if wxUSE_UNICODE
2916 pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
2917 #else
2918 pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len());
2919 #endif
2920 }
2921 return pyobj;
2922 }
2923
2924
2925 SWIGINTERN int StyleString_set(PyObject *) {
2926 SWIG_Error(SWIG_AttributeError,"Variable StyleString is read-only.");
2927 return 1;
2928 }
2929
2930
2931 SWIGINTERN PyObject *StyleString_get(void) {
2932 PyObject *pyobj = 0;
2933
2934 {
2935 #if wxUSE_UNICODE
2936 pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
2937 #else
2938 pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len());
2939 #endif
2940 }
2941 return pyobj;
2942 }
2943
2944
2945 SWIGINTERN int SizeString_set(PyObject *) {
2946 SWIG_Error(SWIG_AttributeError,"Variable SizeString is read-only.");
2947 return 1;
2948 }
2949
2950
2951 SWIGINTERN PyObject *SizeString_get(void) {
2952 PyObject *pyobj = 0;
2953
2954 {
2955 #if wxUSE_UNICODE
2956 pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
2957 #else
2958 pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len());
2959 #endif
2960 }
2961 return pyobj;
2962 }
2963
2964
2965 SWIGINTERN int PosString_set(PyObject *) {
2966 SWIG_Error(SWIG_AttributeError,"Variable PosString is read-only.");
2967 return 1;
2968 }
2969
2970
2971 SWIGINTERN PyObject *PosString_get(void) {
2972 PyObject *pyobj = 0;
2973
2974 {
2975 #if wxUSE_UNICODE
2976 pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
2977 #else
2978 pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len());
2979 #endif
2980 }
2981 return pyobj;
2982 }
2983
2984
2985 SWIGINTERN int BitmapString_set(PyObject *) {
2986 SWIG_Error(SWIG_AttributeError,"Variable BitmapString is read-only.");
2987 return 1;
2988 }
2989
2990
2991 SWIGINTERN PyObject *BitmapString_get(void) {
2992 PyObject *pyobj = 0;
2993
2994 {
2995 #if wxUSE_UNICODE
2996 pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
2997 #else
2998 pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len());
2999 #endif
3000 }
3001 return pyobj;
3002 }
3003
3004
3005 SWIGINTERN int IconString_set(PyObject *) {
3006 SWIG_Error(SWIG_AttributeError,"Variable IconString is read-only.");
3007 return 1;
3008 }
3009
3010
3011 SWIGINTERN PyObject *IconString_get(void) {
3012 PyObject *pyobj = 0;
3013
3014 {
3015 #if wxUSE_UNICODE
3016 pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
3017 #else
3018 pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len());
3019 #endif
3020 }
3021 return pyobj;
3022 }
3023
3024
3025 SWIGINTERN int FontString_set(PyObject *) {
3026 SWIG_Error(SWIG_AttributeError,"Variable FontString is read-only.");
3027 return 1;
3028 }
3029
3030
3031 SWIGINTERN PyObject *FontString_get(void) {
3032 PyObject *pyobj = 0;
3033
3034 {
3035 #if wxUSE_UNICODE
3036 pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
3037 #else
3038 pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len());
3039 #endif
3040 }
3041 return pyobj;
3042 }
3043
3044
3045 SWIGINTERN PyObject *_wrap_new_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3046 PyObject *resultobj = 0;
3047 wxString *arg1 = 0 ;
3048 int arg2 = (int) wxXRC_USE_LOCALE ;
3049 wxString const &arg3_defvalue = wxEmptyString ;
3050 wxString *arg3 = (wxString *) &arg3_defvalue ;
3051 wxXmlResource *result = 0 ;
3052 bool temp1 = false ;
3053 int val2 ;
3054 int ecode2 = 0 ;
3055 bool temp3 = false ;
3056 PyObject * obj0 = 0 ;
3057 PyObject * obj1 = 0 ;
3058 PyObject * obj2 = 0 ;
3059 char * kwnames[] = {
3060 (char *) "filemask",(char *) "flags",(char *) "domain", NULL
3061 };
3062
3063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_XmlResource",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3064 {
3065 arg1 = wxString_in_helper(obj0);
3066 if (arg1 == NULL) SWIG_fail;
3067 temp1 = true;
3068 }
3069 if (obj1) {
3070 ecode2 = SWIG_AsVal_int(obj1, &val2);
3071 if (!SWIG_IsOK(ecode2)) {
3072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlResource" "', expected argument " "2"" of type '" "int""'");
3073 }
3074 arg2 = static_cast< int >(val2);
3075 }
3076 if (obj2) {
3077 {
3078 arg3 = wxString_in_helper(obj2);
3079 if (arg3 == NULL) SWIG_fail;
3080 temp3 = true;
3081 }
3082 }
3083 {
3084 PyThreadState* __tstate = wxPyBeginAllowThreads();
3085 result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2,(wxString const &)*arg3);
3086 wxPyEndAllowThreads(__tstate);
3087 if (PyErr_Occurred()) SWIG_fail;
3088 }
3089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_NEW | 0 );
3090 {
3091 if (temp1)
3092 delete arg1;
3093 }
3094 {
3095 if (temp3)
3096 delete arg3;
3097 }
3098 return resultobj;
3099 fail:
3100 {
3101 if (temp1)
3102 delete arg1;
3103 }
3104 {
3105 if (temp3)
3106 delete arg3;
3107 }
3108 return NULL;
3109 }
3110
3111
3112 SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3113 PyObject *resultobj = 0;
3114 int arg1 = (int) wxXRC_USE_LOCALE ;
3115 wxString const &arg2_defvalue = wxEmptyString ;
3116 wxString *arg2 = (wxString *) &arg2_defvalue ;
3117 wxXmlResource *result = 0 ;
3118 int val1 ;
3119 int ecode1 = 0 ;
3120 bool temp2 = false ;
3121 PyObject * obj0 = 0 ;
3122 PyObject * obj1 = 0 ;
3123 char * kwnames[] = {
3124 (char *) "flags",(char *) "domain", NULL
3125 };
3126
3127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EmptyXmlResource",kwnames,&obj0,&obj1)) SWIG_fail;
3128 if (obj0) {
3129 ecode1 = SWIG_AsVal_int(obj0, &val1);
3130 if (!SWIG_IsOK(ecode1)) {
3131 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyXmlResource" "', expected argument " "1"" of type '" "int""'");
3132 }
3133 arg1 = static_cast< int >(val1);
3134 }
3135 if (obj1) {
3136 {
3137 arg2 = wxString_in_helper(obj1);
3138 if (arg2 == NULL) SWIG_fail;
3139 temp2 = true;
3140 }
3141 }
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 result = (wxXmlResource *)new wxXmlResource(arg1,(wxString const &)*arg2);
3145 wxPyEndAllowThreads(__tstate);
3146 if (PyErr_Occurred()) SWIG_fail;
3147 }
3148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 );
3149 {
3150 if (temp2)
3151 delete arg2;
3152 }
3153 return resultobj;
3154 fail:
3155 {
3156 if (temp2)
3157 delete arg2;
3158 }
3159 return NULL;
3160 }
3161
3162
3163 SWIGINTERN PyObject *_wrap_delete_XmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3164 PyObject *resultobj = 0;
3165 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3166 void *argp1 = 0 ;
3167 int res1 = 0 ;
3168 PyObject *swig_obj[1] ;
3169
3170 if (!args) SWIG_fail;
3171 swig_obj[0] = args;
3172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, SWIG_POINTER_DISOWN | 0 );
3173 if (!SWIG_IsOK(res1)) {
3174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResource" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3175 }
3176 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 delete arg1;
3180
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
3184 resultobj = SWIG_Py_Void();
3185 return resultobj;
3186 fail:
3187 return NULL;
3188 }
3189
3190
3191 SWIGINTERN PyObject *_wrap_XmlResource_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj = 0;
3193 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3194 wxString *arg2 = 0 ;
3195 bool result;
3196 void *argp1 = 0 ;
3197 int res1 = 0 ;
3198 bool temp2 = false ;
3199 PyObject * obj0 = 0 ;
3200 PyObject * obj1 = 0 ;
3201 char * kwnames[] = {
3202 (char *) "self",(char *) "filemask", NULL
3203 };
3204
3205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) SWIG_fail;
3206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3207 if (!SWIG_IsOK(res1)) {
3208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Load" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3209 }
3210 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3211 {
3212 arg2 = wxString_in_helper(obj1);
3213 if (arg2 == NULL) SWIG_fail;
3214 temp2 = true;
3215 }
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 result = (bool)(arg1)->Load((wxString const &)*arg2);
3219 wxPyEndAllowThreads(__tstate);
3220 if (PyErr_Occurred()) SWIG_fail;
3221 }
3222 {
3223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3224 }
3225 {
3226 if (temp2)
3227 delete arg2;
3228 }
3229 return resultobj;
3230 fail:
3231 {
3232 if (temp2)
3233 delete arg2;
3234 }
3235 return NULL;
3236 }
3237
3238
3239 SWIGINTERN PyObject *_wrap_XmlResource_LoadFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3240 PyObject *resultobj = 0;
3241 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3242 wxString *arg2 = 0 ;
3243 bool result;
3244 void *argp1 = 0 ;
3245 int res1 = 0 ;
3246 bool temp2 = false ;
3247 PyObject * obj0 = 0 ;
3248 PyObject * obj1 = 0 ;
3249 char * kwnames[] = {
3250 (char *) "self",(char *) "data", NULL
3251 };
3252
3253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) SWIG_fail;
3254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3255 if (!SWIG_IsOK(res1)) {
3256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFromString" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3257 }
3258 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3259 {
3260 arg2 = wxString_in_helper(obj1);
3261 if (arg2 == NULL) SWIG_fail;
3262 temp2 = true;
3263 }
3264 {
3265 PyThreadState* __tstate = wxPyBeginAllowThreads();
3266 result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2);
3267 wxPyEndAllowThreads(__tstate);
3268 if (PyErr_Occurred()) SWIG_fail;
3269 }
3270 {
3271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3272 }
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return resultobj;
3278 fail:
3279 {
3280 if (temp2)
3281 delete arg2;
3282 }
3283 return NULL;
3284 }
3285
3286
3287 SWIGINTERN PyObject *_wrap_XmlResource_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3288 PyObject *resultobj = 0;
3289 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3290 wxString *arg2 = 0 ;
3291 bool result;
3292 void *argp1 = 0 ;
3293 int res1 = 0 ;
3294 bool temp2 = false ;
3295 PyObject * obj0 = 0 ;
3296 PyObject * obj1 = 0 ;
3297 char * kwnames[] = {
3298 (char *) "self",(char *) "filename", NULL
3299 };
3300
3301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Unload",kwnames,&obj0,&obj1)) SWIG_fail;
3302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3303 if (!SWIG_IsOK(res1)) {
3304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Unload" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3305 }
3306 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3307 {
3308 arg2 = wxString_in_helper(obj1);
3309 if (arg2 == NULL) SWIG_fail;
3310 temp2 = true;
3311 }
3312 {
3313 PyThreadState* __tstate = wxPyBeginAllowThreads();
3314 result = (bool)(arg1)->Unload((wxString const &)*arg2);
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 {
3319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3320 }
3321 {
3322 if (temp2)
3323 delete arg2;
3324 }
3325 return resultobj;
3326 fail:
3327 {
3328 if (temp2)
3329 delete arg2;
3330 }
3331 return NULL;
3332 }
3333
3334
3335 SWIGINTERN PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3336 PyObject *resultobj = 0;
3337 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3338 void *argp1 = 0 ;
3339 int res1 = 0 ;
3340 PyObject *swig_obj[1] ;
3341
3342 if (!args) SWIG_fail;
3343 swig_obj[0] = args;
3344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3345 if (!SWIG_IsOK(res1)) {
3346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InitAllHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3347 }
3348 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 (arg1)->InitAllHandlers();
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 resultobj = SWIG_Py_Void();
3356 return resultobj;
3357 fail:
3358 return NULL;
3359 }
3360
3361
3362 SWIGINTERN PyObject *_wrap_XmlResource_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3363 PyObject *resultobj = 0;
3364 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3365 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
3366 void *argp1 = 0 ;
3367 int res1 = 0 ;
3368 void *argp2 = 0 ;
3369 int res2 = 0 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 char * kwnames[] = {
3373 (char *) "self",(char *) "handler", NULL
3374 };
3375
3376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) SWIG_fail;
3377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3378 if (!SWIG_IsOK(res1)) {
3379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3380 }
3381 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
3383 if (!SWIG_IsOK(res2)) {
3384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3385 }
3386 arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2);
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 (arg1)->AddHandler(arg2);
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 resultobj = SWIG_Py_Void();
3394 return resultobj;
3395 fail:
3396 return NULL;
3397 }
3398
3399
3400 SWIGINTERN PyObject *_wrap_XmlResource_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3401 PyObject *resultobj = 0;
3402 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3403 wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
3404 void *argp1 = 0 ;
3405 int res1 = 0 ;
3406 void *argp2 = 0 ;
3407 int res2 = 0 ;
3408 PyObject * obj0 = 0 ;
3409 PyObject * obj1 = 0 ;
3410 char * kwnames[] = {
3411 (char *) "self",(char *) "handler", NULL
3412 };
3413
3414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) SWIG_fail;
3415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3416 if (!SWIG_IsOK(res1)) {
3417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3418 }
3419 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
3421 if (!SWIG_IsOK(res2)) {
3422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
3423 }
3424 arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2);
3425 {
3426 PyThreadState* __tstate = wxPyBeginAllowThreads();
3427 (arg1)->InsertHandler(arg2);
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 }
3431 resultobj = SWIG_Py_Void();
3432 return resultobj;
3433 fail:
3434 return NULL;
3435 }
3436
3437
3438 SWIGINTERN PyObject *_wrap_XmlResource_ClearHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3439 PyObject *resultobj = 0;
3440 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3441 void *argp1 = 0 ;
3442 int res1 = 0 ;
3443 PyObject *swig_obj[1] ;
3444
3445 if (!args) SWIG_fail;
3446 swig_obj[0] = args;
3447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3448 if (!SWIG_IsOK(res1)) {
3449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_ClearHandlers" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3450 }
3451 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3452 {
3453 PyThreadState* __tstate = wxPyBeginAllowThreads();
3454 (arg1)->ClearHandlers();
3455 wxPyEndAllowThreads(__tstate);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 }
3458 resultobj = SWIG_Py_Void();
3459 return resultobj;
3460 fail:
3461 return NULL;
3462 }
3463
3464
3465 SWIGINTERN PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3466 PyObject *resultobj = 0;
3467 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 PyObject * obj0 = 0 ;
3471 char * kwnames[] = {
3472 (char *) "factory", NULL
3473 };
3474
3475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) SWIG_fail;
3476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 );
3477 if (!SWIG_IsOK(res1)) {
3478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddSubclassFactory" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
3479 }
3480 arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1);
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 wxXmlResource::AddSubclassFactory(arg1);
3484 wxPyEndAllowThreads(__tstate);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 resultobj = SWIG_Py_Void();
3488 return resultobj;
3489 fail:
3490 return NULL;
3491 }
3492
3493
3494 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3495 PyObject *resultobj = 0;
3496 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3497 wxString *arg2 = 0 ;
3498 wxMenu *result = 0 ;
3499 void *argp1 = 0 ;
3500 int res1 = 0 ;
3501 bool temp2 = false ;
3502 PyObject * obj0 = 0 ;
3503 PyObject * obj1 = 0 ;
3504 char * kwnames[] = {
3505 (char *) "self",(char *) "name", NULL
3506 };
3507
3508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) SWIG_fail;
3509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3510 if (!SWIG_IsOK(res1)) {
3511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenu" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3512 }
3513 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3514 {
3515 arg2 = wxString_in_helper(obj1);
3516 if (arg2 == NULL) SWIG_fail;
3517 temp2 = true;
3518 }
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2);
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 {
3526 resultobj = wxPyMake_wxObject(result, 0);
3527 }
3528 {
3529 if (temp2)
3530 delete arg2;
3531 }
3532 return resultobj;
3533 fail:
3534 {
3535 if (temp2)
3536 delete arg2;
3537 }
3538 return NULL;
3539 }
3540
3541
3542 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3543 PyObject *resultobj = 0;
3544 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3545 wxString *arg2 = 0 ;
3546 wxMenuBar *result = 0 ;
3547 void *argp1 = 0 ;
3548 int res1 = 0 ;
3549 bool temp2 = false ;
3550 PyObject * obj0 = 0 ;
3551 PyObject * obj1 = 0 ;
3552 char * kwnames[] = {
3553 (char *) "self",(char *) "name", NULL
3554 };
3555
3556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) SWIG_fail;
3557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3558 if (!SWIG_IsOK(res1)) {
3559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3560 }
3561 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3562 {
3563 arg2 = wxString_in_helper(obj1);
3564 if (arg2 == NULL) SWIG_fail;
3565 temp2 = true;
3566 }
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2);
3570 wxPyEndAllowThreads(__tstate);
3571 if (PyErr_Occurred()) SWIG_fail;
3572 }
3573 {
3574 resultobj = wxPyMake_wxObject(result, 0);
3575 }
3576 {
3577 if (temp2)
3578 delete arg2;
3579 }
3580 return resultobj;
3581 fail:
3582 {
3583 if (temp2)
3584 delete arg2;
3585 }
3586 return NULL;
3587 }
3588
3589
3590 SWIGINTERN PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj = 0;
3592 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3593 wxWindow *arg2 = (wxWindow *) 0 ;
3594 wxString *arg3 = 0 ;
3595 wxMenuBar *result = 0 ;
3596 void *argp1 = 0 ;
3597 int res1 = 0 ;
3598 void *argp2 = 0 ;
3599 int res2 = 0 ;
3600 bool temp3 = false ;
3601 PyObject * obj0 = 0 ;
3602 PyObject * obj1 = 0 ;
3603 PyObject * obj2 = 0 ;
3604 char * kwnames[] = {
3605 (char *) "self",(char *) "parent",(char *) "name", NULL
3606 };
3607
3608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3610 if (!SWIG_IsOK(res1)) {
3611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3612 }
3613 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3615 if (!SWIG_IsOK(res2)) {
3616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadMenuBarOnFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
3617 }
3618 arg2 = reinterpret_cast< wxWindow * >(argp2);
3619 {
3620 arg3 = wxString_in_helper(obj2);
3621 if (arg3 == NULL) SWIG_fail;
3622 temp3 = true;
3623 }
3624 {
3625 PyThreadState* __tstate = wxPyBeginAllowThreads();
3626 result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3);
3627 wxPyEndAllowThreads(__tstate);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 }
3630 {
3631 resultobj = wxPyMake_wxObject(result, 0);
3632 }
3633 {
3634 if (temp3)
3635 delete arg3;
3636 }
3637 return resultobj;
3638 fail:
3639 {
3640 if (temp3)
3641 delete arg3;
3642 }
3643 return NULL;
3644 }
3645
3646
3647 SWIGINTERN PyObject *_wrap_XmlResource_LoadToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3648 PyObject *resultobj = 0;
3649 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3650 wxWindow *arg2 = (wxWindow *) 0 ;
3651 wxString *arg3 = 0 ;
3652 wxToolBar *result = 0 ;
3653 void *argp1 = 0 ;
3654 int res1 = 0 ;
3655 void *argp2 = 0 ;
3656 int res2 = 0 ;
3657 bool temp3 = false ;
3658 PyObject * obj0 = 0 ;
3659 PyObject * obj1 = 0 ;
3660 PyObject * obj2 = 0 ;
3661 char * kwnames[] = {
3662 (char *) "self",(char *) "parent",(char *) "name", NULL
3663 };
3664
3665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3667 if (!SWIG_IsOK(res1)) {
3668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadToolBar" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3669 }
3670 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3671 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3672 if (!SWIG_IsOK(res2)) {
3673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadToolBar" "', expected argument " "2"" of type '" "wxWindow *""'");
3674 }
3675 arg2 = reinterpret_cast< wxWindow * >(argp2);
3676 {
3677 arg3 = wxString_in_helper(obj2);
3678 if (arg3 == NULL) SWIG_fail;
3679 temp3 = true;
3680 }
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3);
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 {
3688 resultobj = wxPyMake_wxObject(result, (bool)0);
3689 }
3690 {
3691 if (temp3)
3692 delete arg3;
3693 }
3694 return resultobj;
3695 fail:
3696 {
3697 if (temp3)
3698 delete arg3;
3699 }
3700 return NULL;
3701 }
3702
3703
3704 SWIGINTERN PyObject *_wrap_XmlResource_LoadDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj = 0;
3706 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3707 wxWindow *arg2 = (wxWindow *) 0 ;
3708 wxString *arg3 = 0 ;
3709 wxDialog *result = 0 ;
3710 void *argp1 = 0 ;
3711 int res1 = 0 ;
3712 void *argp2 = 0 ;
3713 int res2 = 0 ;
3714 bool temp3 = false ;
3715 PyObject * obj0 = 0 ;
3716 PyObject * obj1 = 0 ;
3717 PyObject * obj2 = 0 ;
3718 char * kwnames[] = {
3719 (char *) "self",(char *) "parent",(char *) "name", NULL
3720 };
3721
3722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3724 if (!SWIG_IsOK(res1)) {
3725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3726 }
3727 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3729 if (!SWIG_IsOK(res2)) {
3730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadDialog" "', expected argument " "2"" of type '" "wxWindow *""'");
3731 }
3732 arg2 = reinterpret_cast< wxWindow * >(argp2);
3733 {
3734 arg3 = wxString_in_helper(obj2);
3735 if (arg3 == NULL) SWIG_fail;
3736 temp3 = true;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3);
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 {
3745 resultobj = wxPyMake_wxObject(result, (bool)0);
3746 }
3747 {
3748 if (temp3)
3749 delete arg3;
3750 }
3751 return resultobj;
3752 fail:
3753 {
3754 if (temp3)
3755 delete arg3;
3756 }
3757 return NULL;
3758 }
3759
3760
3761 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3762 PyObject *resultobj = 0;
3763 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3764 wxDialog *arg2 = (wxDialog *) 0 ;
3765 wxWindow *arg3 = (wxWindow *) 0 ;
3766 wxString *arg4 = 0 ;
3767 bool result;
3768 void *argp1 = 0 ;
3769 int res1 = 0 ;
3770 void *argp2 = 0 ;
3771 int res2 = 0 ;
3772 void *argp3 = 0 ;
3773 int res3 = 0 ;
3774 bool temp4 = false ;
3775 PyObject * obj0 = 0 ;
3776 PyObject * obj1 = 0 ;
3777 PyObject * obj2 = 0 ;
3778 PyObject * obj3 = 0 ;
3779 char * kwnames[] = {
3780 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
3781 };
3782
3783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3785 if (!SWIG_IsOK(res1)) {
3786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3787 }
3788 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3789 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDialog, 0 | 0 );
3790 if (!SWIG_IsOK(res2)) {
3791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "2"" of type '" "wxDialog *""'");
3792 }
3793 arg2 = reinterpret_cast< wxDialog * >(argp2);
3794 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
3795 if (!SWIG_IsOK(res3)) {
3796 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnDialog" "', expected argument " "3"" of type '" "wxWindow *""'");
3797 }
3798 arg3 = reinterpret_cast< wxWindow * >(argp3);
3799 {
3800 arg4 = wxString_in_helper(obj3);
3801 if (arg4 == NULL) SWIG_fail;
3802 temp4 = true;
3803 }
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4);
3807 wxPyEndAllowThreads(__tstate);
3808 if (PyErr_Occurred()) SWIG_fail;
3809 }
3810 {
3811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3812 }
3813 {
3814 if (temp4)
3815 delete arg4;
3816 }
3817 return resultobj;
3818 fail:
3819 {
3820 if (temp4)
3821 delete arg4;
3822 }
3823 return NULL;
3824 }
3825
3826
3827 SWIGINTERN PyObject *_wrap_XmlResource_LoadPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj = 0;
3829 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3830 wxWindow *arg2 = (wxWindow *) 0 ;
3831 wxString *arg3 = 0 ;
3832 wxPanel *result = 0 ;
3833 void *argp1 = 0 ;
3834 int res1 = 0 ;
3835 void *argp2 = 0 ;
3836 int res2 = 0 ;
3837 bool temp3 = false ;
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj1 = 0 ;
3840 PyObject * obj2 = 0 ;
3841 char * kwnames[] = {
3842 (char *) "self",(char *) "parent",(char *) "name", NULL
3843 };
3844
3845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3847 if (!SWIG_IsOK(res1)) {
3848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3849 }
3850 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3852 if (!SWIG_IsOK(res2)) {
3853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadPanel" "', expected argument " "2"" of type '" "wxWindow *""'");
3854 }
3855 arg2 = reinterpret_cast< wxWindow * >(argp2);
3856 {
3857 arg3 = wxString_in_helper(obj2);
3858 if (arg3 == NULL) SWIG_fail;
3859 temp3 = true;
3860 }
3861 {
3862 PyThreadState* __tstate = wxPyBeginAllowThreads();
3863 result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3);
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 {
3868 resultobj = wxPyMake_wxObject(result, (bool)0);
3869 }
3870 {
3871 if (temp3)
3872 delete arg3;
3873 }
3874 return resultobj;
3875 fail:
3876 {
3877 if (temp3)
3878 delete arg3;
3879 }
3880 return NULL;
3881 }
3882
3883
3884 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj = 0;
3886 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3887 wxPanel *arg2 = (wxPanel *) 0 ;
3888 wxWindow *arg3 = (wxWindow *) 0 ;
3889 wxString *arg4 = 0 ;
3890 bool result;
3891 void *argp1 = 0 ;
3892 int res1 = 0 ;
3893 void *argp2 = 0 ;
3894 int res2 = 0 ;
3895 void *argp3 = 0 ;
3896 int res3 = 0 ;
3897 bool temp4 = false ;
3898 PyObject * obj0 = 0 ;
3899 PyObject * obj1 = 0 ;
3900 PyObject * obj2 = 0 ;
3901 PyObject * obj3 = 0 ;
3902 char * kwnames[] = {
3903 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
3904 };
3905
3906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3908 if (!SWIG_IsOK(res1)) {
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3910 }
3911 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPanel, 0 | 0 );
3913 if (!SWIG_IsOK(res2)) {
3914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "2"" of type '" "wxPanel *""'");
3915 }
3916 arg2 = reinterpret_cast< wxPanel * >(argp2);
3917 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
3918 if (!SWIG_IsOK(res3)) {
3919 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnPanel" "', expected argument " "3"" of type '" "wxWindow *""'");
3920 }
3921 arg3 = reinterpret_cast< wxWindow * >(argp3);
3922 {
3923 arg4 = wxString_in_helper(obj3);
3924 if (arg4 == NULL) SWIG_fail;
3925 temp4 = true;
3926 }
3927 {
3928 PyThreadState* __tstate = wxPyBeginAllowThreads();
3929 result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4);
3930 wxPyEndAllowThreads(__tstate);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 {
3934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3935 }
3936 {
3937 if (temp4)
3938 delete arg4;
3939 }
3940 return resultobj;
3941 fail:
3942 {
3943 if (temp4)
3944 delete arg4;
3945 }
3946 return NULL;
3947 }
3948
3949
3950 SWIGINTERN PyObject *_wrap_XmlResource_LoadFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3951 PyObject *resultobj = 0;
3952 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
3953 wxWindow *arg2 = (wxWindow *) 0 ;
3954 wxString *arg3 = 0 ;
3955 wxFrame *result = 0 ;
3956 void *argp1 = 0 ;
3957 int res1 = 0 ;
3958 void *argp2 = 0 ;
3959 int res2 = 0 ;
3960 bool temp3 = false ;
3961 PyObject * obj0 = 0 ;
3962 PyObject * obj1 = 0 ;
3963 PyObject * obj2 = 0 ;
3964 char * kwnames[] = {
3965 (char *) "self",(char *) "parent",(char *) "name", NULL
3966 };
3967
3968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
3970 if (!SWIG_IsOK(res1)) {
3971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
3972 }
3973 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
3974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3975 if (!SWIG_IsOK(res2)) {
3976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadFrame" "', expected argument " "2"" of type '" "wxWindow *""'");
3977 }
3978 arg2 = reinterpret_cast< wxWindow * >(argp2);
3979 {
3980 arg3 = wxString_in_helper(obj2);
3981 if (arg3 == NULL) SWIG_fail;
3982 temp3 = true;
3983 }
3984 {
3985 PyThreadState* __tstate = wxPyBeginAllowThreads();
3986 result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3);
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
3990 {
3991 resultobj = wxPyMake_wxObject(result, (bool)0);
3992 }
3993 {
3994 if (temp3)
3995 delete arg3;
3996 }
3997 return resultobj;
3998 fail:
3999 {
4000 if (temp3)
4001 delete arg3;
4002 }
4003 return NULL;
4004 }
4005
4006
4007 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4008 PyObject *resultobj = 0;
4009 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4010 wxFrame *arg2 = (wxFrame *) 0 ;
4011 wxWindow *arg3 = (wxWindow *) 0 ;
4012 wxString *arg4 = 0 ;
4013 bool result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 void *argp2 = 0 ;
4017 int res2 = 0 ;
4018 void *argp3 = 0 ;
4019 int res3 = 0 ;
4020 bool temp4 = false ;
4021 PyObject * obj0 = 0 ;
4022 PyObject * obj1 = 0 ;
4023 PyObject * obj2 = 0 ;
4024 PyObject * obj3 = 0 ;
4025 char * kwnames[] = {
4026 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
4027 };
4028
4029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4031 if (!SWIG_IsOK(res1)) {
4032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4033 }
4034 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 );
4036 if (!SWIG_IsOK(res2)) {
4037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "2"" of type '" "wxFrame *""'");
4038 }
4039 arg2 = reinterpret_cast< wxFrame * >(argp2);
4040 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4041 if (!SWIG_IsOK(res3)) {
4042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnFrame" "', expected argument " "3"" of type '" "wxWindow *""'");
4043 }
4044 arg3 = reinterpret_cast< wxWindow * >(argp3);
4045 {
4046 arg4 = wxString_in_helper(obj3);
4047 if (arg4 == NULL) SWIG_fail;
4048 temp4 = true;
4049 }
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4);
4053 wxPyEndAllowThreads(__tstate);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 {
4057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4058 }
4059 {
4060 if (temp4)
4061 delete arg4;
4062 }
4063 return resultobj;
4064 fail:
4065 {
4066 if (temp4)
4067 delete arg4;
4068 }
4069 return NULL;
4070 }
4071
4072
4073 SWIGINTERN PyObject *_wrap_XmlResource_LoadObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj = 0;
4075 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4076 wxWindow *arg2 = (wxWindow *) 0 ;
4077 wxString *arg3 = 0 ;
4078 wxString *arg4 = 0 ;
4079 wxObject *result = 0 ;
4080 void *argp1 = 0 ;
4081 int res1 = 0 ;
4082 void *argp2 = 0 ;
4083 int res2 = 0 ;
4084 bool temp3 = false ;
4085 bool temp4 = false ;
4086 PyObject * obj0 = 0 ;
4087 PyObject * obj1 = 0 ;
4088 PyObject * obj2 = 0 ;
4089 PyObject * obj3 = 0 ;
4090 char * kwnames[] = {
4091 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
4092 };
4093
4094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4096 if (!SWIG_IsOK(res1)) {
4097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4098 }
4099 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4101 if (!SWIG_IsOK(res2)) {
4102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadObject" "', expected argument " "2"" of type '" "wxWindow *""'");
4103 }
4104 arg2 = reinterpret_cast< wxWindow * >(argp2);
4105 {
4106 arg3 = wxString_in_helper(obj2);
4107 if (arg3 == NULL) SWIG_fail;
4108 temp3 = true;
4109 }
4110 {
4111 arg4 = wxString_in_helper(obj3);
4112 if (arg4 == NULL) SWIG_fail;
4113 temp4 = true;
4114 }
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 {
4122 resultobj = wxPyMake_wxObject(result, (bool)0);
4123 }
4124 {
4125 if (temp3)
4126 delete arg3;
4127 }
4128 {
4129 if (temp4)
4130 delete arg4;
4131 }
4132 return resultobj;
4133 fail:
4134 {
4135 if (temp3)
4136 delete arg3;
4137 }
4138 {
4139 if (temp4)
4140 delete arg4;
4141 }
4142 return NULL;
4143 }
4144
4145
4146 SWIGINTERN PyObject *_wrap_XmlResource_LoadOnObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4147 PyObject *resultobj = 0;
4148 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4149 wxObject *arg2 = (wxObject *) 0 ;
4150 wxWindow *arg3 = (wxWindow *) 0 ;
4151 wxString *arg4 = 0 ;
4152 wxString *arg5 = 0 ;
4153 bool result;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 void *argp2 = 0 ;
4157 int res2 = 0 ;
4158 void *argp3 = 0 ;
4159 int res3 = 0 ;
4160 bool temp4 = false ;
4161 bool temp5 = false ;
4162 PyObject * obj0 = 0 ;
4163 PyObject * obj1 = 0 ;
4164 PyObject * obj2 = 0 ;
4165 PyObject * obj3 = 0 ;
4166 PyObject * obj4 = 0 ;
4167 char * kwnames[] = {
4168 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
4169 };
4170
4171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4173 if (!SWIG_IsOK(res1)) {
4174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadOnObject" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4175 }
4176 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
4178 if (!SWIG_IsOK(res2)) {
4179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_LoadOnObject" "', expected argument " "2"" of type '" "wxObject *""'");
4180 }
4181 arg2 = reinterpret_cast< wxObject * >(argp2);
4182 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4183 if (!SWIG_IsOK(res3)) {
4184 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_LoadOnObject" "', expected argument " "3"" of type '" "wxWindow *""'");
4185 }
4186 arg3 = reinterpret_cast< wxWindow * >(argp3);
4187 {
4188 arg4 = wxString_in_helper(obj3);
4189 if (arg4 == NULL) SWIG_fail;
4190 temp4 = true;
4191 }
4192 {
4193 arg5 = wxString_in_helper(obj4);
4194 if (arg5 == NULL) SWIG_fail;
4195 temp5 = true;
4196 }
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 {
4204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4205 }
4206 {
4207 if (temp4)
4208 delete arg4;
4209 }
4210 {
4211 if (temp5)
4212 delete arg5;
4213 }
4214 return resultobj;
4215 fail:
4216 {
4217 if (temp4)
4218 delete arg4;
4219 }
4220 {
4221 if (temp5)
4222 delete arg5;
4223 }
4224 return NULL;
4225 }
4226
4227
4228 SWIGINTERN PyObject *_wrap_XmlResource_LoadBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4229 PyObject *resultobj = 0;
4230 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4231 wxString *arg2 = 0 ;
4232 wxBitmap result;
4233 void *argp1 = 0 ;
4234 int res1 = 0 ;
4235 bool temp2 = false ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char * kwnames[] = {
4239 (char *) "self",(char *) "name", NULL
4240 };
4241
4242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
4243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadBitmap" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4246 }
4247 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4248 {
4249 arg2 = wxString_in_helper(obj1);
4250 if (arg2 == NULL) SWIG_fail;
4251 temp2 = true;
4252 }
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 result = (arg1)->LoadBitmap((wxString const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4260 {
4261 if (temp2)
4262 delete arg2;
4263 }
4264 return resultobj;
4265 fail:
4266 {
4267 if (temp2)
4268 delete arg2;
4269 }
4270 return NULL;
4271 }
4272
4273
4274 SWIGINTERN PyObject *_wrap_XmlResource_LoadIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj = 0;
4276 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4277 wxString *arg2 = 0 ;
4278 wxIcon result;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 bool temp2 = false ;
4282 PyObject * obj0 = 0 ;
4283 PyObject * obj1 = 0 ;
4284 char * kwnames[] = {
4285 (char *) "self",(char *) "name", NULL
4286 };
4287
4288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) SWIG_fail;
4289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4290 if (!SWIG_IsOK(res1)) {
4291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_LoadIcon" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4292 }
4293 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4294 {
4295 arg2 = wxString_in_helper(obj1);
4296 if (arg2 == NULL) SWIG_fail;
4297 temp2 = true;
4298 }
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (arg1)->LoadIcon((wxString const &)*arg2);
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
4306 {
4307 if (temp2)
4308 delete arg2;
4309 }
4310 return resultobj;
4311 fail:
4312 {
4313 if (temp2)
4314 delete arg2;
4315 }
4316 return NULL;
4317 }
4318
4319
4320 SWIGINTERN PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4321 PyObject *resultobj = 0;
4322 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4323 wxString *arg2 = 0 ;
4324 wxWindow *arg3 = (wxWindow *) 0 ;
4325 wxWindow *arg4 = (wxWindow *) NULL ;
4326 bool result;
4327 void *argp1 = 0 ;
4328 int res1 = 0 ;
4329 bool temp2 = false ;
4330 void *argp3 = 0 ;
4331 int res3 = 0 ;
4332 void *argp4 = 0 ;
4333 int res4 = 0 ;
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 PyObject * obj2 = 0 ;
4337 PyObject * obj3 = 0 ;
4338 char * kwnames[] = {
4339 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
4340 };
4341
4342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4344 if (!SWIG_IsOK(res1)) {
4345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4346 }
4347 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4348 {
4349 arg2 = wxString_in_helper(obj1);
4350 if (arg2 == NULL) SWIG_fail;
4351 temp2 = true;
4352 }
4353 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
4354 if (!SWIG_IsOK(res3)) {
4355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "3"" of type '" "wxWindow *""'");
4356 }
4357 arg3 = reinterpret_cast< wxWindow * >(argp3);
4358 if (obj3) {
4359 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
4360 if (!SWIG_IsOK(res4)) {
4361 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResource_AttachUnknownControl" "', expected argument " "4"" of type '" "wxWindow *""'");
4362 }
4363 arg4 = reinterpret_cast< wxWindow * >(argp4);
4364 }
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4);
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 {
4372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4373 }
4374 {
4375 if (temp2)
4376 delete arg2;
4377 }
4378 return resultobj;
4379 fail:
4380 {
4381 if (temp2)
4382 delete arg2;
4383 }
4384 return NULL;
4385 }
4386
4387
4388 SWIGINTERN PyObject *_wrap_XmlResource_GetXRCID(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj = 0;
4390 wxString *arg1 = 0 ;
4391 int arg2 = (int) wxID_NONE ;
4392 int result;
4393 bool temp1 = false ;
4394 int val2 ;
4395 int ecode2 = 0 ;
4396 PyObject * obj0 = 0 ;
4397 PyObject * obj1 = 0 ;
4398 char * kwnames[] = {
4399 (char *) "str_id",(char *) "value_if_not_found", NULL
4400 };
4401
4402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResource_GetXRCID",kwnames,&obj0,&obj1)) SWIG_fail;
4403 {
4404 arg1 = wxString_in_helper(obj0);
4405 if (arg1 == NULL) SWIG_fail;
4406 temp1 = true;
4407 }
4408 if (obj1) {
4409 ecode2 = SWIG_AsVal_int(obj1, &val2);
4410 if (!SWIG_IsOK(ecode2)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_GetXRCID" "', expected argument " "2"" of type '" "int""'");
4412 }
4413 arg2 = static_cast< int >(val2);
4414 }
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1,arg2);
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 resultobj = SWIG_From_int(static_cast< int >(result));
4422 {
4423 if (temp1)
4424 delete arg1;
4425 }
4426 return resultobj;
4427 fail:
4428 {
4429 if (temp1)
4430 delete arg1;
4431 }
4432 return NULL;
4433 }
4434
4435
4436 SWIGINTERN PyObject *_wrap_XmlResource_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4439 long result;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 PyObject *swig_obj[1] ;
4443
4444 if (!args) SWIG_fail;
4445 swig_obj[0] = args;
4446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4449 }
4450 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (long)((wxXmlResource const *)arg1)->GetVersion();
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_From_long(static_cast< long >(result));
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 SWIGINTERN PyObject *_wrap_XmlResource_CompareVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj = 0;
4466 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4467 int arg2 ;
4468 int arg3 ;
4469 int arg4 ;
4470 int arg5 ;
4471 int result;
4472 void *argp1 = 0 ;
4473 int res1 = 0 ;
4474 int val2 ;
4475 int ecode2 = 0 ;
4476 int val3 ;
4477 int ecode3 = 0 ;
4478 int val4 ;
4479 int ecode4 = 0 ;
4480 int val5 ;
4481 int ecode5 = 0 ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 PyObject * obj2 = 0 ;
4485 PyObject * obj3 = 0 ;
4486 PyObject * obj4 = 0 ;
4487 char * kwnames[] = {
4488 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
4489 };
4490
4491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4493 if (!SWIG_IsOK(res1)) {
4494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_CompareVersion" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4495 }
4496 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4497 ecode2 = SWIG_AsVal_int(obj1, &val2);
4498 if (!SWIG_IsOK(ecode2)) {
4499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_CompareVersion" "', expected argument " "2"" of type '" "int""'");
4500 }
4501 arg2 = static_cast< int >(val2);
4502 ecode3 = SWIG_AsVal_int(obj2, &val3);
4503 if (!SWIG_IsOK(ecode3)) {
4504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResource_CompareVersion" "', expected argument " "3"" of type '" "int""'");
4505 }
4506 arg3 = static_cast< int >(val3);
4507 ecode4 = SWIG_AsVal_int(obj3, &val4);
4508 if (!SWIG_IsOK(ecode4)) {
4509 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlResource_CompareVersion" "', expected argument " "4"" of type '" "int""'");
4510 }
4511 arg4 = static_cast< int >(val4);
4512 ecode5 = SWIG_AsVal_int(obj4, &val5);
4513 if (!SWIG_IsOK(ecode5)) {
4514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "XmlResource_CompareVersion" "', expected argument " "5"" of type '" "int""'");
4515 }
4516 arg5 = static_cast< int >(val5);
4517 {
4518 PyThreadState* __tstate = wxPyBeginAllowThreads();
4519 result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5);
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = SWIG_From_int(static_cast< int >(result));
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 SWIGINTERN PyObject *_wrap_XmlResource_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4531 PyObject *resultobj = 0;
4532 wxXmlResource *result = 0 ;
4533
4534 if (!SWIG_Python_UnpackTuple(args,"XmlResource_Get",0,0,0)) SWIG_fail;
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 result = (wxXmlResource *)wxXmlResource::Get();
4538 wxPyEndAllowThreads(__tstate);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
4542 return resultobj;
4543 fail:
4544 return NULL;
4545 }
4546
4547
4548 SWIGINTERN PyObject *_wrap_XmlResource_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4549 PyObject *resultobj = 0;
4550 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4551 wxXmlResource *result = 0 ;
4552 void *argp1 = 0 ;
4553 int res1 = 0 ;
4554 PyObject * obj0 = 0 ;
4555 char * kwnames[] = {
4556 (char *) "res", NULL
4557 };
4558
4559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) SWIG_fail;
4560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_Set" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4563 }
4564 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4565 {
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = (wxXmlResource *)wxXmlResource::Set(arg1);
4568 wxPyEndAllowThreads(__tstate);
4569 if (PyErr_Occurred()) SWIG_fail;
4570 }
4571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
4572 return resultobj;
4573 fail:
4574 return NULL;
4575 }
4576
4577
4578 SWIGINTERN PyObject *_wrap_XmlResource_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4579 PyObject *resultobj = 0;
4580 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4581 int result;
4582 void *argp1 = 0 ;
4583 int res1 = 0 ;
4584 PyObject *swig_obj[1] ;
4585
4586 if (!args) SWIG_fail;
4587 swig_obj[0] = args;
4588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4589 if (!SWIG_IsOK(res1)) {
4590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4591 }
4592 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 result = (int)(arg1)->GetFlags();
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 resultobj = SWIG_From_int(static_cast< int >(result));
4600 return resultobj;
4601 fail:
4602 return NULL;
4603 }
4604
4605
4606 SWIGINTERN PyObject *_wrap_XmlResource_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj = 0;
4608 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4609 int arg2 ;
4610 void *argp1 = 0 ;
4611 int res1 = 0 ;
4612 int val2 ;
4613 int ecode2 = 0 ;
4614 PyObject * obj0 = 0 ;
4615 PyObject * obj1 = 0 ;
4616 char * kwnames[] = {
4617 (char *) "self",(char *) "flags", NULL
4618 };
4619
4620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4622 if (!SWIG_IsOK(res1)) {
4623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetFlags" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4624 }
4625 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4626 ecode2 = SWIG_AsVal_int(obj1, &val2);
4627 if (!SWIG_IsOK(ecode2)) {
4628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlResource_SetFlags" "', expected argument " "2"" of type '" "int""'");
4629 }
4630 arg2 = static_cast< int >(val2);
4631 {
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 (arg1)->SetFlags(arg2);
4634 wxPyEndAllowThreads(__tstate);
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 resultobj = SWIG_Py_Void();
4638 return resultobj;
4639 fail:
4640 return NULL;
4641 }
4642
4643
4644 SWIGINTERN PyObject *_wrap_XmlResource_GetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4645 PyObject *resultobj = 0;
4646 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4647 wxString result;
4648 void *argp1 = 0 ;
4649 int res1 = 0 ;
4650 PyObject *swig_obj[1] ;
4651
4652 if (!args) SWIG_fail;
4653 swig_obj[0] = args;
4654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4655 if (!SWIG_IsOK(res1)) {
4656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetDomain" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
4657 }
4658 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4659 {
4660 PyThreadState* __tstate = wxPyBeginAllowThreads();
4661 result = ((wxXmlResource const *)arg1)->GetDomain();
4662 wxPyEndAllowThreads(__tstate);
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 {
4666 #if wxUSE_UNICODE
4667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4668 #else
4669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4670 #endif
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_XmlResource_SetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj = 0;
4680 wxXmlResource *arg1 = (wxXmlResource *) 0 ;
4681 wxString *arg2 = 0 ;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 bool temp2 = false ;
4685 PyObject * obj0 = 0 ;
4686 PyObject * obj1 = 0 ;
4687 char * kwnames[] = {
4688 (char *) "self",(char *) "domain", NULL
4689 };
4690
4691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetDomain",kwnames,&obj0,&obj1)) SWIG_fail;
4692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
4693 if (!SWIG_IsOK(res1)) {
4694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetDomain" "', expected argument " "1"" of type '" "wxXmlResource *""'");
4695 }
4696 arg1 = reinterpret_cast< wxXmlResource * >(argp1);
4697 {
4698 arg2 = wxString_in_helper(obj1);
4699 if (arg2 == NULL) SWIG_fail;
4700 temp2 = true;
4701 }
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 (arg1)->SetDomain((wxString const &)*arg2);
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_Py_Void();
4709 {
4710 if (temp2)
4711 delete arg2;
4712 }
4713 return resultobj;
4714 fail:
4715 {
4716 if (temp2)
4717 delete arg2;
4718 }
4719 return NULL;
4720 }
4721
4722
4723 SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4724 PyObject *obj;
4725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4726 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlResource, SWIG_NewClientData(obj));
4727 return SWIG_Py_Void();
4728 }
4729
4730 SWIGINTERN PyObject *XmlResource_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 return SWIG_Python_InitShadowInstance(args);
4732 }
4733
4734 SWIGINTERN PyObject *_wrap_new_XmlSubclassFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 wxPyXmlSubclassFactory *result = 0 ;
4737
4738 if (!SWIG_Python_UnpackTuple(args,"new_XmlSubclassFactory",0,0,0)) SWIG_fail;
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory();
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_POINTER_NEW | 0 );
4746 return resultobj;
4747 fail:
4748 return NULL;
4749 }
4750
4751
4752 SWIGINTERN PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj = 0;
4754 wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ;
4755 PyObject *arg2 = (PyObject *) 0 ;
4756 PyObject *arg3 = (PyObject *) 0 ;
4757 void *argp1 = 0 ;
4758 int res1 = 0 ;
4759 PyObject * obj0 = 0 ;
4760 PyObject * obj1 = 0 ;
4761 PyObject * obj2 = 0 ;
4762 char * kwnames[] = {
4763 (char *) "self",(char *) "self",(char *) "_class", NULL
4764 };
4765
4766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlSubclassFactory, 0 | 0 );
4768 if (!SWIG_IsOK(res1)) {
4769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlSubclassFactory__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlSubclassFactory *""'");
4770 }
4771 arg1 = reinterpret_cast< wxPyXmlSubclassFactory * >(argp1);
4772 arg2 = obj1;
4773 arg3 = obj2;
4774 {
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 (arg1)->_setCallbackInfo(arg2,arg3);
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 resultobj = SWIG_Py_Void();
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 SWIGINTERN PyObject *XmlSubclassFactory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4788 PyObject *obj;
4789 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4790 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, SWIG_NewClientData(obj));
4791 return SWIG_Py_Void();
4792 }
4793
4794 SWIGINTERN PyObject *XmlSubclassFactory_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4795 return SWIG_Python_InitShadowInstance(args);
4796 }
4797
4798 SWIGINTERN PyObject *_wrap_new_XmlProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4799 PyObject *resultobj = 0;
4800 wxString const &arg1_defvalue = wxPyEmptyString ;
4801 wxString *arg1 = (wxString *) &arg1_defvalue ;
4802 wxString const &arg2_defvalue = wxPyEmptyString ;
4803 wxString *arg2 = (wxString *) &arg2_defvalue ;
4804 wxXmlProperty *arg3 = (wxXmlProperty *) NULL ;
4805 wxXmlProperty *result = 0 ;
4806 bool temp1 = false ;
4807 bool temp2 = false ;
4808 void *argp3 = 0 ;
4809 int res3 = 0 ;
4810 PyObject * obj0 = 0 ;
4811 PyObject * obj1 = 0 ;
4812 PyObject * obj2 = 0 ;
4813 char * kwnames[] = {
4814 (char *) "name",(char *) "value",(char *) "next", NULL
4815 };
4816
4817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4818 if (obj0) {
4819 {
4820 arg1 = wxString_in_helper(obj0);
4821 if (arg1 == NULL) SWIG_fail;
4822 temp1 = true;
4823 }
4824 }
4825 if (obj1) {
4826 {
4827 arg2 = wxString_in_helper(obj1);
4828 if (arg2 == NULL) SWIG_fail;
4829 temp2 = true;
4830 }
4831 }
4832 if (obj2) {
4833 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4834 if (!SWIG_IsOK(res3)) {
4835 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XmlProperty" "', expected argument " "3"" of type '" "wxXmlProperty *""'");
4836 }
4837 arg3 = reinterpret_cast< wxXmlProperty * >(argp3);
4838 }
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3);
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, SWIG_POINTER_NEW | 0 );
4846 {
4847 if (temp1)
4848 delete arg1;
4849 }
4850 {
4851 if (temp2)
4852 delete arg2;
4853 }
4854 return resultobj;
4855 fail:
4856 {
4857 if (temp1)
4858 delete arg1;
4859 }
4860 {
4861 if (temp2)
4862 delete arg2;
4863 }
4864 return NULL;
4865 }
4866
4867
4868 SWIGINTERN PyObject *_wrap_XmlProperty_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4869 PyObject *resultobj = 0;
4870 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4871 wxString result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 PyObject *swig_obj[1] ;
4875
4876 if (!args) SWIG_fail;
4877 swig_obj[0] = args;
4878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4879 if (!SWIG_IsOK(res1)) {
4880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetName" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4881 }
4882 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = ((wxXmlProperty const *)arg1)->GetName();
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 {
4890 #if wxUSE_UNICODE
4891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4892 #else
4893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4894 #endif
4895 }
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 SWIGINTERN PyObject *_wrap_XmlProperty_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4905 wxString result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetValue" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4915 }
4916 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = ((wxXmlProperty const *)arg1)->GetValue();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 {
4924 #if wxUSE_UNICODE
4925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4926 #else
4927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4928 #endif
4929 }
4930 return resultobj;
4931 fail:
4932 return NULL;
4933 }
4934
4935
4936 SWIGINTERN PyObject *_wrap_XmlProperty_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4937 PyObject *resultobj = 0;
4938 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4939 wxXmlProperty *result = 0 ;
4940 void *argp1 = 0 ;
4941 int res1 = 0 ;
4942 PyObject *swig_obj[1] ;
4943
4944 if (!args) SWIG_fail;
4945 swig_obj[0] = args;
4946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4947 if (!SWIG_IsOK(res1)) {
4948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_GetNext" "', expected argument " "1"" of type '" "wxXmlProperty const *""'");
4949 }
4950 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext();
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 SWIGINTERN PyObject *_wrap_XmlProperty_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj = 0;
4966 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
4967 wxString *arg2 = 0 ;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 bool temp2 = false ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 char * kwnames[] = {
4974 (char *) "self",(char *) "name", NULL
4975 };
4976
4977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
4978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetName" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
4981 }
4982 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
4983 {
4984 arg2 = wxString_in_helper(obj1);
4985 if (arg2 == NULL) SWIG_fail;
4986 temp2 = true;
4987 }
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 (arg1)->SetName((wxString const &)*arg2);
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 resultobj = SWIG_Py_Void();
4995 {
4996 if (temp2)
4997 delete arg2;
4998 }
4999 return resultobj;
5000 fail:
5001 {
5002 if (temp2)
5003 delete arg2;
5004 }
5005 return NULL;
5006 }
5007
5008
5009 SWIGINTERN PyObject *_wrap_XmlProperty_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj = 0;
5011 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
5012 wxString *arg2 = 0 ;
5013 void *argp1 = 0 ;
5014 int res1 = 0 ;
5015 bool temp2 = false ;
5016 PyObject * obj0 = 0 ;
5017 PyObject * obj1 = 0 ;
5018 char * kwnames[] = {
5019 (char *) "self",(char *) "value", NULL
5020 };
5021
5022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5024 if (!SWIG_IsOK(res1)) {
5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetValue" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
5026 }
5027 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
5028 {
5029 arg2 = wxString_in_helper(obj1);
5030 if (arg2 == NULL) SWIG_fail;
5031 temp2 = true;
5032 }
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 (arg1)->SetValue((wxString const &)*arg2);
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 resultobj = SWIG_Py_Void();
5040 {
5041 if (temp2)
5042 delete arg2;
5043 }
5044 return resultobj;
5045 fail:
5046 {
5047 if (temp2)
5048 delete arg2;
5049 }
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *_wrap_XmlProperty_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj = 0;
5056 wxXmlProperty *arg1 = (wxXmlProperty *) 0 ;
5057 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
5058 void *argp1 = 0 ;
5059 int res1 = 0 ;
5060 void *argp2 = 0 ;
5061 int res2 = 0 ;
5062 PyObject * obj0 = 0 ;
5063 PyObject * obj1 = 0 ;
5064 char * kwnames[] = {
5065 (char *) "self",(char *) "next", NULL
5066 };
5067
5068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) SWIG_fail;
5069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5070 if (!SWIG_IsOK(res1)) {
5071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlProperty_SetNext" "', expected argument " "1"" of type '" "wxXmlProperty *""'");
5072 }
5073 arg1 = reinterpret_cast< wxXmlProperty * >(argp1);
5074 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5075 if (!SWIG_IsOK(res2)) {
5076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlProperty_SetNext" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5077 }
5078 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 (arg1)->SetNext(arg2);
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 resultobj = SWIG_Py_Void();
5086 return resultobj;
5087 fail:
5088 return NULL;
5089 }
5090
5091
5092 SWIGINTERN PyObject *XmlProperty_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5093 PyObject *obj;
5094 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5095 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlProperty, SWIG_NewClientData(obj));
5096 return SWIG_Py_Void();
5097 }
5098
5099 SWIGINTERN PyObject *XmlProperty_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5100 return SWIG_Python_InitShadowInstance(args);
5101 }
5102
5103 SWIGINTERN PyObject *_wrap_new_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5104 PyObject *resultobj = 0;
5105 wxXmlNode *arg1 = (wxXmlNode *) NULL ;
5106 wxXmlNodeType arg2 = (wxXmlNodeType) 0 ;
5107 wxString const &arg3_defvalue = wxPyEmptyString ;
5108 wxString *arg3 = (wxString *) &arg3_defvalue ;
5109 wxString const &arg4_defvalue = wxPyEmptyString ;
5110 wxString *arg4 = (wxString *) &arg4_defvalue ;
5111 wxXmlProperty *arg5 = (wxXmlProperty *) NULL ;
5112 wxXmlNode *arg6 = (wxXmlNode *) NULL ;
5113 wxXmlNode *result = 0 ;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 int val2 ;
5117 int ecode2 = 0 ;
5118 bool temp3 = false ;
5119 bool temp4 = false ;
5120 void *argp5 = 0 ;
5121 int res5 = 0 ;
5122 void *argp6 = 0 ;
5123 int res6 = 0 ;
5124 PyObject * obj0 = 0 ;
5125 PyObject * obj1 = 0 ;
5126 PyObject * obj2 = 0 ;
5127 PyObject * obj3 = 0 ;
5128 PyObject * obj4 = 0 ;
5129 PyObject * obj5 = 0 ;
5130 char * kwnames[] = {
5131 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
5132 };
5133
5134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
5135 if (obj0) {
5136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5137 if (!SWIG_IsOK(res1)) {
5138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5139 }
5140 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5141 }
5142 if (obj1) {
5143 ecode2 = SWIG_AsVal_int(obj1, &val2);
5144 if (!SWIG_IsOK(ecode2)) {
5145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_XmlNode" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
5146 }
5147 arg2 = static_cast< wxXmlNodeType >(val2);
5148 }
5149 if (obj2) {
5150 {
5151 arg3 = wxString_in_helper(obj2);
5152 if (arg3 == NULL) SWIG_fail;
5153 temp3 = true;
5154 }
5155 }
5156 if (obj3) {
5157 {
5158 arg4 = wxString_in_helper(obj3);
5159 if (arg4 == NULL) SWIG_fail;
5160 temp4 = true;
5161 }
5162 }
5163 if (obj4) {
5164 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5165 if (!SWIG_IsOK(res5)) {
5166 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_XmlNode" "', expected argument " "5"" of type '" "wxXmlProperty *""'");
5167 }
5168 arg5 = reinterpret_cast< wxXmlProperty * >(argp5);
5169 }
5170 if (obj5) {
5171 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5172 if (!SWIG_IsOK(res6)) {
5173 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_XmlNode" "', expected argument " "6"" of type '" "wxXmlNode *""'");
5174 }
5175 arg6 = reinterpret_cast< wxXmlNode * >(argp6);
5176 }
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (wxXmlNode *)new wxXmlNode(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_NEW | 0 );
5184 {
5185 if (temp3)
5186 delete arg3;
5187 }
5188 {
5189 if (temp4)
5190 delete arg4;
5191 }
5192 return resultobj;
5193 fail:
5194 {
5195 if (temp3)
5196 delete arg3;
5197 }
5198 {
5199 if (temp4)
5200 delete arg4;
5201 }
5202 return NULL;
5203 }
5204
5205
5206 SWIGINTERN PyObject *_wrap_delete_XmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5207 PyObject *resultobj = 0;
5208 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 PyObject *swig_obj[1] ;
5212
5213 if (!args) SWIG_fail;
5214 swig_obj[0] = args;
5215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, SWIG_POINTER_DISOWN | 0 );
5216 if (!SWIG_IsOK(res1)) {
5217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlNode" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5218 }
5219 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 delete arg1;
5223
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 resultobj = SWIG_Py_Void();
5228 return resultobj;
5229 fail:
5230 return NULL;
5231 }
5232
5233
5234 SWIGINTERN PyObject *_wrap_new_XmlNodeEasy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj = 0;
5236 wxXmlNodeType arg1 ;
5237 wxString *arg2 = 0 ;
5238 wxString const &arg3_defvalue = wxPyEmptyString ;
5239 wxString *arg3 = (wxString *) &arg3_defvalue ;
5240 wxXmlNode *result = 0 ;
5241 int val1 ;
5242 int ecode1 = 0 ;
5243 bool temp2 = false ;
5244 bool temp3 = false ;
5245 PyObject * obj0 = 0 ;
5246 PyObject * obj1 = 0 ;
5247 PyObject * obj2 = 0 ;
5248 char * kwnames[] = {
5249 (char *) "type",(char *) "name",(char *) "content", NULL
5250 };
5251
5252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5253 ecode1 = SWIG_AsVal_int(obj0, &val1);
5254 if (!SWIG_IsOK(ecode1)) {
5255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_XmlNodeEasy" "', expected argument " "1"" of type '" "wxXmlNodeType""'");
5256 }
5257 arg1 = static_cast< wxXmlNodeType >(val1);
5258 {
5259 arg2 = wxString_in_helper(obj1);
5260 if (arg2 == NULL) SWIG_fail;
5261 temp2 = true;
5262 }
5263 if (obj2) {
5264 {
5265 arg3 = wxString_in_helper(obj2);
5266 if (arg3 == NULL) SWIG_fail;
5267 temp3 = true;
5268 }
5269 }
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 result = (wxXmlNode *)new wxXmlNode(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, SWIG_POINTER_OWN | 0 );
5277 {
5278 if (temp2)
5279 delete arg2;
5280 }
5281 {
5282 if (temp3)
5283 delete arg3;
5284 }
5285 return resultobj;
5286 fail:
5287 {
5288 if (temp2)
5289 delete arg2;
5290 }
5291 {
5292 if (temp3)
5293 delete arg3;
5294 }
5295 return NULL;
5296 }
5297
5298
5299 SWIGINTERN PyObject *_wrap_XmlNode_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5300 PyObject *resultobj = 0;
5301 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5302 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5303 void *argp1 = 0 ;
5304 int res1 = 0 ;
5305 void *argp2 = 0 ;
5306 int res2 = 0 ;
5307 PyObject * obj0 = 0 ;
5308 PyObject * obj1 = 0 ;
5309 char * kwnames[] = {
5310 (char *) "self",(char *) "child", NULL
5311 };
5312
5313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) SWIG_fail;
5314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5315 if (!SWIG_IsOK(res1)) {
5316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5317 }
5318 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5320 if (!SWIG_IsOK(res2)) {
5321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5322 }
5323 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 (arg1)->AddChild(arg2);
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_Py_Void();
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_XmlNode_InsertChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5338 PyObject *resultobj = 0;
5339 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5340 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5341 wxXmlNode *arg3 = (wxXmlNode *) 0 ;
5342 bool result;
5343 void *argp1 = 0 ;
5344 int res1 = 0 ;
5345 void *argp2 = 0 ;
5346 int res2 = 0 ;
5347 void *argp3 = 0 ;
5348 int res3 = 0 ;
5349 PyObject * obj0 = 0 ;
5350 PyObject * obj1 = 0 ;
5351 PyObject * obj2 = 0 ;
5352 char * kwnames[] = {
5353 (char *) "self",(char *) "child",(char *) "before_node", NULL
5354 };
5355
5356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5358 if (!SWIG_IsOK(res1)) {
5359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_InsertChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5360 }
5361 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5363 if (!SWIG_IsOK(res2)) {
5364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_InsertChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5365 }
5366 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5367 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5368 if (!SWIG_IsOK(res3)) {
5369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlNode_InsertChild" "', expected argument " "3"" of type '" "wxXmlNode *""'");
5370 }
5371 arg3 = reinterpret_cast< wxXmlNode * >(argp3);
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 result = (bool)(arg1)->InsertChild(arg2,arg3);
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 {
5379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5380 }
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_XmlNode_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5390 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
5391 bool result;
5392 void *argp1 = 0 ;
5393 int res1 = 0 ;
5394 void *argp2 = 0 ;
5395 int res2 = 0 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "self",(char *) "child", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail;
5403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_RemoveChild" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5406 }
5407 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5409 if (!SWIG_IsOK(res2)) {
5410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_RemoveChild" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5411 }
5412 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->RemoveChild(arg2);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *_wrap_XmlNode_AddProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj = 0;
5430 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5431 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
5432 void *argp1 = 0 ;
5433 int res1 = 0 ;
5434 void *argp2 = 0 ;
5435 int res2 = 0 ;
5436 PyObject * obj0 = 0 ;
5437 PyObject * obj1 = 0 ;
5438 char * kwnames[] = {
5439 (char *) "self",(char *) "prop", NULL
5440 };
5441
5442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) SWIG_fail;
5443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5444 if (!SWIG_IsOK(res1)) {
5445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5446 }
5447 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5449 if (!SWIG_IsOK(res2)) {
5450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_AddProperty" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
5451 }
5452 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 (arg1)->AddProperty(arg2);
5456 wxPyEndAllowThreads(__tstate);
5457 if (PyErr_Occurred()) SWIG_fail;
5458 }
5459 resultobj = SWIG_Py_Void();
5460 return resultobj;
5461 fail:
5462 return NULL;
5463 }
5464
5465
5466 SWIGINTERN PyObject *_wrap_XmlNode_AddPropertyName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5467 PyObject *resultobj = 0;
5468 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5469 wxString *arg2 = 0 ;
5470 wxString *arg3 = 0 ;
5471 void *argp1 = 0 ;
5472 int res1 = 0 ;
5473 bool temp2 = false ;
5474 bool temp3 = false ;
5475 PyObject * obj0 = 0 ;
5476 PyObject * obj1 = 0 ;
5477 PyObject * obj2 = 0 ;
5478 char * kwnames[] = {
5479 (char *) "self",(char *) "name",(char *) "value", NULL
5480 };
5481
5482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5484 if (!SWIG_IsOK(res1)) {
5485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_AddPropertyName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5486 }
5487 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5488 {
5489 arg2 = wxString_in_helper(obj1);
5490 if (arg2 == NULL) SWIG_fail;
5491 temp2 = true;
5492 }
5493 {
5494 arg3 = wxString_in_helper(obj2);
5495 if (arg3 == NULL) SWIG_fail;
5496 temp3 = true;
5497 }
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3);
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 resultobj = SWIG_Py_Void();
5505 {
5506 if (temp2)
5507 delete arg2;
5508 }
5509 {
5510 if (temp3)
5511 delete arg3;
5512 }
5513 return resultobj;
5514 fail:
5515 {
5516 if (temp2)
5517 delete arg2;
5518 }
5519 {
5520 if (temp3)
5521 delete arg3;
5522 }
5523 return NULL;
5524 }
5525
5526
5527 SWIGINTERN PyObject *_wrap_XmlNode_DeleteProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5528 PyObject *resultobj = 0;
5529 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5530 wxString *arg2 = 0 ;
5531 bool result;
5532 void *argp1 = 0 ;
5533 int res1 = 0 ;
5534 bool temp2 = false ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5537 char * kwnames[] = {
5538 (char *) "self",(char *) "name", NULL
5539 };
5540
5541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) SWIG_fail;
5542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5543 if (!SWIG_IsOK(res1)) {
5544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_DeleteProperty" "', expected argument " "1"" of type '" "wxXmlNode *""'");
5545 }
5546 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5547 {
5548 arg2 = wxString_in_helper(obj1);
5549 if (arg2 == NULL) SWIG_fail;
5550 temp2 = true;
5551 }
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2);
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 {
5559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5560 }
5561 {
5562 if (temp2)
5563 delete arg2;
5564 }
5565 return resultobj;
5566 fail:
5567 {
5568 if (temp2)
5569 delete arg2;
5570 }
5571 return NULL;
5572 }
5573
5574
5575 SWIGINTERN PyObject *_wrap_XmlNode_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5576 PyObject *resultobj = 0;
5577 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5578 wxXmlNodeType result;
5579 void *argp1 = 0 ;
5580 int res1 = 0 ;
5581 PyObject *swig_obj[1] ;
5582
5583 if (!args) SWIG_fail;
5584 swig_obj[0] = args;
5585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5586 if (!SWIG_IsOK(res1)) {
5587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetType" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5588 }
5589 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (wxXmlNodeType)((wxXmlNode const *)arg1)->GetType();
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = SWIG_From_int(static_cast< int >(result));
5597 return resultobj;
5598 fail:
5599 return NULL;
5600 }
5601
5602
5603 SWIGINTERN PyObject *_wrap_XmlNode_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5604 PyObject *resultobj = 0;
5605 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5606 wxString result;
5607 void *argp1 = 0 ;
5608 int res1 = 0 ;
5609 PyObject *swig_obj[1] ;
5610
5611 if (!args) SWIG_fail;
5612 swig_obj[0] = args;
5613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5614 if (!SWIG_IsOK(res1)) {
5615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetName" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5616 }
5617 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 result = ((wxXmlNode const *)arg1)->GetName();
5621 wxPyEndAllowThreads(__tstate);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 {
5625 #if wxUSE_UNICODE
5626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5627 #else
5628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5629 #endif
5630 }
5631 return resultobj;
5632 fail:
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_XmlNode_GetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5640 wxString result;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 PyObject *swig_obj[1] ;
5644
5645 if (!args) SWIG_fail;
5646 swig_obj[0] = args;
5647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5648 if (!SWIG_IsOK(res1)) {
5649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5650 }
5651 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = ((wxXmlNode const *)arg1)->GetContent();
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 {
5659 #if wxUSE_UNICODE
5660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5661 #else
5662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5663 #endif
5664 }
5665 return resultobj;
5666 fail:
5667 return NULL;
5668 }
5669
5670
5671 SWIGINTERN PyObject *_wrap_XmlNode_IsWhitespaceOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5672 PyObject *resultobj = 0;
5673 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5674 bool result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 PyObject *swig_obj[1] ;
5678
5679 if (!args) SWIG_fail;
5680 swig_obj[0] = args;
5681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5682 if (!SWIG_IsOK(res1)) {
5683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_IsWhitespaceOnly" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5684 }
5685 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5686 {
5687 PyThreadState* __tstate = wxPyBeginAllowThreads();
5688 result = (bool)((wxXmlNode const *)arg1)->IsWhitespaceOnly();
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 {
5693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5694 }
5695 return resultobj;
5696 fail:
5697 return NULL;
5698 }
5699
5700
5701 SWIGINTERN PyObject *_wrap_XmlNode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5702 PyObject *resultobj = 0;
5703 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5704 wxXmlNode *arg2 = (wxXmlNode *) NULL ;
5705 int result;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 void *argp2 = 0 ;
5709 int res2 = 0 ;
5710 PyObject * obj0 = 0 ;
5711 PyObject * obj1 = 0 ;
5712 char * kwnames[] = {
5713 (char *) "self",(char *) "grandparent", NULL
5714 };
5715
5716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlNode_GetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
5717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetDepth" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5722 if (obj1) {
5723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5724 if (!SWIG_IsOK(res2)) {
5725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_GetDepth" "', expected argument " "2"" of type '" "wxXmlNode *""'");
5726 }
5727 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
5728 }
5729 {
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (int)((wxXmlNode const *)arg1)->GetDepth(arg2);
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 resultobj = SWIG_From_int(static_cast< int >(result));
5736 return resultobj;
5737 fail:
5738 return NULL;
5739 }
5740
5741
5742 SWIGINTERN PyObject *_wrap_XmlNode_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5743 PyObject *resultobj = 0;
5744 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5745 wxString result;
5746 void *argp1 = 0 ;
5747 int res1 = 0 ;
5748 PyObject *swig_obj[1] ;
5749
5750 if (!args) SWIG_fail;
5751 swig_obj[0] = args;
5752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5753 if (!SWIG_IsOK(res1)) {
5754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNodeContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5755 }
5756 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = ((wxXmlNode const *)arg1)->GetNodeContent();
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 #if wxUSE_UNICODE
5765 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5766 #else
5767 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5768 #endif
5769 }
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5777 PyObject *resultobj = 0;
5778 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5779 wxXmlNode *result = 0 ;
5780 void *argp1 = 0 ;
5781 int res1 = 0 ;
5782 PyObject *swig_obj[1] ;
5783
5784 if (!args) SWIG_fail;
5785 swig_obj[0] = args;
5786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5787 if (!SWIG_IsOK(res1)) {
5788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetParent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5789 }
5790 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent();
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 SWIGINTERN PyObject *_wrap_XmlNode_GetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5805 PyObject *resultobj = 0;
5806 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5807 wxXmlNode *result = 0 ;
5808 void *argp1 = 0 ;
5809 int res1 = 0 ;
5810 PyObject *swig_obj[1] ;
5811
5812 if (!args) SWIG_fail;
5813 swig_obj[0] = args;
5814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNext" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5817 }
5818 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext();
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 SWIGINTERN PyObject *_wrap_XmlNode_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5833 PyObject *resultobj = 0;
5834 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5835 wxXmlNode *result = 0 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 PyObject *swig_obj[1] ;
5839
5840 if (!args) SWIG_fail;
5841 swig_obj[0] = args;
5842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5843 if (!SWIG_IsOK(res1)) {
5844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetChildren" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5845 }
5846 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren();
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 SWIGINTERN PyObject *_wrap_XmlNode_GetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5861 PyObject *resultobj = 0;
5862 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5863 wxXmlProperty *result = 0 ;
5864 void *argp1 = 0 ;
5865 int res1 = 0 ;
5866 PyObject *swig_obj[1] ;
5867
5868 if (!args) SWIG_fail;
5869 swig_obj[0] = args;
5870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5871 if (!SWIG_IsOK(res1)) {
5872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetProperties" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5873 }
5874 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties();
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlProperty, 0 | 0 );
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 SWIGINTERN PyObject *_wrap_XmlNode_GetPropVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj = 0;
5890 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5891 wxString *arg2 = 0 ;
5892 wxString *arg3 = 0 ;
5893 wxString result;
5894 void *argp1 = 0 ;
5895 int res1 = 0 ;
5896 bool temp2 = false ;
5897 bool temp3 = false ;
5898 PyObject * obj0 = 0 ;
5899 PyObject * obj1 = 0 ;
5900 PyObject * obj2 = 0 ;
5901 char * kwnames[] = {
5902 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
5903 };
5904
5905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5907 if (!SWIG_IsOK(res1)) {
5908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetPropVal" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5909 }
5910 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5911 {
5912 arg2 = wxString_in_helper(obj1);
5913 if (arg2 == NULL) SWIG_fail;
5914 temp2 = true;
5915 }
5916 {
5917 arg3 = wxString_in_helper(obj2);
5918 if (arg3 == NULL) SWIG_fail;
5919 temp3 = true;
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3);
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 {
5928 #if wxUSE_UNICODE
5929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5930 #else
5931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5932 #endif
5933 }
5934 {
5935 if (temp2)
5936 delete arg2;
5937 }
5938 {
5939 if (temp3)
5940 delete arg3;
5941 }
5942 return resultobj;
5943 fail:
5944 {
5945 if (temp2)
5946 delete arg2;
5947 }
5948 {
5949 if (temp3)
5950 delete arg3;
5951 }
5952 return NULL;
5953 }
5954
5955
5956 SWIGINTERN PyObject *_wrap_XmlNode_HasProp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj = 0;
5958 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
5959 wxString *arg2 = 0 ;
5960 bool result;
5961 void *argp1 = 0 ;
5962 int res1 = 0 ;
5963 bool temp2 = false ;
5964 PyObject * obj0 = 0 ;
5965 PyObject * obj1 = 0 ;
5966 char * kwnames[] = {
5967 (char *) "self",(char *) "propName", NULL
5968 };
5969
5970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) SWIG_fail;
5971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
5972 if (!SWIG_IsOK(res1)) {
5973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_HasProp" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
5974 }
5975 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
5976 {
5977 arg2 = wxString_in_helper(obj1);
5978 if (arg2 == NULL) SWIG_fail;
5979 temp2 = true;
5980 }
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2);
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 {
5988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5989 }
5990 {
5991 if (temp2)
5992 delete arg2;
5993 }
5994 return resultobj;
5995 fail:
5996 {
5997 if (temp2)
5998 delete arg2;
5999 }
6000 return NULL;
6001 }
6002
6003
6004 SWIGINTERN PyObject *_wrap_XmlNode_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6005 PyObject *resultobj = 0;
6006 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6007 wxXmlNodeType arg2 ;
6008 void *argp1 = 0 ;
6009 int res1 = 0 ;
6010 int val2 ;
6011 int ecode2 = 0 ;
6012 PyObject * obj0 = 0 ;
6013 PyObject * obj1 = 0 ;
6014 char * kwnames[] = {
6015 (char *) "self",(char *) "type", NULL
6016 };
6017
6018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
6019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6020 if (!SWIG_IsOK(res1)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetType" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6022 }
6023 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6024 ecode2 = SWIG_AsVal_int(obj1, &val2);
6025 if (!SWIG_IsOK(ecode2)) {
6026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XmlNode_SetType" "', expected argument " "2"" of type '" "wxXmlNodeType""'");
6027 }
6028 arg2 = static_cast< wxXmlNodeType >(val2);
6029 {
6030 PyThreadState* __tstate = wxPyBeginAllowThreads();
6031 (arg1)->SetType(arg2);
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 resultobj = SWIG_Py_Void();
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 SWIGINTERN PyObject *_wrap_XmlNode_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6043 PyObject *resultobj = 0;
6044 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6045 wxString *arg2 = 0 ;
6046 void *argp1 = 0 ;
6047 int res1 = 0 ;
6048 bool temp2 = false ;
6049 PyObject * obj0 = 0 ;
6050 PyObject * obj1 = 0 ;
6051 char * kwnames[] = {
6052 (char *) "self",(char *) "name", NULL
6053 };
6054
6055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
6056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6057 if (!SWIG_IsOK(res1)) {
6058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetName" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6059 }
6060 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6061 {
6062 arg2 = wxString_in_helper(obj1);
6063 if (arg2 == NULL) SWIG_fail;
6064 temp2 = true;
6065 }
6066 {
6067 PyThreadState* __tstate = wxPyBeginAllowThreads();
6068 (arg1)->SetName((wxString const &)*arg2);
6069 wxPyEndAllowThreads(__tstate);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 }
6072 resultobj = SWIG_Py_Void();
6073 {
6074 if (temp2)
6075 delete arg2;
6076 }
6077 return resultobj;
6078 fail:
6079 {
6080 if (temp2)
6081 delete arg2;
6082 }
6083 return NULL;
6084 }
6085
6086
6087 SWIGINTERN PyObject *_wrap_XmlNode_SetContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6090 wxString *arg2 = 0 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 bool temp2 = false ;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 char * kwnames[] = {
6097 (char *) "self",(char *) "con", NULL
6098 };
6099
6100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) SWIG_fail;
6101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetContent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6104 }
6105 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6106 {
6107 arg2 = wxString_in_helper(obj1);
6108 if (arg2 == NULL) SWIG_fail;
6109 temp2 = true;
6110 }
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 (arg1)->SetContent((wxString const &)*arg2);
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_Py_Void();
6118 {
6119 if (temp2)
6120 delete arg2;
6121 }
6122 return resultobj;
6123 fail:
6124 {
6125 if (temp2)
6126 delete arg2;
6127 }
6128 return NULL;
6129 }
6130
6131
6132 SWIGINTERN PyObject *_wrap_XmlNode_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj = 0;
6134 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6135 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6136 void *argp1 = 0 ;
6137 int res1 = 0 ;
6138 void *argp2 = 0 ;
6139 int res2 = 0 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 char * kwnames[] = {
6143 (char *) "self",(char *) "parent", NULL
6144 };
6145
6146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) SWIG_fail;
6147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetParent" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6150 }
6151 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6153 if (!SWIG_IsOK(res2)) {
6154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetParent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6155 }
6156 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 (arg1)->SetParent(arg2);
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_Py_Void();
6164 return resultobj;
6165 fail:
6166 return NULL;
6167 }
6168
6169
6170 SWIGINTERN PyObject *_wrap_XmlNode_SetNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6173 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6174 void *argp1 = 0 ;
6175 int res1 = 0 ;
6176 void *argp2 = 0 ;
6177 int res2 = 0 ;
6178 PyObject * obj0 = 0 ;
6179 PyObject * obj1 = 0 ;
6180 char * kwnames[] = {
6181 (char *) "self",(char *) "next", NULL
6182 };
6183
6184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) SWIG_fail;
6185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6186 if (!SWIG_IsOK(res1)) {
6187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetNext" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6188 }
6189 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6191 if (!SWIG_IsOK(res2)) {
6192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetNext" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6193 }
6194 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6195 {
6196 PyThreadState* __tstate = wxPyBeginAllowThreads();
6197 (arg1)->SetNext(arg2);
6198 wxPyEndAllowThreads(__tstate);
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
6201 resultobj = SWIG_Py_Void();
6202 return resultobj;
6203 fail:
6204 return NULL;
6205 }
6206
6207
6208 SWIGINTERN PyObject *_wrap_XmlNode_SetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6209 PyObject *resultobj = 0;
6210 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6211 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6212 void *argp1 = 0 ;
6213 int res1 = 0 ;
6214 void *argp2 = 0 ;
6215 int res2 = 0 ;
6216 PyObject * obj0 = 0 ;
6217 PyObject * obj1 = 0 ;
6218 char * kwnames[] = {
6219 (char *) "self",(char *) "child", NULL
6220 };
6221
6222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) SWIG_fail;
6223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6224 if (!SWIG_IsOK(res1)) {
6225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetChildren" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6226 }
6227 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6229 if (!SWIG_IsOK(res2)) {
6230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetChildren" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6231 }
6232 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6233 {
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 (arg1)->SetChildren(arg2);
6236 wxPyEndAllowThreads(__tstate);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 }
6239 resultobj = SWIG_Py_Void();
6240 return resultobj;
6241 fail:
6242 return NULL;
6243 }
6244
6245
6246 SWIGINTERN PyObject *_wrap_XmlNode_SetProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6247 PyObject *resultobj = 0;
6248 wxXmlNode *arg1 = (wxXmlNode *) 0 ;
6249 wxXmlProperty *arg2 = (wxXmlProperty *) 0 ;
6250 void *argp1 = 0 ;
6251 int res1 = 0 ;
6252 void *argp2 = 0 ;
6253 int res2 = 0 ;
6254 PyObject * obj0 = 0 ;
6255 PyObject * obj1 = 0 ;
6256 char * kwnames[] = {
6257 (char *) "self",(char *) "prop", NULL
6258 };
6259
6260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) SWIG_fail;
6261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6262 if (!SWIG_IsOK(res1)) {
6263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_SetProperties" "', expected argument " "1"" of type '" "wxXmlNode *""'");
6264 }
6265 arg1 = reinterpret_cast< wxXmlNode * >(argp1);
6266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlProperty, 0 | 0 );
6267 if (!SWIG_IsOK(res2)) {
6268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_SetProperties" "', expected argument " "2"" of type '" "wxXmlProperty *""'");
6269 }
6270 arg2 = reinterpret_cast< wxXmlProperty * >(argp2);
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 (arg1)->SetProperties(arg2);
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 resultobj = SWIG_Py_Void();
6278 return resultobj;
6279 fail:
6280 return NULL;
6281 }
6282
6283
6284 SWIGINTERN PyObject *XmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6285 PyObject *obj;
6286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6287 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlNode, SWIG_NewClientData(obj));
6288 return SWIG_Py_Void();
6289 }
6290
6291 SWIGINTERN PyObject *XmlNode_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6292 return SWIG_Python_InitShadowInstance(args);
6293 }
6294
6295 SWIGINTERN PyObject *_wrap_new_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj = 0;
6297 wxString *arg1 = 0 ;
6298 wxString const &arg2_defvalue = wxPyUTF8String ;
6299 wxString *arg2 = (wxString *) &arg2_defvalue ;
6300 wxXmlDocument *result = 0 ;
6301 bool temp1 = false ;
6302 bool temp2 = false ;
6303 PyObject * obj0 = 0 ;
6304 PyObject * obj1 = 0 ;
6305 char * kwnames[] = {
6306 (char *) "filename",(char *) "encoding", NULL
6307 };
6308
6309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) SWIG_fail;
6310 {
6311 arg1 = wxString_in_helper(obj0);
6312 if (arg1 == NULL) SWIG_fail;
6313 temp1 = true;
6314 }
6315 if (obj1) {
6316 {
6317 arg2 = wxString_in_helper(obj1);
6318 if (arg2 == NULL) SWIG_fail;
6319 temp2 = true;
6320 }
6321 }
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2);
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_NEW | 0 );
6329 {
6330 if (temp1)
6331 delete arg1;
6332 }
6333 {
6334 if (temp2)
6335 delete arg2;
6336 }
6337 return resultobj;
6338 fail:
6339 {
6340 if (temp1)
6341 delete arg1;
6342 }
6343 {
6344 if (temp2)
6345 delete arg2;
6346 }
6347 return NULL;
6348 }
6349
6350
6351 SWIGINTERN PyObject *_wrap_new_XmlDocumentFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6352 PyObject *resultobj = 0;
6353 wxInputStream *arg1 = 0 ;
6354 wxString const &arg2_defvalue = wxPyUTF8String ;
6355 wxString *arg2 = (wxString *) &arg2_defvalue ;
6356 wxXmlDocument *result = 0 ;
6357 wxPyInputStream *temp1 ;
6358 bool created1 ;
6359 bool temp2 = false ;
6360 PyObject * obj0 = 0 ;
6361 PyObject * obj1 = 0 ;
6362 char * kwnames[] = {
6363 (char *) "stream",(char *) "encoding", NULL
6364 };
6365
6366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) SWIG_fail;
6367 {
6368 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6369 arg1 = temp1->m_wxis;
6370 created1 = false;
6371 } else {
6372 PyErr_Clear(); // clear the failure of the wxPyConvert above
6373 arg1 = wxPyCBInputStream_create(obj0, false);
6374 if (arg1 == NULL) {
6375 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
6376 SWIG_fail;
6377 }
6378 created1 = true;
6379 }
6380 }
6381 if (obj1) {
6382 {
6383 arg2 = wxString_in_helper(obj1);
6384 if (arg2 == NULL) SWIG_fail;
6385 temp2 = true;
6386 }
6387 }
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2);
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 );
6395 {
6396 if (created1) delete arg1;
6397 }
6398 {
6399 if (temp2)
6400 delete arg2;
6401 }
6402 return resultobj;
6403 fail:
6404 {
6405 if (created1) delete arg1;
6406 }
6407 {
6408 if (temp2)
6409 delete arg2;
6410 }
6411 return NULL;
6412 }
6413
6414
6415 SWIGINTERN PyObject *_wrap_new_EmptyXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6416 PyObject *resultobj = 0;
6417 wxXmlDocument *result = 0 ;
6418
6419 if (!SWIG_Python_UnpackTuple(args,"new_EmptyXmlDocument",0,0,0)) SWIG_fail;
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 result = (wxXmlDocument *)new wxXmlDocument();
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_OWN | 0 );
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 SWIGINTERN PyObject *_wrap_delete_XmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 PyObject *swig_obj[1] ;
6439
6440 if (!args) SWIG_fail;
6441 swig_obj[0] = args;
6442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, SWIG_POINTER_DISOWN | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlDocument" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6445 }
6446 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 delete arg1;
6450
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 resultobj = SWIG_Py_Void();
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 SWIGINTERN PyObject *_wrap_XmlDocument_Load(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj = 0;
6463 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6464 wxString *arg2 = 0 ;
6465 wxString const &arg3_defvalue = wxPyUTF8String ;
6466 wxString *arg3 = (wxString *) &arg3_defvalue ;
6467 int arg4 = (int) wxXMLDOC_NONE ;
6468 bool result;
6469 void *argp1 = 0 ;
6470 int res1 = 0 ;
6471 bool temp2 = false ;
6472 bool temp3 = false ;
6473 int val4 ;
6474 int ecode4 = 0 ;
6475 PyObject * obj0 = 0 ;
6476 PyObject * obj1 = 0 ;
6477 PyObject * obj2 = 0 ;
6478 PyObject * obj3 = 0 ;
6479 char * kwnames[] = {
6480 (char *) "self",(char *) "filename",(char *) "encoding",(char *) "flags", NULL
6481 };
6482
6483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6487 }
6488 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6489 {
6490 arg2 = wxString_in_helper(obj1);
6491 if (arg2 == NULL) SWIG_fail;
6492 temp2 = true;
6493 }
6494 if (obj2) {
6495 {
6496 arg3 = wxString_in_helper(obj2);
6497 if (arg3 == NULL) SWIG_fail;
6498 temp3 = true;
6499 }
6500 }
6501 if (obj3) {
6502 ecode4 = SWIG_AsVal_int(obj3, &val4);
6503 if (!SWIG_IsOK(ecode4)) {
6504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_Load" "', expected argument " "4"" of type '" "int""'");
6505 }
6506 arg4 = static_cast< int >(val4);
6507 }
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3,arg4);
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 {
6515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6516 }
6517 {
6518 if (temp2)
6519 delete arg2;
6520 }
6521 {
6522 if (temp3)
6523 delete arg3;
6524 }
6525 return resultobj;
6526 fail:
6527 {
6528 if (temp2)
6529 delete arg2;
6530 }
6531 {
6532 if (temp3)
6533 delete arg3;
6534 }
6535 return NULL;
6536 }
6537
6538
6539 SWIGINTERN PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj = 0;
6541 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6542 wxInputStream *arg2 = 0 ;
6543 wxString const &arg3_defvalue = wxPyUTF8String ;
6544 wxString *arg3 = (wxString *) &arg3_defvalue ;
6545 int arg4 = (int) wxXMLDOC_NONE ;
6546 bool result;
6547 void *argp1 = 0 ;
6548 int res1 = 0 ;
6549 wxPyInputStream *temp2 ;
6550 bool created2 ;
6551 bool temp3 = false ;
6552 int val4 ;
6553 int ecode4 = 0 ;
6554 PyObject * obj0 = 0 ;
6555 PyObject * obj1 = 0 ;
6556 PyObject * obj2 = 0 ;
6557 PyObject * obj3 = 0 ;
6558 char * kwnames[] = {
6559 (char *) "self",(char *) "stream",(char *) "encoding",(char *) "flags", NULL
6560 };
6561
6562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6566 }
6567 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6568 {
6569 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
6570 arg2 = temp2->m_wxis;
6571 created2 = false;
6572 } else {
6573 PyErr_Clear(); // clear the failure of the wxPyConvert above
6574 arg2 = wxPyCBInputStream_create(obj1, false);
6575 if (arg2 == NULL) {
6576 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
6577 SWIG_fail;
6578 }
6579 created2 = true;
6580 }
6581 }
6582 if (obj2) {
6583 {
6584 arg3 = wxString_in_helper(obj2);
6585 if (arg3 == NULL) SWIG_fail;
6586 temp3 = true;
6587 }
6588 }
6589 if (obj3) {
6590 ecode4 = SWIG_AsVal_int(obj3, &val4);
6591 if (!SWIG_IsOK(ecode4)) {
6592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "4"" of type '" "int""'");
6593 }
6594 arg4 = static_cast< int >(val4);
6595 }
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3,arg4);
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 {
6606 if (created2) delete arg2;
6607 }
6608 {
6609 if (temp3)
6610 delete arg3;
6611 }
6612 return resultobj;
6613 fail:
6614 {
6615 if (created2) delete arg2;
6616 }
6617 {
6618 if (temp3)
6619 delete arg3;
6620 }
6621 return NULL;
6622 }
6623
6624
6625 SWIGINTERN PyObject *_wrap_XmlDocument_Save(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj = 0;
6627 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6628 wxString *arg2 = 0 ;
6629 int arg3 = (int) 1 ;
6630 bool result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 bool temp2 = false ;
6634 int val3 ;
6635 int ecode3 = 0 ;
6636 PyObject * obj0 = 0 ;
6637 PyObject * obj1 = 0 ;
6638 PyObject * obj2 = 0 ;
6639 char * kwnames[] = {
6640 (char *) "self",(char *) "filename",(char *) "indentstep", NULL
6641 };
6642
6643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Save",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6645 if (!SWIG_IsOK(res1)) {
6646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6647 }
6648 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6649 {
6650 arg2 = wxString_in_helper(obj1);
6651 if (arg2 == NULL) SWIG_fail;
6652 temp2 = true;
6653 }
6654 if (obj2) {
6655 ecode3 = SWIG_AsVal_int(obj2, &val3);
6656 if (!SWIG_IsOK(ecode3)) {
6657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_Save" "', expected argument " "3"" of type '" "int""'");
6658 }
6659 arg3 = static_cast< int >(val3);
6660 }
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2,arg3);
6664 wxPyEndAllowThreads(__tstate);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 {
6668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6669 }
6670 {
6671 if (temp2)
6672 delete arg2;
6673 }
6674 return resultobj;
6675 fail:
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return NULL;
6681 }
6682
6683
6684 SWIGINTERN PyObject *_wrap_XmlDocument_SaveToStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj = 0;
6686 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6687 wxOutputStream *arg2 = 0 ;
6688 int arg3 = (int) 1 ;
6689 bool result;
6690 void *argp1 = 0 ;
6691 int res1 = 0 ;
6692 void *argp2 = 0 ;
6693 int res2 = 0 ;
6694 int val3 ;
6695 int ecode3 = 0 ;
6696 PyObject * obj0 = 0 ;
6697 PyObject * obj1 = 0 ;
6698 PyObject * obj2 = 0 ;
6699 char * kwnames[] = {
6700 (char *) "self",(char *) "stream",(char *) "indentstep", NULL
6701 };
6702
6703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_SaveToStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6705 if (!SWIG_IsOK(res1)) {
6706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6707 }
6708 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxOutputStream, 0 );
6710 if (!SWIG_IsOK(res2)) {
6711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6712 }
6713 if (!argp2) {
6714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
6715 }
6716 arg2 = reinterpret_cast< wxOutputStream * >(argp2);
6717 if (obj2) {
6718 ecode3 = SWIG_AsVal_int(obj2, &val3);
6719 if (!SWIG_IsOK(ecode3)) {
6720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_SaveToStream" "', expected argument " "3"" of type '" "int""'");
6721 }
6722 arg3 = static_cast< int >(val3);
6723 }
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2,arg3);
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 {
6731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6732 }
6733 return resultobj;
6734 fail:
6735 return NULL;
6736 }
6737
6738
6739 SWIGINTERN PyObject *_wrap_XmlDocument_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6740 PyObject *resultobj = 0;
6741 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6742 bool result;
6743 void *argp1 = 0 ;
6744 int res1 = 0 ;
6745 PyObject *swig_obj[1] ;
6746
6747 if (!args) SWIG_fail;
6748 swig_obj[0] = args;
6749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6750 if (!SWIG_IsOK(res1)) {
6751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_IsOk" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6752 }
6753 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6754 {
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 result = (bool)((wxXmlDocument const *)arg1)->IsOk();
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 {
6761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6762 }
6763 return resultobj;
6764 fail:
6765 return NULL;
6766 }
6767
6768
6769 SWIGINTERN PyObject *_wrap_XmlDocument_GetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6770 PyObject *resultobj = 0;
6771 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6772 wxXmlNode *result = 0 ;
6773 void *argp1 = 0 ;
6774 int res1 = 0 ;
6775 PyObject *swig_obj[1] ;
6776
6777 if (!args) SWIG_fail;
6778 swig_obj[0] = args;
6779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6780 if (!SWIG_IsOK(res1)) {
6781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetRoot" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6782 }
6783 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot();
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 SWIGINTERN PyObject *_wrap_XmlDocument_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6798 PyObject *resultobj = 0;
6799 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6800 wxString result;
6801 void *argp1 = 0 ;
6802 int res1 = 0 ;
6803 PyObject *swig_obj[1] ;
6804
6805 if (!args) SWIG_fail;
6806 swig_obj[0] = args;
6807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6808 if (!SWIG_IsOK(res1)) {
6809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetVersion" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6810 }
6811 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = ((wxXmlDocument const *)arg1)->GetVersion();
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 {
6819 #if wxUSE_UNICODE
6820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6821 #else
6822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6823 #endif
6824 }
6825 return resultobj;
6826 fail:
6827 return NULL;
6828 }
6829
6830
6831 SWIGINTERN PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6832 PyObject *resultobj = 0;
6833 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6834 wxString result;
6835 void *argp1 = 0 ;
6836 int res1 = 0 ;
6837 PyObject *swig_obj[1] ;
6838
6839 if (!args) SWIG_fail;
6840 swig_obj[0] = args;
6841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6842 if (!SWIG_IsOK(res1)) {
6843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_GetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
6844 }
6845 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = ((wxXmlDocument const *)arg1)->GetFileEncoding();
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 #if wxUSE_UNICODE
6854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6855 #else
6856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6857 #endif
6858 }
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 SWIGINTERN PyObject *_wrap_XmlDocument_DetachRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6866 PyObject *resultobj = 0;
6867 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6868 wxXmlNode *result = 0 ;
6869 void *argp1 = 0 ;
6870 int res1 = 0 ;
6871 PyObject *swig_obj[1] ;
6872
6873 if (!args) SWIG_fail;
6874 swig_obj[0] = args;
6875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6876 if (!SWIG_IsOK(res1)) {
6877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_DetachRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6878 }
6879 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 result = (wxXmlNode *)(arg1)->DetachRoot();
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = 0;
6895 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6896 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
6897 void *argp1 = 0 ;
6898 int res1 = 0 ;
6899 void *argp2 = 0 ;
6900 int res2 = 0 ;
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 char * kwnames[] = {
6904 (char *) "self",(char *) "node", NULL
6905 };
6906
6907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) SWIG_fail;
6908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6909 if (!SWIG_IsOK(res1)) {
6910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6911 }
6912 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
6914 if (!SWIG_IsOK(res2)) {
6915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlDocument_SetRoot" "', expected argument " "2"" of type '" "wxXmlNode *""'");
6916 }
6917 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 (arg1)->SetRoot(arg2);
6921 wxPyEndAllowThreads(__tstate);
6922 if (PyErr_Occurred()) SWIG_fail;
6923 }
6924 resultobj = SWIG_Py_Void();
6925 return resultobj;
6926 fail:
6927 return NULL;
6928 }
6929
6930
6931 SWIGINTERN PyObject *_wrap_XmlDocument_SetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj = 0;
6933 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6934 wxString *arg2 = 0 ;
6935 void *argp1 = 0 ;
6936 int res1 = 0 ;
6937 bool temp2 = false ;
6938 PyObject * obj0 = 0 ;
6939 PyObject * obj1 = 0 ;
6940 char * kwnames[] = {
6941 (char *) "self",(char *) "version", NULL
6942 };
6943
6944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) SWIG_fail;
6945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6946 if (!SWIG_IsOK(res1)) {
6947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetVersion" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6948 }
6949 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6950 {
6951 arg2 = wxString_in_helper(obj1);
6952 if (arg2 == NULL) SWIG_fail;
6953 temp2 = true;
6954 }
6955 {
6956 PyThreadState* __tstate = wxPyBeginAllowThreads();
6957 (arg1)->SetVersion((wxString const &)*arg2);
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_Py_Void();
6962 {
6963 if (temp2)
6964 delete arg2;
6965 }
6966 return resultobj;
6967 fail:
6968 {
6969 if (temp2)
6970 delete arg2;
6971 }
6972 return NULL;
6973 }
6974
6975
6976 SWIGINTERN PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj = 0;
6978 wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
6979 wxString *arg2 = 0 ;
6980 void *argp1 = 0 ;
6981 int res1 = 0 ;
6982 bool temp2 = false ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 char * kwnames[] = {
6986 (char *) "self",(char *) "encoding", NULL
6987 };
6988
6989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
6990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
6991 if (!SWIG_IsOK(res1)) {
6992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SetFileEncoding" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
6993 }
6994 arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
6995 {
6996 arg2 = wxString_in_helper(obj1);
6997 if (arg2 == NULL) SWIG_fail;
6998 temp2 = true;
6999 }
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 (arg1)->SetFileEncoding((wxString const &)*arg2);
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 resultobj = SWIG_Py_Void();
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return resultobj;
7012 fail:
7013 {
7014 if (temp2)
7015 delete arg2;
7016 }
7017 return NULL;
7018 }
7019
7020
7021 SWIGINTERN PyObject *XmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7022 PyObject *obj;
7023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7024 SWIG_TypeNewClientData(SWIGTYPE_p_wxXmlDocument, SWIG_NewClientData(obj));
7025 return SWIG_Py_Void();
7026 }
7027
7028 SWIGINTERN PyObject *XmlDocument_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7029 return SWIG_Python_InitShadowInstance(args);
7030 }
7031
7032 SWIGINTERN PyObject *_wrap_new_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7033 PyObject *resultobj = 0;
7034 wxPyXmlResourceHandler *result = 0 ;
7035
7036 if (!SWIG_Python_UnpackTuple(args,"new_XmlResourceHandler",0,0,0)) SWIG_fail;
7037 {
7038 PyThreadState* __tstate = wxPyBeginAllowThreads();
7039 result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler();
7040 wxPyEndAllowThreads(__tstate);
7041 if (PyErr_Occurred()) SWIG_fail;
7042 }
7043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_NEW | 0 );
7044 return resultobj;
7045 fail:
7046 return NULL;
7047 }
7048
7049
7050 SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7051 PyObject *resultobj = 0;
7052 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7053 PyObject *arg2 = (PyObject *) 0 ;
7054 PyObject *arg3 = (PyObject *) 0 ;
7055 void *argp1 = 0 ;
7056 int res1 = 0 ;
7057 PyObject * obj0 = 0 ;
7058 PyObject * obj1 = 0 ;
7059 PyObject * obj2 = 0 ;
7060 char * kwnames[] = {
7061 (char *) "self",(char *) "self",(char *) "_class", NULL
7062 };
7063
7064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7066 if (!SWIG_IsOK(res1)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7068 }
7069 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7070 arg2 = obj1;
7071 arg3 = obj2;
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 (arg1)->_setCallbackInfo(arg2,arg3);
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 resultobj = SWIG_Py_Void();
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj = 0;
7087 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7088 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7089 wxObject *arg3 = (wxObject *) 0 ;
7090 wxObject *arg4 = (wxObject *) 0 ;
7091 wxObject *result = 0 ;
7092 void *argp1 = 0 ;
7093 int res1 = 0 ;
7094 void *argp2 = 0 ;
7095 int res2 = 0 ;
7096 void *argp3 = 0 ;
7097 int res3 = 0 ;
7098 void *argp4 = 0 ;
7099 int res4 = 0 ;
7100 PyObject * obj0 = 0 ;
7101 PyObject * obj1 = 0 ;
7102 PyObject * obj2 = 0 ;
7103 PyObject * obj3 = 0 ;
7104 char * kwnames[] = {
7105 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
7106 };
7107
7108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7110 if (!SWIG_IsOK(res1)) {
7111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7112 }
7113 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7114 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7115 if (!SWIG_IsOK(res2)) {
7116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7117 }
7118 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7119 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 );
7120 if (!SWIG_IsOK(res3)) {
7121 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "3"" of type '" "wxObject *""'");
7122 }
7123 arg3 = reinterpret_cast< wxObject * >(argp3);
7124 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 );
7125 if (!SWIG_IsOK(res4)) {
7126 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResource" "', expected argument " "4"" of type '" "wxObject *""'");
7127 }
7128 arg4 = reinterpret_cast< wxObject * >(argp4);
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4);
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 {
7136 resultobj = wxPyMake_wxObject(result, (bool)0);
7137 }
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj = 0;
7146 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7147 wxXmlResource *arg2 = (wxXmlResource *) 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 void *argp2 = 0 ;
7151 int res2 = 0 ;
7152 PyObject * obj0 = 0 ;
7153 PyObject * obj1 = 0 ;
7154 char * kwnames[] = {
7155 (char *) "self",(char *) "res", NULL
7156 };
7157
7158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) SWIG_fail;
7159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7160 if (!SWIG_IsOK(res1)) {
7161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7162 }
7163 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlResource, 0 | 0 );
7165 if (!SWIG_IsOK(res2)) {
7166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetParentResource" "', expected argument " "2"" of type '" "wxXmlResource *""'");
7167 }
7168 arg2 = reinterpret_cast< wxXmlResource * >(argp2);
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 (arg1)->SetParentResource(arg2);
7172 wxPyEndAllowThreads(__tstate);
7173 if (PyErr_Occurred()) SWIG_fail;
7174 }
7175 resultobj = SWIG_Py_Void();
7176 return resultobj;
7177 fail:
7178 return NULL;
7179 }
7180
7181
7182 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7183 PyObject *resultobj = 0;
7184 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7185 wxXmlResource *result = 0 ;
7186 void *argp1 = 0 ;
7187 int res1 = 0 ;
7188 PyObject *swig_obj[1] ;
7189
7190 if (!args) SWIG_fail;
7191 swig_obj[0] = args;
7192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7193 if (!SWIG_IsOK(res1)) {
7194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetResource" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7195 }
7196 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 result = (wxXmlResource *)(arg1)->GetResource();
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, 0 | 0 );
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7211 PyObject *resultobj = 0;
7212 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7213 wxXmlNode *result = 0 ;
7214 void *argp1 = 0 ;
7215 int res1 = 0 ;
7216 PyObject *swig_obj[1] ;
7217
7218 if (!args) SWIG_fail;
7219 swig_obj[0] = args;
7220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7221 if (!SWIG_IsOK(res1)) {
7222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7223 }
7224 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 result = (wxXmlNode *)(arg1)->GetNode();
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *resultobj = 0;
7240 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7241 wxString result;
7242 void *argp1 = 0 ;
7243 int res1 = 0 ;
7244 PyObject *swig_obj[1] ;
7245
7246 if (!args) SWIG_fail;
7247 swig_obj[0] = args;
7248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7249 if (!SWIG_IsOK(res1)) {
7250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7251 }
7252 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (arg1)->GetClass();
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 {
7260 #if wxUSE_UNICODE
7261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7262 #else
7263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7264 #endif
7265 }
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7273 PyObject *resultobj = 0;
7274 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7275 wxObject *result = 0 ;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 PyObject *swig_obj[1] ;
7279
7280 if (!args) SWIG_fail;
7281 swig_obj[0] = args;
7282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7283 if (!SWIG_IsOK(res1)) {
7284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7285 }
7286 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (wxObject *)(arg1)->GetParent();
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 {
7294 resultobj = wxPyMake_wxObject(result, (bool)0);
7295 }
7296 return resultobj;
7297 fail:
7298 return NULL;
7299 }
7300
7301
7302 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7303 PyObject *resultobj = 0;
7304 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7305 wxObject *result = 0 ;
7306 void *argp1 = 0 ;
7307 int res1 = 0 ;
7308 PyObject *swig_obj[1] ;
7309
7310 if (!args) SWIG_fail;
7311 swig_obj[0] = args;
7312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7313 if (!SWIG_IsOK(res1)) {
7314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetInstance" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7315 }
7316 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = (wxObject *)(arg1)->GetInstance();
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 {
7324 resultobj = wxPyMake_wxObject(result, (bool)0);
7325 }
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7333 PyObject *resultobj = 0;
7334 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7335 wxWindow *result = 0 ;
7336 void *argp1 = 0 ;
7337 int res1 = 0 ;
7338 PyObject *swig_obj[1] ;
7339
7340 if (!args) SWIG_fail;
7341 swig_obj[0] = args;
7342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7343 if (!SWIG_IsOK(res1)) {
7344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParentAsWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7345 }
7346 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 result = (wxWindow *)(arg1)->GetParentAsWindow();
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 {
7354 resultobj = wxPyMake_wxObject(result, 0);
7355 }
7356 return resultobj;
7357 fail:
7358 return NULL;
7359 }
7360
7361
7362 SWIGINTERN PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7363 PyObject *resultobj = 0;
7364 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7365 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7366 wxString *arg3 = 0 ;
7367 bool result;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370 void *argp2 = 0 ;
7371 int res2 = 0 ;
7372 bool temp3 = false ;
7373 PyObject * obj0 = 0 ;
7374 PyObject * obj1 = 0 ;
7375 PyObject * obj2 = 0 ;
7376 char * kwnames[] = {
7377 (char *) "self",(char *) "node",(char *) "classname", NULL
7378 };
7379
7380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7382 if (!SWIG_IsOK(res1)) {
7383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7384 }
7385 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7387 if (!SWIG_IsOK(res2)) {
7388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_IsOfClass" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7389 }
7390 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7391 {
7392 arg3 = wxString_in_helper(obj2);
7393 if (arg3 == NULL) SWIG_fail;
7394 temp3 = true;
7395 }
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3);
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 {
7403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7404 }
7405 {
7406 if (temp3)
7407 delete arg3;
7408 }
7409 return resultobj;
7410 fail:
7411 {
7412 if (temp3)
7413 delete arg3;
7414 }
7415 return NULL;
7416 }
7417
7418
7419 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj = 0;
7421 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7422 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
7423 wxString result;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 void *argp2 = 0 ;
7427 int res2 = 0 ;
7428 PyObject * obj0 = 0 ;
7429 PyObject * obj1 = 0 ;
7430 char * kwnames[] = {
7431 (char *) "self",(char *) "node", NULL
7432 };
7433
7434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) SWIG_fail;
7435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7436 if (!SWIG_IsOK(res1)) {
7437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7438 }
7439 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7440 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
7441 if (!SWIG_IsOK(res2)) {
7442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_GetNodeContent" "', expected argument " "2"" of type '" "wxXmlNode *""'");
7443 }
7444 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
7445 {
7446 PyThreadState* __tstate = wxPyBeginAllowThreads();
7447 result = (arg1)->GetNodeContent(arg2);
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 {
7452 #if wxUSE_UNICODE
7453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7454 #else
7455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7456 #endif
7457 }
7458 return resultobj;
7459 fail:
7460 return NULL;
7461 }
7462
7463
7464 SWIGINTERN PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj = 0;
7466 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7467 wxString *arg2 = 0 ;
7468 bool result;
7469 void *argp1 = 0 ;
7470 int res1 = 0 ;
7471 bool temp2 = false ;
7472 PyObject * obj0 = 0 ;
7473 PyObject * obj1 = 0 ;
7474 char * kwnames[] = {
7475 (char *) "self",(char *) "param", NULL
7476 };
7477
7478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) SWIG_fail;
7479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7480 if (!SWIG_IsOK(res1)) {
7481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_HasParam" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7482 }
7483 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7484 {
7485 arg2 = wxString_in_helper(obj1);
7486 if (arg2 == NULL) SWIG_fail;
7487 temp2 = true;
7488 }
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 result = (bool)(arg1)->HasParam((wxString const &)*arg2);
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 {
7496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7497 }
7498 {
7499 if (temp2)
7500 delete arg2;
7501 }
7502 return resultobj;
7503 fail:
7504 {
7505 if (temp2)
7506 delete arg2;
7507 }
7508 return NULL;
7509 }
7510
7511
7512 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj = 0;
7514 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7515 wxString *arg2 = 0 ;
7516 wxXmlNode *result = 0 ;
7517 void *argp1 = 0 ;
7518 int res1 = 0 ;
7519 bool temp2 = false ;
7520 PyObject * obj0 = 0 ;
7521 PyObject * obj1 = 0 ;
7522 char * kwnames[] = {
7523 (char *) "self",(char *) "param", NULL
7524 };
7525
7526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) SWIG_fail;
7527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7528 if (!SWIG_IsOK(res1)) {
7529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7530 }
7531 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7532 {
7533 arg2 = wxString_in_helper(obj1);
7534 if (arg2 == NULL) SWIG_fail;
7535 temp2 = true;
7536 }
7537 {
7538 PyThreadState* __tstate = wxPyBeginAllowThreads();
7539 result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2);
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
7544 {
7545 if (temp2)
7546 delete arg2;
7547 }
7548 return resultobj;
7549 fail:
7550 {
7551 if (temp2)
7552 delete arg2;
7553 }
7554 return NULL;
7555 }
7556
7557
7558 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7559 PyObject *resultobj = 0;
7560 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7561 wxString *arg2 = 0 ;
7562 wxString result;
7563 void *argp1 = 0 ;
7564 int res1 = 0 ;
7565 bool temp2 = false ;
7566 PyObject * obj0 = 0 ;
7567 PyObject * obj1 = 0 ;
7568 char * kwnames[] = {
7569 (char *) "self",(char *) "param", NULL
7570 };
7571
7572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) SWIG_fail;
7573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7574 if (!SWIG_IsOK(res1)) {
7575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetParamValue" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7576 }
7577 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7578 {
7579 arg2 = wxString_in_helper(obj1);
7580 if (arg2 == NULL) SWIG_fail;
7581 temp2 = true;
7582 }
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 result = (arg1)->GetParamValue((wxString const &)*arg2);
7586 wxPyEndAllowThreads(__tstate);
7587 if (PyErr_Occurred()) SWIG_fail;
7588 }
7589 {
7590 #if wxUSE_UNICODE
7591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7592 #else
7593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7594 #endif
7595 }
7596 {
7597 if (temp2)
7598 delete arg2;
7599 }
7600 return resultobj;
7601 fail:
7602 {
7603 if (temp2)
7604 delete arg2;
7605 }
7606 return NULL;
7607 }
7608
7609
7610 SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj = 0;
7612 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7613 wxString *arg2 = 0 ;
7614 int arg3 ;
7615 void *argp1 = 0 ;
7616 int res1 = 0 ;
7617 bool temp2 = false ;
7618 int val3 ;
7619 int ecode3 = 0 ;
7620 PyObject * obj0 = 0 ;
7621 PyObject * obj1 = 0 ;
7622 PyObject * obj2 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "self",(char *) "name",(char *) "value", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7631 }
7632 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7633 {
7634 arg2 = wxString_in_helper(obj1);
7635 if (arg2 == NULL) SWIG_fail;
7636 temp2 = true;
7637 }
7638 ecode3 = SWIG_AsVal_int(obj2, &val3);
7639 if (!SWIG_IsOK(ecode3)) {
7640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_AddStyle" "', expected argument " "3"" of type '" "int""'");
7641 }
7642 arg3 = static_cast< int >(val3);
7643 {
7644 PyThreadState* __tstate = wxPyBeginAllowThreads();
7645 (arg1)->AddStyle((wxString const &)*arg2,arg3);
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 resultobj = SWIG_Py_Void();
7650 {
7651 if (temp2)
7652 delete arg2;
7653 }
7654 return resultobj;
7655 fail:
7656 {
7657 if (temp2)
7658 delete arg2;
7659 }
7660 return NULL;
7661 }
7662
7663
7664 SWIGINTERN PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7665 PyObject *resultobj = 0;
7666 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7667 void *argp1 = 0 ;
7668 int res1 = 0 ;
7669 PyObject *swig_obj[1] ;
7670
7671 if (!args) SWIG_fail;
7672 swig_obj[0] = args;
7673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7674 if (!SWIG_IsOK(res1)) {
7675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_AddWindowStyles" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7676 }
7677 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 (arg1)->AddWindowStyles();
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 resultobj = SWIG_Py_Void();
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj = 0;
7693 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7694 wxString const &arg2_defvalue = wxPyStyleString ;
7695 wxString *arg2 = (wxString *) &arg2_defvalue ;
7696 int arg3 = (int) 0 ;
7697 int result;
7698 void *argp1 = 0 ;
7699 int res1 = 0 ;
7700 bool temp2 = false ;
7701 int val3 ;
7702 int ecode3 = 0 ;
7703 PyObject * obj0 = 0 ;
7704 PyObject * obj1 = 0 ;
7705 PyObject * obj2 = 0 ;
7706 char * kwnames[] = {
7707 (char *) "self",(char *) "param",(char *) "defaults", NULL
7708 };
7709
7710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7712 if (!SWIG_IsOK(res1)) {
7713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7714 }
7715 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7716 if (obj1) {
7717 {
7718 arg2 = wxString_in_helper(obj1);
7719 if (arg2 == NULL) SWIG_fail;
7720 temp2 = true;
7721 }
7722 }
7723 if (obj2) {
7724 ecode3 = SWIG_AsVal_int(obj2, &val3);
7725 if (!SWIG_IsOK(ecode3)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetStyle" "', expected argument " "3"" of type '" "int""'");
7727 }
7728 arg3 = static_cast< int >(val3);
7729 }
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3);
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_From_int(static_cast< int >(result));
7737 {
7738 if (temp2)
7739 delete arg2;
7740 }
7741 return resultobj;
7742 fail:
7743 {
7744 if (temp2)
7745 delete arg2;
7746 }
7747 return NULL;
7748 }
7749
7750
7751 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7752 PyObject *resultobj = 0;
7753 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7754 wxString *arg2 = 0 ;
7755 bool arg3 = (bool) true ;
7756 wxString result;
7757 void *argp1 = 0 ;
7758 int res1 = 0 ;
7759 bool temp2 = false ;
7760 bool val3 ;
7761 int ecode3 = 0 ;
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 PyObject * obj2 = 0 ;
7765 char * kwnames[] = {
7766 (char *) "self",(char *) "param",(char *) "translate", NULL
7767 };
7768
7769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7771 if (!SWIG_IsOK(res1)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetText" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7773 }
7774 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7775 {
7776 arg2 = wxString_in_helper(obj1);
7777 if (arg2 == NULL) SWIG_fail;
7778 temp2 = true;
7779 }
7780 if (obj2) {
7781 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7782 if (!SWIG_IsOK(ecode3)) {
7783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetText" "', expected argument " "3"" of type '" "bool""'");
7784 }
7785 arg3 = static_cast< bool >(val3);
7786 }
7787 {
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 result = (arg1)->GetText((wxString const &)*arg2,arg3);
7790 wxPyEndAllowThreads(__tstate);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 {
7794 #if wxUSE_UNICODE
7795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7796 #else
7797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7798 #endif
7799 }
7800 {
7801 if (temp2)
7802 delete arg2;
7803 }
7804 return resultobj;
7805 fail:
7806 {
7807 if (temp2)
7808 delete arg2;
7809 }
7810 return NULL;
7811 }
7812
7813
7814 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7815 PyObject *resultobj = 0;
7816 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7817 int result;
7818 void *argp1 = 0 ;
7819 int res1 = 0 ;
7820 PyObject *swig_obj[1] ;
7821
7822 if (!args) SWIG_fail;
7823 swig_obj[0] = args;
7824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7825 if (!SWIG_IsOK(res1)) {
7826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetID" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7827 }
7828 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (int)(arg1)->GetID();
7832 wxPyEndAllowThreads(__tstate);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 resultobj = SWIG_From_int(static_cast< int >(result));
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7843 PyObject *resultobj = 0;
7844 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7845 wxString result;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 PyObject *swig_obj[1] ;
7849
7850 if (!args) SWIG_fail;
7851 swig_obj[0] = args;
7852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7853 if (!SWIG_IsOK(res1)) {
7854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetName" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7855 }
7856 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7857 {
7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
7859 result = (arg1)->GetName();
7860 wxPyEndAllowThreads(__tstate);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 {
7864 #if wxUSE_UNICODE
7865 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7866 #else
7867 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7868 #endif
7869 }
7870 return resultobj;
7871 fail:
7872 return NULL;
7873 }
7874
7875
7876 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7877 PyObject *resultobj = 0;
7878 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7879 wxString *arg2 = 0 ;
7880 bool arg3 = (bool) false ;
7881 bool result;
7882 void *argp1 = 0 ;
7883 int res1 = 0 ;
7884 bool temp2 = false ;
7885 bool val3 ;
7886 int ecode3 = 0 ;
7887 PyObject * obj0 = 0 ;
7888 PyObject * obj1 = 0 ;
7889 PyObject * obj2 = 0 ;
7890 char * kwnames[] = {
7891 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7892 };
7893
7894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7896 if (!SWIG_IsOK(res1)) {
7897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7898 }
7899 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7900 {
7901 arg2 = wxString_in_helper(obj1);
7902 if (arg2 == NULL) SWIG_fail;
7903 temp2 = true;
7904 }
7905 if (obj2) {
7906 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7907 if (!SWIG_IsOK(ecode3)) {
7908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetBool" "', expected argument " "3"" of type '" "bool""'");
7909 }
7910 arg3 = static_cast< bool >(val3);
7911 }
7912 {
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3);
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 {
7919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7920 }
7921 {
7922 if (temp2)
7923 delete arg2;
7924 }
7925 return resultobj;
7926 fail:
7927 {
7928 if (temp2)
7929 delete arg2;
7930 }
7931 return NULL;
7932 }
7933
7934
7935 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7936 PyObject *resultobj = 0;
7937 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7938 wxString *arg2 = 0 ;
7939 long arg3 = (long) 0 ;
7940 long result;
7941 void *argp1 = 0 ;
7942 int res1 = 0 ;
7943 bool temp2 = false ;
7944 long val3 ;
7945 int ecode3 = 0 ;
7946 PyObject * obj0 = 0 ;
7947 PyObject * obj1 = 0 ;
7948 PyObject * obj2 = 0 ;
7949 char * kwnames[] = {
7950 (char *) "self",(char *) "param",(char *) "defaultv", NULL
7951 };
7952
7953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
7955 if (!SWIG_IsOK(res1)) {
7956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
7957 }
7958 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
7959 {
7960 arg2 = wxString_in_helper(obj1);
7961 if (arg2 == NULL) SWIG_fail;
7962 temp2 = true;
7963 }
7964 if (obj2) {
7965 ecode3 = SWIG_AsVal_long(obj2, &val3);
7966 if (!SWIG_IsOK(ecode3)) {
7967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetLong" "', expected argument " "3"" of type '" "long""'");
7968 }
7969 arg3 = static_cast< long >(val3);
7970 }
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3);
7974 wxPyEndAllowThreads(__tstate);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 resultobj = SWIG_From_long(static_cast< long >(result));
7978 {
7979 if (temp2)
7980 delete arg2;
7981 }
7982 return resultobj;
7983 fail:
7984 {
7985 if (temp2)
7986 delete arg2;
7987 }
7988 return NULL;
7989 }
7990
7991
7992 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
7995 wxString *arg2 = 0 ;
7996 wxColour result;
7997 void *argp1 = 0 ;
7998 int res1 = 0 ;
7999 bool temp2 = false ;
8000 PyObject * obj0 = 0 ;
8001 PyObject * obj1 = 0 ;
8002 char * kwnames[] = {
8003 (char *) "self",(char *) "param", NULL
8004 };
8005
8006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) SWIG_fail;
8007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8008 if (!SWIG_IsOK(res1)) {
8009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetColour" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8010 }
8011 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8012 {
8013 arg2 = wxString_in_helper(obj1);
8014 if (arg2 == NULL) SWIG_fail;
8015 temp2 = true;
8016 }
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (arg1)->GetColour((wxString const &)*arg2);
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
8024 {
8025 if (temp2)
8026 delete arg2;
8027 }
8028 return resultobj;
8029 fail:
8030 {
8031 if (temp2)
8032 delete arg2;
8033 }
8034 return NULL;
8035 }
8036
8037
8038 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj = 0;
8040 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8041 wxString const &arg2_defvalue = wxPySizeString ;
8042 wxString *arg2 = (wxString *) &arg2_defvalue ;
8043 wxSize result;
8044 void *argp1 = 0 ;
8045 int res1 = 0 ;
8046 bool temp2 = false ;
8047 PyObject * obj0 = 0 ;
8048 PyObject * obj1 = 0 ;
8049 char * kwnames[] = {
8050 (char *) "self",(char *) "param", NULL
8051 };
8052
8053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8055 if (!SWIG_IsOK(res1)) {
8056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetSize" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8057 }
8058 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8059 if (obj1) {
8060 {
8061 arg2 = wxString_in_helper(obj1);
8062 if (arg2 == NULL) SWIG_fail;
8063 temp2 = true;
8064 }
8065 }
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (arg1)->GetSize((wxString const &)*arg2);
8069 wxPyEndAllowThreads(__tstate);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 }
8072 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
8073 {
8074 if (temp2)
8075 delete arg2;
8076 }
8077 return resultobj;
8078 fail:
8079 {
8080 if (temp2)
8081 delete arg2;
8082 }
8083 return NULL;
8084 }
8085
8086
8087 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj = 0;
8089 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8090 wxString const &arg2_defvalue = wxPyPosString ;
8091 wxString *arg2 = (wxString *) &arg2_defvalue ;
8092 wxPoint result;
8093 void *argp1 = 0 ;
8094 int res1 = 0 ;
8095 bool temp2 = false ;
8096 PyObject * obj0 = 0 ;
8097 PyObject * obj1 = 0 ;
8098 char * kwnames[] = {
8099 (char *) "self",(char *) "param", NULL
8100 };
8101
8102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
8103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8104 if (!SWIG_IsOK(res1)) {
8105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetPosition" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8106 }
8107 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8108 if (obj1) {
8109 {
8110 arg2 = wxString_in_helper(obj1);
8111 if (arg2 == NULL) SWIG_fail;
8112 temp2 = true;
8113 }
8114 }
8115 {
8116 PyThreadState* __tstate = wxPyBeginAllowThreads();
8117 result = (arg1)->GetPosition((wxString const &)*arg2);
8118 wxPyEndAllowThreads(__tstate);
8119 if (PyErr_Occurred()) SWIG_fail;
8120 }
8121 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
8122 {
8123 if (temp2)
8124 delete arg2;
8125 }
8126 return resultobj;
8127 fail:
8128 {
8129 if (temp2)
8130 delete arg2;
8131 }
8132 return NULL;
8133 }
8134
8135
8136 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8137 PyObject *resultobj = 0;
8138 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8139 wxString *arg2 = 0 ;
8140 int arg3 = (int) 0 ;
8141 int result;
8142 void *argp1 = 0 ;
8143 int res1 = 0 ;
8144 bool temp2 = false ;
8145 int val3 ;
8146 int ecode3 = 0 ;
8147 PyObject * obj0 = 0 ;
8148 PyObject * obj1 = 0 ;
8149 PyObject * obj2 = 0 ;
8150 char * kwnames[] = {
8151 (char *) "self",(char *) "param",(char *) "defaultv", NULL
8152 };
8153
8154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8156 if (!SWIG_IsOK(res1)) {
8157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8158 }
8159 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8160 {
8161 arg2 = wxString_in_helper(obj1);
8162 if (arg2 == NULL) SWIG_fail;
8163 temp2 = true;
8164 }
8165 if (obj2) {
8166 ecode3 = SWIG_AsVal_int(obj2, &val3);
8167 if (!SWIG_IsOK(ecode3)) {
8168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_GetDimension" "', expected argument " "3"" of type '" "int""'");
8169 }
8170 arg3 = static_cast< int >(val3);
8171 }
8172 {
8173 PyThreadState* __tstate = wxPyBeginAllowThreads();
8174 result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3);
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = SWIG_From_int(static_cast< int >(result));
8179 {
8180 if (temp2)
8181 delete arg2;
8182 }
8183 return resultobj;
8184 fail:
8185 {
8186 if (temp2)
8187 delete arg2;
8188 }
8189 return NULL;
8190 }
8191
8192
8193 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8194 PyObject *resultobj = 0;
8195 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8196 wxString const &arg2_defvalue = wxPyBitmapString ;
8197 wxString *arg2 = (wxString *) &arg2_defvalue ;
8198 wxArtClient const &arg3_defvalue = wxART_OTHER ;
8199 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
8200 wxSize arg4 = (wxSize) wxDefaultSize ;
8201 wxBitmap result;
8202 void *argp1 = 0 ;
8203 int res1 = 0 ;
8204 bool temp2 = false ;
8205 void *argp3 = 0 ;
8206 int res3 = 0 ;
8207 void *argp4 ;
8208 int res4 = 0 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 PyObject * obj2 = 0 ;
8212 PyObject * obj3 = 0 ;
8213 char * kwnames[] = {
8214 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
8215 };
8216
8217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8219 if (!SWIG_IsOK(res1)) {
8220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8221 }
8222 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8223 if (obj1) {
8224 {
8225 arg2 = wxString_in_helper(obj1);
8226 if (arg2 == NULL) SWIG_fail;
8227 temp2 = true;
8228 }
8229 }
8230 if (obj2) {
8231 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0);
8232 if (!SWIG_IsOK(res3)) {
8233 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8234 }
8235 if (!argp3) {
8236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8237 }
8238 arg3 = reinterpret_cast< wxArtClient * >(argp3);
8239 }
8240 if (obj3) {
8241 {
8242 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0);
8243 if (!SWIG_IsOK(res4)) {
8244 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
8245 }
8246 if (!argp4) {
8247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetBitmap" "', expected argument " "4"" of type '" "wxSize""'");
8248 } else {
8249 wxSize * temp = reinterpret_cast< wxSize * >(argp4);
8250 arg4 = *temp;
8251 if (SWIG_IsNewObj(res4)) delete temp;
8252 }
8253 }
8254 }
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8262 {
8263 if (temp2)
8264 delete arg2;
8265 }
8266 return resultobj;
8267 fail:
8268 {
8269 if (temp2)
8270 delete arg2;
8271 }
8272 return NULL;
8273 }
8274
8275
8276 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8277 PyObject *resultobj = 0;
8278 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8279 wxString const &arg2_defvalue = wxPyIconString ;
8280 wxString *arg2 = (wxString *) &arg2_defvalue ;
8281 wxArtClient const &arg3_defvalue = wxART_OTHER ;
8282 wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ;
8283 wxSize arg4 = (wxSize) wxDefaultSize ;
8284 wxIcon result;
8285 void *argp1 = 0 ;
8286 int res1 = 0 ;
8287 bool temp2 = false ;
8288 void *argp3 = 0 ;
8289 int res3 = 0 ;
8290 void *argp4 ;
8291 int res4 = 0 ;
8292 PyObject * obj0 = 0 ;
8293 PyObject * obj1 = 0 ;
8294 PyObject * obj2 = 0 ;
8295 PyObject * obj3 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8304 }
8305 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8306 if (obj1) {
8307 {
8308 arg2 = wxString_in_helper(obj1);
8309 if (arg2 == NULL) SWIG_fail;
8310 temp2 = true;
8311 }
8312 }
8313 if (obj2) {
8314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArtClient, 0 | 0);
8315 if (!SWIG_IsOK(res3)) {
8316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8317 }
8318 if (!argp3) {
8319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "3"" of type '" "wxArtClient const &""'");
8320 }
8321 arg3 = reinterpret_cast< wxArtClient * >(argp3);
8322 }
8323 if (obj3) {
8324 {
8325 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSize, 0 | 0);
8326 if (!SWIG_IsOK(res4)) {
8327 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8328 }
8329 if (!argp4) {
8330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlResourceHandler_GetIcon" "', expected argument " "4"" of type '" "wxSize""'");
8331 } else {
8332 wxSize * temp = reinterpret_cast< wxSize * >(argp4);
8333 arg4 = *temp;
8334 if (SWIG_IsNewObj(res4)) delete temp;
8335 }
8336 }
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4);
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8345 {
8346 if (temp2)
8347 delete arg2;
8348 }
8349 return resultobj;
8350 fail:
8351 {
8352 if (temp2)
8353 delete arg2;
8354 }
8355 return NULL;
8356 }
8357
8358
8359 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj = 0;
8361 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8362 wxString const &arg2_defvalue = wxPyFontString ;
8363 wxString *arg2 = (wxString *) &arg2_defvalue ;
8364 wxFont result;
8365 void *argp1 = 0 ;
8366 int res1 = 0 ;
8367 bool temp2 = false ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 char * kwnames[] = {
8371 (char *) "self",(char *) "param", NULL
8372 };
8373
8374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetFont" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8378 }
8379 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8380 if (obj1) {
8381 {
8382 arg2 = wxString_in_helper(obj1);
8383 if (arg2 == NULL) SWIG_fail;
8384 temp2 = true;
8385 }
8386 }
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 result = (arg1)->GetFont((wxString const &)*arg2);
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
8394 {
8395 if (temp2)
8396 delete arg2;
8397 }
8398 return resultobj;
8399 fail:
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return NULL;
8405 }
8406
8407
8408 SWIGINTERN PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8409 PyObject *resultobj = 0;
8410 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8411 wxWindow *arg2 = (wxWindow *) 0 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 void *argp2 = 0 ;
8415 int res2 = 0 ;
8416 PyObject * obj0 = 0 ;
8417 PyObject * obj1 = 0 ;
8418 char * kwnames[] = {
8419 (char *) "self",(char *) "wnd", NULL
8420 };
8421
8422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) SWIG_fail;
8423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8424 if (!SWIG_IsOK(res1)) {
8425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8426 }
8427 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8429 if (!SWIG_IsOK(res2)) {
8430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_SetupWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
8431 }
8432 arg2 = reinterpret_cast< wxWindow * >(argp2);
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 (arg1)->SetupWindow(arg2);
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_Py_Void();
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj = 0;
8448 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8449 wxObject *arg2 = (wxObject *) 0 ;
8450 bool arg3 = (bool) false ;
8451 void *argp1 = 0 ;
8452 int res1 = 0 ;
8453 void *argp2 = 0 ;
8454 int res2 = 0 ;
8455 bool val3 ;
8456 int ecode3 = 0 ;
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 PyObject * obj2 = 0 ;
8460 char * kwnames[] = {
8461 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
8462 };
8463
8464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8466 if (!SWIG_IsOK(res1)) {
8467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8468 }
8469 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8470 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
8471 if (!SWIG_IsOK(res2)) {
8472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "2"" of type '" "wxObject *""'");
8473 }
8474 arg2 = reinterpret_cast< wxObject * >(argp2);
8475 if (obj2) {
8476 ecode3 = SWIG_AsVal_bool(obj2, &val3);
8477 if (!SWIG_IsOK(ecode3)) {
8478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlResourceHandler_CreateChildren" "', expected argument " "3"" of type '" "bool""'");
8479 }
8480 arg3 = static_cast< bool >(val3);
8481 }
8482 {
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 (arg1)->CreateChildren(arg2,arg3);
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_Py_Void();
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj = 0;
8497 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8498 wxObject *arg2 = (wxObject *) 0 ;
8499 wxXmlNode *arg3 = (wxXmlNode *) NULL ;
8500 void *argp1 = 0 ;
8501 int res1 = 0 ;
8502 void *argp2 = 0 ;
8503 int res2 = 0 ;
8504 void *argp3 = 0 ;
8505 int res3 = 0 ;
8506 PyObject * obj0 = 0 ;
8507 PyObject * obj1 = 0 ;
8508 PyObject * obj2 = 0 ;
8509 char * kwnames[] = {
8510 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
8511 };
8512
8513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8515 if (!SWIG_IsOK(res1)) {
8516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8517 }
8518 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
8520 if (!SWIG_IsOK(res2)) {
8521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "2"" of type '" "wxObject *""'");
8522 }
8523 arg2 = reinterpret_cast< wxObject * >(argp2);
8524 if (obj2) {
8525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxXmlNode, 0 | 0 );
8526 if (!SWIG_IsOK(res3)) {
8527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateChildrenPrivately" "', expected argument " "3"" of type '" "wxXmlNode *""'");
8528 }
8529 arg3 = reinterpret_cast< wxXmlNode * >(argp3);
8530 }
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 (arg1)->CreateChildrenPrivately(arg2,arg3);
8534 wxPyEndAllowThreads(__tstate);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 resultobj = SWIG_Py_Void();
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 SWIGINTERN PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8545 PyObject *resultobj = 0;
8546 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8547 wxXmlNode *arg2 = (wxXmlNode *) 0 ;
8548 wxObject *arg3 = (wxObject *) 0 ;
8549 wxObject *arg4 = (wxObject *) NULL ;
8550 wxObject *result = 0 ;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 void *argp2 = 0 ;
8554 int res2 = 0 ;
8555 void *argp3 = 0 ;
8556 int res3 = 0 ;
8557 void *argp4 = 0 ;
8558 int res4 = 0 ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8561 PyObject * obj2 = 0 ;
8562 PyObject * obj3 = 0 ;
8563 char * kwnames[] = {
8564 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
8565 };
8566
8567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8571 }
8572 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
8574 if (!SWIG_IsOK(res2)) {
8575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "2"" of type '" "wxXmlNode *""'");
8576 }
8577 arg2 = reinterpret_cast< wxXmlNode * >(argp2);
8578 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxObject, 0 | 0 );
8579 if (!SWIG_IsOK(res3)) {
8580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "3"" of type '" "wxObject *""'");
8581 }
8582 arg3 = reinterpret_cast< wxObject * >(argp3);
8583 if (obj3) {
8584 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxObject, 0 | 0 );
8585 if (!SWIG_IsOK(res4)) {
8586 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XmlResourceHandler_CreateResFromNode" "', expected argument " "4"" of type '" "wxObject *""'");
8587 }
8588 arg4 = reinterpret_cast< wxObject * >(argp4);
8589 }
8590 {
8591 PyThreadState* __tstate = wxPyBeginAllowThreads();
8592 result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4);
8593 wxPyEndAllowThreads(__tstate);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 }
8596 {
8597 resultobj = wxPyMake_wxObject(result, (bool)0);
8598 }
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 SWIGINTERN PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8606 PyObject *resultobj = 0;
8607 wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
8608 wxFileSystem *result = 0 ;
8609 void *argp1 = 0 ;
8610 int res1 = 0 ;
8611 PyObject *swig_obj[1] ;
8612
8613 if (!args) SWIG_fail;
8614 swig_obj[0] = args;
8615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
8616 if (!SWIG_IsOK(res1)) {
8617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResourceHandler_GetCurFileSystem" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
8618 }
8619 arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 {
8623 wxFileSystem &_result_ref = (arg1)->GetCurFileSystem();
8624 result = (wxFileSystem *) &_result_ref;
8625 }
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, 0 | 0 );
8630 return resultobj;
8631 fail:
8632 return NULL;
8633 }
8634
8635
8636 SWIGINTERN PyObject *XmlResourceHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8637 PyObject *obj;
8638 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8639 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_NewClientData(obj));
8640 return SWIG_Py_Void();
8641 }
8642
8643 SWIGINTERN PyObject *XmlResourceHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 return SWIG_Python_InitShadowInstance(args);
8645 }
8646
8647 static PyMethodDef SwigMethods[] = {
8648 { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
8649 { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS, NULL},
8650 { (char *)"delete_XmlResource", (PyCFunction)_wrap_delete_XmlResource, METH_O, NULL},
8651 { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS, NULL},
8652 { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS, NULL},
8653 { (char *)"XmlResource_Unload", (PyCFunction) _wrap_XmlResource_Unload, METH_VARARGS | METH_KEYWORDS, NULL},
8654 { (char *)"XmlResource_InitAllHandlers", (PyCFunction)_wrap_XmlResource_InitAllHandlers, METH_O, NULL},
8655 { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
8656 { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
8657 { (char *)"XmlResource_ClearHandlers", (PyCFunction)_wrap_XmlResource_ClearHandlers, METH_O, NULL},
8658 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS, NULL},
8659 { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS, NULL},
8660 { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
8661 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8662 { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
8663 { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS, NULL},
8664 { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS, NULL},
8665 { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS, NULL},
8666 { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS, NULL},
8667 { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8668 { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS, NULL},
8669 { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS, NULL},
8670 { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS, NULL},
8671 { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
8672 { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS, NULL},
8673 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS, NULL},
8674 { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS, NULL},
8675 { (char *)"XmlResource_GetVersion", (PyCFunction)_wrap_XmlResource_GetVersion, METH_O, NULL},
8676 { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS, NULL},
8677 { (char *)"XmlResource_Get", (PyCFunction)_wrap_XmlResource_Get, METH_NOARGS, NULL},
8678 { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL},
8679 { (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL},
8680 { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
8681 { (char *)"XmlResource_GetDomain", (PyCFunction)_wrap_XmlResource_GetDomain, METH_O, NULL},
8682 { (char *)"XmlResource_SetDomain", (PyCFunction) _wrap_XmlResource_SetDomain, METH_VARARGS | METH_KEYWORDS, NULL},
8683 { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL},
8684 { (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL},
8685 { (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL},
8686 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
8687 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS, NULL},
8688 { (char *)"XmlSubclassFactory_swiginit", XmlSubclassFactory_swiginit, METH_VARARGS, NULL},
8689 { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8690 { (char *)"XmlProperty_GetName", (PyCFunction)_wrap_XmlProperty_GetName, METH_O, NULL},
8691 { (char *)"XmlProperty_GetValue", (PyCFunction)_wrap_XmlProperty_GetValue, METH_O, NULL},
8692 { (char *)"XmlProperty_GetNext", (PyCFunction)_wrap_XmlProperty_GetNext, METH_O, NULL},
8693 { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
8694 { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
8695 { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
8696 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS, NULL},
8697 { (char *)"XmlProperty_swiginit", XmlProperty_swiginit, METH_VARARGS, NULL},
8698 { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS, NULL},
8699 { (char *)"delete_XmlNode", (PyCFunction)_wrap_delete_XmlNode, METH_O, NULL},
8700 { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS, NULL},
8701 { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
8702 { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS, NULL},
8703 { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
8704 { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8705 { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS, NULL},
8706 { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS, NULL},
8707 { (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL},
8708 { (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL},
8709 { (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL},
8710 { (char *)"XmlNode_IsWhitespaceOnly", (PyCFunction)_wrap_XmlNode_IsWhitespaceOnly, METH_O, NULL},
8711 { (char *)"XmlNode_GetDepth", (PyCFunction) _wrap_XmlNode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
8712 { (char *)"XmlNode_GetNodeContent", (PyCFunction)_wrap_XmlNode_GetNodeContent, METH_O, NULL},
8713 { (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL},
8714 { (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL},
8715 { (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL},
8716 { (char *)"XmlNode_GetProperties", (PyCFunction)_wrap_XmlNode_GetProperties, METH_O, NULL},
8717 { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS, NULL},
8718 { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS, NULL},
8719 { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
8720 { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
8721 { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS, NULL},
8722 { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
8723 { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS, NULL},
8724 { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS, NULL},
8725 { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS, NULL},
8726 { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS, NULL},
8727 { (char *)"XmlNode_swiginit", XmlNode_swiginit, METH_VARARGS, NULL},
8728 { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS, NULL},
8729 { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
8730 { (char *)"new_EmptyXmlDocument", (PyCFunction)_wrap_new_EmptyXmlDocument, METH_NOARGS, NULL},
8731 { (char *)"delete_XmlDocument", (PyCFunction)_wrap_delete_XmlDocument, METH_O, NULL},
8732 { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS, NULL},
8733 { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
8734 { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS, NULL},
8735 { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS, NULL},
8736 { (char *)"XmlDocument_IsOk", (PyCFunction)_wrap_XmlDocument_IsOk, METH_O, NULL},
8737 { (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL},
8738 { (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL},
8739 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL},
8740 { (char *)"XmlDocument_DetachRoot", (PyCFunction)_wrap_XmlDocument_DetachRoot, METH_O, NULL},
8741 { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL},
8742 { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
8743 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
8744 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL},
8745 { (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL},
8746 { (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL},
8747 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
8748 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL},
8749 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL},
8750 { (char *)"XmlResourceHandler_GetResource", (PyCFunction)_wrap_XmlResourceHandler_GetResource, METH_O, NULL},
8751 { (char *)"XmlResourceHandler_GetNode", (PyCFunction)_wrap_XmlResourceHandler_GetNode, METH_O, NULL},
8752 { (char *)"XmlResourceHandler_GetClass", (PyCFunction)_wrap_XmlResourceHandler_GetClass, METH_O, NULL},
8753 { (char *)"XmlResourceHandler_GetParent", (PyCFunction)_wrap_XmlResourceHandler_GetParent, METH_O, NULL},
8754 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction)_wrap_XmlResourceHandler_GetInstance, METH_O, NULL},
8755 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction)_wrap_XmlResourceHandler_GetParentAsWindow, METH_O, NULL},
8756 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL},
8757 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL},
8758 { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL},
8759 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS, NULL},
8760 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS, NULL},
8761 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS, NULL},
8762 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction)_wrap_XmlResourceHandler_AddWindowStyles, METH_O, NULL},
8763 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
8764 { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
8765 { (char *)"XmlResourceHandler_GetID", (PyCFunction)_wrap_XmlResourceHandler_GetID, METH_O, NULL},
8766 { (char *)"XmlResourceHandler_GetName", (PyCFunction)_wrap_XmlResourceHandler_GetName, METH_O, NULL},
8767 { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS, NULL},
8768 { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS, NULL},
8769 { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
8770 { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8771 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
8772 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
8773 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
8774 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
8775 { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
8776 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS, NULL},
8777 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS, NULL},
8778 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS, NULL},
8779 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS, NULL},
8780 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction)_wrap_XmlResourceHandler_GetCurFileSystem, METH_O, NULL},
8781 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS, NULL},
8782 { (char *)"XmlResourceHandler_swiginit", XmlResourceHandler_swiginit, METH_VARARGS, NULL},
8783 { NULL, NULL, 0, NULL }
8784 };
8785
8786
8787 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8788
8789 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
8790 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
8791 }
8792 static void *_p_wxXmlDocumentTo_p_wxObject(void *x) {
8793 return (void *)((wxObject *) ((wxXmlDocument *) x));
8794 }
8795 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
8796 return (void *)((wxObject *) ((wxSizerItem *) x));
8797 }
8798 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
8799 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
8800 }
8801 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
8802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
8803 }
8804 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
8805 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
8806 }
8807 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
8808 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
8809 }
8810 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
8811 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
8812 }
8813 static void *_p_wxSizerTo_p_wxObject(void *x) {
8814 return (void *)((wxObject *) ((wxSizer *) x));
8815 }
8816 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
8817 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
8818 }
8819 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
8820 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
8821 }
8822 static void *_p_wxEventTo_p_wxObject(void *x) {
8823 return (void *)((wxObject *) ((wxEvent *) x));
8824 }
8825 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
8826 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
8827 }
8828 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
8829 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
8830 }
8831 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
8832 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
8833 }
8834 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
8835 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
8836 }
8837 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
8838 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
8839 }
8840 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
8841 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
8842 }
8843 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
8844 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
8845 }
8846 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
8847 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
8848 }
8849 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
8850 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
8851 }
8852 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
8853 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
8854 }
8855 static void *_p_wxControlTo_p_wxObject(void *x) {
8856 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
8857 }
8858 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
8859 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
8860 }
8861 static void *_p_wxFSFileTo_p_wxObject(void *x) {
8862 return (void *)((wxObject *) ((wxFSFile *) x));
8863 }
8864 static void *_p_wxPySizerTo_p_wxObject(void *x) {
8865 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
8866 }
8867 static void *_p_wxPyEventTo_p_wxObject(void *x) {
8868 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
8869 }
8870 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
8871 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
8872 }
8873 static void *_p_wxShowEventTo_p_wxObject(void *x) {
8874 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
8875 }
8876 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
8877 return (void *)((wxObject *) ((wxMenuItem *) x));
8878 }
8879 static void *_p_wxDateEventTo_p_wxObject(void *x) {
8880 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
8881 }
8882 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
8883 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
8884 }
8885 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
8886 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
8887 }
8888 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
8889 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
8890 }
8891 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
8892 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
8893 }
8894 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
8895 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
8896 }
8897 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
8898 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
8899 }
8900 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
8901 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
8902 }
8903 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
8904 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
8905 }
8906 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
8907 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
8908 }
8909 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
8910 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
8911 }
8912 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
8913 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
8914 }
8915 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
8916 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
8917 }
8918 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
8919 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
8920 }
8921 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
8922 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
8923 }
8924 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
8925 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
8926 }
8927 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
8928 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
8929 }
8930 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
8931 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
8932 }
8933 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
8934 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
8935 }
8936 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
8937 return (void *)((wxObject *) ((wxImageHandler *) x));
8938 }
8939 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
8940 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
8941 }
8942 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
8943 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
8944 }
8945 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
8946 return (void *)((wxObject *) ((wxEvtHandler *) x));
8947 }
8948 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
8949 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
8950 }
8951 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) {
8952 return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x));
8953 }
8954 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
8955 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
8956 }
8957 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
8958 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
8959 }
8960 static void *_p_wxImageTo_p_wxObject(void *x) {
8961 return (void *)((wxObject *) ((wxImage *) x));
8962 }
8963 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
8964 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
8965 }
8966 static void *_p_wxXmlResourceTo_p_wxObject(void *x) {
8967 return (void *)((wxObject *) ((wxXmlResource *) x));
8968 }
8969 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
8970 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
8971 }
8972 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
8973 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
8974 }
8975 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
8976 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
8977 }
8978 static void *_p_wxWindowTo_p_wxObject(void *x) {
8979 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
8980 }
8981 static void *_p_wxMenuTo_p_wxObject(void *x) {
8982 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
8983 }
8984 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
8985 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
8986 }
8987 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
8988 return (void *)((wxObject *) ((wxFileSystem *) x));
8989 }
8990 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
8991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
8992 }
8993 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
8994 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
8995 }
8996 static void *_p_wxPyAppTo_p_wxObject(void *x) {
8997 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
8998 }
8999 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
9000 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
9001 }
9002 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
9003 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
9004 }
9005 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
9006 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
9007 }
9008 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
9009 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
9010 }
9011 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
9012 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
9013 }
9014 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
9015 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
9016 }
9017 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
9018 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
9019 }
9020 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
9021 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
9022 }
9023 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
9024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
9025 }
9026 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
9027 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
9028 }
9029 static void *_p_wxValidatorTo_p_wxObject(void *x) {
9030 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
9031 }
9032 static void *_p_wxControlTo_p_wxWindow(void *x) {
9033 return (void *)((wxWindow *) ((wxControl *) x));
9034 }
9035 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
9036 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
9037 }
9038 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
9039 return (void *)((wxWindow *) ((wxMenuBar *) x));
9040 }
9041 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
9042 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};
9043 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
9044 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
9045 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
9046 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
9047 static swig_type_info _swigt__p_wxArtClient = {"_p_wxArtClient", "wxArtClient *", 0, 0, (void*)0, 0};
9048 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
9049 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
9050 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", "wxDialog *", 0, 0, (void*)0, 0};
9051 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
9052 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
9053 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
9054 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
9055 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
9056 static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
9057 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
9058 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
9059 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
9060 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
9061 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
9062 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
9063 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
9064 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
9065 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
9066 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
9067 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
9068 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
9069 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
9070 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
9071 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
9072 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
9073 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
9074 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
9075 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
9076 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
9077 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
9078 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
9079 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
9080 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
9081 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
9082 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
9083 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
9084 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
9085 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
9086 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
9087 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
9088 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
9089 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
9090 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
9091 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
9092 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
9093 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
9094 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
9095 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
9096 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
9097 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
9098 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
9099 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
9100 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
9101 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
9102 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
9103 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
9104 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
9105 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
9106 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
9107 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
9108 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
9109 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
9110 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
9111 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
9112 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
9113 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
9114 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
9115 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
9116 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
9117 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
9118 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
9119 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
9120 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
9121 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
9122 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
9123 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
9124 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
9125 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
9126 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
9127 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
9128 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
9129 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
9130 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
9131 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
9132 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
9133 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
9134 static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
9135 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
9136 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
9137 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
9138 static swig_type_info _swigt__p_wxPyXmlResourceHandler = {"_p_wxPyXmlResourceHandler", "wxPyXmlResourceHandler *", 0, 0, (void*)0, 0};
9139 static swig_type_info _swigt__p_wxPyXmlSubclassFactory = {"_p_wxPyXmlSubclassFactory", "wxPyXmlSubclassFactory *", 0, 0, (void*)0, 0};
9140 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
9141 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
9142 static swig_type_info _swigt__p_wxXmlDocument = {"_p_wxXmlDocument", "wxXmlDocument *", 0, 0, (void*)0, 0};
9143 static swig_type_info _swigt__p_wxXmlNode = {"_p_wxXmlNode", "wxXmlNode *", 0, 0, (void*)0, 0};
9144 static swig_type_info _swigt__p_wxXmlProperty = {"_p_wxXmlProperty", "wxXmlProperty *", 0, 0, (void*)0, 0};
9145 static swig_type_info _swigt__p_wxXmlResource = {"_p_wxXmlResource", "wxXmlResource *", 0, 0, (void*)0, 0};
9146
9147 static swig_type_info *swig_type_initial[] = {
9148 &_swigt__p_char,
9149 &_swigt__p_form_ops_t,
9150 &_swigt__p_int,
9151 &_swigt__p_unsigned_char,
9152 &_swigt__p_unsigned_int,
9153 &_swigt__p_unsigned_long,
9154 &_swigt__p_wxANIHandler,
9155 &_swigt__p_wxAcceleratorTable,
9156 &_swigt__p_wxActivateEvent,
9157 &_swigt__p_wxArtClient,
9158 &_swigt__p_wxBMPHandler,
9159 &_swigt__p_wxBitmap,
9160 &_swigt__p_wxBoxSizer,
9161 &_swigt__p_wxCURHandler,
9162 &_swigt__p_wxChildFocusEvent,
9163 &_swigt__p_wxClipboardTextEvent,
9164 &_swigt__p_wxCloseEvent,
9165 &_swigt__p_wxColour,
9166 &_swigt__p_wxCommandEvent,
9167 &_swigt__p_wxContextMenuEvent,
9168 &_swigt__p_wxControl,
9169 &_swigt__p_wxControlWithItems,
9170 &_swigt__p_wxDateEvent,
9171 &_swigt__p_wxDialog,
9172 &_swigt__p_wxDisplayChangedEvent,
9173 &_swigt__p_wxDropFilesEvent,
9174 &_swigt__p_wxDuplexMode,
9175 &_swigt__p_wxEraseEvent,
9176 &_swigt__p_wxEvent,
9177 &_swigt__p_wxEvtHandler,
9178 &_swigt__p_wxFSFile,
9179 &_swigt__p_wxFileSystem,
9180 &_swigt__p_wxFlexGridSizer,
9181 &_swigt__p_wxFocusEvent,
9182 &_swigt__p_wxFont,
9183 &_swigt__p_wxFrame,
9184 &_swigt__p_wxGBSizerItem,
9185 &_swigt__p_wxGIFHandler,
9186 &_swigt__p_wxGridBagSizer,
9187 &_swigt__p_wxGridSizer,
9188 &_swigt__p_wxICOHandler,
9189 &_swigt__p_wxIcon,
9190 &_swigt__p_wxIconizeEvent,
9191 &_swigt__p_wxIdleEvent,
9192 &_swigt__p_wxImage,
9193 &_swigt__p_wxImageHandler,
9194 &_swigt__p_wxIndividualLayoutConstraint,
9195 &_swigt__p_wxInitDialogEvent,
9196 &_swigt__p_wxInputStream,
9197 &_swigt__p_wxJPEGHandler,
9198 &_swigt__p_wxKeyEvent,
9199 &_swigt__p_wxLayoutConstraints,
9200 &_swigt__p_wxMaximizeEvent,
9201 &_swigt__p_wxMenu,
9202 &_swigt__p_wxMenuBar,
9203 &_swigt__p_wxMenuEvent,
9204 &_swigt__p_wxMenuItem,
9205 &_swigt__p_wxMouseCaptureChangedEvent,
9206 &_swigt__p_wxMouseCaptureLostEvent,
9207 &_swigt__p_wxMouseEvent,
9208 &_swigt__p_wxMoveEvent,
9209 &_swigt__p_wxNavigationKeyEvent,
9210 &_swigt__p_wxNcPaintEvent,
9211 &_swigt__p_wxNotifyEvent,
9212 &_swigt__p_wxObject,
9213 &_swigt__p_wxOutputStream,
9214 &_swigt__p_wxPCXHandler,
9215 &_swigt__p_wxPNGHandler,
9216 &_swigt__p_wxPNMHandler,
9217 &_swigt__p_wxPaintEvent,
9218 &_swigt__p_wxPaletteChangedEvent,
9219 &_swigt__p_wxPanel,
9220 &_swigt__p_wxPaperSize,
9221 &_swigt__p_wxPoint,
9222 &_swigt__p_wxPyApp,
9223 &_swigt__p_wxPyCommandEvent,
9224 &_swigt__p_wxPyEvent,
9225 &_swigt__p_wxPyImageHandler,
9226 &_swigt__p_wxPySizer,
9227 &_swigt__p_wxPyValidator,
9228 &_swigt__p_wxPyXmlResourceHandler,
9229 &_swigt__p_wxPyXmlSubclassFactory,
9230 &_swigt__p_wxQueryNewPaletteEvent,
9231 &_swigt__p_wxScrollEvent,
9232 &_swigt__p_wxScrollWinEvent,
9233 &_swigt__p_wxSetCursorEvent,
9234 &_swigt__p_wxShowEvent,
9235 &_swigt__p_wxSize,
9236 &_swigt__p_wxSizeEvent,
9237 &_swigt__p_wxSizer,
9238 &_swigt__p_wxSizerItem,
9239 &_swigt__p_wxStaticBoxSizer,
9240 &_swigt__p_wxStdDialogButtonSizer,
9241 &_swigt__p_wxSysColourChangedEvent,
9242 &_swigt__p_wxTIFFHandler,
9243 &_swigt__p_wxUpdateUIEvent,
9244 &_swigt__p_wxValidator,
9245 &_swigt__p_wxWindow,
9246 &_swigt__p_wxWindowCreateEvent,
9247 &_swigt__p_wxWindowDestroyEvent,
9248 &_swigt__p_wxXPMHandler,
9249 &_swigt__p_wxXmlDocument,
9250 &_swigt__p_wxXmlNode,
9251 &_swigt__p_wxXmlProperty,
9252 &_swigt__p_wxXmlResource,
9253 };
9254
9255 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
9256 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
9257 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
9258 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
9259 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
9260 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
9261 static swig_cast_info _swigc__p_wxArtClient[] = { {&_swigt__p_wxArtClient, 0, 0, 0},{0, 0, 0, 0}};
9262 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
9263 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
9264 static swig_cast_info _swigc__p_wxDialog[] = { {&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
9265 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
9266 static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
9267 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
9268 static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
9269 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
9270 static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
9271 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
9272 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
9273 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
9274 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
9275 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
9276 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
9277 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
9278 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
9279 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
9280 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
9281 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
9282 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
9283 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
9284 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
9285 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
9286 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
9287 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
9288 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
9289 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9290 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9291 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9292 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
9293 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
9294 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
9295 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
9296 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
9297 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
9298 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
9299 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
9300 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
9301 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
9302 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
9303 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
9304 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
9305 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9306 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9307 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
9308 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
9309 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
9310 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
9311 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
9312 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
9313 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
9314 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
9315 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
9316 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
9317 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
9318 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
9319 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
9320 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
9321 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
9322 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
9323 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
9324 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
9325 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
9326 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
9327 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
9328 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
9329 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
9330 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
9331 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
9332 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
9333 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
9334 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
9335 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
9336 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
9337 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
9338 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
9339 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
9340 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
9341 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
9342 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
9343 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
9344 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
9345 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
9346 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
9347 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_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_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyXmlResourceHandler, _p_wxPyXmlResourceHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_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}};
9348 static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
9349 static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0},{0, 0, 0, 0}};
9350 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
9351 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
9352 static swig_cast_info _swigc__p_wxPyXmlResourceHandler[] = { {&_swigt__p_wxPyXmlResourceHandler, 0, 0, 0},{0, 0, 0, 0}};
9353 static swig_cast_info _swigc__p_wxPyXmlSubclassFactory[] = { {&_swigt__p_wxPyXmlSubclassFactory, 0, 0, 0},{0, 0, 0, 0}};
9354 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
9355 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}};
9356 static swig_cast_info _swigc__p_wxXmlDocument[] = { {&_swigt__p_wxXmlDocument, 0, 0, 0},{0, 0, 0, 0}};
9357 static swig_cast_info _swigc__p_wxXmlNode[] = { {&_swigt__p_wxXmlNode, 0, 0, 0},{0, 0, 0, 0}};
9358 static swig_cast_info _swigc__p_wxXmlProperty[] = { {&_swigt__p_wxXmlProperty, 0, 0, 0},{0, 0, 0, 0}};
9359 static swig_cast_info _swigc__p_wxXmlResource[] = { {&_swigt__p_wxXmlResource, 0, 0, 0},{0, 0, 0, 0}};
9360
9361 static swig_cast_info *swig_cast_initial[] = {
9362 _swigc__p_char,
9363 _swigc__p_form_ops_t,
9364 _swigc__p_int,
9365 _swigc__p_unsigned_char,
9366 _swigc__p_unsigned_int,
9367 _swigc__p_unsigned_long,
9368 _swigc__p_wxANIHandler,
9369 _swigc__p_wxAcceleratorTable,
9370 _swigc__p_wxActivateEvent,
9371 _swigc__p_wxArtClient,
9372 _swigc__p_wxBMPHandler,
9373 _swigc__p_wxBitmap,
9374 _swigc__p_wxBoxSizer,
9375 _swigc__p_wxCURHandler,
9376 _swigc__p_wxChildFocusEvent,
9377 _swigc__p_wxClipboardTextEvent,
9378 _swigc__p_wxCloseEvent,
9379 _swigc__p_wxColour,
9380 _swigc__p_wxCommandEvent,
9381 _swigc__p_wxContextMenuEvent,
9382 _swigc__p_wxControl,
9383 _swigc__p_wxControlWithItems,
9384 _swigc__p_wxDateEvent,
9385 _swigc__p_wxDialog,
9386 _swigc__p_wxDisplayChangedEvent,
9387 _swigc__p_wxDropFilesEvent,
9388 _swigc__p_wxDuplexMode,
9389 _swigc__p_wxEraseEvent,
9390 _swigc__p_wxEvent,
9391 _swigc__p_wxEvtHandler,
9392 _swigc__p_wxFSFile,
9393 _swigc__p_wxFileSystem,
9394 _swigc__p_wxFlexGridSizer,
9395 _swigc__p_wxFocusEvent,
9396 _swigc__p_wxFont,
9397 _swigc__p_wxFrame,
9398 _swigc__p_wxGBSizerItem,
9399 _swigc__p_wxGIFHandler,
9400 _swigc__p_wxGridBagSizer,
9401 _swigc__p_wxGridSizer,
9402 _swigc__p_wxICOHandler,
9403 _swigc__p_wxIcon,
9404 _swigc__p_wxIconizeEvent,
9405 _swigc__p_wxIdleEvent,
9406 _swigc__p_wxImage,
9407 _swigc__p_wxImageHandler,
9408 _swigc__p_wxIndividualLayoutConstraint,
9409 _swigc__p_wxInitDialogEvent,
9410 _swigc__p_wxInputStream,
9411 _swigc__p_wxJPEGHandler,
9412 _swigc__p_wxKeyEvent,
9413 _swigc__p_wxLayoutConstraints,
9414 _swigc__p_wxMaximizeEvent,
9415 _swigc__p_wxMenu,
9416 _swigc__p_wxMenuBar,
9417 _swigc__p_wxMenuEvent,
9418 _swigc__p_wxMenuItem,
9419 _swigc__p_wxMouseCaptureChangedEvent,
9420 _swigc__p_wxMouseCaptureLostEvent,
9421 _swigc__p_wxMouseEvent,
9422 _swigc__p_wxMoveEvent,
9423 _swigc__p_wxNavigationKeyEvent,
9424 _swigc__p_wxNcPaintEvent,
9425 _swigc__p_wxNotifyEvent,
9426 _swigc__p_wxObject,
9427 _swigc__p_wxOutputStream,
9428 _swigc__p_wxPCXHandler,
9429 _swigc__p_wxPNGHandler,
9430 _swigc__p_wxPNMHandler,
9431 _swigc__p_wxPaintEvent,
9432 _swigc__p_wxPaletteChangedEvent,
9433 _swigc__p_wxPanel,
9434 _swigc__p_wxPaperSize,
9435 _swigc__p_wxPoint,
9436 _swigc__p_wxPyApp,
9437 _swigc__p_wxPyCommandEvent,
9438 _swigc__p_wxPyEvent,
9439 _swigc__p_wxPyImageHandler,
9440 _swigc__p_wxPySizer,
9441 _swigc__p_wxPyValidator,
9442 _swigc__p_wxPyXmlResourceHandler,
9443 _swigc__p_wxPyXmlSubclassFactory,
9444 _swigc__p_wxQueryNewPaletteEvent,
9445 _swigc__p_wxScrollEvent,
9446 _swigc__p_wxScrollWinEvent,
9447 _swigc__p_wxSetCursorEvent,
9448 _swigc__p_wxShowEvent,
9449 _swigc__p_wxSize,
9450 _swigc__p_wxSizeEvent,
9451 _swigc__p_wxSizer,
9452 _swigc__p_wxSizerItem,
9453 _swigc__p_wxStaticBoxSizer,
9454 _swigc__p_wxStdDialogButtonSizer,
9455 _swigc__p_wxSysColourChangedEvent,
9456 _swigc__p_wxTIFFHandler,
9457 _swigc__p_wxUpdateUIEvent,
9458 _swigc__p_wxValidator,
9459 _swigc__p_wxWindow,
9460 _swigc__p_wxWindowCreateEvent,
9461 _swigc__p_wxWindowDestroyEvent,
9462 _swigc__p_wxXPMHandler,
9463 _swigc__p_wxXmlDocument,
9464 _swigc__p_wxXmlNode,
9465 _swigc__p_wxXmlProperty,
9466 _swigc__p_wxXmlResource,
9467 };
9468
9469
9470 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
9471
9472 static swig_const_info swig_const_table[] = {
9473 {0, 0, 0, 0.0, 0, 0}};
9474
9475 #ifdef __cplusplus
9476 }
9477 #endif
9478 /* -----------------------------------------------------------------------------
9479 * Type initialization:
9480 * This problem is tough by the requirement that no dynamic
9481 * memory is used. Also, since swig_type_info structures store pointers to
9482 * swig_cast_info structures and swig_cast_info structures store pointers back
9483 * to swig_type_info structures, we need some lookup code at initialization.
9484 * The idea is that swig generates all the structures that are needed.
9485 * The runtime then collects these partially filled structures.
9486 * The SWIG_InitializeModule function takes these initial arrays out of
9487 * swig_module, and does all the lookup, filling in the swig_module.types
9488 * array with the correct data and linking the correct swig_cast_info
9489 * structures together.
9490 *
9491 * The generated swig_type_info structures are assigned staticly to an initial
9492 * array. We just loop though that array, and handle each type individually.
9493 * First we lookup if this type has been already loaded, and if so, use the
9494 * loaded structure instead of the generated one. Then we have to fill in the
9495 * cast linked list. The cast data is initially stored in something like a
9496 * two-dimensional array. Each row corresponds to a type (there are the same
9497 * number of rows as there are in the swig_type_initial array). Each entry in
9498 * a column is one of the swig_cast_info structures for that type.
9499 * The cast_initial array is actually an array of arrays, because each row has
9500 * a variable number of columns. So to actually build the cast linked list,
9501 * we find the array of casts associated with the type, and loop through it
9502 * adding the casts to the list. The one last trick we need to do is making
9503 * sure the type pointer in the swig_cast_info struct is correct.
9504 *
9505 * First off, we lookup the cast->type name to see if it is already loaded.
9506 * There are three cases to handle:
9507 * 1) If the cast->type has already been loaded AND the type we are adding
9508 * casting info to has not been loaded (it is in this module), THEN we
9509 * replace the cast->type pointer with the type pointer that has already
9510 * been loaded.
9511 * 2) If BOTH types (the one we are adding casting info to, and the
9512 * cast->type) are loaded, THEN the cast info has already been loaded by
9513 * the previous module so we just ignore it.
9514 * 3) Finally, if cast->type has not already been loaded, then we add that
9515 * swig_cast_info to the linked list (because the cast->type) pointer will
9516 * be correct.
9517 * ----------------------------------------------------------------------------- */
9518
9519 #ifdef __cplusplus
9520 extern "C" {
9521 #if 0
9522 } /* c-mode */
9523 #endif
9524 #endif
9525
9526 #if 0
9527 #define SWIGRUNTIME_DEBUG
9528 #endif
9529
9530 SWIGRUNTIME void
9531 SWIG_InitializeModule(void *clientdata) {
9532 size_t i;
9533 swig_module_info *module_head;
9534 static int init_run = 0;
9535
9536 clientdata = clientdata;
9537
9538 if (init_run) return;
9539 init_run = 1;
9540
9541 /* Initialize the swig_module */
9542 swig_module.type_initial = swig_type_initial;
9543 swig_module.cast_initial = swig_cast_initial;
9544
9545 /* Try and load any already created modules */
9546 module_head = SWIG_GetModule(clientdata);
9547 if (module_head) {
9548 swig_module.next = module_head->next;
9549 module_head->next = &swig_module;
9550 } else {
9551 /* This is the first module loaded */
9552 swig_module.next = &swig_module;
9553 SWIG_SetModule(clientdata, &swig_module);
9554 }
9555
9556 /* Now work on filling in swig_module.types */
9557 #ifdef SWIGRUNTIME_DEBUG
9558 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
9559 #endif
9560 for (i = 0; i < swig_module.size; ++i) {
9561 swig_type_info *type = 0;
9562 swig_type_info *ret;
9563 swig_cast_info *cast;
9564
9565 #ifdef SWIGRUNTIME_DEBUG
9566 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9567 #endif
9568
9569 /* if there is another module already loaded */
9570 if (swig_module.next != &swig_module) {
9571 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
9572 }
9573 if (type) {
9574 /* Overwrite clientdata field */
9575 #ifdef SWIGRUNTIME_DEBUG
9576 printf("SWIG_InitializeModule: found type %s\n", type->name);
9577 #endif
9578 if (swig_module.type_initial[i]->clientdata) {
9579 type->clientdata = swig_module.type_initial[i]->clientdata;
9580 #ifdef SWIGRUNTIME_DEBUG
9581 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
9582 #endif
9583 }
9584 } else {
9585 type = swig_module.type_initial[i];
9586 }
9587
9588 /* Insert casting types */
9589 cast = swig_module.cast_initial[i];
9590 while (cast->type) {
9591 /* Don't need to add information already in the list */
9592 ret = 0;
9593 #ifdef SWIGRUNTIME_DEBUG
9594 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
9595 #endif
9596 if (swig_module.next != &swig_module) {
9597 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
9598 #ifdef SWIGRUNTIME_DEBUG
9599 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
9600 #endif
9601 }
9602 if (ret) {
9603 if (type == swig_module.type_initial[i]) {
9604 #ifdef SWIGRUNTIME_DEBUG
9605 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
9606 #endif
9607 cast->type = ret;
9608 ret = 0;
9609 } else {
9610 /* Check for casting already in the list */
9611 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
9612 #ifdef SWIGRUNTIME_DEBUG
9613 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
9614 #endif
9615 if (!ocast) ret = 0;
9616 }
9617 }
9618
9619 if (!ret) {
9620 #ifdef SWIGRUNTIME_DEBUG
9621 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
9622 #endif
9623 if (type->cast) {
9624 type->cast->prev = cast;
9625 cast->next = type->cast;
9626 }
9627 type->cast = cast;
9628 }
9629 cast++;
9630 }
9631 /* Set entry in modules->types array equal to the type */
9632 swig_module.types[i] = type;
9633 }
9634 swig_module.types[i] = 0;
9635
9636 #ifdef SWIGRUNTIME_DEBUG
9637 printf("**** SWIG_InitializeModule: Cast List ******\n");
9638 for (i = 0; i < swig_module.size; ++i) {
9639 int j = 0;
9640 swig_cast_info *cast = swig_module.cast_initial[i];
9641 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
9642 while (cast->type) {
9643 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
9644 cast++;
9645 ++j;
9646 }
9647 printf("---- Total casts: %d\n",j);
9648 }
9649 printf("**** SWIG_InitializeModule: Cast List ******\n");
9650 #endif
9651 }
9652
9653 /* This function will propagate the clientdata field of type to
9654 * any new swig_type_info structures that have been added into the list
9655 * of equivalent types. It is like calling
9656 * SWIG_TypeClientData(type, clientdata) a second time.
9657 */
9658 SWIGRUNTIME void
9659 SWIG_PropagateClientData(void) {
9660 size_t i;
9661 swig_cast_info *equiv;
9662 static int init_run = 0;
9663
9664 if (init_run) return;
9665 init_run = 1;
9666
9667 for (i = 0; i < swig_module.size; i++) {
9668 if (swig_module.types[i]->clientdata) {
9669 equiv = swig_module.types[i]->cast;
9670 while (equiv) {
9671 if (!equiv->converter) {
9672 if (equiv->type && !equiv->type->clientdata)
9673 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
9674 }
9675 equiv = equiv->next;
9676 }
9677 }
9678 }
9679 }
9680
9681 #ifdef __cplusplus
9682 #if 0
9683 {
9684 /* c-mode */
9685 #endif
9686 }
9687 #endif
9688
9689
9690
9691 #ifdef __cplusplus
9692 extern "C" {
9693 #endif
9694
9695 /* Python-specific SWIG API */
9696 #define SWIG_newvarlink() SWIG_Python_newvarlink()
9697 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
9698 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
9699
9700 /* -----------------------------------------------------------------------------
9701 * global variable support code.
9702 * ----------------------------------------------------------------------------- */
9703
9704 typedef struct swig_globalvar {
9705 char *name; /* Name of global variable */
9706 PyObject *(*get_attr)(void); /* Return the current value */
9707 int (*set_attr)(PyObject *); /* Set the value */
9708 struct swig_globalvar *next;
9709 } swig_globalvar;
9710
9711 typedef struct swig_varlinkobject {
9712 PyObject_HEAD
9713 swig_globalvar *vars;
9714 } swig_varlinkobject;
9715
9716 SWIGINTERN PyObject *
9717 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
9718 return PyString_FromString("<Swig global variables>");
9719 }
9720
9721 SWIGINTERN PyObject *
9722 swig_varlink_str(swig_varlinkobject *v) {
9723 PyObject *str = PyString_FromString("(");
9724 swig_globalvar *var;
9725 for (var = v->vars; var; var=var->next) {
9726 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
9727 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
9728 }
9729 PyString_ConcatAndDel(&str,PyString_FromString(")"));
9730 return str;
9731 }
9732
9733 SWIGINTERN int
9734 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
9735 PyObject *str = swig_varlink_str(v);
9736 fprintf(fp,"Swig global variables ");
9737 fprintf(fp,"%s\n", PyString_AsString(str));
9738 Py_DECREF(str);
9739 return 0;
9740 }
9741
9742 SWIGINTERN void
9743 swig_varlink_dealloc(swig_varlinkobject *v) {
9744 swig_globalvar *var = v->vars;
9745 while (var) {
9746 swig_globalvar *n = var->next;
9747 free(var->name);
9748 free(var);
9749 var = n;
9750 }
9751 }
9752
9753 SWIGINTERN PyObject *
9754 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
9755 PyObject *res = NULL;
9756 swig_globalvar *var = v->vars;
9757 while (var) {
9758 if (strcmp(var->name,n) == 0) {
9759 res = (*var->get_attr)();
9760 break;
9761 }
9762 var = var->next;
9763 }
9764 if (res == NULL && !PyErr_Occurred()) {
9765 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
9766 }
9767 return res;
9768 }
9769
9770 SWIGINTERN int
9771 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
9772 int res = 1;
9773 swig_globalvar *var = v->vars;
9774 while (var) {
9775 if (strcmp(var->name,n) == 0) {
9776 res = (*var->set_attr)(p);
9777 break;
9778 }
9779 var = var->next;
9780 }
9781 if (res == 1 && !PyErr_Occurred()) {
9782 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
9783 }
9784 return res;
9785 }
9786
9787 SWIGINTERN PyTypeObject*
9788 swig_varlink_type(void) {
9789 static char varlink__doc__[] = "Swig var link object";
9790 static PyTypeObject varlink_type;
9791 static int type_init = 0;
9792 if (!type_init) {
9793 const PyTypeObject tmp
9794 = {
9795 PyObject_HEAD_INIT(NULL)
9796 0, /* Number of items in variable part (ob_size) */
9797 (char *)"swigvarlink", /* Type name (tp_name) */
9798 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
9799 0, /* Itemsize (tp_itemsize) */
9800 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
9801 (printfunc) swig_varlink_print, /* Print (tp_print) */
9802 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
9803 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
9804 0, /* tp_compare */
9805 (reprfunc) swig_varlink_repr, /* tp_repr */
9806 0, /* tp_as_number */
9807 0, /* tp_as_sequence */
9808 0, /* tp_as_mapping */
9809 0, /* tp_hash */
9810 0, /* tp_call */
9811 (reprfunc)swig_varlink_str, /* tp_str */
9812 0, /* tp_getattro */
9813 0, /* tp_setattro */
9814 0, /* tp_as_buffer */
9815 0, /* tp_flags */
9816 varlink__doc__, /* tp_doc */
9817 0, /* tp_traverse */
9818 0, /* tp_clear */
9819 0, /* tp_richcompare */
9820 0, /* tp_weaklistoffset */
9821 #if PY_VERSION_HEX >= 0x02020000
9822 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
9823 #endif
9824 #if PY_VERSION_HEX >= 0x02030000
9825 0, /* tp_del */
9826 #endif
9827 #ifdef COUNT_ALLOCS
9828 0,0,0,0 /* tp_alloc -> tp_next */
9829 #endif
9830 };
9831 varlink_type = tmp;
9832 varlink_type.ob_type = &PyType_Type;
9833 type_init = 1;
9834 }
9835 return &varlink_type;
9836 }
9837
9838 /* Create a variable linking object for use later */
9839 SWIGINTERN PyObject *
9840 SWIG_Python_newvarlink(void) {
9841 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
9842 if (result) {
9843 result->vars = 0;
9844 }
9845 return ((PyObject*) result);
9846 }
9847
9848 SWIGINTERN void
9849 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
9850 swig_varlinkobject *v = (swig_varlinkobject *) p;
9851 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
9852 if (gv) {
9853 size_t size = strlen(name)+1;
9854 gv->name = (char *)malloc(size);
9855 if (gv->name) {
9856 strncpy(gv->name,name,size);
9857 gv->get_attr = get_attr;
9858 gv->set_attr = set_attr;
9859 gv->next = v->vars;
9860 }
9861 }
9862 v->vars = gv;
9863 }
9864
9865 SWIGINTERN PyObject *
9866 SWIG_globals() {
9867 static PyObject *_SWIG_globals = 0;
9868 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
9869 return _SWIG_globals;
9870 }
9871
9872 /* -----------------------------------------------------------------------------
9873 * constants/methods manipulation
9874 * ----------------------------------------------------------------------------- */
9875
9876 /* Install Constants */
9877 SWIGINTERN void
9878 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
9879 PyObject *obj = 0;
9880 size_t i;
9881 for (i = 0; constants[i].type; ++i) {
9882 switch(constants[i].type) {
9883 case SWIG_PY_POINTER:
9884 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
9885 break;
9886 case SWIG_PY_BINARY:
9887 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
9888 break;
9889 default:
9890 obj = 0;
9891 break;
9892 }
9893 if (obj) {
9894 PyDict_SetItemString(d, constants[i].name, obj);
9895 Py_DECREF(obj);
9896 }
9897 }
9898 }
9899
9900 /* -----------------------------------------------------------------------------*/
9901 /* Fix SwigMethods to carry the callback ptrs when needed */
9902 /* -----------------------------------------------------------------------------*/
9903
9904 SWIGINTERN void
9905 SWIG_Python_FixMethods(PyMethodDef *methods,
9906 swig_const_info *const_table,
9907 swig_type_info **types,
9908 swig_type_info **types_initial) {
9909 size_t i;
9910 for (i = 0; methods[i].ml_name; ++i) {
9911 const char *c = methods[i].ml_doc;
9912 if (c && (c = strstr(c, "swig_ptr: "))) {
9913 int j;
9914 swig_const_info *ci = 0;
9915 const char *name = c + 10;
9916 for (j = 0; const_table[j].type; ++j) {
9917 if (strncmp(const_table[j].name, name,
9918 strlen(const_table[j].name)) == 0) {
9919 ci = &(const_table[j]);
9920 break;
9921 }
9922 }
9923 if (ci) {
9924 size_t shift = (ci->ptype) - types;
9925 swig_type_info *ty = types_initial[shift];
9926 size_t ldoc = (c - methods[i].ml_doc);
9927 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
9928 char *ndoc = (char*)malloc(ldoc + lptr + 10);
9929 if (ndoc) {
9930 char *buff = ndoc;
9931 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
9932 if (ptr) {
9933 strncpy(buff, methods[i].ml_doc, ldoc);
9934 buff += ldoc;
9935 strncpy(buff, "swig_ptr: ", 10);
9936 buff += 10;
9937 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
9938 methods[i].ml_doc = ndoc;
9939 }
9940 }
9941 }
9942 }
9943 }
9944 }
9945
9946 #ifdef __cplusplus
9947 }
9948 #endif
9949
9950 /* -----------------------------------------------------------------------------*
9951 * Partial Init method
9952 * -----------------------------------------------------------------------------*/
9953
9954 #ifdef __cplusplus
9955 extern "C"
9956 #endif
9957 SWIGEXPORT void SWIG_init(void) {
9958 PyObject *m, *d;
9959
9960 /* Fix SwigMethods to carry the callback ptrs when needed */
9961 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
9962
9963 m = Py_InitModule((char *) SWIG_name, SwigMethods);
9964 d = PyModule_GetDict(m);
9965
9966 SWIG_InitializeModule(0);
9967 SWIG_InstallConstants(d,swig_const_table);
9968
9969
9970 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
9971 SWIG_addvarlink(SWIG_globals(),(char*)"UTF8String",UTF8String_get, UTF8String_set);
9972 SWIG_addvarlink(SWIG_globals(),(char*)"StyleString",StyleString_get, StyleString_set);
9973 SWIG_addvarlink(SWIG_globals(),(char*)"SizeString",SizeString_get, SizeString_set);
9974 SWIG_addvarlink(SWIG_globals(),(char*)"PosString",PosString_get, PosString_set);
9975 SWIG_addvarlink(SWIG_globals(),(char*)"BitmapString",BitmapString_get, BitmapString_set);
9976 SWIG_addvarlink(SWIG_globals(),(char*)"IconString",IconString_get, IconString_set);
9977 SWIG_addvarlink(SWIG_globals(),(char*)"FontString",FontString_get, FontString_set);
9978 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MAJOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MAJOR)));
9979 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_MINOR",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_MINOR)));
9980 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_RELEASE",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_RELEASE)));
9981 SWIG_Python_SetConstant(d, "WX_XMLRES_CURRENT_VERSION_REVISION",SWIG_From_int(static_cast< int >(WX_XMLRES_CURRENT_VERSION_REVISION)));
9982 SWIG_Python_SetConstant(d, "XRC_USE_LOCALE",SWIG_From_int(static_cast< int >(wxXRC_USE_LOCALE)));
9983 SWIG_Python_SetConstant(d, "XRC_NO_SUBCLASSING",SWIG_From_int(static_cast< int >(wxXRC_NO_SUBCLASSING)));
9984 SWIG_Python_SetConstant(d, "XRC_NO_RELOADING",SWIG_From_int(static_cast< int >(wxXRC_NO_RELOADING)));
9985 SWIG_Python_SetConstant(d, "XML_ELEMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_ELEMENT_NODE)));
9986 SWIG_Python_SetConstant(d, "XML_ATTRIBUTE_NODE",SWIG_From_int(static_cast< int >(wxXML_ATTRIBUTE_NODE)));
9987 SWIG_Python_SetConstant(d, "XML_TEXT_NODE",SWIG_From_int(static_cast< int >(wxXML_TEXT_NODE)));
9988 SWIG_Python_SetConstant(d, "XML_CDATA_SECTION_NODE",SWIG_From_int(static_cast< int >(wxXML_CDATA_SECTION_NODE)));
9989 SWIG_Python_SetConstant(d, "XML_ENTITY_REF_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_REF_NODE)));
9990 SWIG_Python_SetConstant(d, "XML_ENTITY_NODE",SWIG_From_int(static_cast< int >(wxXML_ENTITY_NODE)));
9991 SWIG_Python_SetConstant(d, "XML_PI_NODE",SWIG_From_int(static_cast< int >(wxXML_PI_NODE)));
9992 SWIG_Python_SetConstant(d, "XML_COMMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_COMMENT_NODE)));
9993 SWIG_Python_SetConstant(d, "XML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_NODE)));
9994 SWIG_Python_SetConstant(d, "XML_DOCUMENT_TYPE_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_TYPE_NODE)));
9995 SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE)));
9996 SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE)));
9997 SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE)));
9998 SWIG_Python_SetConstant(d, "XML_NO_INDENTATION",SWIG_From_int(static_cast< int >(wxXML_NO_INDENTATION)));
9999 SWIG_Python_SetConstant(d, "XMLDOC_NONE",SWIG_From_int(static_cast< int >(wxXMLDOC_NONE)));
10000 SWIG_Python_SetConstant(d, "XMLDOC_KEEP_WHITESPACE_NODES",SWIG_From_int(static_cast< int >(wxXMLDOC_KEEP_WHITESPACE_NODES)));
10001
10002
10003 wxXmlInitResourceModule();
10004 wxXmlResource::Get()->InitAllHandlers();
10005
10006
10007 }
10008