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",
1045 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1047 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1051 SWIGRUNTIMEINLINE
void
1052 SWIG_Python_NullRef(const char *type
)
1055 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1057 PyErr_Format(PyExc_TypeError
, "null reference was received");
1062 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1064 if (PyErr_Occurred()) {
1066 PyObject
*value
= 0;
1067 PyObject
*traceback
= 0;
1068 PyErr_Fetch(&type
, &value
, &traceback
);
1070 PyObject
*old_str
= PyObject_Str(value
);
1074 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1076 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1087 SWIG_Python_ArgFail(int argnum
)
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1092 sprintf(mesg
, "argument number %d:", argnum
);
1093 return SWIG_Python_AddErrMesg(mesg
, 1);
1100 /* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
1104 /* Convert a pointer value */
1106 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1109 static PyObject
*SWIG_this
= 0;
1111 PyObject
*pyobj
= 0;
1115 if (obj
== Py_None
) {
1120 #ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj
))) {
1123 SWIG_this
= PyString_FromString("this");
1125 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1127 if (!obj
) goto type_error
;
1128 if (!PySwigObject_Check(obj
)) {
1133 vptr
= PySwigObject_AsVoidPtr(obj
);
1134 c
= (const char *) PySwigObject_GetDesc(obj
);
1135 if (newref
) { Py_DECREF(obj
); }
1138 if (!(PyString_Check(obj
))) {
1140 SWIG_this
= PyString_FromString("this");
1142 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1144 if (!obj
) goto type_error
;
1145 if (!PyString_Check(obj
)) {
1150 c
= PyString_AS_STRING(obj
);
1151 /* Pointer values must start with leading underscore */
1152 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1153 if (newref
) { Py_DECREF(obj
); }
1154 if (!c
) goto type_error
;
1160 tc
= SWIG_TypeCheck(c
,ty
);
1161 if (!tc
) goto type_error
;
1162 *ptr
= SWIG_TypeCast(tc
,vptr
);
1167 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1168 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1174 if (pyobj
&& !obj
) {
1176 if (PyCFunction_Check(obj
)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1179 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1181 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1182 if (!c
) goto type_error
;
1187 if (flags
& SWIG_POINTER_EXCEPTION
) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1191 SWIG_Python_TypeError("C/C++ pointer", obj
);
1197 /* Convert a pointer value, signal an exception on a type mismatch */
1199 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1201 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1203 if (flags
& SWIG_POINTER_EXCEPTION
) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1205 SWIG_Python_ArgFail(argnum
);
1211 /* Convert a packed value value */
1213 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1217 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1220 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1221 c
= PyString_AS_STRING(obj
);
1222 /* Pointer values must start with leading underscore */
1223 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1225 if (!c
) goto type_error
;
1227 tc
= SWIG_TypeCheck(c
,ty
);
1228 if (!tc
) goto type_error
;
1234 if (flags
& SWIG_POINTER_EXCEPTION
) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1238 SWIG_Python_TypeError("C/C++ packed data", obj
);
1244 /* Create a new array object */
1245 SWIGRUNTIME PyObject
*
1246 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1252 #ifdef SWIG_COBJECT_TYPES
1253 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1256 char result
[SWIG_BUFFER_SIZE
];
1257 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1258 PyString_FromString(result
) : 0;
1261 if (!robj
|| (robj
== Py_None
)) return robj
;
1262 if (type
->clientdata
) {
1264 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1266 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1270 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1278 SWIGRUNTIME PyObject
*
1279 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1285 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1289 char result
[SWIG_BUFFER_SIZE
];
1290 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1291 PyString_FromString(result
) : 0;
1297 /* -----------------------------------------------------------------------------*
1299 * -----------------------------------------------------------------------------*/
1301 #ifdef SWIG_LINK_RUNTIME
1302 void *SWIG_ReturnGlobalTypeList(void *);
1305 SWIGRUNTIME swig_type_info
**
1306 SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer
= (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer
) {
1310 #ifdef SWIG_LINK_RUNTIME
1311 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1313 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1315 if (PyErr_Occurred()) {
1317 type_pointer
= (void *)0;
1321 return (swig_type_info
**) type_pointer
;
1325 Search for a swig_type_info structure
1327 SWIGRUNTIMEINLINE swig_type_info
*
1328 SWIG_Python_GetTypeList() {
1329 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1330 return tlh
? *tlh
: (swig_type_info
*)0;
1333 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1340 /* -------- TYPES TABLE (BEGIN) -------- */
1342 #define SWIGTYPE_p_wxObject swig_types[0]
1343 #define SWIGTYPE_p_unsigned_char swig_types[1]
1344 #define SWIGTYPE_p_wxFuncX swig_types[2]
1345 #define SWIGTYPE_p_wxActiveXWindow swig_types[3]
1346 #define SWIGTYPE_p_wxWindow swig_types[4]
1347 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1348 #define SWIGTYPE_p_unsigned_long swig_types[6]
1349 #define SWIGTYPE_p_unsigned_int swig_types[7]
1350 #define SWIGTYPE_unsigned_int swig_types[8]
1351 #define SWIGTYPE_p_form_ops_t swig_types[9]
1352 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1353 #define SWIGTYPE_p_char swig_types[11]
1354 #define SWIGTYPE_p_unsigned_short swig_types[12]
1355 #define SWIGTYPE_p_wxInputStream swig_types[13]
1356 #define SWIGTYPE_p_wxEvtHandler swig_types[14]
1357 #define SWIGTYPE_p_wxPropX swig_types[15]
1358 #define SWIGTYPE_p_wxParamXArray swig_types[16]
1359 #define SWIGTYPE_p_wxFuncXArray swig_types[17]
1360 #define SWIGTYPE_p_wxActiveXEvent swig_types[18]
1361 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1362 #define SWIGTYPE_ptrdiff_t swig_types[20]
1363 #define SWIGTYPE_p_long swig_types[21]
1364 #define SWIGTYPE_p_wxParamX swig_types[22]
1365 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[23]
1366 #define SWIGTYPE_p_wxEvent swig_types[24]
1367 #define SWIGTYPE_p_wxPaperSize swig_types[25]
1368 #define SWIGTYPE_p_CLSID swig_types[26]
1369 #define SWIGTYPE_p_wxPropXArray swig_types[27]
1370 #define SWIGTYPE_p_int swig_types[28]
1371 static swig_type_info
*swig_types
[30];
1373 /* -------- TYPES TABLE (END) -------- */
1376 /*-----------------------------------------------
1377 @(target):= _activex.so
1378 ------------------------------------------------*/
1379 #define SWIG_init init_activex
1381 #define SWIG_name "_activex"
1383 #include "wx/wxPython/wxPython.h"
1384 #include "wx/wxPython/pyclasses.h"
1385 #include "wx/wxPython/pyistream.h"
1387 #include "wxactivex.h"
1389 static const wxString
wxPyPanelNameStr(wxPanelNameStr
);
1391 // Since SWIG doesn't support nested classes, we need to fool it a bit
1392 // and make them look like global classes. These defines make the C++ code
1393 // know what we are doing.
1394 #define wxParamX wxActiveX::ParamX
1395 #define wxFuncX wxActiveX::FuncX
1396 #define wxPropX wxActiveX::PropX
1397 #define wxParamXArray wxActiveX::ParamXArray
1398 #define wxFuncXArray wxActiveX::FuncXArray
1399 #define wxPropXArray wxActiveX::PropXArray
1402 // Some conversion helpers
1403 static wxVariant
_PyObj2Variant(PyObject
* value
);
1404 static bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
);
1405 static PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
=false);
1406 static wxString
_VARTYPEname(VARTYPE vt
);
1408 // Check if an exception has been raised (blocking threads)
1409 inline bool wxPyErr_Occurred()
1412 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1413 rval
= PyErr_Occurred() != NULL
;
1414 wxPyEndBlockThreads(blocked
);
1419 static CLSID
*new_CLSID(wxString
const &id
){
1421 CLSID
* self
= new CLSID
;
1422 memset(self
, 0, sizeof(CLSID
));
1424 if (id
[0] == _T('{')) {
1425 // Looks like a classID string
1428 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1434 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1437 if (result
!= NOERROR
) {
1438 wxPyErr_SetString(PyExc_ValueError
, "Not a recognized classID or progID");
1444 static void delete_CLSID(CLSID
*self
){ delete self
; }
1445 static wxString
CLSID_GetCLSIDString(CLSID
*self
){
1448 if (StringFromCLSID(*self
, &s
) == S_OK
) {
1453 str
= _T("Error!"); // TODO: raise exception?
1457 static wxString
CLSID_GetProgIDString(CLSID
*self
){
1460 if (ProgIDFromCLSID(*self
, &s
) == S_OK
) {
1465 str
= _T("Error!"); // TODO: raise exception?
1470 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1471 #define SWIG_From_unsigned_SS_short PyInt_FromLong
1474 static wxString
wxParamX_vt_type_get(wxParamX
*self
){ return _VARTYPEname(self
->vt
); }
1476 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1477 #define SWIG_From_long PyInt_FromLong
1480 static bool wxParamXArray___nonzero__(wxParamXArray
*self
){ return self
->size() > 0; }
1481 static int wxParamXArray___len__(wxParamXArray
*self
){ return self
->size(); }
1483 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1484 #define SWIG_From_int PyInt_FromLong
1492 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1495 if (value
< min_value
) {
1497 PyErr_Format(PyExc_OverflowError
,
1498 "value %ld is less than '%s' minimum %ld",
1499 value
, errmsg
, min_value
);
1502 } else if (value
> max_value
) {
1504 PyErr_Format(PyExc_OverflowError
,
1505 "value %ld is greater than '%s' maximum %ld",
1506 value
, errmsg
, max_value
);
1515 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1517 if (PyNumber_Check(obj
)) {
1518 if (val
) *val
= PyInt_AsLong(obj
);
1522 SWIG_type_error("number", obj
);
1528 #if INT_MAX != LONG_MAX
1530 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1532 const char* errmsg
= val
? "int" : (char*)0;
1534 if (SWIG_AsVal_long(obj
, &v
)) {
1535 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1536 if (val
) *val
= (int)(v
);
1545 SWIG_type_error(errmsg
, obj
);
1551 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1553 return SWIG_AsVal_long(obj
,(long*)val
);
1559 SWIG_As_int(PyObject
* obj
)
1562 if (!SWIG_AsVal_int(obj
, &v
)) {
1564 this is needed to make valgrind/purify happier.
1566 memset((void*)&v
, 0, sizeof(int));
1573 SWIG_Check_int(PyObject
* obj
)
1575 return SWIG_AsVal_int(obj
, (int*)0);
1578 static wxParamX
const &wxParamXArray___getitem__(wxParamXArray
*self
,int idx
){
1579 if ( idx
>= 0 && idx
< self
->size() )
1580 return (*self
)[idx
];
1582 static wxParamX BadVal
;
1583 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1587 static bool wxFuncXArray___nonzero__(wxFuncXArray
*self
){ return self
->size() > 0; }
1588 static int wxFuncXArray___len__(wxFuncXArray
*self
){ return self
->size(); }
1589 static wxFuncX
const &wxFuncXArray___getitem__(wxFuncXArray
*self
,int idx
){
1590 if ( idx
>= 0 && idx
< self
->size() )
1591 return (*self
)[idx
];
1593 static wxFuncX BadVal
;
1594 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1598 static bool wxPropXArray___nonzero__(wxPropXArray
*self
){ return self
->size() > 0; }
1599 static int wxPropXArray___len__(wxPropXArray
*self
){ return self
->size(); }
1600 static wxPropX
const &wxPropXArray___getitem__(wxPropXArray
*self
,int idx
){
1601 if ( idx
>= 0 && idx
< self
->size() )
1602 return (*self
)[idx
];
1604 static wxPropX BadVal
;
1605 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1610 // C++ version of a Python-aware wxActiveX
1611 class wxActiveXWindow
: public wxActiveX
1616 DECLARE_ABSTRACT_CLASS(wxActiveXWindow
);
1619 wxActiveXWindow( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
1620 const wxPoint
& pos
= wxDefaultPosition
,
1621 const wxSize
& size
= wxDefaultSize
,
1623 const wxString
& name
= wxPyPanelNameStr
)
1624 : wxActiveX(parent
, clsId
, id
, pos
, size
, style
, name
)
1629 const CLSID
& GetCLSID() const { return m_CLSID
; }
1632 // Renamed versions of some base class methods that delegate
1633 // to the base where appropriate, and raise Python exceptions
1635 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
1636 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
1637 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
1639 const wxFuncX
& GetAXEventDesc(int idx
) const
1641 static wxFuncX BadVal
;
1642 if (idx
< 0 || idx
>= GetAXEventCount()) {
1643 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1646 return m_events
[idx
];
1648 const wxFuncX
& GetAXMethodDesc(int idx
) const
1650 static wxFuncX BadVal
;
1651 if (idx
< 0 || idx
>= GetAXMethodCount()) {
1652 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1655 return m_methods
[idx
];
1657 const wxPropX
& GetAXPropDesc(int idx
) const
1659 static wxPropX BadVal
;
1660 if (idx
< 0 || idx
>= GetAXPropCount()) {
1661 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1664 return m_props
[idx
];
1667 const wxFuncX
& GetAXMethodDesc(const wxString
& name
) const
1669 NameMap::const_iterator it
= m_methodNames
.find(name
);
1670 if (it
== m_methodNames
.end()) {
1672 msg
<< _T("method <") << name
<< _T("> not found");
1673 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1674 static wxFuncX BadVal
;
1677 return GetAXMethodDesc(it
->second
);
1679 const wxPropX
& GetAXPropDesc(const wxString
& name
) const
1681 NameMap::const_iterator it
= m_propNames
.find(name
);
1682 if (it
== m_propNames
.end()) {
1684 msg
<< _T("property <") << name
<< _T("> not found");
1685 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1686 static wxPropX BadVal
;
1689 return GetAXPropDesc(it
->second
);
1692 // Accessors for the internal vectors of events, methods and
1693 // proprties. Can be used as sequence like objects from
1695 const wxFuncXArray
& GetAXEvents() { return m_events
; }
1696 const wxFuncXArray
& GetAXMethods() { return m_methods
; }
1697 const wxPropXArray
& GetAXProperties() { return m_props
; }
1700 // Set a property from a Python object
1701 void SetAXProp(const wxString
& name
, PyObject
* value
)
1703 const wxPropX
& prop
= GetAXPropDesc(name
);
1704 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1705 if (! PyErr_Occurred() ) {
1706 if (! prop
.CanSet()) {
1708 msg
<< _T("property <") << name
<< _T("> is readonly");
1709 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1712 wxVariant wxV
= _PyObj2Variant(value
);
1713 if (PyErr_Occurred())
1715 VARIANT v
= {prop
.arg
.vt
};
1716 if (!VariantToMSWVariant(wxV
, v
) || PyErr_Occurred()) {
1718 msg
<< _T("Unable to convert value to expected type: (")
1719 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1721 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1724 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1725 SetProp(prop
.memid
, v
);
1727 wxPyEndAllowThreads(tstate
);
1731 wxPyEndBlockThreads(blocked
);
1735 // Get a property and convert it to a Python object
1736 PyObject
* GetAXProp(const wxString
& name
)
1738 PyObject
* rval
= NULL
;
1739 const wxPropX
& prop
= GetAXPropDesc(name
);
1740 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1741 if (! PyErr_Occurred() ) {
1742 if (! prop
.CanGet()) {
1744 msg
<< _T("property <") << name
<< _T("> is writeonly");
1745 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1748 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1749 VARIANT v
= GetPropAsVariant(prop
.memid
);
1750 wxPyEndAllowThreads(tstate
);
1752 if (!MSWVariantToVariant(v
, wv
) || PyErr_Occurred()) {
1754 msg
<< _T("Unable to convert value to expected type: (")
1755 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1757 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1760 rval
= _Variant2PyObj(wv
);
1765 wxPyEndBlockThreads(blocked
);
1770 // If both IsIn and isOut are false, assume it is actually an
1772 bool paramIsIn(const wxParamX
& p
)
1774 return p
.IsIn() || (!p
.IsIn() && !p
.IsOut());
1778 // Call a method of the ActiveX object
1779 PyObject
* _CallAXMethod(const wxString
& name
, PyObject
* args
)
1781 VARIANTARG
*vargs
= NULL
;
1783 PyObject
* rval
= NULL
;
1784 const wxFuncX
& func
= GetAXMethodDesc(name
);
1786 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1787 if (! PyErr_Occurred() ) {
1788 nargs
= func
.params
.size();
1790 vargs
= new VARIANTARG
[nargs
];
1793 // init type of vargs, in reverse order
1795 for (i
= 0; i
< nargs
; i
++)
1796 vargs
[nargs
- i
- 1].vt
= func
.params
[i
].vt
;
1798 // Map the args coming from Python to the input parameters in vargs
1801 while ( i
<nargs
&& pi
<PyTuple_Size(args
) ) {
1802 // Move to the next input param.
1803 if (! paramIsIn(func
.params
[i
])) {
1807 // convert the python object
1808 PyObject
* obj
= PyTuple_GetItem(args
, pi
);
1809 if (obj
== Py_None
) // special-case None?
1810 vargs
[nargs
- i
- 1].vt
= VT_EMPTY
;
1812 wxVariant wxV
= _PyObj2Variant(obj
);
1813 if (PyErr_Occurred())
1815 if (!VariantToMSWVariant(wxV
, vargs
[nargs
- i
- 1]) || PyErr_Occurred()) {
1817 msg
<< _T("Unable to convert value to expected type: (")
1818 << _VARTYPEname(vargs
[nargs
- i
- 1].vt
)
1819 << _T(") for parameter ") << i
;
1820 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1830 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1831 VARIANT rv
= CallMethod(func
.memid
, vargs
, nargs
);
1832 wxPyEndAllowThreads(tstate
);
1834 // Convert the return value and any out-params, ignoring
1835 // conversion errors for now
1837 MSWVariantToVariant(rv
, wv
);
1838 rval
= _Variant2PyObj(wv
, true);
1842 // make a list and put the rval in it if it is not None
1843 PyObject
* lst
= PyList_New(0);
1844 if (rval
!= Py_None
)
1845 PyList_Append(lst
, rval
);
1849 // find the out params and convert them
1850 for (int i
= 0; i
< nargs
; i
++) {
1851 VARIANTARG
& va
= vargs
[nargs
- i
- 1];
1852 const wxParamX
&px
= func
.params
[i
];
1854 MSWVariantToVariant(va
, wv
);
1855 PyObject
* obj
= _Variant2PyObj(wv
, true);
1856 PyList_Append(lst
, obj
);
1859 rval
= PyList_AsTuple(lst
);
1862 if (PyErr_Occurred())
1866 wxPyEndBlockThreads(blocked
);
1868 for (int i
= 0; i
< nargs
; i
++)
1869 VariantClear(&vargs
[i
]);
1876 IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow
, wxWindow
);
1879 SWIGINTERNSHORT
long
1880 SWIG_As_long(PyObject
* obj
)
1883 if (!SWIG_AsVal_long(obj
, &v
)) {
1885 this is needed to make valgrind/purify happier.
1887 memset((void*)&v
, 0, sizeof(long));
1894 SWIG_Check_long(PyObject
* obj
)
1896 return SWIG_AsVal_long(obj
, (long*)0);
1899 static void wxActiveXEvent__preCallInit(wxActiveXEvent
*self
,PyObject
*pyself
){
1900 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1901 PyObject
* pList
= PyList_New(0);
1902 PyObject_SetAttrString(pyself
, "paramList", pList
);
1904 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
1905 PyObject
* name
= PyString_FromString((char*)(const char*)self
->ParamName(i
).mb_str());
1906 PyObject
* val
= _Variant2PyObj((*self
)[i
], true);
1907 PyObject_SetAttr(pyself
, name
, val
);
1908 PyList_Append(pList
, name
);
1912 wxPyEndBlockThreads(blocked
);
1914 static void wxActiveXEvent__postCallCleanup(wxActiveXEvent
*self
,PyObject
*pyself
){
1915 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1916 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
1917 PyObject
* val
= PyObject_GetAttrString(
1918 pyself
, (char*)(const char*)self
->ParamName(i
).mb_str());
1919 _PyObj2Variant(val
, (*self
)[i
]);
1922 wxPyEndBlockThreads(blocked
);
1926 // Caller should already have the GIL!
1927 wxVariant
_PyObj2Variant(PyObject
* value
)
1931 if (value
== Py_None
)
1934 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
1935 else if (PyBool_Check(value
))
1936 rval
= (value
== Py_True
) ? true : false;
1939 else if (PyInt_Check(value
))
1940 rval
= PyInt_AS_LONG(value
);
1942 else if (PyFloat_Check(value
))
1943 rval
= PyFloat_AS_DOUBLE(value
);
1945 else if (PyString_Check(value
) || PyUnicode_Check(value
))
1946 rval
= Py2wxString(value
);
1948 // TODO: PyList of strings --> wxArrayString
1954 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _PyObj2Variant");
1961 // This one uses the type of the variant to try and force the conversion
1962 bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
)
1964 wxString type
= wv
.GetType();
1966 if ( type
== _T("long") || type
== _T("bool") || type
== _T("char") )
1967 wv
= PyInt_AsLong(value
);
1969 else if ( type
== _T("string") )
1970 wv
= Py2wxString(value
);
1972 else if ( type
== _T("double") )
1973 wv
= PyFloat_AsDouble(value
);
1976 // it's some other type that we dont' handle yet. Log it?
1982 // Caller should already have the GIL!
1983 PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
)
1985 PyObject
* rval
= NULL
;
1987 if (value
.IsNull()) {
1992 // should "char" be treated as an int or as a string?
1993 else if (value
.IsType(_T("char")) || value
.IsType(_T("long")))
1994 rval
= PyInt_FromLong(value
);
1996 else if (value
.IsType(_T("double")))
1997 rval
= PyFloat_FromDouble(value
);
1999 else if (value
.IsType(_T("bool"))) {
2000 rval
= (bool)value
? Py_True
: Py_False
;
2004 else if (value
.IsType(_T("string")))
2005 rval
= wx2PyString(value
);
2013 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _Variant2PyObj");
2020 wxString
_VARTYPEname(VARTYPE vt
)
2027 return _T("VT_VARIANT");
2047 // decimals are converted from doubles too
2049 return _T("double");
2055 return _T("wx.DateTime");
2058 return _T("string");
2061 return _T("VT_UNKNOWN");
2064 return _T("VT_DISPATCH");
2067 return _T("VT_EMPTY");
2070 return _T("VT_NULL");
2073 return _T("VT_VOID");
2077 msg
<< _T("unsupported type ") << vt
;
2084 // A class derived from out wxActiveXWindow for the IE WebBrowser
2085 // control that will serve as a base class for a Python
2086 // implementation. This is done so we can "eat our own dog food"
2087 // and use a class at least mostly generated by genaxmodule, but
2088 // also get some of the extra stuff like loading a document from
2089 // a string or a stream, getting text contents, etc. that
2090 // Lindsay's version gives us.
2093 #include <wx/mstream.h>
2095 #include <winerror.h>
2096 #include <exdispid.h>
2102 #include "IEHtmlStream.h"
2104 class wxIEHtmlWindowBase
: public wxActiveXWindow
{
2106 wxAutoOleInterface
<IWebBrowser2
> m_webBrowser
;
2108 DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase
);
2112 wxIEHtmlWindowBase ( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
2113 const wxPoint
& pos
= wxDefaultPosition
,
2114 const wxSize
& size
= wxDefaultSize
,
2116 const wxString
& name
= wxPyPanelNameStr
)
2117 : wxActiveXWindow(parent
, clsId
, id
, pos
, size
, style
, name
)
2121 // Get IWebBrowser2 Interface
2122 hret
= m_webBrowser
.QueryInterface(IID_IWebBrowser2
, m_ActiveX
);
2123 wxASSERT(SUCCEEDED(hret
));
2125 // web browser setup
2126 m_webBrowser
->put_MenuBar(VARIANT_FALSE
);
2127 m_webBrowser
->put_AddressBar(VARIANT_FALSE
);
2128 m_webBrowser
->put_StatusBar(VARIANT_FALSE
);
2129 m_webBrowser
->put_ToolBar(VARIANT_FALSE
);
2131 m_webBrowser
->put_RegisterAsBrowser(VARIANT_TRUE
);
2132 m_webBrowser
->put_RegisterAsDropTarget(VARIANT_TRUE
);
2134 m_webBrowser
->Navigate( L
"about:blank", NULL
, NULL
, NULL
, NULL
);
2138 void SetCharset(const wxString
& charset
)
2143 IDispatch
*pDisp
= NULL
;
2144 hret
= m_webBrowser
->get_Document(&pDisp
);
2145 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2149 wxAutoOleInterface
<IHTMLDocument2
> doc(IID_IHTMLDocument2
, disp
);
2151 doc
->put_charset((BSTR
) (const wchar_t *) charset
.wc_str(wxConvUTF8
));
2152 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
2157 bool LoadString(const wxString
& html
)
2160 size_t len
= html
.length();
2161 len
*= sizeof(wxChar
);
2162 data
= (char *) malloc(len
);
2163 memcpy(data
, html
.c_str(), len
);
2164 return LoadStream(new wxOwnedMemInputStream(data
, len
));
2168 bool LoadStream(IStreamAdaptorBase
*pstrm
)
2170 // need to prepend this as poxy MSHTML will not recognise a HTML comment
2171 // as starting a html document and treats it as plain text
2172 // Does nayone know how to force it to html mode ?
2174 // TODO: What to do in this case???
2176 pstrm
->prepend
= _T("<html>");
2179 // strip leading whitespace as it can confuse MSHTML
2180 wxAutoOleInterface
<IStream
> strm(pstrm
);
2182 // Document Interface
2183 IDispatch
*pDisp
= NULL
;
2184 HRESULT hret
= m_webBrowser
->get_Document(&pDisp
);
2187 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2190 // get IPersistStreamInit
2191 wxAutoOleInterface
<IPersistStreamInit
>
2192 pPersistStreamInit(IID_IPersistStreamInit
, disp
);
2194 if (pPersistStreamInit
.Ok())
2196 HRESULT hr
= pPersistStreamInit
->InitNew();
2198 hr
= pPersistStreamInit
->Load(strm
);
2200 return SUCCEEDED(hr
);
2206 bool LoadStream(wxInputStream
*is
)
2208 // wrap reference around stream
2209 IwxStreamAdaptor
*pstrm
= new IwxStreamAdaptor(is
);
2212 return LoadStream(pstrm
);
2216 wxString
GetStringSelection(bool asHTML
)
2218 wxAutoOleInterface
<IHTMLTxtRange
> tr(wxieGetSelRange(m_oleObject
));
2220 return wxEmptyString
;
2223 HRESULT hr
= E_FAIL
;
2226 hr
= tr
->get_htmlText(&text
);
2228 hr
= tr
->get_text(&text
);
2230 return wxEmptyString
;
2233 SysFreeString(text
);
2238 wxString
GetText(bool asHTML
)
2240 if (! m_webBrowser
.Ok())
2241 return wxEmptyString
;
2243 // get document dispatch interface
2244 IDispatch
*iDisp
= NULL
;
2245 HRESULT hr
= m_webBrowser
->get_Document(&iDisp
);
2247 return wxEmptyString
;
2249 // Query for Document Interface
2250 wxAutoOleInterface
<IHTMLDocument2
> hd(IID_IHTMLDocument2
, iDisp
);
2254 return wxEmptyString
;
2257 IHTMLElement
*_body
= NULL
;
2258 hd
->get_body(&_body
);
2260 return wxEmptyString
;
2261 wxAutoOleInterface
<IHTMLElement
> body(_body
);
2268 hr
= body
->get_innerHTML(&text
);
2270 hr
= body
->get_innerText(&text
);
2272 return wxEmptyString
;
2275 SysFreeString(text
);
2281 // void wxIEHtmlWin::SetEditMode(bool seton)
2283 // m_bAmbientUserMode = ! seton;
2284 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
2287 // bool wxIEHtmlWin::GetEditMode()
2289 // return ! m_bAmbientUserMode;
2293 IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase
, wxActiveXWindow
);
2298 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
2300 if (obj
== Py_True
) {
2301 if (val
) *val
= true;
2304 if (obj
== Py_False
) {
2305 if (val
) *val
= false;
2309 if (SWIG_AsVal_int(obj
, &res
)) {
2310 if (val
) *val
= res
? true : false;
2316 SWIG_type_error("bool", obj
);
2322 SWIGINTERNSHORT
bool
2323 SWIG_As_bool(PyObject
* obj
)
2326 if (!SWIG_AsVal_bool(obj
, &v
)) {
2328 this is needed to make valgrind/purify happier.
2330 memset((void*)&v
, 0, sizeof(bool));
2337 SWIG_Check_bool(PyObject
* obj
)
2339 return SWIG_AsVal_bool(obj
, (bool*)0);
2345 static PyObject
*_wrap_new_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2346 PyObject
*resultobj
;
2347 wxString
*arg1
= 0 ;
2349 bool temp1
= false ;
2350 PyObject
* obj0
= 0 ;
2355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_CLSID",kwnames
,&obj0
)) goto fail
;
2357 arg1
= wxString_in_helper(obj0
);
2358 if (arg1
== NULL
) SWIG_fail
;
2362 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2363 result
= (CLSID
*)new_CLSID((wxString
const &)*arg1
);
2365 wxPyEndAllowThreads(__tstate
);
2366 if (PyErr_Occurred()) SWIG_fail
;
2368 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 1);
2383 static PyObject
*_wrap_delete_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2384 PyObject
*resultobj
;
2385 CLSID
*arg1
= (CLSID
*) 0 ;
2386 PyObject
* obj0
= 0 ;
2388 (char *) "self", NULL
2391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_CLSID",kwnames
,&obj0
)) goto fail
;
2392 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2393 if (SWIG_arg_fail(1)) SWIG_fail
;
2395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2398 wxPyEndAllowThreads(__tstate
);
2399 if (PyErr_Occurred()) SWIG_fail
;
2401 Py_INCREF(Py_None
); resultobj
= Py_None
;
2408 static PyObject
*_wrap_CLSID_GetCLSIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2409 PyObject
*resultobj
;
2410 CLSID
*arg1
= (CLSID
*) 0 ;
2412 PyObject
* obj0
= 0 ;
2414 (char *) "self", NULL
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetCLSIDString",kwnames
,&obj0
)) goto fail
;
2418 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2419 if (SWIG_arg_fail(1)) SWIG_fail
;
2421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2422 result
= CLSID_GetCLSIDString(arg1
);
2424 wxPyEndAllowThreads(__tstate
);
2425 if (PyErr_Occurred()) SWIG_fail
;
2429 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2431 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2440 static PyObject
*_wrap_CLSID_GetProgIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2441 PyObject
*resultobj
;
2442 CLSID
*arg1
= (CLSID
*) 0 ;
2444 PyObject
* obj0
= 0 ;
2446 (char *) "self", NULL
2449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetProgIDString",kwnames
,&obj0
)) goto fail
;
2450 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2451 if (SWIG_arg_fail(1)) SWIG_fail
;
2453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2454 result
= CLSID_GetProgIDString(arg1
);
2456 wxPyEndAllowThreads(__tstate
);
2457 if (PyErr_Occurred()) SWIG_fail
;
2461 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2463 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2472 static PyObject
* CLSID_swigregister(PyObject
*, PyObject
*args
) {
2474 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2475 SWIG_TypeClientData(SWIGTYPE_p_CLSID
, obj
);
2477 return Py_BuildValue((char *)"");
2479 static PyObject
*_wrap_ParamX_flags_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2480 PyObject
*resultobj
;
2481 wxParamX
*arg1
= (wxParamX
*) 0 ;
2483 PyObject
* obj0
= 0 ;
2485 (char *) "self", NULL
2488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_flags_get",kwnames
,&obj0
)) goto fail
;
2489 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2490 if (SWIG_arg_fail(1)) SWIG_fail
;
2491 result
= (USHORT
) ((arg1
)->flags
);
2494 resultobj
= SWIG_From_unsigned_SS_short((unsigned short)(result
));
2502 static PyObject
*_wrap_ParamX_isPtr_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2503 PyObject
*resultobj
;
2504 wxParamX
*arg1
= (wxParamX
*) 0 ;
2506 PyObject
* obj0
= 0 ;
2508 (char *) "self", NULL
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isPtr_get",kwnames
,&obj0
)) goto fail
;
2512 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2513 if (SWIG_arg_fail(1)) SWIG_fail
;
2514 result
= (bool) ((arg1
)->isPtr
);
2517 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2525 static PyObject
*_wrap_ParamX_isSafeArray_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2526 PyObject
*resultobj
;
2527 wxParamX
*arg1
= (wxParamX
*) 0 ;
2529 PyObject
* obj0
= 0 ;
2531 (char *) "self", NULL
2534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isSafeArray_get",kwnames
,&obj0
)) goto fail
;
2535 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2536 if (SWIG_arg_fail(1)) SWIG_fail
;
2537 result
= (bool) ((arg1
)->isSafeArray
);
2540 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2548 static PyObject
*_wrap_ParamX_isOptional_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2549 PyObject
*resultobj
;
2550 wxParamX
*arg1
= (wxParamX
*) 0 ;
2552 PyObject
* obj0
= 0 ;
2554 (char *) "self", NULL
2557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isOptional_get",kwnames
,&obj0
)) goto fail
;
2558 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2559 if (SWIG_arg_fail(1)) SWIG_fail
;
2560 result
= (bool) ((arg1
)->isOptional
);
2563 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2571 static PyObject
*_wrap_ParamX_vt_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2572 PyObject
*resultobj
;
2573 wxParamX
*arg1
= (wxParamX
*) 0 ;
2575 PyObject
* obj0
= 0 ;
2577 (char *) "self", NULL
2580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_get",kwnames
,&obj0
)) goto fail
;
2581 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2582 if (SWIG_arg_fail(1)) SWIG_fail
;
2583 result
= (VARTYPE
) ((arg1
)->vt
);
2586 resultobj
= SWIG_From_unsigned_SS_short((unsigned short)(result
));
2594 static PyObject
*_wrap_ParamX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2595 PyObject
*resultobj
;
2596 wxParamX
*arg1
= (wxParamX
*) 0 ;
2598 PyObject
* obj0
= 0 ;
2600 (char *) "self", NULL
2603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_name_get",kwnames
,&obj0
)) goto fail
;
2604 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2605 if (SWIG_arg_fail(1)) SWIG_fail
;
2606 result
= (wxString
*)& ((arg1
)->name
);
2610 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2612 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2621 static PyObject
*_wrap_ParamX_vt_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2622 PyObject
*resultobj
;
2623 wxParamX
*arg1
= (wxParamX
*) 0 ;
2625 PyObject
* obj0
= 0 ;
2627 (char *) "self", NULL
2630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_type_get",kwnames
,&obj0
)) goto fail
;
2631 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2632 if (SWIG_arg_fail(1)) SWIG_fail
;
2634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2635 result
= wxParamX_vt_type_get(arg1
);
2637 wxPyEndAllowThreads(__tstate
);
2638 if (PyErr_Occurred()) SWIG_fail
;
2642 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2644 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2653 static PyObject
*_wrap_ParamX_IsIn(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2654 PyObject
*resultobj
;
2655 wxParamX
*arg1
= (wxParamX
*) 0 ;
2657 PyObject
* obj0
= 0 ;
2659 (char *) "self", NULL
2662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsIn",kwnames
,&obj0
)) goto fail
;
2663 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2664 if (SWIG_arg_fail(1)) SWIG_fail
;
2666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2667 result
= (bool)((wxParamX
const *)arg1
)->IsIn();
2669 wxPyEndAllowThreads(__tstate
);
2670 if (PyErr_Occurred()) SWIG_fail
;
2673 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2681 static PyObject
*_wrap_ParamX_IsOut(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2682 PyObject
*resultobj
;
2683 wxParamX
*arg1
= (wxParamX
*) 0 ;
2685 PyObject
* obj0
= 0 ;
2687 (char *) "self", NULL
2690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsOut",kwnames
,&obj0
)) goto fail
;
2691 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2692 if (SWIG_arg_fail(1)) SWIG_fail
;
2694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2695 result
= (bool)((wxParamX
const *)arg1
)->IsOut();
2697 wxPyEndAllowThreads(__tstate
);
2698 if (PyErr_Occurred()) SWIG_fail
;
2701 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2709 static PyObject
*_wrap_ParamX_IsRetVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2710 PyObject
*resultobj
;
2711 wxParamX
*arg1
= (wxParamX
*) 0 ;
2713 PyObject
* obj0
= 0 ;
2715 (char *) "self", NULL
2718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsRetVal",kwnames
,&obj0
)) goto fail
;
2719 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2720 if (SWIG_arg_fail(1)) SWIG_fail
;
2722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2723 result
= (bool)((wxParamX
const *)arg1
)->IsRetVal();
2725 wxPyEndAllowThreads(__tstate
);
2726 if (PyErr_Occurred()) SWIG_fail
;
2729 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2737 static PyObject
* ParamX_swigregister(PyObject
*, PyObject
*args
) {
2739 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2740 SWIG_TypeClientData(SWIGTYPE_p_wxParamX
, obj
);
2742 return Py_BuildValue((char *)"");
2744 static PyObject
*_wrap_FuncX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2745 PyObject
*resultobj
;
2746 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2748 PyObject
* obj0
= 0 ;
2750 (char *) "self", NULL
2753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_name_get",kwnames
,&obj0
)) goto fail
;
2754 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2755 if (SWIG_arg_fail(1)) SWIG_fail
;
2756 result
= (wxString
*)& ((arg1
)->name
);
2760 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2762 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2771 static PyObject
*_wrap_FuncX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2772 PyObject
*resultobj
;
2773 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2775 PyObject
* obj0
= 0 ;
2777 (char *) "self", NULL
2780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_memid_get",kwnames
,&obj0
)) goto fail
;
2781 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2782 if (SWIG_arg_fail(1)) SWIG_fail
;
2783 result
= (MEMBERID
) ((arg1
)->memid
);
2786 resultobj
= SWIG_From_long((long)(result
));
2794 static PyObject
*_wrap_FuncX_hasOut_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2795 PyObject
*resultobj
;
2796 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2798 PyObject
* obj0
= 0 ;
2800 (char *) "self", NULL
2803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_hasOut_get",kwnames
,&obj0
)) goto fail
;
2804 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2805 if (SWIG_arg_fail(1)) SWIG_fail
;
2806 result
= (bool) ((arg1
)->hasOut
);
2809 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2817 static PyObject
*_wrap_FuncX_retType_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2818 PyObject
*resultobj
;
2819 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2821 PyObject
* obj0
= 0 ;
2823 (char *) "self", NULL
2826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_retType_get",kwnames
,&obj0
)) goto fail
;
2827 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2828 if (SWIG_arg_fail(1)) SWIG_fail
;
2829 result
= (wxParamX
*)& ((arg1
)->retType
);
2831 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2838 static PyObject
*_wrap_FuncX_params_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
*resultobj
;
2840 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2841 wxParamXArray
*result
;
2842 PyObject
* obj0
= 0 ;
2844 (char *) "self", NULL
2847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_params_get",kwnames
,&obj0
)) goto fail
;
2848 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2849 if (SWIG_arg_fail(1)) SWIG_fail
;
2850 result
= (wxParamXArray
*)& ((arg1
)->params
);
2852 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamXArray
, 0);
2859 static PyObject
* FuncX_swigregister(PyObject
*, PyObject
*args
) {
2861 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2862 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX
, obj
);
2864 return Py_BuildValue((char *)"");
2866 static PyObject
*_wrap_PropX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2867 PyObject
*resultobj
;
2868 wxPropX
*arg1
= (wxPropX
*) 0 ;
2870 PyObject
* obj0
= 0 ;
2872 (char *) "self", NULL
2875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_name_get",kwnames
,&obj0
)) goto fail
;
2876 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2877 if (SWIG_arg_fail(1)) SWIG_fail
;
2878 result
= (wxString
*)& ((arg1
)->name
);
2882 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2884 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2893 static PyObject
*_wrap_PropX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2894 PyObject
*resultobj
;
2895 wxPropX
*arg1
= (wxPropX
*) 0 ;
2897 PyObject
* obj0
= 0 ;
2899 (char *) "self", NULL
2902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_memid_get",kwnames
,&obj0
)) goto fail
;
2903 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2904 if (SWIG_arg_fail(1)) SWIG_fail
;
2905 result
= (MEMBERID
) ((arg1
)->memid
);
2908 resultobj
= SWIG_From_long((long)(result
));
2916 static PyObject
*_wrap_PropX_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2917 PyObject
*resultobj
;
2918 wxPropX
*arg1
= (wxPropX
*) 0 ;
2920 PyObject
* obj0
= 0 ;
2922 (char *) "self", NULL
2925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_type_get",kwnames
,&obj0
)) goto fail
;
2926 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2927 if (SWIG_arg_fail(1)) SWIG_fail
;
2928 result
= (wxParamX
*)& ((arg1
)->type
);
2930 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2937 static PyObject
*_wrap_PropX_arg_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2938 PyObject
*resultobj
;
2939 wxPropX
*arg1
= (wxPropX
*) 0 ;
2941 PyObject
* obj0
= 0 ;
2943 (char *) "self", NULL
2946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_arg_get",kwnames
,&obj0
)) goto fail
;
2947 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2948 if (SWIG_arg_fail(1)) SWIG_fail
;
2949 result
= (wxParamX
*)& ((arg1
)->arg
);
2951 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2958 static PyObject
*_wrap_PropX_putByRef_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2959 PyObject
*resultobj
;
2960 wxPropX
*arg1
= (wxPropX
*) 0 ;
2962 PyObject
* obj0
= 0 ;
2964 (char *) "self", NULL
2967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_putByRef_get",kwnames
,&obj0
)) goto fail
;
2968 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2969 if (SWIG_arg_fail(1)) SWIG_fail
;
2970 result
= (bool) ((arg1
)->putByRef
);
2973 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2981 static PyObject
*_wrap_PropX_CanGet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2982 PyObject
*resultobj
;
2983 wxPropX
*arg1
= (wxPropX
*) 0 ;
2985 PyObject
* obj0
= 0 ;
2987 (char *) "self", NULL
2990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanGet",kwnames
,&obj0
)) goto fail
;
2991 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2992 if (SWIG_arg_fail(1)) SWIG_fail
;
2994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2995 result
= (bool)((wxPropX
const *)arg1
)->CanGet();
2997 wxPyEndAllowThreads(__tstate
);
2998 if (PyErr_Occurred()) SWIG_fail
;
3001 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3009 static PyObject
*_wrap_PropX_CanSet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3010 PyObject
*resultobj
;
3011 wxPropX
*arg1
= (wxPropX
*) 0 ;
3013 PyObject
* obj0
= 0 ;
3015 (char *) "self", NULL
3018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanSet",kwnames
,&obj0
)) goto fail
;
3019 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3020 if (SWIG_arg_fail(1)) SWIG_fail
;
3022 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3023 result
= (bool)((wxPropX
const *)arg1
)->CanSet();
3025 wxPyEndAllowThreads(__tstate
);
3026 if (PyErr_Occurred()) SWIG_fail
;
3029 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3037 static PyObject
* PropX_swigregister(PyObject
*, PyObject
*args
) {
3039 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3040 SWIG_TypeClientData(SWIGTYPE_p_wxPropX
, obj
);
3042 return Py_BuildValue((char *)"");
3044 static PyObject
*_wrap_ParamXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3045 PyObject
*resultobj
;
3046 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3048 PyObject
* obj0
= 0 ;
3050 (char *) "self", NULL
3053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3054 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3055 if (SWIG_arg_fail(1)) SWIG_fail
;
3057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3058 result
= (bool)wxParamXArray___nonzero__(arg1
);
3060 wxPyEndAllowThreads(__tstate
);
3061 if (PyErr_Occurred()) SWIG_fail
;
3064 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3072 static PyObject
*_wrap_ParamXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3073 PyObject
*resultobj
;
3074 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3076 PyObject
* obj0
= 0 ;
3078 (char *) "self", NULL
3081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___len__",kwnames
,&obj0
)) goto fail
;
3082 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3083 if (SWIG_arg_fail(1)) SWIG_fail
;
3085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3086 result
= (int)wxParamXArray___len__(arg1
);
3088 wxPyEndAllowThreads(__tstate
);
3089 if (PyErr_Occurred()) SWIG_fail
;
3092 resultobj
= SWIG_From_int((int)(result
));
3100 static PyObject
*_wrap_ParamXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3101 PyObject
*resultobj
;
3102 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3105 PyObject
* obj0
= 0 ;
3106 PyObject
* obj1
= 0 ;
3108 (char *) "self",(char *) "idx", NULL
3111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ParamXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3112 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3113 if (SWIG_arg_fail(1)) SWIG_fail
;
3115 arg2
= (int)(SWIG_As_int(obj1
));
3116 if (SWIG_arg_fail(2)) SWIG_fail
;
3119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3121 wxParamX
const &_result_ref
= wxParamXArray___getitem__(arg1
,arg2
);
3122 result
= (wxParamX
*) &_result_ref
;
3125 wxPyEndAllowThreads(__tstate
);
3126 if (PyErr_Occurred()) SWIG_fail
;
3128 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3135 static PyObject
* ParamXArray_swigregister(PyObject
*, PyObject
*args
) {
3137 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3138 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray
, obj
);
3140 return Py_BuildValue((char *)"");
3142 static PyObject
*_wrap_FuncXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3143 PyObject
*resultobj
;
3144 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3146 PyObject
* obj0
= 0 ;
3148 (char *) "self", NULL
3151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3152 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3153 if (SWIG_arg_fail(1)) SWIG_fail
;
3155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3156 result
= (bool)wxFuncXArray___nonzero__(arg1
);
3158 wxPyEndAllowThreads(__tstate
);
3159 if (PyErr_Occurred()) SWIG_fail
;
3162 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3170 static PyObject
*_wrap_FuncXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3171 PyObject
*resultobj
;
3172 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3174 PyObject
* obj0
= 0 ;
3176 (char *) "self", NULL
3179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___len__",kwnames
,&obj0
)) goto fail
;
3180 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3181 if (SWIG_arg_fail(1)) SWIG_fail
;
3183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3184 result
= (int)wxFuncXArray___len__(arg1
);
3186 wxPyEndAllowThreads(__tstate
);
3187 if (PyErr_Occurred()) SWIG_fail
;
3190 resultobj
= SWIG_From_int((int)(result
));
3198 static PyObject
*_wrap_FuncXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3199 PyObject
*resultobj
;
3200 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3203 PyObject
* obj0
= 0 ;
3204 PyObject
* obj1
= 0 ;
3206 (char *) "self",(char *) "idx", NULL
3209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FuncXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3210 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3211 if (SWIG_arg_fail(1)) SWIG_fail
;
3213 arg2
= (int)(SWIG_As_int(obj1
));
3214 if (SWIG_arg_fail(2)) SWIG_fail
;
3217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3219 wxFuncX
const &_result_ref
= wxFuncXArray___getitem__(arg1
,arg2
);
3220 result
= (wxFuncX
*) &_result_ref
;
3223 wxPyEndAllowThreads(__tstate
);
3224 if (PyErr_Occurred()) SWIG_fail
;
3226 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3233 static PyObject
* FuncXArray_swigregister(PyObject
*, PyObject
*args
) {
3235 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3236 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray
, obj
);
3238 return Py_BuildValue((char *)"");
3240 static PyObject
*_wrap_PropXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3241 PyObject
*resultobj
;
3242 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3244 PyObject
* obj0
= 0 ;
3246 (char *) "self", NULL
3249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3250 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3251 if (SWIG_arg_fail(1)) SWIG_fail
;
3253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3254 result
= (bool)wxPropXArray___nonzero__(arg1
);
3256 wxPyEndAllowThreads(__tstate
);
3257 if (PyErr_Occurred()) SWIG_fail
;
3260 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3268 static PyObject
*_wrap_PropXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3269 PyObject
*resultobj
;
3270 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3272 PyObject
* obj0
= 0 ;
3274 (char *) "self", NULL
3277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___len__",kwnames
,&obj0
)) goto fail
;
3278 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3279 if (SWIG_arg_fail(1)) SWIG_fail
;
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 result
= (int)wxPropXArray___len__(arg1
);
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) SWIG_fail
;
3288 resultobj
= SWIG_From_int((int)(result
));
3296 static PyObject
*_wrap_PropXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3297 PyObject
*resultobj
;
3298 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3301 PyObject
* obj0
= 0 ;
3302 PyObject
* obj1
= 0 ;
3304 (char *) "self",(char *) "idx", NULL
3307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PropXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3308 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3309 if (SWIG_arg_fail(1)) SWIG_fail
;
3311 arg2
= (int)(SWIG_As_int(obj1
));
3312 if (SWIG_arg_fail(2)) SWIG_fail
;
3315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3317 wxPropX
const &_result_ref
= wxPropXArray___getitem__(arg1
,arg2
);
3318 result
= (wxPropX
*) &_result_ref
;
3321 wxPyEndAllowThreads(__tstate
);
3322 if (PyErr_Occurred()) SWIG_fail
;
3324 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3331 static PyObject
* PropXArray_swigregister(PyObject
*, PyObject
*args
) {
3333 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3334 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray
, obj
);
3336 return Py_BuildValue((char *)"");
3338 static PyObject
*_wrap_new_ActiveXWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3339 PyObject
*resultobj
;
3340 wxWindow
*arg1
= (wxWindow
*) 0 ;
3342 int arg3
= (int) -1 ;
3343 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3344 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3345 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3346 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3347 long arg6
= (long) 0 ;
3348 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
3349 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3350 wxActiveXWindow
*result
;
3353 bool temp7
= false ;
3354 PyObject
* obj0
= 0 ;
3355 PyObject
* obj1
= 0 ;
3356 PyObject
* obj2
= 0 ;
3357 PyObject
* obj3
= 0 ;
3358 PyObject
* obj4
= 0 ;
3359 PyObject
* obj5
= 0 ;
3360 PyObject
* obj6
= 0 ;
3362 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3366 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3367 if (SWIG_arg_fail(1)) SWIG_fail
;
3369 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
3370 if (SWIG_arg_fail(2)) SWIG_fail
;
3372 SWIG_null_ref("CLSID");
3374 if (SWIG_arg_fail(2)) SWIG_fail
;
3378 arg3
= (int)(SWIG_As_int(obj2
));
3379 if (SWIG_arg_fail(3)) SWIG_fail
;
3385 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3391 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3396 arg6
= (long)(SWIG_As_long(obj5
));
3397 if (SWIG_arg_fail(6)) SWIG_fail
;
3402 arg7
= wxString_in_helper(obj6
);
3403 if (arg7
== NULL
) SWIG_fail
;
3408 if (!wxPyCheckForApp()) SWIG_fail
;
3409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3410 result
= (wxActiveXWindow
*)new wxActiveXWindow(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3412 wxPyEndAllowThreads(__tstate
);
3413 if (PyErr_Occurred()) SWIG_fail
;
3415 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxActiveXWindow
, 1);
3430 static PyObject
*_wrap_ActiveXWindow_GetCLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3431 PyObject
*resultobj
;
3432 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3434 PyObject
* obj0
= 0 ;
3436 (char *) "self", NULL
3439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetCLSID",kwnames
,&obj0
)) goto fail
;
3440 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3441 if (SWIG_arg_fail(1)) SWIG_fail
;
3443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3445 CLSID
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetCLSID();
3446 result
= (CLSID
*) &_result_ref
;
3449 wxPyEndAllowThreads(__tstate
);
3450 if (PyErr_Occurred()) SWIG_fail
;
3452 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 0);
3459 static PyObject
*_wrap_ActiveXWindow_GetAXEventCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3460 PyObject
*resultobj
;
3461 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3463 PyObject
* obj0
= 0 ;
3465 (char *) "self", NULL
3468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames
,&obj0
)) goto fail
;
3469 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3470 if (SWIG_arg_fail(1)) SWIG_fail
;
3472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3473 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXEventCount();
3475 wxPyEndAllowThreads(__tstate
);
3476 if (PyErr_Occurred()) SWIG_fail
;
3479 resultobj
= SWIG_From_int((int)(result
));
3487 static PyObject
*_wrap_ActiveXWindow_GetAXEventDesc(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
*resultobj
;
3489 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3492 PyObject
* obj0
= 0 ;
3493 PyObject
* obj1
= 0 ;
3495 (char *) "self",(char *) "idx", NULL
3498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames
,&obj0
,&obj1
)) goto fail
;
3499 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3500 if (SWIG_arg_fail(1)) SWIG_fail
;
3502 arg2
= (int)(SWIG_As_int(obj1
));
3503 if (SWIG_arg_fail(2)) SWIG_fail
;
3506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3508 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXEventDesc(arg2
);
3509 result
= (wxFuncX
*) &_result_ref
;
3512 wxPyEndAllowThreads(__tstate
);
3513 if (PyErr_Occurred()) SWIG_fail
;
3515 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3522 static PyObject
*_wrap_ActiveXWindow_GetAXPropCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3523 PyObject
*resultobj
;
3524 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3526 PyObject
* obj0
= 0 ;
3528 (char *) "self", NULL
3531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames
,&obj0
)) goto fail
;
3532 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3533 if (SWIG_arg_fail(1)) SWIG_fail
;
3535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3536 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXPropCount();
3538 wxPyEndAllowThreads(__tstate
);
3539 if (PyErr_Occurred()) SWIG_fail
;
3542 resultobj
= SWIG_From_int((int)(result
));
3550 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3551 PyObject
*resultobj
;
3552 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3555 PyObject
* obj0
= 0 ;
3556 PyObject
* obj1
= 0 ;
3558 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3559 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3560 if (SWIG_arg_fail(1)) SWIG_fail
;
3562 arg2
= (int)(SWIG_As_int(obj1
));
3563 if (SWIG_arg_fail(2)) SWIG_fail
;
3566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3568 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc(arg2
);
3569 result
= (wxPropX
*) &_result_ref
;
3572 wxPyEndAllowThreads(__tstate
);
3573 if (PyErr_Occurred()) SWIG_fail
;
3575 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3582 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3583 PyObject
*resultobj
;
3584 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3585 wxString
*arg2
= 0 ;
3587 bool temp2
= false ;
3588 PyObject
* obj0
= 0 ;
3589 PyObject
* obj1
= 0 ;
3591 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3592 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3593 if (SWIG_arg_fail(1)) SWIG_fail
;
3595 arg2
= wxString_in_helper(obj1
);
3596 if (arg2
== NULL
) SWIG_fail
;
3600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3602 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc((wxString
const &)*arg2
);
3603 result
= (wxPropX
*) &_result_ref
;
3606 wxPyEndAllowThreads(__tstate
);
3607 if (PyErr_Occurred()) SWIG_fail
;
3609 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3624 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc(PyObject
*self
, PyObject
*args
) {
3629 argc
= PyObject_Length(args
);
3630 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3631 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3637 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3646 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3649 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self
,args
);
3657 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3665 _v
= SWIG_Check_int(argv
[1]);
3667 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self
,args
);
3672 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
3677 static PyObject
*_wrap_ActiveXWindow_GetAXMethodCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3678 PyObject
*resultobj
;
3679 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3681 PyObject
* obj0
= 0 ;
3683 (char *) "self", NULL
3686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames
,&obj0
)) goto fail
;
3687 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3688 if (SWIG_arg_fail(1)) SWIG_fail
;
3690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3691 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXMethodCount();
3693 wxPyEndAllowThreads(__tstate
);
3694 if (PyErr_Occurred()) SWIG_fail
;
3697 resultobj
= SWIG_From_int((int)(result
));
3705 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3706 PyObject
*resultobj
;
3707 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3710 PyObject
* obj0
= 0 ;
3711 PyObject
* obj1
= 0 ;
3713 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3714 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3715 if (SWIG_arg_fail(1)) SWIG_fail
;
3717 arg2
= (int)(SWIG_As_int(obj1
));
3718 if (SWIG_arg_fail(2)) SWIG_fail
;
3721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3723 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc(arg2
);
3724 result
= (wxFuncX
*) &_result_ref
;
3727 wxPyEndAllowThreads(__tstate
);
3728 if (PyErr_Occurred()) SWIG_fail
;
3730 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3737 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3738 PyObject
*resultobj
;
3739 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3740 wxString
*arg2
= 0 ;
3742 bool temp2
= false ;
3743 PyObject
* obj0
= 0 ;
3744 PyObject
* obj1
= 0 ;
3746 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3747 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3748 if (SWIG_arg_fail(1)) SWIG_fail
;
3750 arg2
= wxString_in_helper(obj1
);
3751 if (arg2
== NULL
) SWIG_fail
;
3755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3757 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc((wxString
const &)*arg2
);
3758 result
= (wxFuncX
*) &_result_ref
;
3761 wxPyEndAllowThreads(__tstate
);
3762 if (PyErr_Occurred()) SWIG_fail
;
3764 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3779 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc(PyObject
*self
, PyObject
*args
) {
3784 argc
= PyObject_Length(args
);
3785 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3786 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3792 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3801 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3804 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self
,args
);
3812 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3820 _v
= SWIG_Check_int(argv
[1]);
3822 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self
,args
);
3827 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
3832 static PyObject
*_wrap_ActiveXWindow_GetAXEvents(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3833 PyObject
*resultobj
;
3834 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3835 wxFuncXArray
*result
;
3836 PyObject
* obj0
= 0 ;
3838 (char *) "self", NULL
3841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEvents",kwnames
,&obj0
)) goto fail
;
3842 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3843 if (SWIG_arg_fail(1)) SWIG_fail
;
3845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3847 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXEvents();
3848 result
= (wxFuncXArray
*) &_result_ref
;
3851 wxPyEndAllowThreads(__tstate
);
3852 if (PyErr_Occurred()) SWIG_fail
;
3854 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
3861 static PyObject
*_wrap_ActiveXWindow_GetAXMethods(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3862 PyObject
*resultobj
;
3863 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3864 wxFuncXArray
*result
;
3865 PyObject
* obj0
= 0 ;
3867 (char *) "self", NULL
3870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethods",kwnames
,&obj0
)) goto fail
;
3871 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3872 if (SWIG_arg_fail(1)) SWIG_fail
;
3874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3876 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXMethods();
3877 result
= (wxFuncXArray
*) &_result_ref
;
3880 wxPyEndAllowThreads(__tstate
);
3881 if (PyErr_Occurred()) SWIG_fail
;
3883 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
3890 static PyObject
*_wrap_ActiveXWindow_GetAXProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3891 PyObject
*resultobj
;
3892 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3893 wxPropXArray
*result
;
3894 PyObject
* obj0
= 0 ;
3896 (char *) "self", NULL
3899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXProperties",kwnames
,&obj0
)) goto fail
;
3900 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3901 if (SWIG_arg_fail(1)) SWIG_fail
;
3903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3905 wxPropXArray
const &_result_ref
= (arg1
)->GetAXProperties();
3906 result
= (wxPropXArray
*) &_result_ref
;
3909 wxPyEndAllowThreads(__tstate
);
3910 if (PyErr_Occurred()) SWIG_fail
;
3912 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropXArray
, 0);
3919 static PyObject
*_wrap_ActiveXWindow_SetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3920 PyObject
*resultobj
;
3921 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3922 wxString
*arg2
= 0 ;
3923 PyObject
*arg3
= (PyObject
*) 0 ;
3924 bool temp2
= false ;
3925 PyObject
* obj0
= 0 ;
3926 PyObject
* obj1
= 0 ;
3927 PyObject
* obj2
= 0 ;
3929 (char *) "self",(char *) "name",(char *) "value", NULL
3932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3933 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3934 if (SWIG_arg_fail(1)) SWIG_fail
;
3936 arg2
= wxString_in_helper(obj1
);
3937 if (arg2
== NULL
) SWIG_fail
;
3942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3943 (arg1
)->SetAXProp((wxString
const &)*arg2
,arg3
);
3945 wxPyEndAllowThreads(__tstate
);
3946 if (PyErr_Occurred()) SWIG_fail
;
3948 Py_INCREF(Py_None
); resultobj
= Py_None
;
3963 static PyObject
*_wrap_ActiveXWindow_GetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3964 PyObject
*resultobj
;
3965 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3966 wxString
*arg2
= 0 ;
3968 bool temp2
= false ;
3969 PyObject
* obj0
= 0 ;
3970 PyObject
* obj1
= 0 ;
3972 (char *) "self",(char *) "name", NULL
3975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXProp",kwnames
,&obj0
,&obj1
)) goto fail
;
3976 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3977 if (SWIG_arg_fail(1)) SWIG_fail
;
3979 arg2
= wxString_in_helper(obj1
);
3980 if (arg2
== NULL
) SWIG_fail
;
3984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3985 result
= (PyObject
*)(arg1
)->GetAXProp((wxString
const &)*arg2
);
3987 wxPyEndAllowThreads(__tstate
);
3988 if (PyErr_Occurred()) SWIG_fail
;
4005 static PyObject
*_wrap_ActiveXWindow__CallAXMethod(PyObject
*, PyObject
*args
) {
4006 PyObject
*resultobj
;
4007 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4008 wxString
*arg2
= 0 ;
4009 PyObject
*arg3
= (PyObject
*) 0 ;
4011 bool temp2
= false ;
4012 PyObject
* obj0
= 0 ;
4013 PyObject
* obj1
= 0 ;
4014 PyObject
* obj2
= 0 ;
4016 if(!PyArg_ParseTuple(args
,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0
,&obj1
,&obj2
)) goto fail
;
4017 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4018 if (SWIG_arg_fail(1)) SWIG_fail
;
4020 arg2
= wxString_in_helper(obj1
);
4021 if (arg2
== NULL
) SWIG_fail
;
4026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4027 result
= (PyObject
*)(arg1
)->_CallAXMethod((wxString
const &)*arg2
,arg3
);
4029 wxPyEndAllowThreads(__tstate
);
4030 if (PyErr_Occurred()) SWIG_fail
;
4047 static PyObject
* ActiveXWindow_swigregister(PyObject
*, PyObject
*args
) {
4049 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4050 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow
, obj
);
4052 return Py_BuildValue((char *)"");
4054 static PyObject
*_wrap_RegisterActiveXEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4055 PyObject
*resultobj
;
4056 wxString
*arg1
= 0 ;
4058 bool temp1
= false ;
4059 PyObject
* obj0
= 0 ;
4061 (char *) "eventName", NULL
4064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RegisterActiveXEvent",kwnames
,&obj0
)) goto fail
;
4066 arg1
= wxString_in_helper(obj0
);
4067 if (arg1
== NULL
) SWIG_fail
;
4071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4072 result
= (wxEventType
)RegisterActiveXEvent((wxString
const &)*arg1
);
4074 wxPyEndAllowThreads(__tstate
);
4075 if (PyErr_Occurred()) SWIG_fail
;
4078 resultobj
= SWIG_From_int((int)(result
));
4094 static PyObject
*_wrap_ActiveXEvent_EventName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4095 PyObject
*resultobj
;
4096 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4098 PyObject
* obj0
= 0 ;
4100 (char *) "self", NULL
4103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXEvent_EventName",kwnames
,&obj0
)) goto fail
;
4104 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4105 if (SWIG_arg_fail(1)) SWIG_fail
;
4107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4108 result
= (arg1
)->EventName();
4110 wxPyEndAllowThreads(__tstate
);
4111 if (PyErr_Occurred()) SWIG_fail
;
4115 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4117 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4126 static PyObject
*_wrap_ActiveXEvent__preCallInit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4127 PyObject
*resultobj
;
4128 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4129 PyObject
*arg2
= (PyObject
*) 0 ;
4130 PyObject
* obj0
= 0 ;
4131 PyObject
* obj1
= 0 ;
4133 (char *) "self",(char *) "pyself", NULL
4136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__preCallInit",kwnames
,&obj0
,&obj1
)) goto fail
;
4137 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4138 if (SWIG_arg_fail(1)) SWIG_fail
;
4141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4142 wxActiveXEvent__preCallInit(arg1
,arg2
);
4144 wxPyEndAllowThreads(__tstate
);
4145 if (PyErr_Occurred()) SWIG_fail
;
4147 Py_INCREF(Py_None
); resultobj
= Py_None
;
4154 static PyObject
*_wrap_ActiveXEvent__postCallCleanup(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4155 PyObject
*resultobj
;
4156 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4157 PyObject
*arg2
= (PyObject
*) 0 ;
4158 PyObject
* obj0
= 0 ;
4159 PyObject
* obj1
= 0 ;
4161 (char *) "self",(char *) "pyself", NULL
4164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames
,&obj0
,&obj1
)) goto fail
;
4165 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4166 if (SWIG_arg_fail(1)) SWIG_fail
;
4169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4170 wxActiveXEvent__postCallCleanup(arg1
,arg2
);
4172 wxPyEndAllowThreads(__tstate
);
4173 if (PyErr_Occurred()) SWIG_fail
;
4175 Py_INCREF(Py_None
); resultobj
= Py_None
;
4182 static PyObject
* ActiveXEvent_swigregister(PyObject
*, PyObject
*args
) {
4184 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4185 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent
, obj
);
4187 return Py_BuildValue((char *)"");
4189 static PyObject
*_wrap_new_IEHtmlWindowBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4190 PyObject
*resultobj
;
4191 wxWindow
*arg1
= (wxWindow
*) 0 ;
4193 int arg3
= (int) -1 ;
4194 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
4195 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
4196 wxSize
const &arg5_defvalue
= wxDefaultSize
;
4197 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
4198 long arg6
= (long) 0 ;
4199 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
4200 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
4201 wxIEHtmlWindowBase
*result
;
4204 bool temp7
= false ;
4205 PyObject
* obj0
= 0 ;
4206 PyObject
* obj1
= 0 ;
4207 PyObject
* obj2
= 0 ;
4208 PyObject
* obj3
= 0 ;
4209 PyObject
* obj4
= 0 ;
4210 PyObject
* obj5
= 0 ;
4211 PyObject
* obj6
= 0 ;
4213 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
4217 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
4218 if (SWIG_arg_fail(1)) SWIG_fail
;
4220 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
4221 if (SWIG_arg_fail(2)) SWIG_fail
;
4223 SWIG_null_ref("CLSID");
4225 if (SWIG_arg_fail(2)) SWIG_fail
;
4229 arg3
= (int)(SWIG_As_int(obj2
));
4230 if (SWIG_arg_fail(3)) SWIG_fail
;
4236 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
4242 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
4247 arg6
= (long)(SWIG_As_long(obj5
));
4248 if (SWIG_arg_fail(6)) SWIG_fail
;
4253 arg7
= wxString_in_helper(obj6
);
4254 if (arg7
== NULL
) SWIG_fail
;
4259 if (!wxPyCheckForApp()) SWIG_fail
;
4260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4261 result
= (wxIEHtmlWindowBase
*)new wxIEHtmlWindowBase(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
4263 wxPyEndAllowThreads(__tstate
);
4264 if (PyErr_Occurred()) SWIG_fail
;
4266 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxIEHtmlWindowBase
, 1);
4281 static PyObject
*_wrap_IEHtmlWindowBase_SetCharset(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4282 PyObject
*resultobj
;
4283 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4284 wxString
*arg2
= 0 ;
4285 bool temp2
= false ;
4286 PyObject
* obj0
= 0 ;
4287 PyObject
* obj1
= 0 ;
4289 (char *) "self",(char *) "charset", NULL
4292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames
,&obj0
,&obj1
)) goto fail
;
4293 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4294 if (SWIG_arg_fail(1)) SWIG_fail
;
4296 arg2
= wxString_in_helper(obj1
);
4297 if (arg2
== NULL
) SWIG_fail
;
4301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4302 (arg1
)->SetCharset((wxString
const &)*arg2
);
4304 wxPyEndAllowThreads(__tstate
);
4305 if (PyErr_Occurred()) SWIG_fail
;
4307 Py_INCREF(Py_None
); resultobj
= Py_None
;
4322 static PyObject
*_wrap_IEHtmlWindowBase_LoadString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4323 PyObject
*resultobj
;
4324 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4325 wxString
*arg2
= 0 ;
4327 bool temp2
= false ;
4328 PyObject
* obj0
= 0 ;
4329 PyObject
* obj1
= 0 ;
4331 (char *) "self",(char *) "html", NULL
4334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames
,&obj0
,&obj1
)) goto fail
;
4335 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4336 if (SWIG_arg_fail(1)) SWIG_fail
;
4338 arg2
= wxString_in_helper(obj1
);
4339 if (arg2
== NULL
) SWIG_fail
;
4343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4344 result
= (bool)(arg1
)->LoadString((wxString
const &)*arg2
);
4346 wxPyEndAllowThreads(__tstate
);
4347 if (PyErr_Occurred()) SWIG_fail
;
4350 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4366 static PyObject
*_wrap_IEHtmlWindowBase_LoadStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4367 PyObject
*resultobj
;
4368 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4369 wxInputStream
*arg2
= (wxInputStream
*) 0 ;
4371 wxPyInputStream
*temp2
;
4372 PyObject
* obj0
= 0 ;
4373 PyObject
* obj1
= 0 ;
4375 (char *) "self",(char *) "is", NULL
4378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4379 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4380 if (SWIG_arg_fail(1)) SWIG_fail
;
4382 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
4383 arg2
= wxPyCBInputStream_copy((wxPyCBInputStream
*)temp2
->m_wxis
);
4385 PyErr_Clear(); // clear the failure of the wxPyConvert above
4386 arg2
= wxPyCBInputStream_create(obj1
, true);
4388 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4395 result
= (bool)(arg1
)->LoadStream(arg2
);
4397 wxPyEndAllowThreads(__tstate
);
4398 if (PyErr_Occurred()) SWIG_fail
;
4401 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4409 static PyObject
*_wrap_IEHtmlWindowBase_GetStringSelection(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4410 PyObject
*resultobj
;
4411 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4414 PyObject
* obj0
= 0 ;
4415 PyObject
* obj1
= 0 ;
4417 (char *) "self",(char *) "asHTML", NULL
4420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames
,&obj0
,&obj1
)) goto fail
;
4421 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4422 if (SWIG_arg_fail(1)) SWIG_fail
;
4424 arg2
= (bool)(SWIG_As_bool(obj1
));
4425 if (SWIG_arg_fail(2)) SWIG_fail
;
4428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4429 result
= (arg1
)->GetStringSelection(arg2
);
4431 wxPyEndAllowThreads(__tstate
);
4432 if (PyErr_Occurred()) SWIG_fail
;
4436 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4438 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4447 static PyObject
*_wrap_IEHtmlWindowBase_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
*resultobj
;
4449 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4452 PyObject
* obj0
= 0 ;
4453 PyObject
* obj1
= 0 ;
4455 (char *) "self",(char *) "asHTML", NULL
4458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetText",kwnames
,&obj0
,&obj1
)) goto fail
;
4459 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4460 if (SWIG_arg_fail(1)) SWIG_fail
;
4462 arg2
= (bool)(SWIG_As_bool(obj1
));
4463 if (SWIG_arg_fail(2)) SWIG_fail
;
4466 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4467 result
= (arg1
)->GetText(arg2
);
4469 wxPyEndAllowThreads(__tstate
);
4470 if (PyErr_Occurred()) SWIG_fail
;
4474 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4476 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4485 static PyObject
* IEHtmlWindowBase_swigregister(PyObject
*, PyObject
*args
) {
4487 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4488 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase
, obj
);
4490 return Py_BuildValue((char *)"");
4492 static PyMethodDef SwigMethods
[] = {
4493 { (char *)"new_CLSID", (PyCFunction
) _wrap_new_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4494 { (char *)"delete_CLSID", (PyCFunction
) _wrap_delete_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4495 { (char *)"CLSID_GetCLSIDString", (PyCFunction
) _wrap_CLSID_GetCLSIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4496 { (char *)"CLSID_GetProgIDString", (PyCFunction
) _wrap_CLSID_GetProgIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4497 { (char *)"CLSID_swigregister", CLSID_swigregister
, METH_VARARGS
, NULL
},
4498 { (char *)"ParamX_flags_get", (PyCFunction
) _wrap_ParamX_flags_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4499 { (char *)"ParamX_isPtr_get", (PyCFunction
) _wrap_ParamX_isPtr_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4500 { (char *)"ParamX_isSafeArray_get", (PyCFunction
) _wrap_ParamX_isSafeArray_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4501 { (char *)"ParamX_isOptional_get", (PyCFunction
) _wrap_ParamX_isOptional_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4502 { (char *)"ParamX_vt_get", (PyCFunction
) _wrap_ParamX_vt_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4503 { (char *)"ParamX_name_get", (PyCFunction
) _wrap_ParamX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4504 { (char *)"ParamX_vt_type_get", (PyCFunction
) _wrap_ParamX_vt_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4505 { (char *)"ParamX_IsIn", (PyCFunction
) _wrap_ParamX_IsIn
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4506 { (char *)"ParamX_IsOut", (PyCFunction
) _wrap_ParamX_IsOut
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4507 { (char *)"ParamX_IsRetVal", (PyCFunction
) _wrap_ParamX_IsRetVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4508 { (char *)"ParamX_swigregister", ParamX_swigregister
, METH_VARARGS
, NULL
},
4509 { (char *)"FuncX_name_get", (PyCFunction
) _wrap_FuncX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4510 { (char *)"FuncX_memid_get", (PyCFunction
) _wrap_FuncX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4511 { (char *)"FuncX_hasOut_get", (PyCFunction
) _wrap_FuncX_hasOut_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4512 { (char *)"FuncX_retType_get", (PyCFunction
) _wrap_FuncX_retType_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4513 { (char *)"FuncX_params_get", (PyCFunction
) _wrap_FuncX_params_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4514 { (char *)"FuncX_swigregister", FuncX_swigregister
, METH_VARARGS
, NULL
},
4515 { (char *)"PropX_name_get", (PyCFunction
) _wrap_PropX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4516 { (char *)"PropX_memid_get", (PyCFunction
) _wrap_PropX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4517 { (char *)"PropX_type_get", (PyCFunction
) _wrap_PropX_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4518 { (char *)"PropX_arg_get", (PyCFunction
) _wrap_PropX_arg_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4519 { (char *)"PropX_putByRef_get", (PyCFunction
) _wrap_PropX_putByRef_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4520 { (char *)"PropX_CanGet", (PyCFunction
) _wrap_PropX_CanGet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4521 { (char *)"PropX_CanSet", (PyCFunction
) _wrap_PropX_CanSet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4522 { (char *)"PropX_swigregister", PropX_swigregister
, METH_VARARGS
, NULL
},
4523 { (char *)"ParamXArray___nonzero__", (PyCFunction
) _wrap_ParamXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4524 { (char *)"ParamXArray___len__", (PyCFunction
) _wrap_ParamXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4525 { (char *)"ParamXArray___getitem__", (PyCFunction
) _wrap_ParamXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4526 { (char *)"ParamXArray_swigregister", ParamXArray_swigregister
, METH_VARARGS
, NULL
},
4527 { (char *)"FuncXArray___nonzero__", (PyCFunction
) _wrap_FuncXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4528 { (char *)"FuncXArray___len__", (PyCFunction
) _wrap_FuncXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4529 { (char *)"FuncXArray___getitem__", (PyCFunction
) _wrap_FuncXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4530 { (char *)"FuncXArray_swigregister", FuncXArray_swigregister
, METH_VARARGS
, NULL
},
4531 { (char *)"PropXArray___nonzero__", (PyCFunction
) _wrap_PropXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4532 { (char *)"PropXArray___len__", (PyCFunction
) _wrap_PropXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4533 { (char *)"PropXArray___getitem__", (PyCFunction
) _wrap_PropXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4534 { (char *)"PropXArray_swigregister", PropXArray_swigregister
, METH_VARARGS
, NULL
},
4535 { (char *)"new_ActiveXWindow", (PyCFunction
) _wrap_new_ActiveXWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4536 { (char *)"ActiveXWindow_GetCLSID", (PyCFunction
) _wrap_ActiveXWindow_GetCLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4537 { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4538 { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventDesc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4539 { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXPropCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4540 { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc
, METH_VARARGS
, NULL
},
4541 { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethodCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4542 { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc
, METH_VARARGS
, NULL
},
4543 { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction
) _wrap_ActiveXWindow_GetAXEvents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4544 { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethods
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4545 { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction
) _wrap_ActiveXWindow_GetAXProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4546 { (char *)"ActiveXWindow_SetAXProp", (PyCFunction
) _wrap_ActiveXWindow_SetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4547 { (char *)"ActiveXWindow_GetAXProp", (PyCFunction
) _wrap_ActiveXWindow_GetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4548 { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod
, METH_VARARGS
, NULL
},
4549 { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister
, METH_VARARGS
, NULL
},
4550 { (char *)"RegisterActiveXEvent", (PyCFunction
) _wrap_RegisterActiveXEvent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4551 { (char *)"ActiveXEvent_EventName", (PyCFunction
) _wrap_ActiveXEvent_EventName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4552 { (char *)"ActiveXEvent__preCallInit", (PyCFunction
) _wrap_ActiveXEvent__preCallInit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4553 { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction
) _wrap_ActiveXEvent__postCallCleanup
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4554 { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister
, METH_VARARGS
, NULL
},
4555 { (char *)"new_IEHtmlWindowBase", (PyCFunction
) _wrap_new_IEHtmlWindowBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4556 { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction
) _wrap_IEHtmlWindowBase_SetCharset
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4557 { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4558 { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4559 { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction
) _wrap_IEHtmlWindowBase_GetStringSelection
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4560 { (char *)"IEHtmlWindowBase_GetText", (PyCFunction
) _wrap_IEHtmlWindowBase_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4561 { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister
, METH_VARARGS
, NULL
},
4562 { NULL
, NULL
, 0, NULL
}
4566 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4568 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4569 return (void *)((wxWindow
*) ((wxControl
*) x
));
4571 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4572 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4574 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x
) {
4575 return (void *)((wxWindow
*) ((wxActiveXWindow
*) x
));
4577 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4578 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4580 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x
) {
4581 return (void *)((wxWindow
*) (wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4583 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x
) {
4584 return (void *)((wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4586 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
4587 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4589 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
4590 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
4592 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
4593 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
4595 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
4596 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
4598 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
4599 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
4601 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
4602 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
4604 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
4605 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
4607 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
4608 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
4610 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
4611 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
4613 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
4614 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4616 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
4617 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
4619 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
4620 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4622 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
4623 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4625 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
4626 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
4628 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
4629 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
4631 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
4632 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
4634 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
4635 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
4637 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
4638 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
4640 static void *_p_wxDateEventTo_p_wxEvent(void *x
) {
4641 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxDateEvent
*) x
));
4643 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
4644 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
4646 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
4647 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
4649 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
4650 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4652 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
4653 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4655 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
4656 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4658 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
4659 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4661 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
4662 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4664 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
4665 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
4667 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
4668 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
4670 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
4671 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4673 static void *_p_wxActiveXEventTo_p_wxEvent(void *x
) {
4674 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4676 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
4677 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
4679 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
4680 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
4682 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
4683 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4685 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
4686 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4688 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
4689 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4691 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
4692 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
4694 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
4695 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
4697 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4698 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4700 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4701 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4703 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4704 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4706 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4707 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4709 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4710 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4712 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4713 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4715 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4716 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4718 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4719 return (void *)((wxObject
*) ((wxSizer
*) x
));
4721 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4722 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4724 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4725 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4727 static void *_p_wxEventTo_p_wxObject(void *x
) {
4728 return (void *)((wxObject
*) ((wxEvent
*) x
));
4730 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4731 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4733 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4734 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4736 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4737 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4739 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4740 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4742 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4743 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4745 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4746 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4748 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4749 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4751 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4752 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4754 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4755 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4757 static void *_p_wxControlTo_p_wxObject(void *x
) {
4758 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4760 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4761 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4763 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4764 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4766 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4767 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4769 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4770 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4772 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4773 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4775 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4776 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4778 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4779 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4781 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4782 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4784 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4785 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4787 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4788 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4790 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4791 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4793 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4794 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4796 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4797 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4799 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4800 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4802 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4803 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4805 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4806 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4808 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4809 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4811 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4812 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4814 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4815 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4817 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4818 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4820 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4821 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4823 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4824 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4826 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4827 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4829 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4830 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4832 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
4833 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
4835 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
4836 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
4838 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
4839 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
4841 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
4842 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
4844 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
4845 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
4847 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
4848 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
4850 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
4851 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
4853 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
4854 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
4856 static void *_p_wxImageTo_p_wxObject(void *x
) {
4857 return (void *)((wxObject
*) ((wxImage
*) x
));
4859 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
4860 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
4862 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
4863 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4865 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
4866 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4868 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
4869 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
4871 static void *_p_wxWindowTo_p_wxObject(void *x
) {
4872 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
4874 static void *_p_wxMenuTo_p_wxObject(void *x
) {
4875 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
4877 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
4878 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
4880 static void *_p_wxActiveXWindowTo_p_wxObject(void *x
) {
4881 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxActiveXWindow
*) x
));
4883 static void *_p_wxActiveXEventTo_p_wxObject(void *x
) {
4884 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4886 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
4887 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
4889 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
4890 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4892 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
4893 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
4895 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x
) {
4896 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4898 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
4899 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
4901 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
4902 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
4904 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
4905 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
4907 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
4908 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
4910 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
4911 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4913 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
4914 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
4916 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
4917 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
4919 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
4920 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
4922 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
4923 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4925 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
4926 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4928 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
4929 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
4931 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
4932 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
4934 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
4935 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
4937 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
4938 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
4940 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
4941 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4943 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x
) {
4944 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxActiveXWindow
*) x
));
4946 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
4947 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
4949 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
4950 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
4952 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
4953 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
4955 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
4956 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
4958 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4959 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4961 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x
) {
4962 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4964 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
4965 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4967 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
4968 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
4970 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
4971 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4973 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) {
4974 return (void *)((wxCommandEvent
*) ((wxDateEvent
*) x
));
4976 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
4977 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4979 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x
) {
4980 return (void *)((wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4982 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
4983 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4985 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
4986 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4988 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
4989 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4991 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
4992 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4994 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_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_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_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_wxDateEvent", _p_wxDateEventTo_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_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_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_wxPyImageHandler", _p_wxPyImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_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_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_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_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_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_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_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_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_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}};
4995 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}};
4996 static swig_type_info _swigt__p_wxFuncX
[] = {{"_p_wxFuncX", 0, "wxFuncX *", 0, 0, 0, 0},{"_p_wxFuncX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4997 static swig_type_info _swigt__p_wxActiveXWindow
[] = {{"_p_wxActiveXWindow", 0, "wxActiveXWindow *", 0, 0, 0, 0},{"_p_wxActiveXWindow", 0, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4998 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_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4999 static swig_type_info _swigt__p_wxCommandEvent
[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5000 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}};
5001 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}};
5002 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}};
5003 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}};
5004 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}};
5005 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}};
5006 static swig_type_info _swigt__p_unsigned_short
[] = {{"_p_unsigned_short", 0, "unsigned short *|VARTYPE *", 0, 0, 0, 0},{"_p_unsigned_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5007 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}};
5008 static swig_type_info _swigt__p_wxEvtHandler
[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5009 static swig_type_info _swigt__p_wxPropX
[] = {{"_p_wxPropX", 0, "wxPropX *", 0, 0, 0, 0},{"_p_wxPropX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5010 static swig_type_info _swigt__p_wxParamXArray
[] = {{"_p_wxParamXArray", 0, "wxParamXArray *", 0, 0, 0, 0},{"_p_wxParamXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5011 static swig_type_info _swigt__p_wxFuncXArray
[] = {{"_p_wxFuncXArray", 0, "wxFuncXArray *", 0, 0, 0, 0},{"_p_wxFuncXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5012 static swig_type_info _swigt__p_wxActiveXEvent
[] = {{"_p_wxActiveXEvent", 0, "wxActiveXEvent *", 0, 0, 0, 0},{"_p_wxActiveXEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5013 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}};
5014 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}};
5015 static swig_type_info _swigt__p_long
[] = {{"_p_long", 0, "long *|MEMBERID *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5016 static swig_type_info _swigt__p_wxParamX
[] = {{"_p_wxParamX", 0, "wxParamX *", 0, 0, 0, 0},{"_p_wxParamX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5017 static swig_type_info _swigt__p_wxIEHtmlWindowBase
[] = {{"_p_wxIEHtmlWindowBase", 0, "wxIEHtmlWindowBase *", 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5018 static swig_type_info _swigt__p_wxEvent
[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5019 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}};
5020 static swig_type_info _swigt__p_CLSID
[] = {{"_p_CLSID", 0, "CLSID *", 0, 0, 0, 0},{"_p_CLSID", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5021 static swig_type_info _swigt__p_wxPropXArray
[] = {{"_p_wxPropXArray", 0, "wxPropXArray *", 0, 0, 0, 0},{"_p_wxPropXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5022 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}};
5024 static swig_type_info
*swig_types_initial
[] = {
5026 _swigt__p_unsigned_char
,
5028 _swigt__p_wxActiveXWindow
,
5030 _swigt__p_wxCommandEvent
,
5031 _swigt__p_unsigned_long
,
5032 _swigt__p_unsigned_int
,
5033 _swigt__unsigned_int
,
5034 _swigt__p_form_ops_t
,
5035 _swigt__p_wxDuplexMode
,
5037 _swigt__p_unsigned_short
,
5038 _swigt__p_wxInputStream
,
5039 _swigt__p_wxEvtHandler
,
5041 _swigt__p_wxParamXArray
,
5042 _swigt__p_wxFuncXArray
,
5043 _swigt__p_wxActiveXEvent
,
5044 _swigt__std__ptrdiff_t
,
5048 _swigt__p_wxIEHtmlWindowBase
,
5050 _swigt__p_wxPaperSize
,
5052 _swigt__p_wxPropXArray
,
5058 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5060 static swig_const_info swig_const_table
[] = {
5061 {0, 0, 0, 0.0, 0, 0}};
5072 /* Python-specific SWIG API */
5073 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5074 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5075 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5077 /* -----------------------------------------------------------------------------
5078 * global variable support code.
5079 * ----------------------------------------------------------------------------- */
5081 typedef struct swig_globalvar
{
5082 char *name
; /* Name of global variable */
5083 PyObject
*(*get_attr
)(); /* Return the current value */
5084 int (*set_attr
)(PyObject
*); /* Set the value */
5085 struct swig_globalvar
*next
;
5088 typedef struct swig_varlinkobject
{
5090 swig_globalvar
*vars
;
5091 } swig_varlinkobject
;
5094 swig_varlink_repr(swig_varlinkobject
*v
) {
5096 return PyString_FromString("<Swig global variables>");
5100 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
5101 swig_globalvar
*var
;
5103 fprintf(fp
,"Swig global variables { ");
5104 for (var
= v
->vars
; var
; var
=var
->next
) {
5105 fprintf(fp
,"%s", var
->name
);
5106 if (var
->next
) fprintf(fp
,", ");
5113 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
5114 swig_globalvar
*var
= v
->vars
;
5116 if (strcmp(var
->name
,n
) == 0) {
5117 return (*var
->get_attr
)();
5121 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5126 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
5127 swig_globalvar
*var
= v
->vars
;
5129 if (strcmp(var
->name
,n
) == 0) {
5130 return (*var
->set_attr
)(p
);
5134 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5138 static PyTypeObject varlinktype
= {
5139 PyObject_HEAD_INIT(0)
5140 0, /* Number of items in variable part (ob_size) */
5141 (char *)"swigvarlink", /* Type name (tp_name) */
5142 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
5143 0, /* Itemsize (tp_itemsize) */
5144 0, /* Deallocator (tp_dealloc) */
5145 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
5146 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
5147 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
5149 (reprfunc
) swig_varlink_repr
, /* tp_repr */
5150 0, /* tp_as_number */
5151 0, /* tp_as_sequence */
5152 0, /* tp_as_mapping */
5156 0, /* tp_getattro */
5157 0, /* tp_setattro */
5158 0, /* tp_as_buffer */
5161 #if PY_VERSION_HEX >= 0x02000000
5162 0, /* tp_traverse */
5165 #if PY_VERSION_HEX >= 0x02010000
5166 0, /* tp_richcompare */
5167 0, /* tp_weaklistoffset */
5169 #if PY_VERSION_HEX >= 0x02020000
5170 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5172 #if PY_VERSION_HEX >= 0x02030000
5176 0,0,0,0 /* tp_alloc -> tp_next */
5180 /* Create a variable linking object for use later */
5182 SWIG_Python_newvarlink(void) {
5183 swig_varlinkobject
*result
= 0;
5184 result
= PyMem_NEW(swig_varlinkobject
,1);
5185 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
5186 result
->ob_type
= &varlinktype
;
5188 result
->ob_refcnt
= 0;
5189 Py_XINCREF((PyObject
*) result
);
5190 return ((PyObject
*) result
);
5194 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
5195 swig_varlinkobject
*v
;
5197 v
= (swig_varlinkobject
*) p
;
5198 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
5199 gv
->name
= (char *) malloc(strlen(name
)+1);
5200 strcpy(gv
->name
,name
);
5201 gv
->get_attr
= get_attr
;
5202 gv
->set_attr
= set_attr
;
5207 /* -----------------------------------------------------------------------------
5208 * constants/methods manipulation
5209 * ----------------------------------------------------------------------------- */
5211 /* Install Constants */
5213 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
5216 for (i
= 0; constants
[i
].type
; i
++) {
5217 switch(constants
[i
].type
) {
5219 obj
= PyInt_FromLong(constants
[i
].lvalue
);
5222 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
5224 case SWIG_PY_STRING
:
5225 if (constants
[i
].pvalue
) {
5226 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
5232 case SWIG_PY_POINTER
:
5233 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
5235 case SWIG_PY_BINARY
:
5236 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
5243 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
5249 /* -----------------------------------------------------------------------------*/
5250 /* Fix SwigMethods to carry the callback ptrs when needed */
5251 /* -----------------------------------------------------------------------------*/
5254 SWIG_Python_FixMethods(PyMethodDef
*methods
,
5255 swig_const_info
*const_table
,
5256 swig_type_info
**types
,
5257 swig_type_info
**types_initial
) {
5259 for (i
= 0; methods
[i
].ml_name
; ++i
) {
5260 char *c
= methods
[i
].ml_doc
;
5261 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
5263 swig_const_info
*ci
= 0;
5264 char *name
= c
+ 10;
5265 for (j
= 0; const_table
[j
].type
; j
++) {
5266 if (strncmp(const_table
[j
].name
, name
,
5267 strlen(const_table
[j
].name
)) == 0) {
5268 ci
= &(const_table
[j
]);
5273 size_t shift
= (ci
->ptype
) - types
;
5274 swig_type_info
*ty
= types_initial
[shift
];
5275 size_t ldoc
= (c
- methods
[i
].ml_doc
);
5276 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
5277 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
5279 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
5280 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
5282 strncpy(buff
, "swig_ptr: ", 10);
5284 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
5285 methods
[i
].ml_doc
= ndoc
;
5291 /* -----------------------------------------------------------------------------*
5292 * Initialize type list
5293 * -----------------------------------------------------------------------------*/
5295 #if PY_MAJOR_VERSION < 2
5296 /* PyModule_AddObject function was introduced in Python 2.0. The following function
5297 is copied out of Python/modsupport.c in python version 2.3.4 */
5299 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
5302 if (!PyModule_Check(m
)) {
5303 PyErr_SetString(PyExc_TypeError
,
5304 "PyModule_AddObject() needs module as first arg");
5308 PyErr_SetString(PyExc_TypeError
,
5309 "PyModule_AddObject() needs non-NULL value");
5313 dict
= PyModule_GetDict(m
);
5315 /* Internal error -- modules must have a dict! */
5316 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
5317 PyModule_GetName(m
));
5320 if (PyDict_SetItemString(dict
, name
, o
))
5327 static swig_type_info
**
5328 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
5329 static PyMethodDef swig_empty_runtime_method_table
[] = {
5335 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
5336 swig_empty_runtime_method_table
);
5337 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
5338 if (pointer
&& module) {
5339 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
5341 return type_list_handle
;
5344 static swig_type_info
**
5345 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
5346 swig_type_info
**type_pointer
;
5348 /* first check if module already created */
5349 type_pointer
= SWIG_Python_GetTypeListHandle();
5351 return type_pointer
;
5353 /* create a new module and variable */
5354 return SWIG_Python_SetTypeListHandle(type_list_handle
);
5362 /* -----------------------------------------------------------------------------*
5363 * Partial Init method
5364 * -----------------------------------------------------------------------------*/
5366 #ifdef SWIG_LINK_RUNTIME
5370 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
5376 SWIGEXPORT(void) SWIG_init(void) {
5377 static PyObject
*SWIG_globals
= 0;
5378 static int typeinit
= 0;
5381 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5383 /* Fix SwigMethods to carry the callback ptrs when needed */
5384 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
5386 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5387 d
= PyModule_GetDict(m
);
5390 #ifdef SWIG_LINK_RUNTIME
5391 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
5393 # ifndef SWIG_STATIC_RUNTIME
5394 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
5397 for (i
= 0; swig_types_initial
[i
]; i
++) {
5398 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5402 SWIG_InstallConstants(d
,swig_const_table
);