1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxFrame swig_types[0]
1342 #define SWIGTYPE_p_wxIcon swig_types[1]
1343 #define SWIGTYPE_p_wxObject swig_types[2]
1344 #define SWIGTYPE_p_unsigned_char swig_types[3]
1345 #define SWIGTYPE_p_wxDialog swig_types[4]
1346 #define SWIGTYPE_p_wxColour swig_types[5]
1347 #define SWIGTYPE_p_wxWindow swig_types[6]
1348 #define SWIGTYPE_p_wxArtClient swig_types[7]
1349 #define SWIGTYPE_p_unsigned_long swig_types[8]
1350 #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[9]
1351 #define SWIGTYPE_p_wxBitmap swig_types[10]
1352 #define SWIGTYPE_p_form_ops_t swig_types[11]
1353 #define SWIGTYPE_p_unsigned_int swig_types[12]
1354 #define SWIGTYPE_unsigned_int swig_types[13]
1355 #define SWIGTYPE_p_wxDuplexMode swig_types[14]
1356 #define SWIGTYPE_p_char swig_types[15]
1357 #define SWIGTYPE_p_wxPoint swig_types[16]
1358 #define SWIGTYPE_p_wxXmlNode swig_types[17]
1359 #define SWIGTYPE_p_wxInputStream swig_types[18]
1360 #define SWIGTYPE_p_wxOutputStream swig_types[19]
1361 #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[20]
1362 #define SWIGTYPE_p_wxFileSystem swig_types[21]
1363 #define SWIGTYPE_std__ptrdiff_t swig_types[22]
1364 #define SWIGTYPE_ptrdiff_t swig_types[23]
1365 #define SWIGTYPE_p_wxXmlProperty swig_types[24]
1366 #define SWIGTYPE_p_wxFont swig_types[25]
1367 #define SWIGTYPE_p_wxXmlResource swig_types[26]
1368 #define SWIGTYPE_p_wxPanel swig_types[27]
1369 #define SWIGTYPE_p_wxXmlDocument swig_types[28]
1370 #define SWIGTYPE_p_wxPaperSize swig_types[29]
1371 #define SWIGTYPE_p_wxSize swig_types[30]
1372 #define SWIGTYPE_p_int swig_types[31]
1373 static swig_type_info
*swig_types
[33];
1375 /* -------- TYPES TABLE (END) -------- */
1378 /*-----------------------------------------------
1380 ------------------------------------------------*/
1381 #define SWIG_init init_xrc
1383 #define SWIG_name "_xrc"
1385 #include "wx/wxPython/wxPython.h"
1386 #include "wx/wxPython/pyclasses.h"
1387 #include "wx/wxPython/pyistream.h"
1389 #include <wx/xml/xml.h>
1390 #include <wx/xrc/xmlres.h>
1392 static const wxString
wxPyEmptyString(wxEmptyString
);
1393 static const wxString
wxPyUTF8String(wxT("UTF-8"));
1394 static const wxString
wxPyStyleString(wxT("style"));
1395 static const wxString
wxPySizeString(wxT("size"));
1396 static const wxString
wxPyPosString(wxT("pos"));
1397 static const wxString
wxPyBitmapString(wxT("bitmap"));
1398 static const wxString
wxPyIconString(wxT("icon"));
1399 static const wxString
wxPyFontString(wxT("font"));
1401 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1402 #define SWIG_From_int PyInt_FromLong
1410 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1413 if (value
< min_value
) {
1415 PyErr_Format(PyExc_OverflowError
,
1416 "value %ld is less than '%s' minimum %ld",
1417 value
, errmsg
, min_value
);
1420 } else if (value
> max_value
) {
1422 PyErr_Format(PyExc_OverflowError
,
1423 "value %ld is greater than '%s' maximum %ld",
1424 value
, errmsg
, max_value
);
1433 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1435 if (PyNumber_Check(obj
)) {
1436 if (val
) *val
= PyInt_AsLong(obj
);
1440 SWIG_type_error("number", obj
);
1446 #if INT_MAX != LONG_MAX
1448 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1450 const char* errmsg
= val
? "int" : (char*)0;
1452 if (SWIG_AsVal_long(obj
, &v
)) {
1453 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1454 if (val
) *val
= (int)(v
);
1463 SWIG_type_error(errmsg
, obj
);
1469 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1471 return SWIG_AsVal_long(obj
,(long*)val
);
1477 SWIG_As_int(PyObject
* obj
)
1480 if (!SWIG_AsVal_int(obj
, &v
)) {
1482 this is needed to make valgrind/purify happier.
1484 memset((void*)&v
, 0, sizeof(int));
1491 SWIG_Check_int(PyObject
* obj
)
1493 return SWIG_AsVal_int(obj
, (int*)0);
1496 static bool wxXmlResource_LoadFromString(wxXmlResource
*self
,wxString
const &data
){
1497 static int s_memFileIdx
= 0;
1499 // Check for memory FS. If not present, load the handler:
1500 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
1503 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
1504 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
1508 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
1510 // Now put the resource data into the memory FS
1511 wxString
filename(wxT("XRC_resource/data_string_"));
1512 filename
<< s_memFileIdx
;
1514 wxMemoryFSHandler::AddFile(filename
, data
);
1516 // Load the "file" into the resource object
1517 bool retval
= self
->Load(wxT("memory:") + filename
);
1522 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1523 #define SWIG_From_long PyInt_FromLong
1527 class wxPyXmlSubclassFactory
: public wxXmlSubclassFactory
1530 wxPyXmlSubclassFactory() {}
1531 DEC_PYCALLBACK_OBJECT_STRING_pure(Create
);
1535 IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory
, wxXmlSubclassFactory
, Create
);
1537 // C++ version of Python aware wxXmlResourceHandler, for the pure virtual
1538 // callbacks, as well as to make some protected things public so they can
1540 class wxPyXmlResourceHandler
: public wxXmlResourceHandler
{
1542 wxPyXmlResourceHandler() : wxXmlResourceHandler() {}
1543 //~wxPyXmlResourceHandler();
1545 // Base class virtuals
1547 DEC_PYCALLBACK_OBJECT__pure(DoCreateResource
);
1548 DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle
);
1551 // accessors for protected members
1553 wxXmlResource
* GetResource() { return m_resource
; }
1554 wxXmlNode
* GetNode() { return m_node
; }
1555 wxString
GetClass() { return m_class
; }
1556 wxObject
* GetParent() { return m_parent
; }
1557 wxObject
* GetInstance() { return m_instance
; }
1558 wxWindow
* GetParentAsWindow() { return m_parentAsWindow
; }
1561 // turn some protected methods into public via delegation
1563 bool IsOfClass(wxXmlNode
*node
, const wxString
& classname
)
1564 { return wxXmlResourceHandler::IsOfClass(node
, classname
); }
1566 wxString
GetNodeContent(wxXmlNode
*node
)
1567 { return wxXmlResourceHandler::GetNodeContent(node
); }
1569 bool HasParam(const wxString
& param
)
1570 { return wxXmlResourceHandler::HasParam(param
); }
1572 wxXmlNode
*GetParamNode(const wxString
& param
)
1573 { return wxXmlResourceHandler::GetParamNode(param
); }
1575 wxString
GetParamValue(const wxString
& param
)
1576 { return wxXmlResourceHandler::GetParamValue(param
); }
1578 void AddStyle(const wxString
& name
, int value
)
1579 { wxXmlResourceHandler::AddStyle(name
, value
); }
1581 void AddWindowStyles()
1582 { wxXmlResourceHandler::AddWindowStyles(); }
1584 int GetStyle(const wxString
& param
= wxT("style"), int defaults
= 0)
1585 { return wxXmlResourceHandler::GetStyle(param
, defaults
); }
1587 wxString
GetText(const wxString
& param
, bool translate
= true)
1588 { return wxXmlResourceHandler::GetText(param
, translate
); }
1591 { return wxXmlResourceHandler::GetID(); }
1594 { return wxXmlResourceHandler::GetName(); }
1596 bool GetBool(const wxString
& param
, bool defaultv
= false)
1597 { return wxXmlResourceHandler::GetBool(param
, defaultv
); }
1599 long GetLong( const wxString
& param
, long defaultv
= 0 )
1600 { return wxXmlResourceHandler::GetLong(param
, defaultv
); }
1602 wxColour
GetColour(const wxString
& param
)
1603 { return wxXmlResourceHandler::GetColour(param
); }
1605 wxSize
GetSize(const wxString
& param
= wxT("size"))
1606 { return wxXmlResourceHandler::GetSize(param
); }
1608 wxPoint
GetPosition(const wxString
& param
= wxT("pos"))
1609 { return wxXmlResourceHandler::GetPosition(param
); }
1611 wxCoord
GetDimension(const wxString
& param
, wxCoord defaultv
= 0)
1612 { return wxXmlResourceHandler::GetDimension(param
, defaultv
); }
1614 wxBitmap
GetBitmap(const wxString
& param
= wxT("bitmap"),
1615 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
1616 wxSize size
= wxDefaultSize
)
1617 { return wxXmlResourceHandler::GetBitmap(param
, defaultArtClient
, size
); }
1619 wxIcon
GetIcon(const wxString
& param
= wxT("icon"),
1620 const wxArtClient
& defaultArtClient
= wxART_OTHER
,
1621 wxSize size
= wxDefaultSize
)
1622 { return wxXmlResourceHandler::GetIcon(param
, defaultArtClient
, size
); }
1624 wxFont
GetFont(const wxString
& param
= wxT("font"))
1625 { return wxXmlResourceHandler::GetFont(param
); }
1627 void SetupWindow(wxWindow
*wnd
)
1628 { wxXmlResourceHandler::SetupWindow(wnd
); }
1630 void CreateChildren(wxObject
*parent
, bool this_hnd_only
= false)
1631 { wxXmlResourceHandler::CreateChildren(parent
, this_hnd_only
); }
1633 void CreateChildrenPrivately(wxObject
*parent
, wxXmlNode
*rootnode
= NULL
)
1634 { wxXmlResourceHandler::CreateChildrenPrivately(parent
, rootnode
); }
1636 wxObject
*CreateResFromNode(wxXmlNode
*node
,
1637 wxObject
*parent
, wxObject
*instance
= NULL
)
1638 { return wxXmlResourceHandler::CreateResFromNode(node
, parent
, instance
); }
1640 wxFileSystem
& GetCurFileSystem()
1641 { return wxXmlResourceHandler::GetCurFileSystem(); }
1647 IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, DoCreateResource
);
1648 IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler
, wxXmlResourceHandler
, CanHandle
);
1653 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1655 if (obj
== Py_True
) {
1656 if (val
) *val
= true;
1659 if (obj
== Py_False
) {
1660 if (val
) *val
= false;
1664 if (SWIG_AsVal_int(obj
, &res
)) {
1665 if (val
) *val
= res
? true : false;
1671 SWIG_type_error("bool", obj
);
1677 SWIGINTERNSHORT
bool
1678 SWIG_As_bool(PyObject
* obj
)
1681 if (!SWIG_AsVal_bool(obj
, &v
)) {
1683 this is needed to make valgrind/purify happier.
1685 memset((void*)&v
, 0, sizeof(bool));
1692 SWIG_Check_bool(PyObject
* obj
)
1694 return SWIG_AsVal_bool(obj
, (bool*)0);
1698 SWIGINTERNSHORT
long
1699 SWIG_As_long(PyObject
* obj
)
1702 if (!SWIG_AsVal_long(obj
, &v
)) {
1704 this is needed to make valgrind/purify happier.
1706 memset((void*)&v
, 0, sizeof(long));
1713 SWIG_Check_long(PyObject
* obj
)
1715 return SWIG_AsVal_long(obj
, (long*)0);
1721 static int _wrap_UTF8String_set(PyObject
*) {
1722 PyErr_SetString(PyExc_TypeError
,"Variable UTF8String is read-only.");
1727 static PyObject
*_wrap_UTF8String_get(void) {
1732 pyobj
= PyUnicode_FromWideChar((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
1734 pyobj
= PyString_FromStringAndSize((&wxPyUTF8String
)->c_str(), (&wxPyUTF8String
)->Len());
1741 static int _wrap_StyleString_set(PyObject
*) {
1742 PyErr_SetString(PyExc_TypeError
,"Variable StyleString is read-only.");
1747 static PyObject
*_wrap_StyleString_get(void) {
1752 pyobj
= PyUnicode_FromWideChar((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
1754 pyobj
= PyString_FromStringAndSize((&wxPyStyleString
)->c_str(), (&wxPyStyleString
)->Len());
1761 static int _wrap_SizeString_set(PyObject
*) {
1762 PyErr_SetString(PyExc_TypeError
,"Variable SizeString is read-only.");
1767 static PyObject
*_wrap_SizeString_get(void) {
1772 pyobj
= PyUnicode_FromWideChar((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
1774 pyobj
= PyString_FromStringAndSize((&wxPySizeString
)->c_str(), (&wxPySizeString
)->Len());
1781 static int _wrap_PosString_set(PyObject
*) {
1782 PyErr_SetString(PyExc_TypeError
,"Variable PosString is read-only.");
1787 static PyObject
*_wrap_PosString_get(void) {
1792 pyobj
= PyUnicode_FromWideChar((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
1794 pyobj
= PyString_FromStringAndSize((&wxPyPosString
)->c_str(), (&wxPyPosString
)->Len());
1801 static int _wrap_BitmapString_set(PyObject
*) {
1802 PyErr_SetString(PyExc_TypeError
,"Variable BitmapString is read-only.");
1807 static PyObject
*_wrap_BitmapString_get(void) {
1812 pyobj
= PyUnicode_FromWideChar((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
1814 pyobj
= PyString_FromStringAndSize((&wxPyBitmapString
)->c_str(), (&wxPyBitmapString
)->Len());
1821 static int _wrap_IconString_set(PyObject
*) {
1822 PyErr_SetString(PyExc_TypeError
,"Variable IconString is read-only.");
1827 static PyObject
*_wrap_IconString_get(void) {
1832 pyobj
= PyUnicode_FromWideChar((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
1834 pyobj
= PyString_FromStringAndSize((&wxPyIconString
)->c_str(), (&wxPyIconString
)->Len());
1841 static int _wrap_FontString_set(PyObject
*) {
1842 PyErr_SetString(PyExc_TypeError
,"Variable FontString is read-only.");
1847 static PyObject
*_wrap_FontString_get(void) {
1852 pyobj
= PyUnicode_FromWideChar((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
1854 pyobj
= PyString_FromStringAndSize((&wxPyFontString
)->c_str(), (&wxPyFontString
)->Len());
1861 static PyObject
*_wrap_new_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
*resultobj
;
1863 wxString
*arg1
= 0 ;
1864 int arg2
= (int) wxXRC_USE_LOCALE
;
1865 wxXmlResource
*result
;
1866 bool temp1
= false ;
1867 PyObject
* obj0
= 0 ;
1868 PyObject
* obj1
= 0 ;
1870 (char *) "filemask",(char *) "flags", NULL
1873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlResource",kwnames
,&obj0
,&obj1
)) goto fail
;
1875 arg1
= wxString_in_helper(obj0
);
1876 if (arg1
== NULL
) SWIG_fail
;
1881 arg2
= (int)(SWIG_As_int(obj1
));
1882 if (SWIG_arg_fail(2)) SWIG_fail
;
1886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1887 result
= (wxXmlResource
*)new wxXmlResource((wxString
const &)*arg1
,arg2
);
1889 wxPyEndAllowThreads(__tstate
);
1890 if (PyErr_Occurred()) SWIG_fail
;
1892 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
1907 static PyObject
*_wrap_new_EmptyXmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
*resultobj
;
1909 int arg1
= (int) wxXRC_USE_LOCALE
;
1910 wxXmlResource
*result
;
1911 PyObject
* obj0
= 0 ;
1913 (char *) "flags", NULL
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:new_EmptyXmlResource",kwnames
,&obj0
)) goto fail
;
1919 arg1
= (int)(SWIG_As_int(obj0
));
1920 if (SWIG_arg_fail(1)) SWIG_fail
;
1924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1925 result
= (wxXmlResource
*)new wxXmlResource(arg1
);
1927 wxPyEndAllowThreads(__tstate
);
1928 if (PyErr_Occurred()) SWIG_fail
;
1930 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 1);
1937 static PyObject
*_wrap_delete_XmlResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
*resultobj
;
1939 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1940 PyObject
* obj0
= 0 ;
1942 (char *) "self", NULL
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlResource",kwnames
,&obj0
)) goto fail
;
1946 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
1947 if (SWIG_arg_fail(1)) SWIG_fail
;
1949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1952 wxPyEndAllowThreads(__tstate
);
1953 if (PyErr_Occurred()) SWIG_fail
;
1955 Py_INCREF(Py_None
); resultobj
= Py_None
;
1962 static PyObject
*_wrap_XmlResource_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1963 PyObject
*resultobj
;
1964 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
1965 wxString
*arg2
= 0 ;
1967 bool temp2
= false ;
1968 PyObject
* obj0
= 0 ;
1969 PyObject
* obj1
= 0 ;
1971 (char *) "self",(char *) "filemask", NULL
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_Load",kwnames
,&obj0
,&obj1
)) goto fail
;
1975 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
1976 if (SWIG_arg_fail(1)) SWIG_fail
;
1978 arg2
= wxString_in_helper(obj1
);
1979 if (arg2
== NULL
) SWIG_fail
;
1983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1984 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
);
1986 wxPyEndAllowThreads(__tstate
);
1987 if (PyErr_Occurred()) SWIG_fail
;
1990 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2006 static PyObject
*_wrap_XmlResource_LoadFromString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2007 PyObject
*resultobj
;
2008 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2009 wxString
*arg2
= 0 ;
2011 bool temp2
= false ;
2012 PyObject
* obj0
= 0 ;
2013 PyObject
* obj1
= 0 ;
2015 (char *) "self",(char *) "data", NULL
2018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadFromString",kwnames
,&obj0
,&obj1
)) goto fail
;
2019 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2020 if (SWIG_arg_fail(1)) SWIG_fail
;
2022 arg2
= wxString_in_helper(obj1
);
2023 if (arg2
== NULL
) SWIG_fail
;
2027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 result
= (bool)wxXmlResource_LoadFromString(arg1
,(wxString
const &)*arg2
);
2030 wxPyEndAllowThreads(__tstate
);
2031 if (PyErr_Occurred()) SWIG_fail
;
2034 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2050 static PyObject
*_wrap_XmlResource_InitAllHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2051 PyObject
*resultobj
;
2052 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2053 PyObject
* obj0
= 0 ;
2055 (char *) "self", NULL
2058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_InitAllHandlers",kwnames
,&obj0
)) goto fail
;
2059 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2060 if (SWIG_arg_fail(1)) SWIG_fail
;
2062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2063 (arg1
)->InitAllHandlers();
2065 wxPyEndAllowThreads(__tstate
);
2066 if (PyErr_Occurred()) SWIG_fail
;
2068 Py_INCREF(Py_None
); resultobj
= Py_None
;
2075 static PyObject
*_wrap_XmlResource_AddHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2076 PyObject
*resultobj
;
2077 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2078 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
2079 PyObject
* obj0
= 0 ;
2080 PyObject
* obj1
= 0 ;
2082 (char *) "self",(char *) "handler", NULL
2085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_AddHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
2086 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2087 if (SWIG_arg_fail(1)) SWIG_fail
;
2088 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
2089 if (SWIG_arg_fail(2)) SWIG_fail
;
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 (arg1
)->AddHandler(arg2
);
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) SWIG_fail
;
2097 Py_INCREF(Py_None
); resultobj
= Py_None
;
2104 static PyObject
*_wrap_XmlResource_InsertHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2105 PyObject
*resultobj
;
2106 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2107 wxPyXmlResourceHandler
*arg2
= (wxPyXmlResourceHandler
*) 0 ;
2108 PyObject
* obj0
= 0 ;
2109 PyObject
* obj1
= 0 ;
2111 (char *) "self",(char *) "handler", NULL
2114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_InsertHandler",kwnames
,&obj0
,&obj1
)) goto fail
;
2115 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2116 if (SWIG_arg_fail(1)) SWIG_fail
;
2117 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
2118 if (SWIG_arg_fail(2)) SWIG_fail
;
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 (arg1
)->InsertHandler(arg2
);
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) SWIG_fail
;
2126 Py_INCREF(Py_None
); resultobj
= Py_None
;
2133 static PyObject
*_wrap_XmlResource_ClearHandlers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2134 PyObject
*resultobj
;
2135 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2136 PyObject
* obj0
= 0 ;
2138 (char *) "self", NULL
2141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_ClearHandlers",kwnames
,&obj0
)) goto fail
;
2142 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2143 if (SWIG_arg_fail(1)) SWIG_fail
;
2145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2146 (arg1
)->ClearHandlers();
2148 wxPyEndAllowThreads(__tstate
);
2149 if (PyErr_Occurred()) SWIG_fail
;
2151 Py_INCREF(Py_None
); resultobj
= Py_None
;
2158 static PyObject
*_wrap_XmlResource_AddSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2159 PyObject
*resultobj
;
2160 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
2161 PyObject
* obj0
= 0 ;
2163 (char *) "factory", NULL
2166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_AddSubclassFactory",kwnames
,&obj0
)) goto fail
;
2167 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_EXCEPTION
| 0);
2168 if (SWIG_arg_fail(1)) SWIG_fail
;
2170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2171 wxXmlResource::AddSubclassFactory(arg1
);
2173 wxPyEndAllowThreads(__tstate
);
2174 if (PyErr_Occurred()) SWIG_fail
;
2176 Py_INCREF(Py_None
); resultobj
= Py_None
;
2183 static PyObject
*_wrap_XmlResource_LoadMenu(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2184 PyObject
*resultobj
;
2185 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2186 wxString
*arg2
= 0 ;
2188 bool temp2
= false ;
2189 PyObject
* obj0
= 0 ;
2190 PyObject
* obj1
= 0 ;
2192 (char *) "self",(char *) "name", NULL
2195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenu",kwnames
,&obj0
,&obj1
)) goto fail
;
2196 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2197 if (SWIG_arg_fail(1)) SWIG_fail
;
2199 arg2
= wxString_in_helper(obj1
);
2200 if (arg2
== NULL
) SWIG_fail
;
2204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2205 result
= (wxMenu
*)(arg1
)->LoadMenu((wxString
const &)*arg2
);
2207 wxPyEndAllowThreads(__tstate
);
2208 if (PyErr_Occurred()) SWIG_fail
;
2211 resultobj
= wxPyMake_wxObject(result
, 0);
2227 static PyObject
*_wrap_XmlResource_LoadMenuBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
*resultobj
;
2229 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2230 wxString
*arg2
= 0 ;
2232 bool temp2
= false ;
2233 PyObject
* obj0
= 0 ;
2234 PyObject
* obj1
= 0 ;
2236 (char *) "self",(char *) "name", NULL
2239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadMenuBar",kwnames
,&obj0
,&obj1
)) goto fail
;
2240 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2241 if (SWIG_arg_fail(1)) SWIG_fail
;
2243 arg2
= wxString_in_helper(obj1
);
2244 if (arg2
== NULL
) SWIG_fail
;
2248 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2249 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar((wxString
const &)*arg2
);
2251 wxPyEndAllowThreads(__tstate
);
2252 if (PyErr_Occurred()) SWIG_fail
;
2255 resultobj
= wxPyMake_wxObject(result
, 0);
2271 static PyObject
*_wrap_XmlResource_LoadMenuBarOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2272 PyObject
*resultobj
;
2273 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2274 wxWindow
*arg2
= (wxWindow
*) 0 ;
2275 wxString
*arg3
= 0 ;
2277 bool temp3
= false ;
2278 PyObject
* obj0
= 0 ;
2279 PyObject
* obj1
= 0 ;
2280 PyObject
* obj2
= 0 ;
2282 (char *) "self",(char *) "parent",(char *) "name", NULL
2285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2286 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2287 if (SWIG_arg_fail(1)) SWIG_fail
;
2288 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2289 if (SWIG_arg_fail(2)) SWIG_fail
;
2291 arg3
= wxString_in_helper(obj2
);
2292 if (arg3
== NULL
) SWIG_fail
;
2296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2297 result
= (wxMenuBar
*)(arg1
)->LoadMenuBar(arg2
,(wxString
const &)*arg3
);
2299 wxPyEndAllowThreads(__tstate
);
2300 if (PyErr_Occurred()) SWIG_fail
;
2303 resultobj
= wxPyMake_wxObject(result
, 0);
2319 static PyObject
*_wrap_XmlResource_LoadToolBar(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2320 PyObject
*resultobj
;
2321 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2322 wxWindow
*arg2
= (wxWindow
*) 0 ;
2323 wxString
*arg3
= 0 ;
2325 bool temp3
= false ;
2326 PyObject
* obj0
= 0 ;
2327 PyObject
* obj1
= 0 ;
2328 PyObject
* obj2
= 0 ;
2330 (char *) "self",(char *) "parent",(char *) "name", NULL
2333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadToolBar",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2334 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2335 if (SWIG_arg_fail(1)) SWIG_fail
;
2336 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2337 if (SWIG_arg_fail(2)) SWIG_fail
;
2339 arg3
= wxString_in_helper(obj2
);
2340 if (arg3
== NULL
) SWIG_fail
;
2344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2345 result
= (wxToolBar
*)(arg1
)->LoadToolBar(arg2
,(wxString
const &)*arg3
);
2347 wxPyEndAllowThreads(__tstate
);
2348 if (PyErr_Occurred()) SWIG_fail
;
2351 resultobj
= wxPyMake_wxObject(result
, 0);
2367 static PyObject
*_wrap_XmlResource_LoadDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2368 PyObject
*resultobj
;
2369 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2370 wxWindow
*arg2
= (wxWindow
*) 0 ;
2371 wxString
*arg3
= 0 ;
2373 bool temp3
= false ;
2374 PyObject
* obj0
= 0 ;
2375 PyObject
* obj1
= 0 ;
2376 PyObject
* obj2
= 0 ;
2378 (char *) "self",(char *) "parent",(char *) "name", NULL
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadDialog",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2382 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2383 if (SWIG_arg_fail(1)) SWIG_fail
;
2384 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2385 if (SWIG_arg_fail(2)) SWIG_fail
;
2387 arg3
= wxString_in_helper(obj2
);
2388 if (arg3
== NULL
) SWIG_fail
;
2392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2393 result
= (wxDialog
*)(arg1
)->LoadDialog(arg2
,(wxString
const &)*arg3
);
2395 wxPyEndAllowThreads(__tstate
);
2396 if (PyErr_Occurred()) SWIG_fail
;
2399 resultobj
= wxPyMake_wxObject(result
, 0);
2415 static PyObject
*_wrap_XmlResource_LoadOnDialog(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2416 PyObject
*resultobj
;
2417 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2418 wxDialog
*arg2
= (wxDialog
*) 0 ;
2419 wxWindow
*arg3
= (wxWindow
*) 0 ;
2420 wxString
*arg4
= 0 ;
2422 bool temp4
= false ;
2423 PyObject
* obj0
= 0 ;
2424 PyObject
* obj1
= 0 ;
2425 PyObject
* obj2
= 0 ;
2426 PyObject
* obj3
= 0 ;
2428 (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL
2431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2432 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2433 if (SWIG_arg_fail(1)) SWIG_fail
;
2434 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDialog
, SWIG_POINTER_EXCEPTION
| 0);
2435 if (SWIG_arg_fail(2)) SWIG_fail
;
2436 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2437 if (SWIG_arg_fail(3)) SWIG_fail
;
2439 arg4
= wxString_in_helper(obj3
);
2440 if (arg4
== NULL
) SWIG_fail
;
2444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2445 result
= (bool)(arg1
)->LoadDialog(arg2
,arg3
,(wxString
const &)*arg4
);
2447 wxPyEndAllowThreads(__tstate
);
2448 if (PyErr_Occurred()) SWIG_fail
;
2451 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2467 static PyObject
*_wrap_XmlResource_LoadPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2468 PyObject
*resultobj
;
2469 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2470 wxWindow
*arg2
= (wxWindow
*) 0 ;
2471 wxString
*arg3
= 0 ;
2473 bool temp3
= false ;
2474 PyObject
* obj0
= 0 ;
2475 PyObject
* obj1
= 0 ;
2476 PyObject
* obj2
= 0 ;
2478 (char *) "self",(char *) "parent",(char *) "name", NULL
2481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadPanel",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2482 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2483 if (SWIG_arg_fail(1)) SWIG_fail
;
2484 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2485 if (SWIG_arg_fail(2)) SWIG_fail
;
2487 arg3
= wxString_in_helper(obj2
);
2488 if (arg3
== NULL
) SWIG_fail
;
2492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2493 result
= (wxPanel
*)(arg1
)->LoadPanel(arg2
,(wxString
const &)*arg3
);
2495 wxPyEndAllowThreads(__tstate
);
2496 if (PyErr_Occurred()) SWIG_fail
;
2499 resultobj
= wxPyMake_wxObject(result
, 0);
2515 static PyObject
*_wrap_XmlResource_LoadOnPanel(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2516 PyObject
*resultobj
;
2517 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2518 wxPanel
*arg2
= (wxPanel
*) 0 ;
2519 wxWindow
*arg3
= (wxWindow
*) 0 ;
2520 wxString
*arg4
= 0 ;
2522 bool temp4
= false ;
2523 PyObject
* obj0
= 0 ;
2524 PyObject
* obj1
= 0 ;
2525 PyObject
* obj2
= 0 ;
2526 PyObject
* obj3
= 0 ;
2528 (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL
2531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2532 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2533 if (SWIG_arg_fail(1)) SWIG_fail
;
2534 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxPanel
, SWIG_POINTER_EXCEPTION
| 0);
2535 if (SWIG_arg_fail(2)) SWIG_fail
;
2536 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2537 if (SWIG_arg_fail(3)) SWIG_fail
;
2539 arg4
= wxString_in_helper(obj3
);
2540 if (arg4
== NULL
) SWIG_fail
;
2544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2545 result
= (bool)(arg1
)->LoadPanel(arg2
,arg3
,(wxString
const &)*arg4
);
2547 wxPyEndAllowThreads(__tstate
);
2548 if (PyErr_Occurred()) SWIG_fail
;
2551 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2567 static PyObject
*_wrap_XmlResource_LoadFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2568 PyObject
*resultobj
;
2569 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2570 wxWindow
*arg2
= (wxWindow
*) 0 ;
2571 wxString
*arg3
= 0 ;
2573 bool temp3
= false ;
2574 PyObject
* obj0
= 0 ;
2575 PyObject
* obj1
= 0 ;
2576 PyObject
* obj2
= 0 ;
2578 (char *) "self",(char *) "parent",(char *) "name", NULL
2581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResource_LoadFrame",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2582 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2583 if (SWIG_arg_fail(1)) SWIG_fail
;
2584 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2585 if (SWIG_arg_fail(2)) SWIG_fail
;
2587 arg3
= wxString_in_helper(obj2
);
2588 if (arg3
== NULL
) SWIG_fail
;
2592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2593 result
= (wxFrame
*)(arg1
)->LoadFrame(arg2
,(wxString
const &)*arg3
);
2595 wxPyEndAllowThreads(__tstate
);
2596 if (PyErr_Occurred()) SWIG_fail
;
2599 resultobj
= wxPyMake_wxObject(result
, 0);
2615 static PyObject
*_wrap_XmlResource_LoadOnFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2616 PyObject
*resultobj
;
2617 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2618 wxFrame
*arg2
= (wxFrame
*) 0 ;
2619 wxWindow
*arg3
= (wxWindow
*) 0 ;
2620 wxString
*arg4
= 0 ;
2622 bool temp4
= false ;
2623 PyObject
* obj0
= 0 ;
2624 PyObject
* obj1
= 0 ;
2625 PyObject
* obj2
= 0 ;
2626 PyObject
* obj3
= 0 ;
2628 (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL
2631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2632 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2633 if (SWIG_arg_fail(1)) SWIG_fail
;
2634 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxFrame
, SWIG_POINTER_EXCEPTION
| 0);
2635 if (SWIG_arg_fail(2)) SWIG_fail
;
2636 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2637 if (SWIG_arg_fail(3)) SWIG_fail
;
2639 arg4
= wxString_in_helper(obj3
);
2640 if (arg4
== NULL
) SWIG_fail
;
2644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2645 result
= (bool)(arg1
)->LoadFrame(arg2
,arg3
,(wxString
const &)*arg4
);
2647 wxPyEndAllowThreads(__tstate
);
2648 if (PyErr_Occurred()) SWIG_fail
;
2651 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2667 static PyObject
*_wrap_XmlResource_LoadObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2668 PyObject
*resultobj
;
2669 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2670 wxWindow
*arg2
= (wxWindow
*) 0 ;
2671 wxString
*arg3
= 0 ;
2672 wxString
*arg4
= 0 ;
2674 bool temp3
= false ;
2675 bool temp4
= false ;
2676 PyObject
* obj0
= 0 ;
2677 PyObject
* obj1
= 0 ;
2678 PyObject
* obj2
= 0 ;
2679 PyObject
* obj3
= 0 ;
2681 (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResource_LoadObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2685 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2686 if (SWIG_arg_fail(1)) SWIG_fail
;
2687 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2688 if (SWIG_arg_fail(2)) SWIG_fail
;
2690 arg3
= wxString_in_helper(obj2
);
2691 if (arg3
== NULL
) SWIG_fail
;
2695 arg4
= wxString_in_helper(obj3
);
2696 if (arg4
== NULL
) SWIG_fail
;
2700 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2701 result
= (wxObject
*)(arg1
)->LoadObject(arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
);
2703 wxPyEndAllowThreads(__tstate
);
2704 if (PyErr_Occurred()) SWIG_fail
;
2707 resultobj
= wxPyMake_wxObject(result
, 0);
2731 static PyObject
*_wrap_XmlResource_LoadOnObject(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2732 PyObject
*resultobj
;
2733 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2734 wxObject
*arg2
= (wxObject
*) 0 ;
2735 wxWindow
*arg3
= (wxWindow
*) 0 ;
2736 wxString
*arg4
= 0 ;
2737 wxString
*arg5
= 0 ;
2739 bool temp4
= false ;
2740 bool temp5
= false ;
2741 PyObject
* obj0
= 0 ;
2742 PyObject
* obj1
= 0 ;
2743 PyObject
* obj2
= 0 ;
2744 PyObject
* obj3
= 0 ;
2745 PyObject
* obj4
= 0 ;
2747 (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL
2750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
2751 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2752 if (SWIG_arg_fail(1)) SWIG_fail
;
2753 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
2754 if (SWIG_arg_fail(2)) SWIG_fail
;
2755 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2756 if (SWIG_arg_fail(3)) SWIG_fail
;
2758 arg4
= wxString_in_helper(obj3
);
2759 if (arg4
== NULL
) SWIG_fail
;
2763 arg5
= wxString_in_helper(obj4
);
2764 if (arg5
== NULL
) SWIG_fail
;
2768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2769 result
= (bool)(arg1
)->LoadObject(arg2
,arg3
,(wxString
const &)*arg4
,(wxString
const &)*arg5
);
2771 wxPyEndAllowThreads(__tstate
);
2772 if (PyErr_Occurred()) SWIG_fail
;
2775 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2799 static PyObject
*_wrap_XmlResource_LoadBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2800 PyObject
*resultobj
;
2801 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2802 wxString
*arg2
= 0 ;
2804 bool temp2
= false ;
2805 PyObject
* obj0
= 0 ;
2806 PyObject
* obj1
= 0 ;
2808 (char *) "self",(char *) "name", NULL
2811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadBitmap",kwnames
,&obj0
,&obj1
)) goto fail
;
2812 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2813 if (SWIG_arg_fail(1)) SWIG_fail
;
2815 arg2
= wxString_in_helper(obj1
);
2816 if (arg2
== NULL
) SWIG_fail
;
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 result
= (arg1
)->LoadBitmap((wxString
const &)*arg2
);
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) SWIG_fail
;
2827 wxBitmap
* resultptr
;
2828 resultptr
= new wxBitmap((wxBitmap
&)(result
));
2829 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
2845 static PyObject
*_wrap_XmlResource_LoadIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2846 PyObject
*resultobj
;
2847 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2848 wxString
*arg2
= 0 ;
2850 bool temp2
= false ;
2851 PyObject
* obj0
= 0 ;
2852 PyObject
* obj1
= 0 ;
2854 (char *) "self",(char *) "name", NULL
2857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_LoadIcon",kwnames
,&obj0
,&obj1
)) goto fail
;
2858 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2859 if (SWIG_arg_fail(1)) SWIG_fail
;
2861 arg2
= wxString_in_helper(obj1
);
2862 if (arg2
== NULL
) SWIG_fail
;
2866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2867 result
= (arg1
)->LoadIcon((wxString
const &)*arg2
);
2869 wxPyEndAllowThreads(__tstate
);
2870 if (PyErr_Occurred()) SWIG_fail
;
2874 resultptr
= new wxIcon((wxIcon
&)(result
));
2875 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
2891 static PyObject
*_wrap_XmlResource_AttachUnknownControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2892 PyObject
*resultobj
;
2893 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2894 wxString
*arg2
= 0 ;
2895 wxWindow
*arg3
= (wxWindow
*) 0 ;
2896 wxWindow
*arg4
= (wxWindow
*) NULL
;
2898 bool temp2
= false ;
2899 PyObject
* obj0
= 0 ;
2900 PyObject
* obj1
= 0 ;
2901 PyObject
* obj2
= 0 ;
2902 PyObject
* obj3
= 0 ;
2904 (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL
2907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2908 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2909 if (SWIG_arg_fail(1)) SWIG_fail
;
2911 arg2
= wxString_in_helper(obj1
);
2912 if (arg2
== NULL
) SWIG_fail
;
2915 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2916 if (SWIG_arg_fail(3)) SWIG_fail
;
2918 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2919 if (SWIG_arg_fail(4)) SWIG_fail
;
2922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2923 result
= (bool)(arg1
)->AttachUnknownControl((wxString
const &)*arg2
,arg3
,arg4
);
2925 wxPyEndAllowThreads(__tstate
);
2926 if (PyErr_Occurred()) SWIG_fail
;
2929 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2945 static PyObject
*_wrap_XmlResource_GetXRCID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2946 PyObject
*resultobj
;
2947 wxString
*arg1
= 0 ;
2949 bool temp1
= false ;
2950 PyObject
* obj0
= 0 ;
2952 (char *) "str_id", NULL
2955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetXRCID",kwnames
,&obj0
)) goto fail
;
2957 arg1
= wxString_in_helper(obj0
);
2958 if (arg1
== NULL
) SWIG_fail
;
2962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2963 result
= (int)wxXmlResource::GetXRCID((wxString
const &)*arg1
);
2965 wxPyEndAllowThreads(__tstate
);
2966 if (PyErr_Occurred()) SWIG_fail
;
2969 resultobj
= SWIG_From_int((int)(result
));
2985 static PyObject
*_wrap_XmlResource_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2986 PyObject
*resultobj
;
2987 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
2989 PyObject
* obj0
= 0 ;
2991 (char *) "self", NULL
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetVersion",kwnames
,&obj0
)) goto fail
;
2995 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
2996 if (SWIG_arg_fail(1)) SWIG_fail
;
2998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2999 result
= (long)((wxXmlResource
const *)arg1
)->GetVersion();
3001 wxPyEndAllowThreads(__tstate
);
3002 if (PyErr_Occurred()) SWIG_fail
;
3005 resultobj
= SWIG_From_long((long)(result
));
3013 static PyObject
*_wrap_XmlResource_CompareVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3014 PyObject
*resultobj
;
3015 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3021 PyObject
* obj0
= 0 ;
3022 PyObject
* obj1
= 0 ;
3023 PyObject
* obj2
= 0 ;
3024 PyObject
* obj3
= 0 ;
3025 PyObject
* obj4
= 0 ;
3027 (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL
3030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOOO:XmlResource_CompareVersion",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
3031 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3032 if (SWIG_arg_fail(1)) SWIG_fail
;
3034 arg2
= (int)(SWIG_As_int(obj1
));
3035 if (SWIG_arg_fail(2)) SWIG_fail
;
3038 arg3
= (int)(SWIG_As_int(obj2
));
3039 if (SWIG_arg_fail(3)) SWIG_fail
;
3042 arg4
= (int)(SWIG_As_int(obj3
));
3043 if (SWIG_arg_fail(4)) SWIG_fail
;
3046 arg5
= (int)(SWIG_As_int(obj4
));
3047 if (SWIG_arg_fail(5)) SWIG_fail
;
3050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3051 result
= (int)((wxXmlResource
const *)arg1
)->CompareVersion(arg2
,arg3
,arg4
,arg5
);
3053 wxPyEndAllowThreads(__tstate
);
3054 if (PyErr_Occurred()) SWIG_fail
;
3057 resultobj
= SWIG_From_int((int)(result
));
3065 static PyObject
*_wrap_XmlResource_Get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3066 PyObject
*resultobj
;
3067 wxXmlResource
*result
;
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":XmlResource_Get",kwnames
)) goto fail
;
3074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3075 result
= (wxXmlResource
*)wxXmlResource::Get();
3077 wxPyEndAllowThreads(__tstate
);
3078 if (PyErr_Occurred()) SWIG_fail
;
3080 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
3087 static PyObject
*_wrap_XmlResource_Set(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3088 PyObject
*resultobj
;
3089 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3090 wxXmlResource
*result
;
3091 PyObject
* obj0
= 0 ;
3093 (char *) "res", NULL
3096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_Set",kwnames
,&obj0
)) goto fail
;
3097 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3098 if (SWIG_arg_fail(1)) SWIG_fail
;
3100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3101 result
= (wxXmlResource
*)wxXmlResource::Set(arg1
);
3103 wxPyEndAllowThreads(__tstate
);
3104 if (PyErr_Occurred()) SWIG_fail
;
3106 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
3113 static PyObject
*_wrap_XmlResource_GetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3114 PyObject
*resultobj
;
3115 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3117 PyObject
* obj0
= 0 ;
3119 (char *) "self", NULL
3122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResource_GetFlags",kwnames
,&obj0
)) goto fail
;
3123 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3124 if (SWIG_arg_fail(1)) SWIG_fail
;
3126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3127 result
= (int)(arg1
)->GetFlags();
3129 wxPyEndAllowThreads(__tstate
);
3130 if (PyErr_Occurred()) SWIG_fail
;
3133 resultobj
= SWIG_From_int((int)(result
));
3141 static PyObject
*_wrap_XmlResource_SetFlags(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3142 PyObject
*resultobj
;
3143 wxXmlResource
*arg1
= (wxXmlResource
*) 0 ;
3145 PyObject
* obj0
= 0 ;
3146 PyObject
* obj1
= 0 ;
3148 (char *) "self",(char *) "flags", NULL
3151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResource_SetFlags",kwnames
,&obj0
,&obj1
)) goto fail
;
3152 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
3153 if (SWIG_arg_fail(1)) SWIG_fail
;
3155 arg2
= (int)(SWIG_As_int(obj1
));
3156 if (SWIG_arg_fail(2)) SWIG_fail
;
3159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3160 (arg1
)->SetFlags(arg2
);
3162 wxPyEndAllowThreads(__tstate
);
3163 if (PyErr_Occurred()) SWIG_fail
;
3165 Py_INCREF(Py_None
); resultobj
= Py_None
;
3172 static PyObject
* XmlResource_swigregister(PyObject
*, PyObject
*args
) {
3174 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3175 SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource
, obj
);
3177 return Py_BuildValue((char *)"");
3179 static PyObject
*_wrap_new_XmlSubclassFactory(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3180 PyObject
*resultobj
;
3181 wxPyXmlSubclassFactory
*result
;
3186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlSubclassFactory",kwnames
)) goto fail
;
3188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3189 result
= (wxPyXmlSubclassFactory
*)new wxPyXmlSubclassFactory();
3191 wxPyEndAllowThreads(__tstate
);
3192 if (PyErr_Occurred()) SWIG_fail
;
3194 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlSubclassFactory
, 1);
3201 static PyObject
*_wrap_XmlSubclassFactory__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3202 PyObject
*resultobj
;
3203 wxPyXmlSubclassFactory
*arg1
= (wxPyXmlSubclassFactory
*) 0 ;
3204 PyObject
*arg2
= (PyObject
*) 0 ;
3205 PyObject
*arg3
= (PyObject
*) 0 ;
3206 PyObject
* obj0
= 0 ;
3207 PyObject
* obj1
= 0 ;
3208 PyObject
* obj2
= 0 ;
3210 (char *) "self",(char *) "self",(char *) "_class", NULL
3213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3214 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlSubclassFactory
, SWIG_POINTER_EXCEPTION
| 0);
3215 if (SWIG_arg_fail(1)) SWIG_fail
;
3219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3220 (arg1
)->_setCallbackInfo(arg2
,arg3
);
3222 wxPyEndAllowThreads(__tstate
);
3223 if (PyErr_Occurred()) SWIG_fail
;
3225 Py_INCREF(Py_None
); resultobj
= Py_None
;
3232 static PyObject
* XmlSubclassFactory_swigregister(PyObject
*, PyObject
*args
) {
3234 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3235 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory
, obj
);
3237 return Py_BuildValue((char *)"");
3239 static PyObject
*_wrap_new_XmlProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3240 PyObject
*resultobj
;
3241 wxString
const &arg1_defvalue
= wxPyEmptyString
;
3242 wxString
*arg1
= (wxString
*) &arg1_defvalue
;
3243 wxString
const &arg2_defvalue
= wxPyEmptyString
;
3244 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3245 wxXmlProperty
*arg3
= (wxXmlProperty
*) NULL
;
3246 wxXmlProperty
*result
;
3247 bool temp1
= false ;
3248 bool temp2
= false ;
3249 PyObject
* obj0
= 0 ;
3250 PyObject
* obj1
= 0 ;
3251 PyObject
* obj2
= 0 ;
3253 (char *) "name",(char *) "value",(char *) "next", NULL
3256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOO:new_XmlProperty",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3259 arg1
= wxString_in_helper(obj0
);
3260 if (arg1
== NULL
) SWIG_fail
;
3266 arg2
= wxString_in_helper(obj1
);
3267 if (arg2
== NULL
) SWIG_fail
;
3272 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3273 if (SWIG_arg_fail(3)) SWIG_fail
;
3276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3277 result
= (wxXmlProperty
*)new wxXmlProperty((wxString
const &)*arg1
,(wxString
const &)*arg2
,arg3
);
3279 wxPyEndAllowThreads(__tstate
);
3280 if (PyErr_Occurred()) SWIG_fail
;
3282 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 1);
3305 static PyObject
*_wrap_XmlProperty_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3306 PyObject
*resultobj
;
3307 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3309 PyObject
* obj0
= 0 ;
3311 (char *) "self", NULL
3314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetName",kwnames
,&obj0
)) goto fail
;
3315 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3316 if (SWIG_arg_fail(1)) SWIG_fail
;
3318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3319 result
= ((wxXmlProperty
const *)arg1
)->GetName();
3321 wxPyEndAllowThreads(__tstate
);
3322 if (PyErr_Occurred()) SWIG_fail
;
3326 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3328 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3337 static PyObject
*_wrap_XmlProperty_GetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
*resultobj
;
3339 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3341 PyObject
* obj0
= 0 ;
3343 (char *) "self", NULL
3346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetValue",kwnames
,&obj0
)) goto fail
;
3347 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3348 if (SWIG_arg_fail(1)) SWIG_fail
;
3350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3351 result
= ((wxXmlProperty
const *)arg1
)->GetValue();
3353 wxPyEndAllowThreads(__tstate
);
3354 if (PyErr_Occurred()) SWIG_fail
;
3358 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3360 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3369 static PyObject
*_wrap_XmlProperty_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3370 PyObject
*resultobj
;
3371 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3372 wxXmlProperty
*result
;
3373 PyObject
* obj0
= 0 ;
3375 (char *) "self", NULL
3378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlProperty_GetNext",kwnames
,&obj0
)) goto fail
;
3379 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3380 if (SWIG_arg_fail(1)) SWIG_fail
;
3382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3383 result
= (wxXmlProperty
*)((wxXmlProperty
const *)arg1
)->GetNext();
3385 wxPyEndAllowThreads(__tstate
);
3386 if (PyErr_Occurred()) SWIG_fail
;
3388 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
3395 static PyObject
*_wrap_XmlProperty_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
*resultobj
;
3397 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3398 wxString
*arg2
= 0 ;
3399 bool temp2
= false ;
3400 PyObject
* obj0
= 0 ;
3401 PyObject
* obj1
= 0 ;
3403 (char *) "self",(char *) "name", NULL
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
3407 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3408 if (SWIG_arg_fail(1)) SWIG_fail
;
3410 arg2
= wxString_in_helper(obj1
);
3411 if (arg2
== NULL
) SWIG_fail
;
3415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3416 (arg1
)->SetName((wxString
const &)*arg2
);
3418 wxPyEndAllowThreads(__tstate
);
3419 if (PyErr_Occurred()) SWIG_fail
;
3421 Py_INCREF(Py_None
); resultobj
= Py_None
;
3436 static PyObject
*_wrap_XmlProperty_SetValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3437 PyObject
*resultobj
;
3438 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3439 wxString
*arg2
= 0 ;
3440 bool temp2
= false ;
3441 PyObject
* obj0
= 0 ;
3442 PyObject
* obj1
= 0 ;
3444 (char *) "self",(char *) "value", NULL
3447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetValue",kwnames
,&obj0
,&obj1
)) goto fail
;
3448 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3449 if (SWIG_arg_fail(1)) SWIG_fail
;
3451 arg2
= wxString_in_helper(obj1
);
3452 if (arg2
== NULL
) SWIG_fail
;
3456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3457 (arg1
)->SetValue((wxString
const &)*arg2
);
3459 wxPyEndAllowThreads(__tstate
);
3460 if (PyErr_Occurred()) SWIG_fail
;
3462 Py_INCREF(Py_None
); resultobj
= Py_None
;
3477 static PyObject
*_wrap_XmlProperty_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3478 PyObject
*resultobj
;
3479 wxXmlProperty
*arg1
= (wxXmlProperty
*) 0 ;
3480 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3481 PyObject
* obj0
= 0 ;
3482 PyObject
* obj1
= 0 ;
3484 (char *) "self",(char *) "next", NULL
3487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlProperty_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
3488 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3489 if (SWIG_arg_fail(1)) SWIG_fail
;
3490 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3491 if (SWIG_arg_fail(2)) SWIG_fail
;
3493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3494 (arg1
)->SetNext(arg2
);
3496 wxPyEndAllowThreads(__tstate
);
3497 if (PyErr_Occurred()) SWIG_fail
;
3499 Py_INCREF(Py_None
); resultobj
= Py_None
;
3506 static PyObject
* XmlProperty_swigregister(PyObject
*, PyObject
*args
) {
3508 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3509 SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty
, obj
);
3511 return Py_BuildValue((char *)"");
3513 static PyObject
*_wrap_new_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3514 PyObject
*resultobj
;
3515 wxXmlNode
*arg1
= (wxXmlNode
*) NULL
;
3516 wxXmlNodeType arg2
= (wxXmlNodeType
) 0 ;
3517 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3518 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3519 wxString
const &arg4_defvalue
= wxPyEmptyString
;
3520 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
3521 wxXmlProperty
*arg5
= (wxXmlProperty
*) NULL
;
3522 wxXmlNode
*arg6
= (wxXmlNode
*) NULL
;
3524 bool temp3
= false ;
3525 bool temp4
= false ;
3526 PyObject
* obj0
= 0 ;
3527 PyObject
* obj1
= 0 ;
3528 PyObject
* obj2
= 0 ;
3529 PyObject
* obj3
= 0 ;
3530 PyObject
* obj4
= 0 ;
3531 PyObject
* obj5
= 0 ;
3533 (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL
3536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOOO:new_XmlNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
)) goto fail
;
3538 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3539 if (SWIG_arg_fail(1)) SWIG_fail
;
3543 arg2
= (wxXmlNodeType
)(SWIG_As_int(obj1
));
3544 if (SWIG_arg_fail(2)) SWIG_fail
;
3549 arg3
= wxString_in_helper(obj2
);
3550 if (arg3
== NULL
) SWIG_fail
;
3556 arg4
= wxString_in_helper(obj3
);
3557 if (arg4
== NULL
) SWIG_fail
;
3562 SWIG_Python_ConvertPtr(obj4
, (void **)&arg5
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3563 if (SWIG_arg_fail(5)) SWIG_fail
;
3566 SWIG_Python_ConvertPtr(obj5
, (void **)&arg6
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3567 if (SWIG_arg_fail(6)) SWIG_fail
;
3570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3571 result
= (wxXmlNode
*)new wxXmlNode(arg1
,(wxXmlNodeType
)arg2
,(wxString
const &)*arg3
,(wxString
const &)*arg4
,arg5
,arg6
);
3573 wxPyEndAllowThreads(__tstate
);
3574 if (PyErr_Occurred()) SWIG_fail
;
3576 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
3599 static PyObject
*_wrap_delete_XmlNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3600 PyObject
*resultobj
;
3601 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3602 PyObject
* obj0
= 0 ;
3604 (char *) "self", NULL
3607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlNode",kwnames
,&obj0
)) goto fail
;
3608 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3609 if (SWIG_arg_fail(1)) SWIG_fail
;
3611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3614 wxPyEndAllowThreads(__tstate
);
3615 if (PyErr_Occurred()) SWIG_fail
;
3617 Py_INCREF(Py_None
); resultobj
= Py_None
;
3624 static PyObject
*_wrap_new_XmlNodeEasy(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3625 PyObject
*resultobj
;
3626 wxXmlNodeType arg1
;
3627 wxString
*arg2
= 0 ;
3628 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3629 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3631 bool temp2
= false ;
3632 bool temp3
= false ;
3633 PyObject
* obj0
= 0 ;
3634 PyObject
* obj1
= 0 ;
3635 PyObject
* obj2
= 0 ;
3637 (char *) "type",(char *) "name",(char *) "content", NULL
3640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:new_XmlNodeEasy",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3642 arg1
= (wxXmlNodeType
)(SWIG_As_int(obj0
));
3643 if (SWIG_arg_fail(1)) SWIG_fail
;
3646 arg2
= wxString_in_helper(obj1
);
3647 if (arg2
== NULL
) SWIG_fail
;
3652 arg3
= wxString_in_helper(obj2
);
3653 if (arg3
== NULL
) SWIG_fail
;
3658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3659 result
= (wxXmlNode
*)new wxXmlNode((wxXmlNodeType
)arg1
,(wxString
const &)*arg2
,(wxString
const &)*arg3
);
3661 wxPyEndAllowThreads(__tstate
);
3662 if (PyErr_Occurred()) SWIG_fail
;
3664 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 1);
3687 static PyObject
*_wrap_XmlNode_AddChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3688 PyObject
*resultobj
;
3689 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3690 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3691 PyObject
* obj0
= 0 ;
3692 PyObject
* obj1
= 0 ;
3694 (char *) "self",(char *) "child", NULL
3697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddChild",kwnames
,&obj0
,&obj1
)) goto fail
;
3698 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3699 if (SWIG_arg_fail(1)) SWIG_fail
;
3700 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3701 if (SWIG_arg_fail(2)) SWIG_fail
;
3703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3704 (arg1
)->AddChild(arg2
);
3706 wxPyEndAllowThreads(__tstate
);
3707 if (PyErr_Occurred()) SWIG_fail
;
3709 Py_INCREF(Py_None
); resultobj
= Py_None
;
3716 static PyObject
*_wrap_XmlNode_InsertChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3717 PyObject
*resultobj
;
3718 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3719 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3720 wxXmlNode
*arg3
= (wxXmlNode
*) 0 ;
3721 PyObject
* obj0
= 0 ;
3722 PyObject
* obj1
= 0 ;
3723 PyObject
* obj2
= 0 ;
3725 (char *) "self",(char *) "child",(char *) "before_node", NULL
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_InsertChild",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3729 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3730 if (SWIG_arg_fail(1)) SWIG_fail
;
3731 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3732 if (SWIG_arg_fail(2)) SWIG_fail
;
3733 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3734 if (SWIG_arg_fail(3)) SWIG_fail
;
3736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3737 (arg1
)->InsertChild(arg2
,arg3
);
3739 wxPyEndAllowThreads(__tstate
);
3740 if (PyErr_Occurred()) SWIG_fail
;
3742 Py_INCREF(Py_None
); resultobj
= Py_None
;
3749 static PyObject
*_wrap_XmlNode_RemoveChild(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3750 PyObject
*resultobj
;
3751 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3752 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
3754 PyObject
* obj0
= 0 ;
3755 PyObject
* obj1
= 0 ;
3757 (char *) "self",(char *) "child", NULL
3760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_RemoveChild",kwnames
,&obj0
,&obj1
)) goto fail
;
3761 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3762 if (SWIG_arg_fail(1)) SWIG_fail
;
3763 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3764 if (SWIG_arg_fail(2)) SWIG_fail
;
3766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3767 result
= (bool)(arg1
)->RemoveChild(arg2
);
3769 wxPyEndAllowThreads(__tstate
);
3770 if (PyErr_Occurred()) SWIG_fail
;
3773 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3781 static PyObject
*_wrap_XmlNode_AddProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3782 PyObject
*resultobj
;
3783 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3784 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
3785 PyObject
* obj0
= 0 ;
3786 PyObject
* obj1
= 0 ;
3788 (char *) "self",(char *) "prop", NULL
3791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_AddProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
3792 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3793 if (SWIG_arg_fail(1)) SWIG_fail
;
3794 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
3795 if (SWIG_arg_fail(2)) SWIG_fail
;
3797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3798 (arg1
)->AddProperty(arg2
);
3800 wxPyEndAllowThreads(__tstate
);
3801 if (PyErr_Occurred()) SWIG_fail
;
3803 Py_INCREF(Py_None
); resultobj
= Py_None
;
3810 static PyObject
*_wrap_XmlNode_AddPropertyName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3811 PyObject
*resultobj
;
3812 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3813 wxString
*arg2
= 0 ;
3814 wxString
*arg3
= 0 ;
3815 bool temp2
= false ;
3816 bool temp3
= false ;
3817 PyObject
* obj0
= 0 ;
3818 PyObject
* obj1
= 0 ;
3819 PyObject
* obj2
= 0 ;
3821 (char *) "self",(char *) "name",(char *) "value", NULL
3824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_AddPropertyName",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3825 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3826 if (SWIG_arg_fail(1)) SWIG_fail
;
3828 arg2
= wxString_in_helper(obj1
);
3829 if (arg2
== NULL
) SWIG_fail
;
3833 arg3
= wxString_in_helper(obj2
);
3834 if (arg3
== NULL
) SWIG_fail
;
3838 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3839 (arg1
)->AddProperty((wxString
const &)*arg2
,(wxString
const &)*arg3
);
3841 wxPyEndAllowThreads(__tstate
);
3842 if (PyErr_Occurred()) SWIG_fail
;
3844 Py_INCREF(Py_None
); resultobj
= Py_None
;
3867 static PyObject
*_wrap_XmlNode_DeleteProperty(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3868 PyObject
*resultobj
;
3869 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3870 wxString
*arg2
= 0 ;
3872 bool temp2
= false ;
3873 PyObject
* obj0
= 0 ;
3874 PyObject
* obj1
= 0 ;
3876 (char *) "self",(char *) "name", NULL
3879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_DeleteProperty",kwnames
,&obj0
,&obj1
)) goto fail
;
3880 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3881 if (SWIG_arg_fail(1)) SWIG_fail
;
3883 arg2
= wxString_in_helper(obj1
);
3884 if (arg2
== NULL
) SWIG_fail
;
3888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3889 result
= (bool)(arg1
)->DeleteProperty((wxString
const &)*arg2
);
3891 wxPyEndAllowThreads(__tstate
);
3892 if (PyErr_Occurred()) SWIG_fail
;
3895 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3911 static PyObject
*_wrap_XmlNode_GetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3912 PyObject
*resultobj
;
3913 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3914 wxXmlNodeType result
;
3915 PyObject
* obj0
= 0 ;
3917 (char *) "self", NULL
3920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetType",kwnames
,&obj0
)) goto fail
;
3921 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3922 if (SWIG_arg_fail(1)) SWIG_fail
;
3924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3925 result
= (wxXmlNodeType
)((wxXmlNode
const *)arg1
)->GetType();
3927 wxPyEndAllowThreads(__tstate
);
3928 if (PyErr_Occurred()) SWIG_fail
;
3930 resultobj
= SWIG_From_int((result
));
3937 static PyObject
*_wrap_XmlNode_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3938 PyObject
*resultobj
;
3939 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3941 PyObject
* obj0
= 0 ;
3943 (char *) "self", NULL
3946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetName",kwnames
,&obj0
)) goto fail
;
3947 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3948 if (SWIG_arg_fail(1)) SWIG_fail
;
3950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3951 result
= ((wxXmlNode
const *)arg1
)->GetName();
3953 wxPyEndAllowThreads(__tstate
);
3954 if (PyErr_Occurred()) SWIG_fail
;
3958 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3960 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3969 static PyObject
*_wrap_XmlNode_GetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3970 PyObject
*resultobj
;
3971 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
3973 PyObject
* obj0
= 0 ;
3975 (char *) "self", NULL
3978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetContent",kwnames
,&obj0
)) goto fail
;
3979 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
3980 if (SWIG_arg_fail(1)) SWIG_fail
;
3982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3983 result
= ((wxXmlNode
const *)arg1
)->GetContent();
3985 wxPyEndAllowThreads(__tstate
);
3986 if (PyErr_Occurred()) SWIG_fail
;
3990 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3992 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4001 static PyObject
*_wrap_XmlNode_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4002 PyObject
*resultobj
;
4003 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4005 PyObject
* obj0
= 0 ;
4007 (char *) "self", NULL
4010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetParent",kwnames
,&obj0
)) goto fail
;
4011 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4012 if (SWIG_arg_fail(1)) SWIG_fail
;
4014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4015 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetParent();
4017 wxPyEndAllowThreads(__tstate
);
4018 if (PyErr_Occurred()) SWIG_fail
;
4020 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4027 static PyObject
*_wrap_XmlNode_GetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4028 PyObject
*resultobj
;
4029 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4031 PyObject
* obj0
= 0 ;
4033 (char *) "self", NULL
4036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetNext",kwnames
,&obj0
)) goto fail
;
4037 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4038 if (SWIG_arg_fail(1)) SWIG_fail
;
4040 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4041 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetNext();
4043 wxPyEndAllowThreads(__tstate
);
4044 if (PyErr_Occurred()) SWIG_fail
;
4046 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4053 static PyObject
*_wrap_XmlNode_GetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4054 PyObject
*resultobj
;
4055 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4057 PyObject
* obj0
= 0 ;
4059 (char *) "self", NULL
4062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetChildren",kwnames
,&obj0
)) goto fail
;
4063 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4064 if (SWIG_arg_fail(1)) SWIG_fail
;
4066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4067 result
= (wxXmlNode
*)((wxXmlNode
const *)arg1
)->GetChildren();
4069 wxPyEndAllowThreads(__tstate
);
4070 if (PyErr_Occurred()) SWIG_fail
;
4072 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4079 static PyObject
*_wrap_XmlNode_GetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4080 PyObject
*resultobj
;
4081 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4082 wxXmlProperty
*result
;
4083 PyObject
* obj0
= 0 ;
4085 (char *) "self", NULL
4088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlNode_GetProperties",kwnames
,&obj0
)) goto fail
;
4089 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4090 if (SWIG_arg_fail(1)) SWIG_fail
;
4092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4093 result
= (wxXmlProperty
*)((wxXmlNode
const *)arg1
)->GetProperties();
4095 wxPyEndAllowThreads(__tstate
);
4096 if (PyErr_Occurred()) SWIG_fail
;
4098 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlProperty
, 0);
4105 static PyObject
*_wrap_XmlNode_GetPropVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4106 PyObject
*resultobj
;
4107 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4108 wxString
*arg2
= 0 ;
4109 wxString
*arg3
= 0 ;
4111 bool temp2
= false ;
4112 bool temp3
= false ;
4113 PyObject
* obj0
= 0 ;
4114 PyObject
* obj1
= 0 ;
4115 PyObject
* obj2
= 0 ;
4117 (char *) "self",(char *) "propName",(char *) "defaultVal", NULL
4120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlNode_GetPropVal",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4121 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4122 if (SWIG_arg_fail(1)) SWIG_fail
;
4124 arg2
= wxString_in_helper(obj1
);
4125 if (arg2
== NULL
) SWIG_fail
;
4129 arg3
= wxString_in_helper(obj2
);
4130 if (arg3
== NULL
) SWIG_fail
;
4134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4135 result
= ((wxXmlNode
const *)arg1
)->GetPropVal((wxString
const &)*arg2
,(wxString
const &)*arg3
);
4137 wxPyEndAllowThreads(__tstate
);
4138 if (PyErr_Occurred()) SWIG_fail
;
4142 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4144 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4169 static PyObject
*_wrap_XmlNode_HasProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4170 PyObject
*resultobj
;
4171 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4172 wxString
*arg2
= 0 ;
4174 bool temp2
= false ;
4175 PyObject
* obj0
= 0 ;
4176 PyObject
* obj1
= 0 ;
4178 (char *) "self",(char *) "propName", NULL
4181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_HasProp",kwnames
,&obj0
,&obj1
)) goto fail
;
4182 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4183 if (SWIG_arg_fail(1)) SWIG_fail
;
4185 arg2
= wxString_in_helper(obj1
);
4186 if (arg2
== NULL
) SWIG_fail
;
4190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4191 result
= (bool)((wxXmlNode
const *)arg1
)->HasProp((wxString
const &)*arg2
);
4193 wxPyEndAllowThreads(__tstate
);
4194 if (PyErr_Occurred()) SWIG_fail
;
4197 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4213 static PyObject
*_wrap_XmlNode_SetType(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4214 PyObject
*resultobj
;
4215 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4216 wxXmlNodeType arg2
;
4217 PyObject
* obj0
= 0 ;
4218 PyObject
* obj1
= 0 ;
4220 (char *) "self",(char *) "type", NULL
4223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetType",kwnames
,&obj0
,&obj1
)) goto fail
;
4224 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4225 if (SWIG_arg_fail(1)) SWIG_fail
;
4227 arg2
= (wxXmlNodeType
)(SWIG_As_int(obj1
));
4228 if (SWIG_arg_fail(2)) SWIG_fail
;
4231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4232 (arg1
)->SetType((wxXmlNodeType
)arg2
);
4234 wxPyEndAllowThreads(__tstate
);
4235 if (PyErr_Occurred()) SWIG_fail
;
4237 Py_INCREF(Py_None
); resultobj
= Py_None
;
4244 static PyObject
*_wrap_XmlNode_SetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4245 PyObject
*resultobj
;
4246 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4247 wxString
*arg2
= 0 ;
4248 bool temp2
= false ;
4249 PyObject
* obj0
= 0 ;
4250 PyObject
* obj1
= 0 ;
4252 (char *) "self",(char *) "name", NULL
4255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetName",kwnames
,&obj0
,&obj1
)) goto fail
;
4256 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4257 if (SWIG_arg_fail(1)) SWIG_fail
;
4259 arg2
= wxString_in_helper(obj1
);
4260 if (arg2
== NULL
) SWIG_fail
;
4264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4265 (arg1
)->SetName((wxString
const &)*arg2
);
4267 wxPyEndAllowThreads(__tstate
);
4268 if (PyErr_Occurred()) SWIG_fail
;
4270 Py_INCREF(Py_None
); resultobj
= Py_None
;
4285 static PyObject
*_wrap_XmlNode_SetContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4286 PyObject
*resultobj
;
4287 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4288 wxString
*arg2
= 0 ;
4289 bool temp2
= false ;
4290 PyObject
* obj0
= 0 ;
4291 PyObject
* obj1
= 0 ;
4293 (char *) "self",(char *) "con", NULL
4296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetContent",kwnames
,&obj0
,&obj1
)) goto fail
;
4297 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4298 if (SWIG_arg_fail(1)) SWIG_fail
;
4300 arg2
= wxString_in_helper(obj1
);
4301 if (arg2
== NULL
) SWIG_fail
;
4305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4306 (arg1
)->SetContent((wxString
const &)*arg2
);
4308 wxPyEndAllowThreads(__tstate
);
4309 if (PyErr_Occurred()) SWIG_fail
;
4311 Py_INCREF(Py_None
); resultobj
= Py_None
;
4326 static PyObject
*_wrap_XmlNode_SetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4327 PyObject
*resultobj
;
4328 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4329 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4330 PyObject
* obj0
= 0 ;
4331 PyObject
* obj1
= 0 ;
4333 (char *) "self",(char *) "parent", NULL
4336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetParent",kwnames
,&obj0
,&obj1
)) goto fail
;
4337 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4338 if (SWIG_arg_fail(1)) SWIG_fail
;
4339 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4340 if (SWIG_arg_fail(2)) SWIG_fail
;
4342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4343 (arg1
)->SetParent(arg2
);
4345 wxPyEndAllowThreads(__tstate
);
4346 if (PyErr_Occurred()) SWIG_fail
;
4348 Py_INCREF(Py_None
); resultobj
= Py_None
;
4355 static PyObject
*_wrap_XmlNode_SetNext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4356 PyObject
*resultobj
;
4357 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4358 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4359 PyObject
* obj0
= 0 ;
4360 PyObject
* obj1
= 0 ;
4362 (char *) "self",(char *) "next", NULL
4365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetNext",kwnames
,&obj0
,&obj1
)) goto fail
;
4366 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4367 if (SWIG_arg_fail(1)) SWIG_fail
;
4368 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4369 if (SWIG_arg_fail(2)) SWIG_fail
;
4371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4372 (arg1
)->SetNext(arg2
);
4374 wxPyEndAllowThreads(__tstate
);
4375 if (PyErr_Occurred()) SWIG_fail
;
4377 Py_INCREF(Py_None
); resultobj
= Py_None
;
4384 static PyObject
*_wrap_XmlNode_SetChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4385 PyObject
*resultobj
;
4386 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4387 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4388 PyObject
* obj0
= 0 ;
4389 PyObject
* obj1
= 0 ;
4391 (char *) "self",(char *) "child", NULL
4394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetChildren",kwnames
,&obj0
,&obj1
)) goto fail
;
4395 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4396 if (SWIG_arg_fail(1)) SWIG_fail
;
4397 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4398 if (SWIG_arg_fail(2)) SWIG_fail
;
4400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4401 (arg1
)->SetChildren(arg2
);
4403 wxPyEndAllowThreads(__tstate
);
4404 if (PyErr_Occurred()) SWIG_fail
;
4406 Py_INCREF(Py_None
); resultobj
= Py_None
;
4413 static PyObject
*_wrap_XmlNode_SetProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4414 PyObject
*resultobj
;
4415 wxXmlNode
*arg1
= (wxXmlNode
*) 0 ;
4416 wxXmlProperty
*arg2
= (wxXmlProperty
*) 0 ;
4417 PyObject
* obj0
= 0 ;
4418 PyObject
* obj1
= 0 ;
4420 (char *) "self",(char *) "prop", NULL
4423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlNode_SetProperties",kwnames
,&obj0
,&obj1
)) goto fail
;
4424 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4425 if (SWIG_arg_fail(1)) SWIG_fail
;
4426 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlProperty
, SWIG_POINTER_EXCEPTION
| 0);
4427 if (SWIG_arg_fail(2)) SWIG_fail
;
4429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4430 (arg1
)->SetProperties(arg2
);
4432 wxPyEndAllowThreads(__tstate
);
4433 if (PyErr_Occurred()) SWIG_fail
;
4435 Py_INCREF(Py_None
); resultobj
= Py_None
;
4442 static PyObject
* XmlNode_swigregister(PyObject
*, PyObject
*args
) {
4444 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4445 SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode
, obj
);
4447 return Py_BuildValue((char *)"");
4449 static PyObject
*_wrap_new_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4450 PyObject
*resultobj
;
4451 wxString
*arg1
= 0 ;
4452 wxString
const &arg2_defvalue
= wxPyUTF8String
;
4453 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4454 wxXmlDocument
*result
;
4455 bool temp1
= false ;
4456 bool temp2
= false ;
4457 PyObject
* obj0
= 0 ;
4458 PyObject
* obj1
= 0 ;
4460 (char *) "filename",(char *) "encoding", NULL
4463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocument",kwnames
,&obj0
,&obj1
)) goto fail
;
4465 arg1
= wxString_in_helper(obj0
);
4466 if (arg1
== NULL
) SWIG_fail
;
4471 arg2
= wxString_in_helper(obj1
);
4472 if (arg2
== NULL
) SWIG_fail
;
4477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4478 result
= (wxXmlDocument
*)new wxXmlDocument((wxString
const &)*arg1
,(wxString
const &)*arg2
);
4480 wxPyEndAllowThreads(__tstate
);
4481 if (PyErr_Occurred()) SWIG_fail
;
4483 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4506 static PyObject
*_wrap_new_XmlDocumentFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4507 PyObject
*resultobj
;
4508 wxInputStream
*arg1
= 0 ;
4509 wxString
const &arg2_defvalue
= wxPyUTF8String
;
4510 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
4511 wxXmlDocument
*result
;
4512 wxPyInputStream
*temp1
;
4514 bool temp2
= false ;
4515 PyObject
* obj0
= 0 ;
4516 PyObject
* obj1
= 0 ;
4518 (char *) "stream",(char *) "encoding", NULL
4521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:new_XmlDocumentFromStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4523 if (wxPyConvertSwigPtr(obj0
, (void **)&temp1
, wxT("wxPyInputStream"))) {
4524 arg1
= temp1
->m_wxis
;
4527 PyErr_Clear(); // clear the failure of the wxPyConvert above
4528 arg1
= wxPyCBInputStream_create(obj0
, false);
4530 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4538 arg2
= wxString_in_helper(obj1
);
4539 if (arg2
== NULL
) SWIG_fail
;
4544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4545 result
= (wxXmlDocument
*)new wxXmlDocument(*arg1
,(wxString
const &)*arg2
);
4547 wxPyEndAllowThreads(__tstate
);
4548 if (PyErr_Occurred()) SWIG_fail
;
4550 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4552 if (created1
) delete arg1
;
4561 if (created1
) delete arg1
;
4571 static PyObject
*_wrap_new_EmptyXmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4572 PyObject
*resultobj
;
4573 wxXmlDocument
*result
;
4578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_EmptyXmlDocument",kwnames
)) goto fail
;
4580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4581 result
= (wxXmlDocument
*)new wxXmlDocument();
4583 wxPyEndAllowThreads(__tstate
);
4584 if (PyErr_Occurred()) SWIG_fail
;
4586 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlDocument
, 1);
4593 static PyObject
*_wrap_delete_XmlDocument(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4594 PyObject
*resultobj
;
4595 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4596 PyObject
* obj0
= 0 ;
4598 (char *) "self", NULL
4601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_XmlDocument",kwnames
,&obj0
)) goto fail
;
4602 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4603 if (SWIG_arg_fail(1)) SWIG_fail
;
4605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4608 wxPyEndAllowThreads(__tstate
);
4609 if (PyErr_Occurred()) SWIG_fail
;
4611 Py_INCREF(Py_None
); resultobj
= Py_None
;
4618 static PyObject
*_wrap_XmlDocument_Load(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4619 PyObject
*resultobj
;
4620 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4621 wxString
*arg2
= 0 ;
4622 wxString
const &arg3_defvalue
= wxPyUTF8String
;
4623 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4625 bool temp2
= false ;
4626 bool temp3
= false ;
4627 PyObject
* obj0
= 0 ;
4628 PyObject
* obj1
= 0 ;
4629 PyObject
* obj2
= 0 ;
4631 (char *) "self",(char *) "filename",(char *) "encoding", NULL
4634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_Load",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4635 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4636 if (SWIG_arg_fail(1)) SWIG_fail
;
4638 arg2
= wxString_in_helper(obj1
);
4639 if (arg2
== NULL
) SWIG_fail
;
4644 arg3
= wxString_in_helper(obj2
);
4645 if (arg3
== NULL
) SWIG_fail
;
4650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4651 result
= (bool)(arg1
)->Load((wxString
const &)*arg2
,(wxString
const &)*arg3
);
4653 wxPyEndAllowThreads(__tstate
);
4654 if (PyErr_Occurred()) SWIG_fail
;
4657 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4681 static PyObject
*_wrap_XmlDocument_LoadFromStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4682 PyObject
*resultobj
;
4683 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4684 wxInputStream
*arg2
= 0 ;
4685 wxString
const &arg3_defvalue
= wxPyUTF8String
;
4686 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
4688 wxPyInputStream
*temp2
;
4690 bool temp3
= false ;
4691 PyObject
* obj0
= 0 ;
4692 PyObject
* obj1
= 0 ;
4693 PyObject
* obj2
= 0 ;
4695 (char *) "self",(char *) "stream",(char *) "encoding", NULL
4698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4699 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4700 if (SWIG_arg_fail(1)) SWIG_fail
;
4702 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
4703 arg2
= temp2
->m_wxis
;
4706 PyErr_Clear(); // clear the failure of the wxPyConvert above
4707 arg2
= wxPyCBInputStream_create(obj1
, false);
4709 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4717 arg3
= wxString_in_helper(obj2
);
4718 if (arg3
== NULL
) SWIG_fail
;
4723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4724 result
= (bool)(arg1
)->Load(*arg2
,(wxString
const &)*arg3
);
4726 wxPyEndAllowThreads(__tstate
);
4727 if (PyErr_Occurred()) SWIG_fail
;
4730 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4733 if (created2
) delete arg2
;
4742 if (created2
) delete arg2
;
4752 static PyObject
*_wrap_XmlDocument_Save(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4753 PyObject
*resultobj
;
4754 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4755 wxString
*arg2
= 0 ;
4757 bool temp2
= false ;
4758 PyObject
* obj0
= 0 ;
4759 PyObject
* obj1
= 0 ;
4761 (char *) "self",(char *) "filename", NULL
4764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_Save",kwnames
,&obj0
,&obj1
)) goto fail
;
4765 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4766 if (SWIG_arg_fail(1)) SWIG_fail
;
4768 arg2
= wxString_in_helper(obj1
);
4769 if (arg2
== NULL
) SWIG_fail
;
4773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4774 result
= (bool)((wxXmlDocument
const *)arg1
)->Save((wxString
const &)*arg2
);
4776 wxPyEndAllowThreads(__tstate
);
4777 if (PyErr_Occurred()) SWIG_fail
;
4780 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4796 static PyObject
*_wrap_XmlDocument_SaveToStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4797 PyObject
*resultobj
;
4798 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4799 wxOutputStream
*arg2
= 0 ;
4801 PyObject
* obj0
= 0 ;
4802 PyObject
* obj1
= 0 ;
4804 (char *) "self",(char *) "stream", NULL
4807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SaveToStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4808 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4809 if (SWIG_arg_fail(1)) SWIG_fail
;
4811 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxOutputStream
, SWIG_POINTER_EXCEPTION
| 0);
4812 if (SWIG_arg_fail(2)) SWIG_fail
;
4814 SWIG_null_ref("wxOutputStream");
4816 if (SWIG_arg_fail(2)) SWIG_fail
;
4819 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4820 result
= (bool)((wxXmlDocument
const *)arg1
)->Save(*arg2
);
4822 wxPyEndAllowThreads(__tstate
);
4823 if (PyErr_Occurred()) SWIG_fail
;
4826 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4834 static PyObject
*_wrap_XmlDocument_IsOk(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4835 PyObject
*resultobj
;
4836 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4838 PyObject
* obj0
= 0 ;
4840 (char *) "self", NULL
4843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_IsOk",kwnames
,&obj0
)) goto fail
;
4844 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4845 if (SWIG_arg_fail(1)) SWIG_fail
;
4847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4848 result
= (bool)((wxXmlDocument
const *)arg1
)->IsOk();
4850 wxPyEndAllowThreads(__tstate
);
4851 if (PyErr_Occurred()) SWIG_fail
;
4854 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4862 static PyObject
*_wrap_XmlDocument_GetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4863 PyObject
*resultobj
;
4864 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4866 PyObject
* obj0
= 0 ;
4868 (char *) "self", NULL
4871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetRoot",kwnames
,&obj0
)) goto fail
;
4872 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4873 if (SWIG_arg_fail(1)) SWIG_fail
;
4875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4876 result
= (wxXmlNode
*)((wxXmlDocument
const *)arg1
)->GetRoot();
4878 wxPyEndAllowThreads(__tstate
);
4879 if (PyErr_Occurred()) SWIG_fail
;
4881 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
4888 static PyObject
*_wrap_XmlDocument_GetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4889 PyObject
*resultobj
;
4890 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4892 PyObject
* obj0
= 0 ;
4894 (char *) "self", NULL
4897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetVersion",kwnames
,&obj0
)) goto fail
;
4898 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4899 if (SWIG_arg_fail(1)) SWIG_fail
;
4901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4902 result
= ((wxXmlDocument
const *)arg1
)->GetVersion();
4904 wxPyEndAllowThreads(__tstate
);
4905 if (PyErr_Occurred()) SWIG_fail
;
4909 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4911 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4920 static PyObject
*_wrap_XmlDocument_GetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4921 PyObject
*resultobj
;
4922 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4924 PyObject
* obj0
= 0 ;
4926 (char *) "self", NULL
4929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlDocument_GetFileEncoding",kwnames
,&obj0
)) goto fail
;
4930 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4931 if (SWIG_arg_fail(1)) SWIG_fail
;
4933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4934 result
= ((wxXmlDocument
const *)arg1
)->GetFileEncoding();
4936 wxPyEndAllowThreads(__tstate
);
4937 if (PyErr_Occurred()) SWIG_fail
;
4941 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4943 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4952 static PyObject
*_wrap_XmlDocument_SetRoot(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4953 PyObject
*resultobj
;
4954 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4955 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
4956 PyObject
* obj0
= 0 ;
4957 PyObject
* obj1
= 0 ;
4959 (char *) "self",(char *) "node", NULL
4962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetRoot",kwnames
,&obj0
,&obj1
)) goto fail
;
4963 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4964 if (SWIG_arg_fail(1)) SWIG_fail
;
4965 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
4966 if (SWIG_arg_fail(2)) SWIG_fail
;
4968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4969 (arg1
)->SetRoot(arg2
);
4971 wxPyEndAllowThreads(__tstate
);
4972 if (PyErr_Occurred()) SWIG_fail
;
4974 Py_INCREF(Py_None
); resultobj
= Py_None
;
4981 static PyObject
*_wrap_XmlDocument_SetVersion(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4982 PyObject
*resultobj
;
4983 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
4984 wxString
*arg2
= 0 ;
4985 bool temp2
= false ;
4986 PyObject
* obj0
= 0 ;
4987 PyObject
* obj1
= 0 ;
4989 (char *) "self",(char *) "version", NULL
4992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetVersion",kwnames
,&obj0
,&obj1
)) goto fail
;
4993 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
4994 if (SWIG_arg_fail(1)) SWIG_fail
;
4996 arg2
= wxString_in_helper(obj1
);
4997 if (arg2
== NULL
) SWIG_fail
;
5001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5002 (arg1
)->SetVersion((wxString
const &)*arg2
);
5004 wxPyEndAllowThreads(__tstate
);
5005 if (PyErr_Occurred()) SWIG_fail
;
5007 Py_INCREF(Py_None
); resultobj
= Py_None
;
5022 static PyObject
*_wrap_XmlDocument_SetFileEncoding(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5023 PyObject
*resultobj
;
5024 wxXmlDocument
*arg1
= (wxXmlDocument
*) 0 ;
5025 wxString
*arg2
= 0 ;
5026 bool temp2
= false ;
5027 PyObject
* obj0
= 0 ;
5028 PyObject
* obj1
= 0 ;
5030 (char *) "self",(char *) "encoding", NULL
5033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlDocument_SetFileEncoding",kwnames
,&obj0
,&obj1
)) goto fail
;
5034 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxXmlDocument
, SWIG_POINTER_EXCEPTION
| 0);
5035 if (SWIG_arg_fail(1)) SWIG_fail
;
5037 arg2
= wxString_in_helper(obj1
);
5038 if (arg2
== NULL
) SWIG_fail
;
5042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5043 (arg1
)->SetFileEncoding((wxString
const &)*arg2
);
5045 wxPyEndAllowThreads(__tstate
);
5046 if (PyErr_Occurred()) SWIG_fail
;
5048 Py_INCREF(Py_None
); resultobj
= Py_None
;
5063 static PyObject
* XmlDocument_swigregister(PyObject
*, PyObject
*args
) {
5065 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
5066 SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument
, obj
);
5068 return Py_BuildValue((char *)"");
5070 static PyObject
*_wrap_new_XmlResourceHandler(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5071 PyObject
*resultobj
;
5072 wxPyXmlResourceHandler
*result
;
5077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_XmlResourceHandler",kwnames
)) goto fail
;
5079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5080 result
= (wxPyXmlResourceHandler
*)new wxPyXmlResourceHandler();
5082 wxPyEndAllowThreads(__tstate
);
5083 if (PyErr_Occurred()) SWIG_fail
;
5085 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPyXmlResourceHandler
, 1);
5092 static PyObject
*_wrap_XmlResourceHandler__setCallbackInfo(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5093 PyObject
*resultobj
;
5094 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5095 PyObject
*arg2
= (PyObject
*) 0 ;
5096 PyObject
*arg3
= (PyObject
*) 0 ;
5097 PyObject
* obj0
= 0 ;
5098 PyObject
* obj1
= 0 ;
5099 PyObject
* obj2
= 0 ;
5101 (char *) "self",(char *) "self",(char *) "_class", NULL
5104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5105 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5106 if (SWIG_arg_fail(1)) SWIG_fail
;
5110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5111 (arg1
)->_setCallbackInfo(arg2
,arg3
);
5113 wxPyEndAllowThreads(__tstate
);
5114 if (PyErr_Occurred()) SWIG_fail
;
5116 Py_INCREF(Py_None
); resultobj
= Py_None
;
5123 static PyObject
*_wrap_XmlResourceHandler_CreateResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5124 PyObject
*resultobj
;
5125 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5126 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5127 wxObject
*arg3
= (wxObject
*) 0 ;
5128 wxObject
*arg4
= (wxObject
*) 0 ;
5130 PyObject
* obj0
= 0 ;
5131 PyObject
* obj1
= 0 ;
5132 PyObject
* obj2
= 0 ;
5133 PyObject
* obj3
= 0 ;
5135 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
5138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
5139 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5140 if (SWIG_arg_fail(1)) SWIG_fail
;
5141 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5142 if (SWIG_arg_fail(2)) SWIG_fail
;
5143 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
5144 if (SWIG_arg_fail(3)) SWIG_fail
;
5145 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
5146 if (SWIG_arg_fail(4)) SWIG_fail
;
5148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5149 result
= (wxObject
*)(arg1
)->CreateResource(arg2
,arg3
,arg4
);
5151 wxPyEndAllowThreads(__tstate
);
5152 if (PyErr_Occurred()) SWIG_fail
;
5155 resultobj
= wxPyMake_wxObject(result
, 0);
5163 static PyObject
*_wrap_XmlResourceHandler_SetParentResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5164 PyObject
*resultobj
;
5165 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5166 wxXmlResource
*arg2
= (wxXmlResource
*) 0 ;
5167 PyObject
* obj0
= 0 ;
5168 PyObject
* obj1
= 0 ;
5170 (char *) "self",(char *) "res", NULL
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames
,&obj0
,&obj1
)) goto fail
;
5174 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5175 if (SWIG_arg_fail(1)) SWIG_fail
;
5176 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlResource
, SWIG_POINTER_EXCEPTION
| 0);
5177 if (SWIG_arg_fail(2)) SWIG_fail
;
5179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5180 (arg1
)->SetParentResource(arg2
);
5182 wxPyEndAllowThreads(__tstate
);
5183 if (PyErr_Occurred()) SWIG_fail
;
5185 Py_INCREF(Py_None
); resultobj
= Py_None
;
5192 static PyObject
*_wrap_XmlResourceHandler_GetResource(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5193 PyObject
*resultobj
;
5194 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5195 wxXmlResource
*result
;
5196 PyObject
* obj0
= 0 ;
5198 (char *) "self", NULL
5201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetResource",kwnames
,&obj0
)) goto fail
;
5202 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5203 if (SWIG_arg_fail(1)) SWIG_fail
;
5205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5206 result
= (wxXmlResource
*)(arg1
)->GetResource();
5208 wxPyEndAllowThreads(__tstate
);
5209 if (PyErr_Occurred()) SWIG_fail
;
5211 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlResource
, 0);
5218 static PyObject
*_wrap_XmlResourceHandler_GetNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5219 PyObject
*resultobj
;
5220 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5222 PyObject
* obj0
= 0 ;
5224 (char *) "self", NULL
5227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetNode",kwnames
,&obj0
)) goto fail
;
5228 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5229 if (SWIG_arg_fail(1)) SWIG_fail
;
5231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5232 result
= (wxXmlNode
*)(arg1
)->GetNode();
5234 wxPyEndAllowThreads(__tstate
);
5235 if (PyErr_Occurred()) SWIG_fail
;
5237 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
5244 static PyObject
*_wrap_XmlResourceHandler_GetClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5245 PyObject
*resultobj
;
5246 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5248 PyObject
* obj0
= 0 ;
5250 (char *) "self", NULL
5253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetClass",kwnames
,&obj0
)) goto fail
;
5254 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5255 if (SWIG_arg_fail(1)) SWIG_fail
;
5257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5258 result
= (arg1
)->GetClass();
5260 wxPyEndAllowThreads(__tstate
);
5261 if (PyErr_Occurred()) SWIG_fail
;
5265 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5267 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5276 static PyObject
*_wrap_XmlResourceHandler_GetParent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5277 PyObject
*resultobj
;
5278 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5280 PyObject
* obj0
= 0 ;
5282 (char *) "self", NULL
5285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParent",kwnames
,&obj0
)) goto fail
;
5286 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5287 if (SWIG_arg_fail(1)) SWIG_fail
;
5289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5290 result
= (wxObject
*)(arg1
)->GetParent();
5292 wxPyEndAllowThreads(__tstate
);
5293 if (PyErr_Occurred()) SWIG_fail
;
5296 resultobj
= wxPyMake_wxObject(result
, 0);
5304 static PyObject
*_wrap_XmlResourceHandler_GetInstance(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5305 PyObject
*resultobj
;
5306 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5308 PyObject
* obj0
= 0 ;
5310 (char *) "self", NULL
5313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetInstance",kwnames
,&obj0
)) goto fail
;
5314 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5315 if (SWIG_arg_fail(1)) SWIG_fail
;
5317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5318 result
= (wxObject
*)(arg1
)->GetInstance();
5320 wxPyEndAllowThreads(__tstate
);
5321 if (PyErr_Occurred()) SWIG_fail
;
5324 resultobj
= wxPyMake_wxObject(result
, 0);
5332 static PyObject
*_wrap_XmlResourceHandler_GetParentAsWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5333 PyObject
*resultobj
;
5334 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5336 PyObject
* obj0
= 0 ;
5338 (char *) "self", NULL
5341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames
,&obj0
)) goto fail
;
5342 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5343 if (SWIG_arg_fail(1)) SWIG_fail
;
5345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5346 result
= (wxWindow
*)(arg1
)->GetParentAsWindow();
5348 wxPyEndAllowThreads(__tstate
);
5349 if (PyErr_Occurred()) SWIG_fail
;
5352 resultobj
= wxPyMake_wxObject(result
, 0);
5360 static PyObject
*_wrap_XmlResourceHandler_IsOfClass(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5361 PyObject
*resultobj
;
5362 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5363 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5364 wxString
*arg3
= 0 ;
5366 bool temp3
= false ;
5367 PyObject
* obj0
= 0 ;
5368 PyObject
* obj1
= 0 ;
5369 PyObject
* obj2
= 0 ;
5371 (char *) "self",(char *) "node",(char *) "classname", NULL
5374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5375 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5376 if (SWIG_arg_fail(1)) SWIG_fail
;
5377 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5378 if (SWIG_arg_fail(2)) SWIG_fail
;
5380 arg3
= wxString_in_helper(obj2
);
5381 if (arg3
== NULL
) SWIG_fail
;
5385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5386 result
= (bool)(arg1
)->IsOfClass(arg2
,(wxString
const &)*arg3
);
5388 wxPyEndAllowThreads(__tstate
);
5389 if (PyErr_Occurred()) SWIG_fail
;
5392 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5408 static PyObject
*_wrap_XmlResourceHandler_GetNodeContent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5409 PyObject
*resultobj
;
5410 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5411 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
5413 PyObject
* obj0
= 0 ;
5414 PyObject
* obj1
= 0 ;
5416 (char *) "self",(char *) "node", NULL
5419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames
,&obj0
,&obj1
)) goto fail
;
5420 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5421 if (SWIG_arg_fail(1)) SWIG_fail
;
5422 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
5423 if (SWIG_arg_fail(2)) SWIG_fail
;
5425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5426 result
= (arg1
)->GetNodeContent(arg2
);
5428 wxPyEndAllowThreads(__tstate
);
5429 if (PyErr_Occurred()) SWIG_fail
;
5433 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5435 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5444 static PyObject
*_wrap_XmlResourceHandler_HasParam(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5445 PyObject
*resultobj
;
5446 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5447 wxString
*arg2
= 0 ;
5449 bool temp2
= false ;
5450 PyObject
* obj0
= 0 ;
5451 PyObject
* obj1
= 0 ;
5453 (char *) "self",(char *) "param", NULL
5456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_HasParam",kwnames
,&obj0
,&obj1
)) goto fail
;
5457 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5458 if (SWIG_arg_fail(1)) SWIG_fail
;
5460 arg2
= wxString_in_helper(obj1
);
5461 if (arg2
== NULL
) SWIG_fail
;
5465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5466 result
= (bool)(arg1
)->HasParam((wxString
const &)*arg2
);
5468 wxPyEndAllowThreads(__tstate
);
5469 if (PyErr_Occurred()) SWIG_fail
;
5472 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5488 static PyObject
*_wrap_XmlResourceHandler_GetParamNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5489 PyObject
*resultobj
;
5490 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5491 wxString
*arg2
= 0 ;
5493 bool temp2
= false ;
5494 PyObject
* obj0
= 0 ;
5495 PyObject
* obj1
= 0 ;
5497 (char *) "self",(char *) "param", NULL
5500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames
,&obj0
,&obj1
)) goto fail
;
5501 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5502 if (SWIG_arg_fail(1)) SWIG_fail
;
5504 arg2
= wxString_in_helper(obj1
);
5505 if (arg2
== NULL
) SWIG_fail
;
5509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5510 result
= (wxXmlNode
*)(arg1
)->GetParamNode((wxString
const &)*arg2
);
5512 wxPyEndAllowThreads(__tstate
);
5513 if (PyErr_Occurred()) SWIG_fail
;
5515 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxXmlNode
, 0);
5530 static PyObject
*_wrap_XmlResourceHandler_GetParamValue(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5531 PyObject
*resultobj
;
5532 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5533 wxString
*arg2
= 0 ;
5535 bool temp2
= false ;
5536 PyObject
* obj0
= 0 ;
5537 PyObject
* obj1
= 0 ;
5539 (char *) "self",(char *) "param", NULL
5542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames
,&obj0
,&obj1
)) goto fail
;
5543 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5544 if (SWIG_arg_fail(1)) SWIG_fail
;
5546 arg2
= wxString_in_helper(obj1
);
5547 if (arg2
== NULL
) SWIG_fail
;
5551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5552 result
= (arg1
)->GetParamValue((wxString
const &)*arg2
);
5554 wxPyEndAllowThreads(__tstate
);
5555 if (PyErr_Occurred()) SWIG_fail
;
5559 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5561 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5578 static PyObject
*_wrap_XmlResourceHandler_AddStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5579 PyObject
*resultobj
;
5580 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5581 wxString
*arg2
= 0 ;
5583 bool temp2
= false ;
5584 PyObject
* obj0
= 0 ;
5585 PyObject
* obj1
= 0 ;
5586 PyObject
* obj2
= 0 ;
5588 (char *) "self",(char *) "name",(char *) "value", NULL
5591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5592 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5593 if (SWIG_arg_fail(1)) SWIG_fail
;
5595 arg2
= wxString_in_helper(obj1
);
5596 if (arg2
== NULL
) SWIG_fail
;
5600 arg3
= (int)(SWIG_As_int(obj2
));
5601 if (SWIG_arg_fail(3)) SWIG_fail
;
5604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5605 (arg1
)->AddStyle((wxString
const &)*arg2
,arg3
);
5607 wxPyEndAllowThreads(__tstate
);
5608 if (PyErr_Occurred()) SWIG_fail
;
5610 Py_INCREF(Py_None
); resultobj
= Py_None
;
5625 static PyObject
*_wrap_XmlResourceHandler_AddWindowStyles(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5626 PyObject
*resultobj
;
5627 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5628 PyObject
* obj0
= 0 ;
5630 (char *) "self", NULL
5633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames
,&obj0
)) goto fail
;
5634 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5635 if (SWIG_arg_fail(1)) SWIG_fail
;
5637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5638 (arg1
)->AddWindowStyles();
5640 wxPyEndAllowThreads(__tstate
);
5641 if (PyErr_Occurred()) SWIG_fail
;
5643 Py_INCREF(Py_None
); resultobj
= Py_None
;
5650 static PyObject
*_wrap_XmlResourceHandler_GetStyle(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5651 PyObject
*resultobj
;
5652 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5653 wxString
const &arg2_defvalue
= wxPyStyleString
;
5654 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5655 int arg3
= (int) 0 ;
5657 bool temp2
= false ;
5658 PyObject
* obj0
= 0 ;
5659 PyObject
* obj1
= 0 ;
5660 PyObject
* obj2
= 0 ;
5662 (char *) "self",(char *) "param",(char *) "defaults", NULL
5665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5666 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5667 if (SWIG_arg_fail(1)) SWIG_fail
;
5670 arg2
= wxString_in_helper(obj1
);
5671 if (arg2
== NULL
) SWIG_fail
;
5677 arg3
= (int)(SWIG_As_int(obj2
));
5678 if (SWIG_arg_fail(3)) SWIG_fail
;
5682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5683 result
= (int)(arg1
)->GetStyle((wxString
const &)*arg2
,arg3
);
5685 wxPyEndAllowThreads(__tstate
);
5686 if (PyErr_Occurred()) SWIG_fail
;
5689 resultobj
= SWIG_From_int((int)(result
));
5705 static PyObject
*_wrap_XmlResourceHandler_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
*resultobj
;
5707 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5708 wxString
*arg2
= 0 ;
5709 bool arg3
= (bool) true ;
5711 bool temp2
= false ;
5712 PyObject
* obj0
= 0 ;
5713 PyObject
* obj1
= 0 ;
5714 PyObject
* obj2
= 0 ;
5716 (char *) "self",(char *) "param",(char *) "translate", NULL
5719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetText",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5720 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5721 if (SWIG_arg_fail(1)) SWIG_fail
;
5723 arg2
= wxString_in_helper(obj1
);
5724 if (arg2
== NULL
) SWIG_fail
;
5729 arg3
= (bool)(SWIG_As_bool(obj2
));
5730 if (SWIG_arg_fail(3)) SWIG_fail
;
5734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5735 result
= (arg1
)->GetText((wxString
const &)*arg2
,arg3
);
5737 wxPyEndAllowThreads(__tstate
);
5738 if (PyErr_Occurred()) SWIG_fail
;
5742 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5744 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5761 static PyObject
*_wrap_XmlResourceHandler_GetID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5762 PyObject
*resultobj
;
5763 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5765 PyObject
* obj0
= 0 ;
5767 (char *) "self", NULL
5770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetID",kwnames
,&obj0
)) goto fail
;
5771 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5772 if (SWIG_arg_fail(1)) SWIG_fail
;
5774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5775 result
= (int)(arg1
)->GetID();
5777 wxPyEndAllowThreads(__tstate
);
5778 if (PyErr_Occurred()) SWIG_fail
;
5781 resultobj
= SWIG_From_int((int)(result
));
5789 static PyObject
*_wrap_XmlResourceHandler_GetName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5790 PyObject
*resultobj
;
5791 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5793 PyObject
* obj0
= 0 ;
5795 (char *) "self", NULL
5798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetName",kwnames
,&obj0
)) goto fail
;
5799 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5800 if (SWIG_arg_fail(1)) SWIG_fail
;
5802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5803 result
= (arg1
)->GetName();
5805 wxPyEndAllowThreads(__tstate
);
5806 if (PyErr_Occurred()) SWIG_fail
;
5810 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
5812 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
5821 static PyObject
*_wrap_XmlResourceHandler_GetBool(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5822 PyObject
*resultobj
;
5823 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5824 wxString
*arg2
= 0 ;
5825 bool arg3
= (bool) false ;
5827 bool temp2
= false ;
5828 PyObject
* obj0
= 0 ;
5829 PyObject
* obj1
= 0 ;
5830 PyObject
* obj2
= 0 ;
5832 (char *) "self",(char *) "param",(char *) "defaultv", NULL
5835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5836 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5837 if (SWIG_arg_fail(1)) SWIG_fail
;
5839 arg2
= wxString_in_helper(obj1
);
5840 if (arg2
== NULL
) SWIG_fail
;
5845 arg3
= (bool)(SWIG_As_bool(obj2
));
5846 if (SWIG_arg_fail(3)) SWIG_fail
;
5850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5851 result
= (bool)(arg1
)->GetBool((wxString
const &)*arg2
,arg3
);
5853 wxPyEndAllowThreads(__tstate
);
5854 if (PyErr_Occurred()) SWIG_fail
;
5857 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
5873 static PyObject
*_wrap_XmlResourceHandler_GetLong(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5874 PyObject
*resultobj
;
5875 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5876 wxString
*arg2
= 0 ;
5877 long arg3
= (long) 0 ;
5879 bool temp2
= false ;
5880 PyObject
* obj0
= 0 ;
5881 PyObject
* obj1
= 0 ;
5882 PyObject
* obj2
= 0 ;
5884 (char *) "self",(char *) "param",(char *) "defaultv", NULL
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
5888 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5889 if (SWIG_arg_fail(1)) SWIG_fail
;
5891 arg2
= wxString_in_helper(obj1
);
5892 if (arg2
== NULL
) SWIG_fail
;
5897 arg3
= (long)(SWIG_As_long(obj2
));
5898 if (SWIG_arg_fail(3)) SWIG_fail
;
5902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5903 result
= (long)(arg1
)->GetLong((wxString
const &)*arg2
,arg3
);
5905 wxPyEndAllowThreads(__tstate
);
5906 if (PyErr_Occurred()) SWIG_fail
;
5909 resultobj
= SWIG_From_long((long)(result
));
5925 static PyObject
*_wrap_XmlResourceHandler_GetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5926 PyObject
*resultobj
;
5927 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5928 wxString
*arg2
= 0 ;
5930 bool temp2
= false ;
5931 PyObject
* obj0
= 0 ;
5932 PyObject
* obj1
= 0 ;
5934 (char *) "self",(char *) "param", NULL
5937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_GetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
5938 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5939 if (SWIG_arg_fail(1)) SWIG_fail
;
5941 arg2
= wxString_in_helper(obj1
);
5942 if (arg2
== NULL
) SWIG_fail
;
5946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5947 result
= (arg1
)->GetColour((wxString
const &)*arg2
);
5949 wxPyEndAllowThreads(__tstate
);
5950 if (PyErr_Occurred()) SWIG_fail
;
5953 wxColour
* resultptr
;
5954 resultptr
= new wxColour((wxColour
&)(result
));
5955 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
5971 static PyObject
*_wrap_XmlResourceHandler_GetSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
5972 PyObject
*resultobj
;
5973 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
5974 wxString
const &arg2_defvalue
= wxPySizeString
;
5975 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
5977 bool temp2
= false ;
5978 PyObject
* obj0
= 0 ;
5979 PyObject
* obj1
= 0 ;
5981 (char *) "self",(char *) "param", NULL
5984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetSize",kwnames
,&obj0
,&obj1
)) goto fail
;
5985 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
5986 if (SWIG_arg_fail(1)) SWIG_fail
;
5989 arg2
= wxString_in_helper(obj1
);
5990 if (arg2
== NULL
) SWIG_fail
;
5995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5996 result
= (arg1
)->GetSize((wxString
const &)*arg2
);
5998 wxPyEndAllowThreads(__tstate
);
5999 if (PyErr_Occurred()) SWIG_fail
;
6003 resultptr
= new wxSize((wxSize
&)(result
));
6004 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
6020 static PyObject
*_wrap_XmlResourceHandler_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6021 PyObject
*resultobj
;
6022 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6023 wxString
const &arg2_defvalue
= wxPyPosString
;
6024 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6026 bool temp2
= false ;
6027 PyObject
* obj0
= 0 ;
6028 PyObject
* obj1
= 0 ;
6030 (char *) "self",(char *) "param", NULL
6033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
6034 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6035 if (SWIG_arg_fail(1)) SWIG_fail
;
6038 arg2
= wxString_in_helper(obj1
);
6039 if (arg2
== NULL
) SWIG_fail
;
6044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6045 result
= (arg1
)->GetPosition((wxString
const &)*arg2
);
6047 wxPyEndAllowThreads(__tstate
);
6048 if (PyErr_Occurred()) SWIG_fail
;
6051 wxPoint
* resultptr
;
6052 resultptr
= new wxPoint((wxPoint
&)(result
));
6053 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
6069 static PyObject
*_wrap_XmlResourceHandler_GetDimension(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6070 PyObject
*resultobj
;
6071 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6072 wxString
*arg2
= 0 ;
6073 int arg3
= (int) 0 ;
6075 bool temp2
= false ;
6076 PyObject
* obj0
= 0 ;
6077 PyObject
* obj1
= 0 ;
6078 PyObject
* obj2
= 0 ;
6080 (char *) "self",(char *) "param",(char *) "defaultv", NULL
6083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6084 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6085 if (SWIG_arg_fail(1)) SWIG_fail
;
6087 arg2
= wxString_in_helper(obj1
);
6088 if (arg2
== NULL
) SWIG_fail
;
6093 arg3
= (int)(SWIG_As_int(obj2
));
6094 if (SWIG_arg_fail(3)) SWIG_fail
;
6098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6099 result
= (int)(arg1
)->GetDimension((wxString
const &)*arg2
,arg3
);
6101 wxPyEndAllowThreads(__tstate
);
6102 if (PyErr_Occurred()) SWIG_fail
;
6105 resultobj
= SWIG_From_int((int)(result
));
6121 static PyObject
*_wrap_XmlResourceHandler_GetBitmap(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6122 PyObject
*resultobj
;
6123 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6124 wxString
const &arg2_defvalue
= wxPyBitmapString
;
6125 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6126 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
6127 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
6128 wxSize arg4
= (wxSize
) wxDefaultSize
;
6130 bool temp2
= false ;
6131 PyObject
* obj0
= 0 ;
6132 PyObject
* obj1
= 0 ;
6133 PyObject
* obj2
= 0 ;
6134 PyObject
* obj3
= 0 ;
6136 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6140 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6141 if (SWIG_arg_fail(1)) SWIG_fail
;
6144 arg2
= wxString_in_helper(obj1
);
6145 if (arg2
== NULL
) SWIG_fail
;
6151 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxArtClient
, SWIG_POINTER_EXCEPTION
| 0);
6152 if (SWIG_arg_fail(3)) SWIG_fail
;
6154 SWIG_null_ref("wxArtClient");
6156 if (SWIG_arg_fail(3)) SWIG_fail
;
6162 SWIG_Python_ConvertPtr(obj3
, (void **)&argp
, SWIGTYPE_p_wxSize
, SWIG_POINTER_EXCEPTION
);
6163 if (SWIG_arg_fail(4)) SWIG_fail
;
6165 SWIG_null_ref("wxSize");
6167 if (SWIG_arg_fail(4)) SWIG_fail
;
6172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6173 result
= (arg1
)->GetBitmap((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
6175 wxPyEndAllowThreads(__tstate
);
6176 if (PyErr_Occurred()) SWIG_fail
;
6179 wxBitmap
* resultptr
;
6180 resultptr
= new wxBitmap((wxBitmap
&)(result
));
6181 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
6197 static PyObject
*_wrap_XmlResourceHandler_GetIcon(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6198 PyObject
*resultobj
;
6199 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6200 wxString
const &arg2_defvalue
= wxPyIconString
;
6201 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6202 wxArtClient
const &arg3_defvalue
= wxART_OTHER
;
6203 wxArtClient
*arg3
= (wxArtClient
*) &arg3_defvalue
;
6204 wxSize arg4
= (wxSize
) wxDefaultSize
;
6206 bool temp2
= false ;
6207 PyObject
* obj0
= 0 ;
6208 PyObject
* obj1
= 0 ;
6209 PyObject
* obj2
= 0 ;
6210 PyObject
* obj3
= 0 ;
6212 (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL
6215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6216 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6217 if (SWIG_arg_fail(1)) SWIG_fail
;
6220 arg2
= wxString_in_helper(obj1
);
6221 if (arg2
== NULL
) SWIG_fail
;
6227 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxArtClient
, SWIG_POINTER_EXCEPTION
| 0);
6228 if (SWIG_arg_fail(3)) SWIG_fail
;
6230 SWIG_null_ref("wxArtClient");
6232 if (SWIG_arg_fail(3)) SWIG_fail
;
6238 SWIG_Python_ConvertPtr(obj3
, (void **)&argp
, SWIGTYPE_p_wxSize
, SWIG_POINTER_EXCEPTION
);
6239 if (SWIG_arg_fail(4)) SWIG_fail
;
6241 SWIG_null_ref("wxSize");
6243 if (SWIG_arg_fail(4)) SWIG_fail
;
6248 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6249 result
= (arg1
)->GetIcon((wxString
const &)*arg2
,(wxArtClient
const &)*arg3
,arg4
);
6251 wxPyEndAllowThreads(__tstate
);
6252 if (PyErr_Occurred()) SWIG_fail
;
6256 resultptr
= new wxIcon((wxIcon
&)(result
));
6257 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxIcon
, 1);
6273 static PyObject
*_wrap_XmlResourceHandler_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6274 PyObject
*resultobj
;
6275 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6276 wxString
const &arg2_defvalue
= wxPyFontString
;
6277 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
6279 bool temp2
= false ;
6280 PyObject
* obj0
= 0 ;
6281 PyObject
* obj1
= 0 ;
6283 (char *) "self",(char *) "param", NULL
6286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:XmlResourceHandler_GetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
6287 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6288 if (SWIG_arg_fail(1)) SWIG_fail
;
6291 arg2
= wxString_in_helper(obj1
);
6292 if (arg2
== NULL
) SWIG_fail
;
6297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6298 result
= (arg1
)->GetFont((wxString
const &)*arg2
);
6300 wxPyEndAllowThreads(__tstate
);
6301 if (PyErr_Occurred()) SWIG_fail
;
6305 resultptr
= new wxFont((wxFont
&)(result
));
6306 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
6322 static PyObject
*_wrap_XmlResourceHandler_SetupWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6323 PyObject
*resultobj
;
6324 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6325 wxWindow
*arg2
= (wxWindow
*) 0 ;
6326 PyObject
* obj0
= 0 ;
6327 PyObject
* obj1
= 0 ;
6329 (char *) "self",(char *) "wnd", NULL
6332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
6333 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6334 if (SWIG_arg_fail(1)) SWIG_fail
;
6335 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
6336 if (SWIG_arg_fail(2)) SWIG_fail
;
6338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6339 (arg1
)->SetupWindow(arg2
);
6341 wxPyEndAllowThreads(__tstate
);
6342 if (PyErr_Occurred()) SWIG_fail
;
6344 Py_INCREF(Py_None
); resultobj
= Py_None
;
6351 static PyObject
*_wrap_XmlResourceHandler_CreateChildren(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6352 PyObject
*resultobj
;
6353 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6354 wxObject
*arg2
= (wxObject
*) 0 ;
6355 bool arg3
= (bool) false ;
6356 PyObject
* obj0
= 0 ;
6357 PyObject
* obj1
= 0 ;
6358 PyObject
* obj2
= 0 ;
6360 (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL
6363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6364 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6365 if (SWIG_arg_fail(1)) SWIG_fail
;
6366 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6367 if (SWIG_arg_fail(2)) SWIG_fail
;
6370 arg3
= (bool)(SWIG_As_bool(obj2
));
6371 if (SWIG_arg_fail(3)) SWIG_fail
;
6375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6376 (arg1
)->CreateChildren(arg2
,arg3
);
6378 wxPyEndAllowThreads(__tstate
);
6379 if (PyErr_Occurred()) SWIG_fail
;
6381 Py_INCREF(Py_None
); resultobj
= Py_None
;
6388 static PyObject
*_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6389 PyObject
*resultobj
;
6390 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6391 wxObject
*arg2
= (wxObject
*) 0 ;
6392 wxXmlNode
*arg3
= (wxXmlNode
*) NULL
;
6393 PyObject
* obj0
= 0 ;
6394 PyObject
* obj1
= 0 ;
6395 PyObject
* obj2
= 0 ;
6397 (char *) "self",(char *) "parent",(char *) "rootnode", NULL
6400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
6401 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6402 if (SWIG_arg_fail(1)) SWIG_fail
;
6403 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6404 if (SWIG_arg_fail(2)) SWIG_fail
;
6406 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
6407 if (SWIG_arg_fail(3)) SWIG_fail
;
6410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6411 (arg1
)->CreateChildrenPrivately(arg2
,arg3
);
6413 wxPyEndAllowThreads(__tstate
);
6414 if (PyErr_Occurred()) SWIG_fail
;
6416 Py_INCREF(Py_None
); resultobj
= Py_None
;
6423 static PyObject
*_wrap_XmlResourceHandler_CreateResFromNode(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6424 PyObject
*resultobj
;
6425 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6426 wxXmlNode
*arg2
= (wxXmlNode
*) 0 ;
6427 wxObject
*arg3
= (wxObject
*) 0 ;
6428 wxObject
*arg4
= (wxObject
*) NULL
;
6430 PyObject
* obj0
= 0 ;
6431 PyObject
* obj1
= 0 ;
6432 PyObject
* obj2
= 0 ;
6433 PyObject
* obj3
= 0 ;
6435 (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL
6438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
6439 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6440 if (SWIG_arg_fail(1)) SWIG_fail
;
6441 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxXmlNode
, SWIG_POINTER_EXCEPTION
| 0);
6442 if (SWIG_arg_fail(2)) SWIG_fail
;
6443 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6444 if (SWIG_arg_fail(3)) SWIG_fail
;
6446 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxObject
, SWIG_POINTER_EXCEPTION
| 0);
6447 if (SWIG_arg_fail(4)) SWIG_fail
;
6450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6451 result
= (wxObject
*)(arg1
)->CreateResFromNode(arg2
,arg3
,arg4
);
6453 wxPyEndAllowThreads(__tstate
);
6454 if (PyErr_Occurred()) SWIG_fail
;
6457 resultobj
= wxPyMake_wxObject(result
, 0);
6465 static PyObject
*_wrap_XmlResourceHandler_GetCurFileSystem(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
6466 PyObject
*resultobj
;
6467 wxPyXmlResourceHandler
*arg1
= (wxPyXmlResourceHandler
*) 0 ;
6468 wxFileSystem
*result
;
6469 PyObject
* obj0
= 0 ;
6471 (char *) "self", NULL
6474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames
,&obj0
)) goto fail
;
6475 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPyXmlResourceHandler
, SWIG_POINTER_EXCEPTION
| 0);
6476 if (SWIG_arg_fail(1)) SWIG_fail
;
6478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6480 wxFileSystem
&_result_ref
= (arg1
)->GetCurFileSystem();
6481 result
= (wxFileSystem
*) &_result_ref
;
6484 wxPyEndAllowThreads(__tstate
);
6485 if (PyErr_Occurred()) SWIG_fail
;
6487 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFileSystem
, 0);
6494 static PyObject
* XmlResourceHandler_swigregister(PyObject
*, PyObject
*args
) {
6496 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
6497 SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler
, obj
);
6499 return Py_BuildValue((char *)"");
6501 static PyMethodDef SwigMethods
[] = {
6502 { (char *)"new_XmlResource", (PyCFunction
) _wrap_new_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6503 { (char *)"new_EmptyXmlResource", (PyCFunction
) _wrap_new_EmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6504 { (char *)"delete_XmlResource", (PyCFunction
) _wrap_delete_XmlResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6505 { (char *)"XmlResource_Load", (PyCFunction
) _wrap_XmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6506 { (char *)"XmlResource_LoadFromString", (PyCFunction
) _wrap_XmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6507 { (char *)"XmlResource_InitAllHandlers", (PyCFunction
) _wrap_XmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6508 { (char *)"XmlResource_AddHandler", (PyCFunction
) _wrap_XmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6509 { (char *)"XmlResource_InsertHandler", (PyCFunction
) _wrap_XmlResource_InsertHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6510 { (char *)"XmlResource_ClearHandlers", (PyCFunction
) _wrap_XmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6511 { (char *)"XmlResource_AddSubclassFactory", (PyCFunction
) _wrap_XmlResource_AddSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6512 { (char *)"XmlResource_LoadMenu", (PyCFunction
) _wrap_XmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6513 { (char *)"XmlResource_LoadMenuBar", (PyCFunction
) _wrap_XmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6514 { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_XmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6515 { (char *)"XmlResource_LoadToolBar", (PyCFunction
) _wrap_XmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6516 { (char *)"XmlResource_LoadDialog", (PyCFunction
) _wrap_XmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6517 { (char *)"XmlResource_LoadOnDialog", (PyCFunction
) _wrap_XmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6518 { (char *)"XmlResource_LoadPanel", (PyCFunction
) _wrap_XmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6519 { (char *)"XmlResource_LoadOnPanel", (PyCFunction
) _wrap_XmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6520 { (char *)"XmlResource_LoadFrame", (PyCFunction
) _wrap_XmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6521 { (char *)"XmlResource_LoadOnFrame", (PyCFunction
) _wrap_XmlResource_LoadOnFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6522 { (char *)"XmlResource_LoadObject", (PyCFunction
) _wrap_XmlResource_LoadObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6523 { (char *)"XmlResource_LoadOnObject", (PyCFunction
) _wrap_XmlResource_LoadOnObject
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6524 { (char *)"XmlResource_LoadBitmap", (PyCFunction
) _wrap_XmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6525 { (char *)"XmlResource_LoadIcon", (PyCFunction
) _wrap_XmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6526 { (char *)"XmlResource_AttachUnknownControl", (PyCFunction
) _wrap_XmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6527 { (char *)"XmlResource_GetXRCID", (PyCFunction
) _wrap_XmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6528 { (char *)"XmlResource_GetVersion", (PyCFunction
) _wrap_XmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6529 { (char *)"XmlResource_CompareVersion", (PyCFunction
) _wrap_XmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6530 { (char *)"XmlResource_Get", (PyCFunction
) _wrap_XmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6531 { (char *)"XmlResource_Set", (PyCFunction
) _wrap_XmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6532 { (char *)"XmlResource_GetFlags", (PyCFunction
) _wrap_XmlResource_GetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6533 { (char *)"XmlResource_SetFlags", (PyCFunction
) _wrap_XmlResource_SetFlags
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6534 { (char *)"XmlResource_swigregister", XmlResource_swigregister
, METH_VARARGS
, NULL
},
6535 { (char *)"new_XmlSubclassFactory", (PyCFunction
) _wrap_new_XmlSubclassFactory
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6536 { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction
) _wrap_XmlSubclassFactory__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6537 { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister
, METH_VARARGS
, NULL
},
6538 { (char *)"new_XmlProperty", (PyCFunction
) _wrap_new_XmlProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6539 { (char *)"XmlProperty_GetName", (PyCFunction
) _wrap_XmlProperty_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6540 { (char *)"XmlProperty_GetValue", (PyCFunction
) _wrap_XmlProperty_GetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6541 { (char *)"XmlProperty_GetNext", (PyCFunction
) _wrap_XmlProperty_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6542 { (char *)"XmlProperty_SetName", (PyCFunction
) _wrap_XmlProperty_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6543 { (char *)"XmlProperty_SetValue", (PyCFunction
) _wrap_XmlProperty_SetValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6544 { (char *)"XmlProperty_SetNext", (PyCFunction
) _wrap_XmlProperty_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6545 { (char *)"XmlProperty_swigregister", XmlProperty_swigregister
, METH_VARARGS
, NULL
},
6546 { (char *)"new_XmlNode", (PyCFunction
) _wrap_new_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6547 { (char *)"delete_XmlNode", (PyCFunction
) _wrap_delete_XmlNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6548 { (char *)"new_XmlNodeEasy", (PyCFunction
) _wrap_new_XmlNodeEasy
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6549 { (char *)"XmlNode_AddChild", (PyCFunction
) _wrap_XmlNode_AddChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6550 { (char *)"XmlNode_InsertChild", (PyCFunction
) _wrap_XmlNode_InsertChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6551 { (char *)"XmlNode_RemoveChild", (PyCFunction
) _wrap_XmlNode_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6552 { (char *)"XmlNode_AddProperty", (PyCFunction
) _wrap_XmlNode_AddProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6553 { (char *)"XmlNode_AddPropertyName", (PyCFunction
) _wrap_XmlNode_AddPropertyName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6554 { (char *)"XmlNode_DeleteProperty", (PyCFunction
) _wrap_XmlNode_DeleteProperty
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6555 { (char *)"XmlNode_GetType", (PyCFunction
) _wrap_XmlNode_GetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6556 { (char *)"XmlNode_GetName", (PyCFunction
) _wrap_XmlNode_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6557 { (char *)"XmlNode_GetContent", (PyCFunction
) _wrap_XmlNode_GetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6558 { (char *)"XmlNode_GetParent", (PyCFunction
) _wrap_XmlNode_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6559 { (char *)"XmlNode_GetNext", (PyCFunction
) _wrap_XmlNode_GetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6560 { (char *)"XmlNode_GetChildren", (PyCFunction
) _wrap_XmlNode_GetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6561 { (char *)"XmlNode_GetProperties", (PyCFunction
) _wrap_XmlNode_GetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6562 { (char *)"XmlNode_GetPropVal", (PyCFunction
) _wrap_XmlNode_GetPropVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6563 { (char *)"XmlNode_HasProp", (PyCFunction
) _wrap_XmlNode_HasProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6564 { (char *)"XmlNode_SetType", (PyCFunction
) _wrap_XmlNode_SetType
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6565 { (char *)"XmlNode_SetName", (PyCFunction
) _wrap_XmlNode_SetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6566 { (char *)"XmlNode_SetContent", (PyCFunction
) _wrap_XmlNode_SetContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6567 { (char *)"XmlNode_SetParent", (PyCFunction
) _wrap_XmlNode_SetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6568 { (char *)"XmlNode_SetNext", (PyCFunction
) _wrap_XmlNode_SetNext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6569 { (char *)"XmlNode_SetChildren", (PyCFunction
) _wrap_XmlNode_SetChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6570 { (char *)"XmlNode_SetProperties", (PyCFunction
) _wrap_XmlNode_SetProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6571 { (char *)"XmlNode_swigregister", XmlNode_swigregister
, METH_VARARGS
, NULL
},
6572 { (char *)"new_XmlDocument", (PyCFunction
) _wrap_new_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6573 { (char *)"new_XmlDocumentFromStream", (PyCFunction
) _wrap_new_XmlDocumentFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6574 { (char *)"new_EmptyXmlDocument", (PyCFunction
) _wrap_new_EmptyXmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6575 { (char *)"delete_XmlDocument", (PyCFunction
) _wrap_delete_XmlDocument
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6576 { (char *)"XmlDocument_Load", (PyCFunction
) _wrap_XmlDocument_Load
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6577 { (char *)"XmlDocument_LoadFromStream", (PyCFunction
) _wrap_XmlDocument_LoadFromStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6578 { (char *)"XmlDocument_Save", (PyCFunction
) _wrap_XmlDocument_Save
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6579 { (char *)"XmlDocument_SaveToStream", (PyCFunction
) _wrap_XmlDocument_SaveToStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6580 { (char *)"XmlDocument_IsOk", (PyCFunction
) _wrap_XmlDocument_IsOk
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6581 { (char *)"XmlDocument_GetRoot", (PyCFunction
) _wrap_XmlDocument_GetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6582 { (char *)"XmlDocument_GetVersion", (PyCFunction
) _wrap_XmlDocument_GetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6583 { (char *)"XmlDocument_GetFileEncoding", (PyCFunction
) _wrap_XmlDocument_GetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6584 { (char *)"XmlDocument_SetRoot", (PyCFunction
) _wrap_XmlDocument_SetRoot
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6585 { (char *)"XmlDocument_SetVersion", (PyCFunction
) _wrap_XmlDocument_SetVersion
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6586 { (char *)"XmlDocument_SetFileEncoding", (PyCFunction
) _wrap_XmlDocument_SetFileEncoding
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6587 { (char *)"XmlDocument_swigregister", XmlDocument_swigregister
, METH_VARARGS
, NULL
},
6588 { (char *)"new_XmlResourceHandler", (PyCFunction
) _wrap_new_XmlResourceHandler
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6589 { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction
) _wrap_XmlResourceHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6590 { (char *)"XmlResourceHandler_CreateResource", (PyCFunction
) _wrap_XmlResourceHandler_CreateResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6591 { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction
) _wrap_XmlResourceHandler_SetParentResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6592 { (char *)"XmlResourceHandler_GetResource", (PyCFunction
) _wrap_XmlResourceHandler_GetResource
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6593 { (char *)"XmlResourceHandler_GetNode", (PyCFunction
) _wrap_XmlResourceHandler_GetNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6594 { (char *)"XmlResourceHandler_GetClass", (PyCFunction
) _wrap_XmlResourceHandler_GetClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6595 { (char *)"XmlResourceHandler_GetParent", (PyCFunction
) _wrap_XmlResourceHandler_GetParent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6596 { (char *)"XmlResourceHandler_GetInstance", (PyCFunction
) _wrap_XmlResourceHandler_GetInstance
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6597 { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction
) _wrap_XmlResourceHandler_GetParentAsWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6598 { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction
) _wrap_XmlResourceHandler_IsOfClass
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6599 { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction
) _wrap_XmlResourceHandler_GetNodeContent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6600 { (char *)"XmlResourceHandler_HasParam", (PyCFunction
) _wrap_XmlResourceHandler_HasParam
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6601 { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction
) _wrap_XmlResourceHandler_GetParamNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6602 { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction
) _wrap_XmlResourceHandler_GetParamValue
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6603 { (char *)"XmlResourceHandler_AddStyle", (PyCFunction
) _wrap_XmlResourceHandler_AddStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6604 { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction
) _wrap_XmlResourceHandler_AddWindowStyles
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6605 { (char *)"XmlResourceHandler_GetStyle", (PyCFunction
) _wrap_XmlResourceHandler_GetStyle
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6606 { (char *)"XmlResourceHandler_GetText", (PyCFunction
) _wrap_XmlResourceHandler_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6607 { (char *)"XmlResourceHandler_GetID", (PyCFunction
) _wrap_XmlResourceHandler_GetID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6608 { (char *)"XmlResourceHandler_GetName", (PyCFunction
) _wrap_XmlResourceHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6609 { (char *)"XmlResourceHandler_GetBool", (PyCFunction
) _wrap_XmlResourceHandler_GetBool
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6610 { (char *)"XmlResourceHandler_GetLong", (PyCFunction
) _wrap_XmlResourceHandler_GetLong
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6611 { (char *)"XmlResourceHandler_GetColour", (PyCFunction
) _wrap_XmlResourceHandler_GetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6612 { (char *)"XmlResourceHandler_GetSize", (PyCFunction
) _wrap_XmlResourceHandler_GetSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6613 { (char *)"XmlResourceHandler_GetPosition", (PyCFunction
) _wrap_XmlResourceHandler_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6614 { (char *)"XmlResourceHandler_GetDimension", (PyCFunction
) _wrap_XmlResourceHandler_GetDimension
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6615 { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction
) _wrap_XmlResourceHandler_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6616 { (char *)"XmlResourceHandler_GetIcon", (PyCFunction
) _wrap_XmlResourceHandler_GetIcon
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6617 { (char *)"XmlResourceHandler_GetFont", (PyCFunction
) _wrap_XmlResourceHandler_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6618 { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction
) _wrap_XmlResourceHandler_SetupWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6619 { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildren
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6620 { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction
) _wrap_XmlResourceHandler_CreateChildrenPrivately
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6621 { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction
) _wrap_XmlResourceHandler_CreateResFromNode
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6622 { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction
) _wrap_XmlResourceHandler_GetCurFileSystem
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
6623 { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister
, METH_VARARGS
, NULL
},
6624 { NULL
, NULL
, 0, NULL
}
6628 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6630 static void *_p_wxControlTo_p_wxWindow(void *x
) {
6631 return (void *)((wxWindow
*) ((wxControl
*) x
));
6633 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
6634 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
6636 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
6637 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
6639 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
6640 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
6642 static void *_p_wxXmlDocumentTo_p_wxObject(void *x
) {
6643 return (void *)((wxObject
*) ((wxXmlDocument
*) x
));
6645 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
6646 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
6648 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
6649 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
6651 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
6652 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
6654 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
6655 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
6657 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
6658 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
6660 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
6661 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
6663 static void *_p_wxSizerTo_p_wxObject(void *x
) {
6664 return (void *)((wxObject
*) ((wxSizer
*) x
));
6666 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
6667 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
6669 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
6670 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
6672 static void *_p_wxEventTo_p_wxObject(void *x
) {
6673 return (void *)((wxObject
*) ((wxEvent
*) x
));
6675 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
6676 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
6678 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
6679 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
6681 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
6682 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
6684 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
6685 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
6687 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
6688 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
6690 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
6691 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
6693 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
6694 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
6696 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
6697 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
6699 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
6700 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
6702 static void *_p_wxControlTo_p_wxObject(void *x
) {
6703 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
6705 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
6706 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
6708 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
6709 return (void *)((wxObject
*) ((wxFSFile
*) x
));
6711 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
6712 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
6714 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
6715 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
6717 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
6718 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
6720 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
6721 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
6723 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
6724 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
6726 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
6727 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
6729 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
6730 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
6732 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
6733 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
6735 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
6736 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
6738 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
6739 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
6741 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
6742 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
6744 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
6745 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
6747 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
6748 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
6750 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
6751 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
6753 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
6754 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
6756 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
6757 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
6759 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
6760 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
6762 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
6763 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
6765 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
6766 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
6768 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
6769 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
6771 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
6772 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
6774 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
6775 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
6777 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
6778 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
6780 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
6781 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
6783 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
6784 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
6786 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
6787 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
6789 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
6790 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
6792 static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x
) {
6793 return (void *)((wxObject
*) ((wxPyXmlResourceHandler
*) x
));
6795 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
6796 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
6798 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
6799 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
6801 static void *_p_wxImageTo_p_wxObject(void *x
) {
6802 return (void *)((wxObject
*) ((wxImage
*) x
));
6804 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
6805 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
6807 static void *_p_wxXmlResourceTo_p_wxObject(void *x
) {
6808 return (void *)((wxObject
*) ((wxXmlResource
*) x
));
6810 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
6811 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
6813 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
6814 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
6816 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
6817 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
6819 static void *_p_wxWindowTo_p_wxObject(void *x
) {
6820 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
6822 static void *_p_wxMenuTo_p_wxObject(void *x
) {
6823 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
6825 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
6826 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
6828 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
6829 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
6831 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
6832 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
6834 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
6835 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
6837 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
6838 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
6840 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
6841 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
6843 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
6844 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
6846 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
6847 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
6849 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
6850 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
6852 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
6853 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
6855 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
6856 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
6858 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
6859 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
6861 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
6862 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
6864 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
6865 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
6867 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
6868 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
6870 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
6871 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
6873 static swig_type_info _swigt__p_wxFrame
[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6874 static swig_type_info _swigt__p_wxIcon
[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6875 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXmlDocument", _p_wxXmlDocumentTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6876 static swig_type_info _swigt__p_unsigned_char
[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6877 static swig_type_info _swigt__p_wxDialog
[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6878 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6879 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6880 static swig_type_info _swigt__p_wxArtClient
[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0, 0, 0, 0},{"_p_wxArtClient", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6881 static swig_type_info _swigt__p_unsigned_long
[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6882 static swig_type_info _swigt__p_wxPyXmlSubclassFactory
[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0, 0, 0, 0},{"_p_wxPyXmlSubclassFactory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6883 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6884 static swig_type_info _swigt__p_form_ops_t
[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6885 static swig_type_info _swigt__p_unsigned_int
[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6886 static swig_type_info _swigt__unsigned_int
[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6887 static swig_type_info _swigt__p_wxDuplexMode
[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6888 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6889 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6890 static swig_type_info _swigt__p_wxXmlNode
[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0, 0, 0, 0},{"_p_wxXmlNode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6891 static swig_type_info _swigt__p_wxInputStream
[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6892 static swig_type_info _swigt__p_wxOutputStream
[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6893 static swig_type_info _swigt__p_wxPyXmlResourceHandler
[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6894 static swig_type_info _swigt__p_wxFileSystem
[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6895 static swig_type_info _swigt__std__ptrdiff_t
[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6896 static swig_type_info _swigt__ptrdiff_t
[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6897 static swig_type_info _swigt__p_wxXmlProperty
[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0, 0, 0, 0},{"_p_wxXmlProperty", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6898 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6899 static swig_type_info _swigt__p_wxXmlResource
[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0, 0, 0, 0},{"_p_wxXmlResource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6900 static swig_type_info _swigt__p_wxPanel
[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6901 static swig_type_info _swigt__p_wxXmlDocument
[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0, 0, 0, 0},{"_p_wxXmlDocument", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6902 static swig_type_info _swigt__p_wxPaperSize
[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6903 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6904 static swig_type_info _swigt__p_int
[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
6906 static swig_type_info
*swig_types_initial
[] = {
6910 _swigt__p_unsigned_char
,
6914 _swigt__p_wxArtClient
,
6915 _swigt__p_unsigned_long
,
6916 _swigt__p_wxPyXmlSubclassFactory
,
6918 _swigt__p_form_ops_t
,
6919 _swigt__p_unsigned_int
,
6920 _swigt__unsigned_int
,
6921 _swigt__p_wxDuplexMode
,
6924 _swigt__p_wxXmlNode
,
6925 _swigt__p_wxInputStream
,
6926 _swigt__p_wxOutputStream
,
6927 _swigt__p_wxPyXmlResourceHandler
,
6928 _swigt__p_wxFileSystem
,
6929 _swigt__std__ptrdiff_t
,
6931 _swigt__p_wxXmlProperty
,
6933 _swigt__p_wxXmlResource
,
6935 _swigt__p_wxXmlDocument
,
6936 _swigt__p_wxPaperSize
,
6943 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
6945 static swig_const_info swig_const_table
[] = {
6946 {0, 0, 0, 0.0, 0, 0}};
6957 /* Python-specific SWIG API */
6958 #define SWIG_newvarlink() SWIG_Python_newvarlink()
6959 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
6960 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
6962 /* -----------------------------------------------------------------------------
6963 * global variable support code.
6964 * ----------------------------------------------------------------------------- */
6966 typedef struct swig_globalvar
{
6967 char *name
; /* Name of global variable */
6968 PyObject
*(*get_attr
)(); /* Return the current value */
6969 int (*set_attr
)(PyObject
*); /* Set the value */
6970 struct swig_globalvar
*next
;
6973 typedef struct swig_varlinkobject
{
6975 swig_globalvar
*vars
;
6976 } swig_varlinkobject
;
6979 swig_varlink_repr(swig_varlinkobject
*v
) {
6981 return PyString_FromString("<Swig global variables>");
6985 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
6986 swig_globalvar
*var
;
6988 fprintf(fp
,"Swig global variables { ");
6989 for (var
= v
->vars
; var
; var
=var
->next
) {
6990 fprintf(fp
,"%s", var
->name
);
6991 if (var
->next
) fprintf(fp
,", ");
6998 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
6999 swig_globalvar
*var
= v
->vars
;
7001 if (strcmp(var
->name
,n
) == 0) {
7002 return (*var
->get_attr
)();
7006 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
7011 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
7012 swig_globalvar
*var
= v
->vars
;
7014 if (strcmp(var
->name
,n
) == 0) {
7015 return (*var
->set_attr
)(p
);
7019 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
7023 static PyTypeObject varlinktype
= {
7024 PyObject_HEAD_INIT(0)
7025 0, /* Number of items in variable part (ob_size) */
7026 (char *)"swigvarlink", /* Type name (tp_name) */
7027 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
7028 0, /* Itemsize (tp_itemsize) */
7029 0, /* Deallocator (tp_dealloc) */
7030 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
7031 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
7032 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
7034 (reprfunc
) swig_varlink_repr
, /* tp_repr */
7035 0, /* tp_as_number */
7036 0, /* tp_as_sequence */
7037 0, /* tp_as_mapping */
7041 0, /* tp_getattro */
7042 0, /* tp_setattro */
7043 0, /* tp_as_buffer */
7046 #if PY_VERSION_HEX >= 0x02000000
7047 0, /* tp_traverse */
7050 #if PY_VERSION_HEX >= 0x02010000
7051 0, /* tp_richcompare */
7052 0, /* tp_weaklistoffset */
7054 #if PY_VERSION_HEX >= 0x02020000
7055 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
7057 #if PY_VERSION_HEX >= 0x02030000
7061 0,0,0,0 /* tp_alloc -> tp_next */
7065 /* Create a variable linking object for use later */
7067 SWIG_Python_newvarlink(void) {
7068 swig_varlinkobject
*result
= 0;
7069 result
= PyMem_NEW(swig_varlinkobject
,1);
7070 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
7071 result
->ob_type
= &varlinktype
;
7073 result
->ob_refcnt
= 0;
7074 Py_XINCREF((PyObject
*) result
);
7075 return ((PyObject
*) result
);
7079 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
7080 swig_varlinkobject
*v
;
7082 v
= (swig_varlinkobject
*) p
;
7083 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
7084 gv
->name
= (char *) malloc(strlen(name
)+1);
7085 strcpy(gv
->name
,name
);
7086 gv
->get_attr
= get_attr
;
7087 gv
->set_attr
= set_attr
;
7092 /* -----------------------------------------------------------------------------
7093 * constants/methods manipulation
7094 * ----------------------------------------------------------------------------- */
7096 /* Install Constants */
7098 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
7101 for (i
= 0; constants
[i
].type
; i
++) {
7102 switch(constants
[i
].type
) {
7104 obj
= PyInt_FromLong(constants
[i
].lvalue
);
7107 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
7109 case SWIG_PY_STRING
:
7110 if (constants
[i
].pvalue
) {
7111 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
7117 case SWIG_PY_POINTER
:
7118 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
7120 case SWIG_PY_BINARY
:
7121 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
7128 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
7134 /* -----------------------------------------------------------------------------*/
7135 /* Fix SwigMethods to carry the callback ptrs when needed */
7136 /* -----------------------------------------------------------------------------*/
7139 SWIG_Python_FixMethods(PyMethodDef
*methods
,
7140 swig_const_info
*const_table
,
7141 swig_type_info
**types
,
7142 swig_type_info
**types_initial
) {
7144 for (i
= 0; methods
[i
].ml_name
; ++i
) {
7145 char *c
= methods
[i
].ml_doc
;
7146 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
7148 swig_const_info
*ci
= 0;
7149 char *name
= c
+ 10;
7150 for (j
= 0; const_table
[j
].type
; j
++) {
7151 if (strncmp(const_table
[j
].name
, name
,
7152 strlen(const_table
[j
].name
)) == 0) {
7153 ci
= &(const_table
[j
]);
7158 size_t shift
= (ci
->ptype
) - types
;
7159 swig_type_info
*ty
= types_initial
[shift
];
7160 size_t ldoc
= (c
- methods
[i
].ml_doc
);
7161 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
7162 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
7164 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
7165 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
7167 strncpy(buff
, "swig_ptr: ", 10);
7169 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
7170 methods
[i
].ml_doc
= ndoc
;
7176 /* -----------------------------------------------------------------------------*
7177 * Initialize type list
7178 * -----------------------------------------------------------------------------*/
7180 #if PY_MAJOR_VERSION < 2
7181 /* PyModule_AddObject function was introduced in Python 2.0. The following function
7182 is copied out of Python/modsupport.c in python version 2.3.4 */
7184 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
7187 if (!PyModule_Check(m
)) {
7188 PyErr_SetString(PyExc_TypeError
,
7189 "PyModule_AddObject() needs module as first arg");
7193 PyErr_SetString(PyExc_TypeError
,
7194 "PyModule_AddObject() needs non-NULL value");
7198 dict
= PyModule_GetDict(m
);
7200 /* Internal error -- modules must have a dict! */
7201 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
7202 PyModule_GetName(m
));
7205 if (PyDict_SetItemString(dict
, name
, o
))
7212 static swig_type_info
**
7213 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
7214 static PyMethodDef swig_empty_runtime_method_table
[] = {
7220 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
7221 swig_empty_runtime_method_table
);
7222 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
7223 if (pointer
&& module) {
7224 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
7226 return type_list_handle
;
7229 static swig_type_info
**
7230 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
7231 swig_type_info
**type_pointer
;
7233 /* first check if module already created */
7234 type_pointer
= SWIG_Python_GetTypeListHandle();
7236 return type_pointer
;
7238 /* create a new module and variable */
7239 return SWIG_Python_SetTypeListHandle(type_list_handle
);
7247 /* -----------------------------------------------------------------------------*
7248 * Partial Init method
7249 * -----------------------------------------------------------------------------*/
7251 #ifdef SWIG_LINK_RUNTIME
7255 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
7261 SWIGEXPORT(void) SWIG_init(void) {
7262 static PyObject
*SWIG_globals
= 0;
7263 static int typeinit
= 0;
7266 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
7268 /* Fix SwigMethods to carry the callback ptrs when needed */
7269 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
7271 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
7272 d
= PyModule_GetDict(m
);
7275 #ifdef SWIG_LINK_RUNTIME
7276 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
7278 # ifndef SWIG_STATIC_RUNTIME
7279 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
7282 for (i
= 0; swig_types_initial
[i
]; i
++) {
7283 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
7287 SWIG_InstallConstants(d
,swig_const_table
);
7289 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
7290 SWIG_addvarlink(SWIG_globals
,(char*)"UTF8String",_wrap_UTF8String_get
, _wrap_UTF8String_set
);
7291 SWIG_addvarlink(SWIG_globals
,(char*)"StyleString",_wrap_StyleString_get
, _wrap_StyleString_set
);
7292 SWIG_addvarlink(SWIG_globals
,(char*)"SizeString",_wrap_SizeString_get
, _wrap_SizeString_set
);
7293 SWIG_addvarlink(SWIG_globals
,(char*)"PosString",_wrap_PosString_get
, _wrap_PosString_set
);
7294 SWIG_addvarlink(SWIG_globals
,(char*)"BitmapString",_wrap_BitmapString_get
, _wrap_BitmapString_set
);
7295 SWIG_addvarlink(SWIG_globals
,(char*)"IconString",_wrap_IconString_get
, _wrap_IconString_set
);
7296 SWIG_addvarlink(SWIG_globals
,(char*)"FontString",_wrap_FontString_get
, _wrap_FontString_set
);
7298 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_From_int((int)(WX_XMLRES_CURRENT_VERSION_MAJOR
)));
7301 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_From_int((int)(WX_XMLRES_CURRENT_VERSION_MINOR
)));
7304 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_From_int((int)(WX_XMLRES_CURRENT_VERSION_RELEASE
)));
7307 PyDict_SetItemString(d
,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_From_int((int)(WX_XMLRES_CURRENT_VERSION_REVISION
)));
7310 PyDict_SetItemString(d
,"XRC_USE_LOCALE", SWIG_From_int((int)(wxXRC_USE_LOCALE
)));
7313 PyDict_SetItemString(d
,"XRC_NO_SUBCLASSING", SWIG_From_int((int)(wxXRC_NO_SUBCLASSING
)));
7316 PyDict_SetItemString(d
,"XRC_NO_RELOADING", SWIG_From_int((int)(wxXRC_NO_RELOADING
)));
7319 PyDict_SetItemString(d
,"XML_ELEMENT_NODE", SWIG_From_int((int)(wxXML_ELEMENT_NODE
)));
7322 PyDict_SetItemString(d
,"XML_ATTRIBUTE_NODE", SWIG_From_int((int)(wxXML_ATTRIBUTE_NODE
)));
7325 PyDict_SetItemString(d
,"XML_TEXT_NODE", SWIG_From_int((int)(wxXML_TEXT_NODE
)));
7328 PyDict_SetItemString(d
,"XML_CDATA_SECTION_NODE", SWIG_From_int((int)(wxXML_CDATA_SECTION_NODE
)));
7331 PyDict_SetItemString(d
,"XML_ENTITY_REF_NODE", SWIG_From_int((int)(wxXML_ENTITY_REF_NODE
)));
7334 PyDict_SetItemString(d
,"XML_ENTITY_NODE", SWIG_From_int((int)(wxXML_ENTITY_NODE
)));
7337 PyDict_SetItemString(d
,"XML_PI_NODE", SWIG_From_int((int)(wxXML_PI_NODE
)));
7340 PyDict_SetItemString(d
,"XML_COMMENT_NODE", SWIG_From_int((int)(wxXML_COMMENT_NODE
)));
7343 PyDict_SetItemString(d
,"XML_DOCUMENT_NODE", SWIG_From_int((int)(wxXML_DOCUMENT_NODE
)));
7346 PyDict_SetItemString(d
,"XML_DOCUMENT_TYPE_NODE", SWIG_From_int((int)(wxXML_DOCUMENT_TYPE_NODE
)));
7349 PyDict_SetItemString(d
,"XML_DOCUMENT_FRAG_NODE", SWIG_From_int((int)(wxXML_DOCUMENT_FRAG_NODE
)));
7352 PyDict_SetItemString(d
,"XML_NOTATION_NODE", SWIG_From_int((int)(wxXML_NOTATION_NODE
)));
7355 PyDict_SetItemString(d
,"XML_HTML_DOCUMENT_NODE", SWIG_From_int((int)(wxXML_HTML_DOCUMENT_NODE
)));
7359 wxXmlInitResourceModule();
7360 wxXmlResource::Get()->InitAllHandlers();