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