1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxObject swig_types[0]
1342 #define SWIGTYPE_p_unsigned_char swig_types[1]
1343 #define SWIGTYPE_p_wxFuncX swig_types[2]
1344 #define SWIGTYPE_p_wxActiveXWindow swig_types[3]
1345 #define SWIGTYPE_p_wxWindow swig_types[4]
1346 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1347 #define SWIGTYPE_p_unsigned_long swig_types[6]
1348 #define SWIGTYPE_p_unsigned_int swig_types[7]
1349 #define SWIGTYPE_unsigned_int swig_types[8]
1350 #define SWIGTYPE_p_form_ops_t swig_types[9]
1351 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1352 #define SWIGTYPE_p_char swig_types[11]
1353 #define SWIGTYPE_p_unsigned_short swig_types[12]
1354 #define SWIGTYPE_p_wxInputStream swig_types[13]
1355 #define SWIGTYPE_p_wxEvtHandler swig_types[14]
1356 #define SWIGTYPE_p_wxPropX swig_types[15]
1357 #define SWIGTYPE_p_wxParamXArray swig_types[16]
1358 #define SWIGTYPE_p_wxFuncXArray swig_types[17]
1359 #define SWIGTYPE_p_wxActiveXEvent swig_types[18]
1360 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1361 #define SWIGTYPE_ptrdiff_t swig_types[20]
1362 #define SWIGTYPE_p_long swig_types[21]
1363 #define SWIGTYPE_p_wxParamX swig_types[22]
1364 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[23]
1365 #define SWIGTYPE_p_wxEvent swig_types[24]
1366 #define SWIGTYPE_p_wxPaperSize swig_types[25]
1367 #define SWIGTYPE_p_CLSID swig_types[26]
1368 #define SWIGTYPE_p_wxPropXArray swig_types[27]
1369 #define SWIGTYPE_p_int swig_types[28]
1370 static swig_type_info
*swig_types
[30];
1372 /* -------- TYPES TABLE (END) -------- */
1375 /*-----------------------------------------------
1376 @(target):= _activex.so
1377 ------------------------------------------------*/
1378 #define SWIG_init init_activex
1380 #define SWIG_name "_activex"
1382 #include "wx/wxPython/wxPython.h"
1383 #include "wx/wxPython/pyclasses.h"
1384 #include "wx/wxPython/pyistream.h"
1386 #include "wxactivex.h"
1388 static const wxString
wxPyPanelNameStr(wxPanelNameStr
);
1390 // Since SWIG doesn't support nested classes, we need to fool it a bit
1391 // and make them look like global classes. These defines make the C++ code
1392 // know what we are doing.
1393 #define wxParamX wxActiveX::ParamX
1394 #define wxFuncX wxActiveX::FuncX
1395 #define wxPropX wxActiveX::PropX
1396 #define wxParamXArray wxActiveX::ParamXArray
1397 #define wxFuncXArray wxActiveX::FuncXArray
1398 #define wxPropXArray wxActiveX::PropXArray
1401 // Some conversion helpers
1402 static wxVariant
_PyObj2Variant(PyObject
* value
);
1403 static bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
);
1404 static PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
=false);
1405 static wxString
_VARTYPEname(VARTYPE vt
);
1407 // Check if an exception has been raised (blocking threads)
1408 inline bool wxPyErr_Occurred()
1411 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1412 rval
= PyErr_Occurred() != NULL
;
1413 wxPyEndBlockThreads(blocked
);
1418 static CLSID
*new_CLSID(wxString
const &id
){
1420 CLSID
* self
= new CLSID
;
1421 memset(self
, 0, sizeof(CLSID
));
1423 if (id
[0] == _T('{')) {
1424 // Looks like a classID string
1427 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1433 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1436 if (result
!= NOERROR
) {
1437 wxPyErr_SetString(PyExc_ValueError
, "Not a recognized classID or progID");
1443 static void delete_CLSID(CLSID
*self
){ delete self
; }
1444 static wxString
CLSID_GetCLSIDString(CLSID
*self
){
1447 if (StringFromCLSID(*self
, &s
) == S_OK
) {
1452 str
= _T("Error!"); // TODO: raise exception?
1456 static wxString
CLSID_GetProgIDString(CLSID
*self
){
1459 if (ProgIDFromCLSID(*self
, &s
) == S_OK
) {
1464 str
= _T("Error!"); // TODO: raise exception?
1469 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1470 #define SWIG_From_unsigned_SS_short PyInt_FromLong
1473 static wxString
wxParamX_vt_type_get(wxParamX
*self
){ return _VARTYPEname(self
->vt
); }
1475 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1476 #define SWIG_From_long PyInt_FromLong
1479 static bool wxParamXArray___nonzero__(wxParamXArray
*self
){ return self
->size() > 0; }
1480 static int wxParamXArray___len__(wxParamXArray
*self
){ return self
->size(); }
1482 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1483 #define SWIG_From_int PyInt_FromLong
1491 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1494 if (value
< min_value
) {
1496 PyErr_Format(PyExc_OverflowError
,
1497 "value %ld is less than '%s' minimum %ld",
1498 value
, errmsg
, min_value
);
1501 } else if (value
> max_value
) {
1503 PyErr_Format(PyExc_OverflowError
,
1504 "value %ld is greater than '%s' maximum %ld",
1505 value
, errmsg
, max_value
);
1514 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1516 if (PyNumber_Check(obj
)) {
1517 if (val
) *val
= PyInt_AsLong(obj
);
1521 SWIG_type_error("number", obj
);
1527 #if INT_MAX != LONG_MAX
1529 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1531 const char* errmsg
= val
? "int" : (char*)0;
1533 if (SWIG_AsVal_long(obj
, &v
)) {
1534 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1535 if (val
) *val
= (int)(v
);
1544 SWIG_type_error(errmsg
, obj
);
1550 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1552 return SWIG_AsVal_long(obj
,(long*)val
);
1558 SWIG_As_int(PyObject
* obj
)
1561 if (!SWIG_AsVal_int(obj
, &v
)) {
1563 this is needed to make valgrind/purify happier.
1565 memset((void*)&v
, 0, sizeof(int));
1572 SWIG_Check_int(PyObject
* obj
)
1574 return SWIG_AsVal_int(obj
, (int*)0);
1577 static wxParamX
const &wxParamXArray___getitem__(wxParamXArray
*self
,int idx
){
1578 if ( idx
>= 0 && idx
< self
->size() )
1579 return (*self
)[idx
];
1581 static wxParamX BadVal
;
1582 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1586 static bool wxFuncXArray___nonzero__(wxFuncXArray
*self
){ return self
->size() > 0; }
1587 static int wxFuncXArray___len__(wxFuncXArray
*self
){ return self
->size(); }
1588 static wxFuncX
const &wxFuncXArray___getitem__(wxFuncXArray
*self
,int idx
){
1589 if ( idx
>= 0 && idx
< self
->size() )
1590 return (*self
)[idx
];
1592 static wxFuncX BadVal
;
1593 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1597 static bool wxPropXArray___nonzero__(wxPropXArray
*self
){ return self
->size() > 0; }
1598 static int wxPropXArray___len__(wxPropXArray
*self
){ return self
->size(); }
1599 static wxPropX
const &wxPropXArray___getitem__(wxPropXArray
*self
,int idx
){
1600 if ( idx
>= 0 && idx
< self
->size() )
1601 return (*self
)[idx
];
1603 static wxPropX BadVal
;
1604 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1609 // C++ version of a Python-aware wxActiveX
1610 class wxActiveXWindow
: public wxActiveX
1615 DECLARE_ABSTRACT_CLASS(wxActiveXWindow
);
1618 wxActiveXWindow( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
1619 const wxPoint
& pos
= wxDefaultPosition
,
1620 const wxSize
& size
= wxDefaultSize
,
1622 const wxString
& name
= wxPyPanelNameStr
)
1623 : wxActiveX(parent
, clsId
, id
, pos
, size
, style
, name
)
1628 const CLSID
& GetCLSID() const { return m_CLSID
; }
1631 // Renamed versions of some base class methods that delegate
1632 // to the base where appropriate, and raise Python exceptions
1634 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
1635 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
1636 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
1638 const wxFuncX
& GetAXEventDesc(int idx
) const
1640 static wxFuncX BadVal
;
1641 if (idx
< 0 || idx
>= GetAXEventCount()) {
1642 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1645 return m_events
[idx
];
1647 const wxFuncX
& GetAXMethodDesc(int idx
) const
1649 static wxFuncX BadVal
;
1650 if (idx
< 0 || idx
>= GetAXMethodCount()) {
1651 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1654 return m_methods
[idx
];
1656 const wxPropX
& GetAXPropDesc(int idx
) const
1658 static wxPropX BadVal
;
1659 if (idx
< 0 || idx
>= GetAXPropCount()) {
1660 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1663 return m_props
[idx
];
1666 const wxFuncX
& GetAXMethodDesc(const wxString
& name
) const
1668 NameMap::const_iterator it
= m_methodNames
.find(name
);
1669 if (it
== m_methodNames
.end()) {
1671 msg
<< _T("method <") << name
<< _T("> not found");
1672 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1673 static wxFuncX BadVal
;
1676 return GetAXMethodDesc(it
->second
);
1678 const wxPropX
& GetAXPropDesc(const wxString
& name
) const
1680 NameMap::const_iterator it
= m_propNames
.find(name
);
1681 if (it
== m_propNames
.end()) {
1683 msg
<< _T("property <") << name
<< _T("> not found");
1684 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1685 static wxPropX BadVal
;
1688 return GetAXPropDesc(it
->second
);
1691 // Accessors for the internal vectors of events, methods and
1692 // proprties. Can be used as sequence like objects from
1694 const wxFuncXArray
& GetAXEvents() { return m_events
; }
1695 const wxFuncXArray
& GetAXMethods() { return m_methods
; }
1696 const wxPropXArray
& GetAXProperties() { return m_props
; }
1699 // Set a property from a Python object
1700 void SetAXProp(const wxString
& name
, PyObject
* value
)
1702 const wxPropX
& prop
= GetAXPropDesc(name
);
1703 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1704 if (! PyErr_Occurred() ) {
1705 if (! prop
.CanSet()) {
1707 msg
<< _T("property <") << name
<< _T("> is readonly");
1708 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1711 wxVariant wxV
= _PyObj2Variant(value
);
1712 if (PyErr_Occurred())
1714 VARIANT v
= {prop
.arg
.vt
};
1715 if (!VariantToMSWVariant(wxV
, v
) || PyErr_Occurred()) {
1717 msg
<< _T("Unable to convert value to expected type: (")
1718 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1720 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1723 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1724 SetProp(prop
.memid
, v
);
1726 wxPyEndAllowThreads(tstate
);
1730 wxPyEndBlockThreads(blocked
);
1734 // Get a property and convert it to a Python object
1735 PyObject
* GetAXProp(const wxString
& name
)
1737 PyObject
* rval
= NULL
;
1738 const wxPropX
& prop
= GetAXPropDesc(name
);
1739 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1740 if (! PyErr_Occurred() ) {
1741 if (! prop
.CanGet()) {
1743 msg
<< _T("property <") << name
<< _T("> is writeonly");
1744 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1747 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1748 VARIANT v
= GetPropAsVariant(prop
.memid
);
1749 wxPyEndAllowThreads(tstate
);
1751 if (!MSWVariantToVariant(v
, wv
) || PyErr_Occurred()) {
1753 msg
<< _T("Unable to convert value to expected type: (")
1754 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1756 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1759 rval
= _Variant2PyObj(wv
);
1764 wxPyEndBlockThreads(blocked
);
1769 // If both IsIn and isOut are false, assume it is actually an
1771 bool paramIsIn(const wxParamX
& p
)
1773 return p
.IsIn() || (!p
.IsIn() && !p
.IsOut());
1777 // Call a method of the ActiveX object
1778 PyObject
* _CallAXMethod(const wxString
& name
, PyObject
* args
)
1780 VARIANTARG
*vargs
= NULL
;
1782 PyObject
* rval
= NULL
;
1783 const wxFuncX
& func
= GetAXMethodDesc(name
);
1785 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1786 if (! PyErr_Occurred() ) {
1787 nargs
= func
.params
.size();
1789 vargs
= new VARIANTARG
[nargs
];
1792 // init type of vargs, in reverse order
1794 for (i
= 0; i
< nargs
; i
++)
1795 vargs
[nargs
- i
- 1].vt
= func
.params
[i
].vt
;
1797 // Map the args coming from Python to the input parameters in vargs
1800 while ( i
<nargs
&& pi
<PyTuple_Size(args
) ) {
1801 // Move to the next input param.
1802 if (! paramIsIn(func
.params
[i
])) {
1806 // convert the python object
1807 PyObject
* obj
= PyTuple_GetItem(args
, pi
);
1808 if (obj
== Py_None
) // special-case None?
1809 vargs
[nargs
- i
- 1].vt
= VT_EMPTY
;
1811 wxVariant wxV
= _PyObj2Variant(obj
);
1812 if (PyErr_Occurred())
1814 if (!VariantToMSWVariant(wxV
, vargs
[nargs
- i
- 1]) || PyErr_Occurred()) {
1816 msg
<< _T("Unable to convert value to expected type: (")
1817 << _VARTYPEname(vargs
[nargs
- i
- 1].vt
)
1818 << _T(") for parameter ") << i
;
1819 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1829 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1830 VARIANT rv
= CallMethod(func
.memid
, vargs
, nargs
);
1831 wxPyEndAllowThreads(tstate
);
1833 // Convert the return value and any out-params, ignoring
1834 // conversion errors for now
1836 MSWVariantToVariant(rv
, wv
);
1837 rval
= _Variant2PyObj(wv
, true);
1841 // make a list and put the rval in it if it is not None
1842 PyObject
* lst
= PyList_New(0);
1843 if (rval
!= Py_None
)
1844 PyList_Append(lst
, rval
);
1848 // find the out params and convert them
1849 for (int i
= 0; i
< nargs
; i
++) {
1850 VARIANTARG
& va
= vargs
[nargs
- i
- 1];
1851 const wxParamX
&px
= func
.params
[i
];
1853 MSWVariantToVariant(va
, wv
);
1854 PyObject
* obj
= _Variant2PyObj(wv
, true);
1855 PyList_Append(lst
, obj
);
1858 rval
= PyList_AsTuple(lst
);
1861 if (PyErr_Occurred())
1865 wxPyEndBlockThreads(blocked
);
1867 for (int i
= 0; i
< nargs
; i
++)
1868 VariantClear(&vargs
[i
]);
1875 IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow
, wxWindow
);
1878 SWIGINTERNSHORT
long
1879 SWIG_As_long(PyObject
* obj
)
1882 if (!SWIG_AsVal_long(obj
, &v
)) {
1884 this is needed to make valgrind/purify happier.
1886 memset((void*)&v
, 0, sizeof(long));
1893 SWIG_Check_long(PyObject
* obj
)
1895 return SWIG_AsVal_long(obj
, (long*)0);
1898 static void wxActiveXEvent__preCallInit(wxActiveXEvent
*self
,PyObject
*pyself
){
1899 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1900 PyObject
* pList
= PyList_New(0);
1901 PyObject_SetAttrString(pyself
, "paramList", pList
);
1903 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
1904 PyObject
* name
= PyString_FromString((char*)(const char*)self
->ParamName(i
).mb_str());
1905 PyObject
* val
= _Variant2PyObj((*self
)[i
], true);
1906 PyObject_SetAttr(pyself
, name
, val
);
1907 PyList_Append(pList
, name
);
1911 wxPyEndBlockThreads(blocked
);
1913 static void wxActiveXEvent__postCallCleanup(wxActiveXEvent
*self
,PyObject
*pyself
){
1914 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1915 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
1916 PyObject
* val
= PyObject_GetAttrString(
1917 pyself
, (char*)(const char*)self
->ParamName(i
).mb_str());
1918 _PyObj2Variant(val
, (*self
)[i
]);
1921 wxPyEndBlockThreads(blocked
);
1925 // Caller should already have the GIL!
1926 wxVariant
_PyObj2Variant(PyObject
* value
)
1930 if (value
== Py_None
)
1933 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
1934 else if (PyBool_Check(value
))
1935 rval
= (value
== Py_True
) ? true : false;
1938 else if (PyInt_Check(value
))
1939 rval
= PyInt_AS_LONG(value
);
1941 else if (PyFloat_Check(value
))
1942 rval
= PyFloat_AS_DOUBLE(value
);
1944 else if (PyString_Check(value
) || PyUnicode_Check(value
))
1945 rval
= Py2wxString(value
);
1947 // TODO: PyList of strings --> wxArrayString
1953 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _PyObj2Variant");
1960 // This one uses the type of the variant to try and force the conversion
1961 bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
)
1963 wxString type
= wv
.GetType();
1965 if ( type
== _T("long") || type
== _T("bool") || type
== _T("char") )
1966 wv
= PyInt_AsLong(value
);
1968 else if ( type
== _T("string") )
1969 wv
= Py2wxString(value
);
1971 else if ( type
== _T("double") )
1972 wv
= PyFloat_AsDouble(value
);
1975 // it's some other type that we dont' handle yet. Log it?
1981 // Caller should already have the GIL!
1982 PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
)
1984 PyObject
* rval
= NULL
;
1986 if (value
.IsNull()) {
1991 // should "char" be treated as an int or as a string?
1992 else if (value
.IsType(_T("char")) || value
.IsType(_T("long")))
1993 rval
= PyInt_FromLong(value
);
1995 else if (value
.IsType(_T("double")))
1996 rval
= PyFloat_FromDouble(value
);
1998 else if (value
.IsType(_T("bool"))) {
1999 rval
= (bool)value
? Py_True
: Py_False
;
2003 else if (value
.IsType(_T("string")))
2004 rval
= wx2PyString(value
);
2012 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _Variant2PyObj");
2019 wxString
_VARTYPEname(VARTYPE vt
)
2026 return _T("VT_VARIANT");
2046 // decimals are converted from doubles too
2048 return _T("double");
2054 return _T("wx.DateTime");
2057 return _T("string");
2060 return _T("VT_UNKNOWN");
2063 return _T("VT_DISPATCH");
2066 return _T("VT_EMPTY");
2069 return _T("VT_NULL");
2072 return _T("VT_VOID");
2076 msg
<< _T("unsupported type ") << vt
;
2083 // A class derived from out wxActiveXWindow for the IE WebBrowser
2084 // control that will serve as a base class for a Python
2085 // implementation. This is done so we can "eat our own dog food"
2086 // and use a class at least mostly generated by genaxmodule, but
2087 // also get some of the extra stuff like loading a document from
2088 // a string or a stream, getting text contents, etc. that
2089 // Lindsay's version gives us.
2092 #include <wx/mstream.h>
2094 #include <winerror.h>
2095 #include <exdispid.h>
2101 #include "IEHtmlStream.h"
2103 class wxIEHtmlWindowBase
: public wxActiveXWindow
{
2105 wxAutoOleInterface
<IWebBrowser2
> m_webBrowser
;
2107 DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase
);
2111 wxIEHtmlWindowBase ( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
2112 const wxPoint
& pos
= wxDefaultPosition
,
2113 const wxSize
& size
= wxDefaultSize
,
2115 const wxString
& name
= wxPyPanelNameStr
)
2116 : wxActiveXWindow(parent
, clsId
, id
, pos
, size
, style
, name
)
2120 // Get IWebBrowser2 Interface
2121 hret
= m_webBrowser
.QueryInterface(IID_IWebBrowser2
, m_ActiveX
);
2122 wxASSERT(SUCCEEDED(hret
));
2124 // web browser setup
2125 m_webBrowser
->put_MenuBar(VARIANT_FALSE
);
2126 m_webBrowser
->put_AddressBar(VARIANT_FALSE
);
2127 m_webBrowser
->put_StatusBar(VARIANT_FALSE
);
2128 m_webBrowser
->put_ToolBar(VARIANT_FALSE
);
2130 m_webBrowser
->put_RegisterAsBrowser(VARIANT_TRUE
);
2131 m_webBrowser
->put_RegisterAsDropTarget(VARIANT_TRUE
);
2133 m_webBrowser
->Navigate( L
"about:blank", NULL
, NULL
, NULL
, NULL
);
2137 void SetCharset(const wxString
& charset
)
2142 IDispatch
*pDisp
= NULL
;
2143 hret
= m_webBrowser
->get_Document(&pDisp
);
2144 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2148 wxAutoOleInterface
<IHTMLDocument2
> doc(IID_IHTMLDocument2
, disp
);
2150 doc
->put_charset((BSTR
) (const wchar_t *) charset
.wc_str(wxConvUTF8
));
2151 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
2156 bool LoadString(const wxString
& html
)
2159 size_t len
= html
.length();
2160 len
*= sizeof(wxChar
);
2161 data
= (char *) malloc(len
);
2162 memcpy(data
, html
.c_str(), len
);
2163 return LoadStream(new wxOwnedMemInputStream(data
, len
));
2167 bool LoadStream(IStreamAdaptorBase
*pstrm
)
2169 // need to prepend this as poxy MSHTML will not recognise a HTML comment
2170 // as starting a html document and treats it as plain text
2171 // Does nayone know how to force it to html mode ?
2173 // TODO: What to do in this case???
2175 pstrm
->prepend
= _T("<html>");
2178 // strip leading whitespace as it can confuse MSHTML
2179 wxAutoOleInterface
<IStream
> strm(pstrm
);
2181 // Document Interface
2182 IDispatch
*pDisp
= NULL
;
2183 HRESULT hret
= m_webBrowser
->get_Document(&pDisp
);
2186 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2189 // get IPersistStreamInit
2190 wxAutoOleInterface
<IPersistStreamInit
>
2191 pPersistStreamInit(IID_IPersistStreamInit
, disp
);
2193 if (pPersistStreamInit
.Ok())
2195 HRESULT hr
= pPersistStreamInit
->InitNew();
2197 hr
= pPersistStreamInit
->Load(strm
);
2199 return SUCCEEDED(hr
);
2205 bool LoadStream(wxInputStream
*is
)
2207 // wrap reference around stream
2208 IwxStreamAdaptor
*pstrm
= new IwxStreamAdaptor(is
);
2211 return LoadStream(pstrm
);
2215 wxString
GetStringSelection(bool asHTML
)
2217 wxAutoOleInterface
<IHTMLTxtRange
> tr(wxieGetSelRange(m_oleObject
));
2219 return wxEmptyString
;
2222 HRESULT hr
= E_FAIL
;
2225 hr
= tr
->get_htmlText(&text
);
2227 hr
= tr
->get_text(&text
);
2229 return wxEmptyString
;
2232 SysFreeString(text
);
2237 wxString
GetText(bool asHTML
)
2239 if (! m_webBrowser
.Ok())
2240 return wxEmptyString
;
2242 // get document dispatch interface
2243 IDispatch
*iDisp
= NULL
;
2244 HRESULT hr
= m_webBrowser
->get_Document(&iDisp
);
2246 return wxEmptyString
;
2248 // Query for Document Interface
2249 wxAutoOleInterface
<IHTMLDocument2
> hd(IID_IHTMLDocument2
, iDisp
);
2253 return wxEmptyString
;
2256 IHTMLElement
*_body
= NULL
;
2257 hd
->get_body(&_body
);
2259 return wxEmptyString
;
2260 wxAutoOleInterface
<IHTMLElement
> body(_body
);
2267 hr
= body
->get_innerHTML(&text
);
2269 hr
= body
->get_innerText(&text
);
2271 return wxEmptyString
;
2274 SysFreeString(text
);
2280 // void wxIEHtmlWin::SetEditMode(bool seton)
2282 // m_bAmbientUserMode = ! seton;
2283 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
2286 // bool wxIEHtmlWin::GetEditMode()
2288 // return ! m_bAmbientUserMode;
2292 IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase
, wxActiveXWindow
);
2297 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
2299 if (obj
== Py_True
) {
2300 if (val
) *val
= true;
2303 if (obj
== Py_False
) {
2304 if (val
) *val
= false;
2308 if (SWIG_AsVal_int(obj
, &res
)) {
2309 if (val
) *val
= res
? true : false;
2315 SWIG_type_error("bool", obj
);
2321 SWIGINTERNSHORT
bool
2322 SWIG_As_bool(PyObject
* obj
)
2325 if (!SWIG_AsVal_bool(obj
, &v
)) {
2327 this is needed to make valgrind/purify happier.
2329 memset((void*)&v
, 0, sizeof(bool));
2336 SWIG_Check_bool(PyObject
* obj
)
2338 return SWIG_AsVal_bool(obj
, (bool*)0);
2344 static PyObject
*_wrap_new_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2345 PyObject
*resultobj
;
2346 wxString
*arg1
= 0 ;
2348 bool temp1
= false ;
2349 PyObject
* obj0
= 0 ;
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_CLSID",kwnames
,&obj0
)) goto fail
;
2356 arg1
= wxString_in_helper(obj0
);
2357 if (arg1
== NULL
) SWIG_fail
;
2361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2362 result
= (CLSID
*)new_CLSID((wxString
const &)*arg1
);
2364 wxPyEndAllowThreads(__tstate
);
2365 if (PyErr_Occurred()) SWIG_fail
;
2367 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 1);
2382 static PyObject
*_wrap_delete_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2383 PyObject
*resultobj
;
2384 CLSID
*arg1
= (CLSID
*) 0 ;
2385 PyObject
* obj0
= 0 ;
2387 (char *) "self", NULL
2390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_CLSID",kwnames
,&obj0
)) goto fail
;
2391 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2392 if (SWIG_arg_fail(1)) SWIG_fail
;
2394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2397 wxPyEndAllowThreads(__tstate
);
2398 if (PyErr_Occurred()) SWIG_fail
;
2400 Py_INCREF(Py_None
); resultobj
= Py_None
;
2407 static PyObject
*_wrap_CLSID_GetCLSIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2408 PyObject
*resultobj
;
2409 CLSID
*arg1
= (CLSID
*) 0 ;
2411 PyObject
* obj0
= 0 ;
2413 (char *) "self", NULL
2416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetCLSIDString",kwnames
,&obj0
)) goto fail
;
2417 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2418 if (SWIG_arg_fail(1)) SWIG_fail
;
2420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2421 result
= CLSID_GetCLSIDString(arg1
);
2423 wxPyEndAllowThreads(__tstate
);
2424 if (PyErr_Occurred()) SWIG_fail
;
2428 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2430 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2439 static PyObject
*_wrap_CLSID_GetProgIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2440 PyObject
*resultobj
;
2441 CLSID
*arg1
= (CLSID
*) 0 ;
2443 PyObject
* obj0
= 0 ;
2445 (char *) "self", NULL
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetProgIDString",kwnames
,&obj0
)) goto fail
;
2449 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2450 if (SWIG_arg_fail(1)) SWIG_fail
;
2452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2453 result
= CLSID_GetProgIDString(arg1
);
2455 wxPyEndAllowThreads(__tstate
);
2456 if (PyErr_Occurred()) SWIG_fail
;
2460 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2462 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2471 static PyObject
* CLSID_swigregister(PyObject
*, PyObject
*args
) {
2473 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2474 SWIG_TypeClientData(SWIGTYPE_p_CLSID
, obj
);
2476 return Py_BuildValue((char *)"");
2478 static PyObject
*_wrap_ParamX_flags_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2479 PyObject
*resultobj
;
2480 wxParamX
*arg1
= (wxParamX
*) 0 ;
2482 PyObject
* obj0
= 0 ;
2484 (char *) "self", NULL
2487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_flags_get",kwnames
,&obj0
)) goto fail
;
2488 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2489 if (SWIG_arg_fail(1)) SWIG_fail
;
2490 result
= (USHORT
) ((arg1
)->flags
);
2493 resultobj
= SWIG_From_unsigned_SS_short((unsigned short)(result
));
2501 static PyObject
*_wrap_ParamX_isPtr_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2502 PyObject
*resultobj
;
2503 wxParamX
*arg1
= (wxParamX
*) 0 ;
2505 PyObject
* obj0
= 0 ;
2507 (char *) "self", NULL
2510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isPtr_get",kwnames
,&obj0
)) goto fail
;
2511 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2512 if (SWIG_arg_fail(1)) SWIG_fail
;
2513 result
= (bool) ((arg1
)->isPtr
);
2516 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2524 static PyObject
*_wrap_ParamX_isSafeArray_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
*resultobj
;
2526 wxParamX
*arg1
= (wxParamX
*) 0 ;
2528 PyObject
* obj0
= 0 ;
2530 (char *) "self", NULL
2533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isSafeArray_get",kwnames
,&obj0
)) goto fail
;
2534 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2535 if (SWIG_arg_fail(1)) SWIG_fail
;
2536 result
= (bool) ((arg1
)->isSafeArray
);
2539 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2547 static PyObject
*_wrap_ParamX_isOptional_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2548 PyObject
*resultobj
;
2549 wxParamX
*arg1
= (wxParamX
*) 0 ;
2551 PyObject
* obj0
= 0 ;
2553 (char *) "self", NULL
2556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isOptional_get",kwnames
,&obj0
)) goto fail
;
2557 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2558 if (SWIG_arg_fail(1)) SWIG_fail
;
2559 result
= (bool) ((arg1
)->isOptional
);
2562 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2570 static PyObject
*_wrap_ParamX_vt_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2571 PyObject
*resultobj
;
2572 wxParamX
*arg1
= (wxParamX
*) 0 ;
2574 PyObject
* obj0
= 0 ;
2576 (char *) "self", NULL
2579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_get",kwnames
,&obj0
)) goto fail
;
2580 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2581 if (SWIG_arg_fail(1)) SWIG_fail
;
2582 result
= (VARTYPE
) ((arg1
)->vt
);
2585 resultobj
= SWIG_From_unsigned_SS_short((unsigned short)(result
));
2593 static PyObject
*_wrap_ParamX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2594 PyObject
*resultobj
;
2595 wxParamX
*arg1
= (wxParamX
*) 0 ;
2597 PyObject
* obj0
= 0 ;
2599 (char *) "self", NULL
2602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_name_get",kwnames
,&obj0
)) goto fail
;
2603 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2604 if (SWIG_arg_fail(1)) SWIG_fail
;
2605 result
= (wxString
*)& ((arg1
)->name
);
2609 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2611 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2620 static PyObject
*_wrap_ParamX_vt_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2621 PyObject
*resultobj
;
2622 wxParamX
*arg1
= (wxParamX
*) 0 ;
2624 PyObject
* obj0
= 0 ;
2626 (char *) "self", NULL
2629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_type_get",kwnames
,&obj0
)) goto fail
;
2630 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2631 if (SWIG_arg_fail(1)) SWIG_fail
;
2633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2634 result
= wxParamX_vt_type_get(arg1
);
2636 wxPyEndAllowThreads(__tstate
);
2637 if (PyErr_Occurred()) SWIG_fail
;
2641 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2643 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2652 static PyObject
*_wrap_ParamX_IsIn(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2653 PyObject
*resultobj
;
2654 wxParamX
*arg1
= (wxParamX
*) 0 ;
2656 PyObject
* obj0
= 0 ;
2658 (char *) "self", NULL
2661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsIn",kwnames
,&obj0
)) goto fail
;
2662 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2663 if (SWIG_arg_fail(1)) SWIG_fail
;
2665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2666 result
= (bool)((wxParamX
const *)arg1
)->IsIn();
2668 wxPyEndAllowThreads(__tstate
);
2669 if (PyErr_Occurred()) SWIG_fail
;
2672 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2680 static PyObject
*_wrap_ParamX_IsOut(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2681 PyObject
*resultobj
;
2682 wxParamX
*arg1
= (wxParamX
*) 0 ;
2684 PyObject
* obj0
= 0 ;
2686 (char *) "self", NULL
2689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsOut",kwnames
,&obj0
)) goto fail
;
2690 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2691 if (SWIG_arg_fail(1)) SWIG_fail
;
2693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2694 result
= (bool)((wxParamX
const *)arg1
)->IsOut();
2696 wxPyEndAllowThreads(__tstate
);
2697 if (PyErr_Occurred()) SWIG_fail
;
2700 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2708 static PyObject
*_wrap_ParamX_IsRetVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2709 PyObject
*resultobj
;
2710 wxParamX
*arg1
= (wxParamX
*) 0 ;
2712 PyObject
* obj0
= 0 ;
2714 (char *) "self", NULL
2717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsRetVal",kwnames
,&obj0
)) goto fail
;
2718 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2719 if (SWIG_arg_fail(1)) SWIG_fail
;
2721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2722 result
= (bool)((wxParamX
const *)arg1
)->IsRetVal();
2724 wxPyEndAllowThreads(__tstate
);
2725 if (PyErr_Occurred()) SWIG_fail
;
2728 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2736 static PyObject
* ParamX_swigregister(PyObject
*, PyObject
*args
) {
2738 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2739 SWIG_TypeClientData(SWIGTYPE_p_wxParamX
, obj
);
2741 return Py_BuildValue((char *)"");
2743 static PyObject
*_wrap_FuncX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2744 PyObject
*resultobj
;
2745 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2747 PyObject
* obj0
= 0 ;
2749 (char *) "self", NULL
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_name_get",kwnames
,&obj0
)) goto fail
;
2753 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2754 if (SWIG_arg_fail(1)) SWIG_fail
;
2755 result
= (wxString
*)& ((arg1
)->name
);
2759 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2761 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2770 static PyObject
*_wrap_FuncX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2771 PyObject
*resultobj
;
2772 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2774 PyObject
* obj0
= 0 ;
2776 (char *) "self", NULL
2779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_memid_get",kwnames
,&obj0
)) goto fail
;
2780 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2781 if (SWIG_arg_fail(1)) SWIG_fail
;
2782 result
= (MEMBERID
) ((arg1
)->memid
);
2785 resultobj
= SWIG_From_long((long)(result
));
2793 static PyObject
*_wrap_FuncX_hasOut_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2794 PyObject
*resultobj
;
2795 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2797 PyObject
* obj0
= 0 ;
2799 (char *) "self", NULL
2802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_hasOut_get",kwnames
,&obj0
)) goto fail
;
2803 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2804 if (SWIG_arg_fail(1)) SWIG_fail
;
2805 result
= (bool) ((arg1
)->hasOut
);
2808 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2816 static PyObject
*_wrap_FuncX_retType_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2817 PyObject
*resultobj
;
2818 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2820 PyObject
* obj0
= 0 ;
2822 (char *) "self", NULL
2825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_retType_get",kwnames
,&obj0
)) goto fail
;
2826 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2827 if (SWIG_arg_fail(1)) SWIG_fail
;
2828 result
= (wxParamX
*)& ((arg1
)->retType
);
2830 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2837 static PyObject
*_wrap_FuncX_params_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
*resultobj
;
2839 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2840 wxParamXArray
*result
;
2841 PyObject
* obj0
= 0 ;
2843 (char *) "self", NULL
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_params_get",kwnames
,&obj0
)) goto fail
;
2847 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2848 if (SWIG_arg_fail(1)) SWIG_fail
;
2849 result
= (wxParamXArray
*)& ((arg1
)->params
);
2851 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamXArray
, 0);
2858 static PyObject
* FuncX_swigregister(PyObject
*, PyObject
*args
) {
2860 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2861 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX
, obj
);
2863 return Py_BuildValue((char *)"");
2865 static PyObject
*_wrap_PropX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2866 PyObject
*resultobj
;
2867 wxPropX
*arg1
= (wxPropX
*) 0 ;
2869 PyObject
* obj0
= 0 ;
2871 (char *) "self", NULL
2874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_name_get",kwnames
,&obj0
)) goto fail
;
2875 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2876 if (SWIG_arg_fail(1)) SWIG_fail
;
2877 result
= (wxString
*)& ((arg1
)->name
);
2881 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2883 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2892 static PyObject
*_wrap_PropX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2893 PyObject
*resultobj
;
2894 wxPropX
*arg1
= (wxPropX
*) 0 ;
2896 PyObject
* obj0
= 0 ;
2898 (char *) "self", NULL
2901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_memid_get",kwnames
,&obj0
)) goto fail
;
2902 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2903 if (SWIG_arg_fail(1)) SWIG_fail
;
2904 result
= (MEMBERID
) ((arg1
)->memid
);
2907 resultobj
= SWIG_From_long((long)(result
));
2915 static PyObject
*_wrap_PropX_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2916 PyObject
*resultobj
;
2917 wxPropX
*arg1
= (wxPropX
*) 0 ;
2919 PyObject
* obj0
= 0 ;
2921 (char *) "self", NULL
2924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_type_get",kwnames
,&obj0
)) goto fail
;
2925 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2926 if (SWIG_arg_fail(1)) SWIG_fail
;
2927 result
= (wxParamX
*)& ((arg1
)->type
);
2929 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2936 static PyObject
*_wrap_PropX_arg_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
*resultobj
;
2938 wxPropX
*arg1
= (wxPropX
*) 0 ;
2940 PyObject
* obj0
= 0 ;
2942 (char *) "self", NULL
2945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_arg_get",kwnames
,&obj0
)) goto fail
;
2946 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2947 if (SWIG_arg_fail(1)) SWIG_fail
;
2948 result
= (wxParamX
*)& ((arg1
)->arg
);
2950 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
2957 static PyObject
*_wrap_PropX_putByRef_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2958 PyObject
*resultobj
;
2959 wxPropX
*arg1
= (wxPropX
*) 0 ;
2961 PyObject
* obj0
= 0 ;
2963 (char *) "self", NULL
2966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_putByRef_get",kwnames
,&obj0
)) goto fail
;
2967 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2968 if (SWIG_arg_fail(1)) SWIG_fail
;
2969 result
= (bool) ((arg1
)->putByRef
);
2972 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2980 static PyObject
*_wrap_PropX_CanGet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2981 PyObject
*resultobj
;
2982 wxPropX
*arg1
= (wxPropX
*) 0 ;
2984 PyObject
* obj0
= 0 ;
2986 (char *) "self", NULL
2989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanGet",kwnames
,&obj0
)) goto fail
;
2990 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
2991 if (SWIG_arg_fail(1)) SWIG_fail
;
2993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2994 result
= (bool)((wxPropX
const *)arg1
)->CanGet();
2996 wxPyEndAllowThreads(__tstate
);
2997 if (PyErr_Occurred()) SWIG_fail
;
3000 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3008 static PyObject
*_wrap_PropX_CanSet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3009 PyObject
*resultobj
;
3010 wxPropX
*arg1
= (wxPropX
*) 0 ;
3012 PyObject
* obj0
= 0 ;
3014 (char *) "self", NULL
3017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanSet",kwnames
,&obj0
)) goto fail
;
3018 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3019 if (SWIG_arg_fail(1)) SWIG_fail
;
3021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3022 result
= (bool)((wxPropX
const *)arg1
)->CanSet();
3024 wxPyEndAllowThreads(__tstate
);
3025 if (PyErr_Occurred()) SWIG_fail
;
3028 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3036 static PyObject
* PropX_swigregister(PyObject
*, PyObject
*args
) {
3038 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3039 SWIG_TypeClientData(SWIGTYPE_p_wxPropX
, obj
);
3041 return Py_BuildValue((char *)"");
3043 static PyObject
*_wrap_ParamXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3044 PyObject
*resultobj
;
3045 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3047 PyObject
* obj0
= 0 ;
3049 (char *) "self", NULL
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3053 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3054 if (SWIG_arg_fail(1)) SWIG_fail
;
3056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3057 result
= (bool)wxParamXArray___nonzero__(arg1
);
3059 wxPyEndAllowThreads(__tstate
);
3060 if (PyErr_Occurred()) SWIG_fail
;
3063 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3071 static PyObject
*_wrap_ParamXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
*resultobj
;
3073 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3075 PyObject
* obj0
= 0 ;
3077 (char *) "self", NULL
3080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___len__",kwnames
,&obj0
)) goto fail
;
3081 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3082 if (SWIG_arg_fail(1)) SWIG_fail
;
3084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3085 result
= (int)wxParamXArray___len__(arg1
);
3087 wxPyEndAllowThreads(__tstate
);
3088 if (PyErr_Occurred()) SWIG_fail
;
3091 resultobj
= SWIG_From_int((int)(result
));
3099 static PyObject
*_wrap_ParamXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3100 PyObject
*resultobj
;
3101 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3104 PyObject
* obj0
= 0 ;
3105 PyObject
* obj1
= 0 ;
3107 (char *) "self",(char *) "idx", NULL
3110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ParamXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3111 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3112 if (SWIG_arg_fail(1)) SWIG_fail
;
3114 arg2
= (int)(SWIG_As_int(obj1
));
3115 if (SWIG_arg_fail(2)) SWIG_fail
;
3118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3120 wxParamX
const &_result_ref
= wxParamXArray___getitem__(arg1
,arg2
);
3121 result
= (wxParamX
*) &_result_ref
;
3124 wxPyEndAllowThreads(__tstate
);
3125 if (PyErr_Occurred()) SWIG_fail
;
3127 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3134 static PyObject
* ParamXArray_swigregister(PyObject
*, PyObject
*args
) {
3136 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3137 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray
, obj
);
3139 return Py_BuildValue((char *)"");
3141 static PyObject
*_wrap_FuncXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3142 PyObject
*resultobj
;
3143 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3145 PyObject
* obj0
= 0 ;
3147 (char *) "self", NULL
3150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3151 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3152 if (SWIG_arg_fail(1)) SWIG_fail
;
3154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3155 result
= (bool)wxFuncXArray___nonzero__(arg1
);
3157 wxPyEndAllowThreads(__tstate
);
3158 if (PyErr_Occurred()) SWIG_fail
;
3161 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3169 static PyObject
*_wrap_FuncXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3170 PyObject
*resultobj
;
3171 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3173 PyObject
* obj0
= 0 ;
3175 (char *) "self", NULL
3178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___len__",kwnames
,&obj0
)) goto fail
;
3179 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3180 if (SWIG_arg_fail(1)) SWIG_fail
;
3182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3183 result
= (int)wxFuncXArray___len__(arg1
);
3185 wxPyEndAllowThreads(__tstate
);
3186 if (PyErr_Occurred()) SWIG_fail
;
3189 resultobj
= SWIG_From_int((int)(result
));
3197 static PyObject
*_wrap_FuncXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3198 PyObject
*resultobj
;
3199 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3202 PyObject
* obj0
= 0 ;
3203 PyObject
* obj1
= 0 ;
3205 (char *) "self",(char *) "idx", NULL
3208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FuncXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3209 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3210 if (SWIG_arg_fail(1)) SWIG_fail
;
3212 arg2
= (int)(SWIG_As_int(obj1
));
3213 if (SWIG_arg_fail(2)) SWIG_fail
;
3216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3218 wxFuncX
const &_result_ref
= wxFuncXArray___getitem__(arg1
,arg2
);
3219 result
= (wxFuncX
*) &_result_ref
;
3222 wxPyEndAllowThreads(__tstate
);
3223 if (PyErr_Occurred()) SWIG_fail
;
3225 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3232 static PyObject
* FuncXArray_swigregister(PyObject
*, PyObject
*args
) {
3234 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3235 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray
, obj
);
3237 return Py_BuildValue((char *)"");
3239 static PyObject
*_wrap_PropXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3240 PyObject
*resultobj
;
3241 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3243 PyObject
* obj0
= 0 ;
3245 (char *) "self", NULL
3248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3249 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3250 if (SWIG_arg_fail(1)) SWIG_fail
;
3252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3253 result
= (bool)wxPropXArray___nonzero__(arg1
);
3255 wxPyEndAllowThreads(__tstate
);
3256 if (PyErr_Occurred()) SWIG_fail
;
3259 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3267 static PyObject
*_wrap_PropXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3268 PyObject
*resultobj
;
3269 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3271 PyObject
* obj0
= 0 ;
3273 (char *) "self", NULL
3276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___len__",kwnames
,&obj0
)) goto fail
;
3277 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3278 if (SWIG_arg_fail(1)) SWIG_fail
;
3280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3281 result
= (int)wxPropXArray___len__(arg1
);
3283 wxPyEndAllowThreads(__tstate
);
3284 if (PyErr_Occurred()) SWIG_fail
;
3287 resultobj
= SWIG_From_int((int)(result
));
3295 static PyObject
*_wrap_PropXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3296 PyObject
*resultobj
;
3297 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3300 PyObject
* obj0
= 0 ;
3301 PyObject
* obj1
= 0 ;
3303 (char *) "self",(char *) "idx", NULL
3306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PropXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3307 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3308 if (SWIG_arg_fail(1)) SWIG_fail
;
3310 arg2
= (int)(SWIG_As_int(obj1
));
3311 if (SWIG_arg_fail(2)) SWIG_fail
;
3314 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3316 wxPropX
const &_result_ref
= wxPropXArray___getitem__(arg1
,arg2
);
3317 result
= (wxPropX
*) &_result_ref
;
3320 wxPyEndAllowThreads(__tstate
);
3321 if (PyErr_Occurred()) SWIG_fail
;
3323 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3330 static PyObject
* PropXArray_swigregister(PyObject
*, PyObject
*args
) {
3332 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3333 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray
, obj
);
3335 return Py_BuildValue((char *)"");
3337 static PyObject
*_wrap_new_ActiveXWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
*resultobj
;
3339 wxWindow
*arg1
= (wxWindow
*) 0 ;
3341 int arg3
= (int) -1 ;
3342 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3343 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3344 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3345 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3346 long arg6
= (long) 0 ;
3347 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
3348 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3349 wxActiveXWindow
*result
;
3352 bool temp7
= false ;
3353 PyObject
* obj0
= 0 ;
3354 PyObject
* obj1
= 0 ;
3355 PyObject
* obj2
= 0 ;
3356 PyObject
* obj3
= 0 ;
3357 PyObject
* obj4
= 0 ;
3358 PyObject
* obj5
= 0 ;
3359 PyObject
* obj6
= 0 ;
3361 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3365 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3366 if (SWIG_arg_fail(1)) SWIG_fail
;
3368 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
3369 if (SWIG_arg_fail(2)) SWIG_fail
;
3371 SWIG_null_ref("CLSID");
3373 if (SWIG_arg_fail(2)) SWIG_fail
;
3377 arg3
= (int)(SWIG_As_int(obj2
));
3378 if (SWIG_arg_fail(3)) SWIG_fail
;
3384 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3390 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3395 arg6
= (long)(SWIG_As_long(obj5
));
3396 if (SWIG_arg_fail(6)) SWIG_fail
;
3401 arg7
= wxString_in_helper(obj6
);
3402 if (arg7
== NULL
) SWIG_fail
;
3407 if (!wxPyCheckForApp()) SWIG_fail
;
3408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3409 result
= (wxActiveXWindow
*)new wxActiveXWindow(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3411 wxPyEndAllowThreads(__tstate
);
3412 if (PyErr_Occurred()) SWIG_fail
;
3414 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxActiveXWindow
, 1);
3429 static PyObject
*_wrap_ActiveXWindow_GetCLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3430 PyObject
*resultobj
;
3431 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3433 PyObject
* obj0
= 0 ;
3435 (char *) "self", NULL
3438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetCLSID",kwnames
,&obj0
)) goto fail
;
3439 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3440 if (SWIG_arg_fail(1)) SWIG_fail
;
3442 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3444 CLSID
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetCLSID();
3445 result
= (CLSID
*) &_result_ref
;
3448 wxPyEndAllowThreads(__tstate
);
3449 if (PyErr_Occurred()) SWIG_fail
;
3451 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 0);
3458 static PyObject
*_wrap_ActiveXWindow_GetAXEventCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3459 PyObject
*resultobj
;
3460 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3462 PyObject
* obj0
= 0 ;
3464 (char *) "self", NULL
3467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames
,&obj0
)) goto fail
;
3468 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3469 if (SWIG_arg_fail(1)) SWIG_fail
;
3471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3472 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXEventCount();
3474 wxPyEndAllowThreads(__tstate
);
3475 if (PyErr_Occurred()) SWIG_fail
;
3478 resultobj
= SWIG_From_int((int)(result
));
3486 static PyObject
*_wrap_ActiveXWindow_GetAXEventDesc(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
*resultobj
;
3488 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3491 PyObject
* obj0
= 0 ;
3492 PyObject
* obj1
= 0 ;
3494 (char *) "self",(char *) "idx", NULL
3497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames
,&obj0
,&obj1
)) goto fail
;
3498 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3499 if (SWIG_arg_fail(1)) SWIG_fail
;
3501 arg2
= (int)(SWIG_As_int(obj1
));
3502 if (SWIG_arg_fail(2)) SWIG_fail
;
3505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3507 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXEventDesc(arg2
);
3508 result
= (wxFuncX
*) &_result_ref
;
3511 wxPyEndAllowThreads(__tstate
);
3512 if (PyErr_Occurred()) SWIG_fail
;
3514 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3521 static PyObject
*_wrap_ActiveXWindow_GetAXPropCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3522 PyObject
*resultobj
;
3523 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3525 PyObject
* obj0
= 0 ;
3527 (char *) "self", NULL
3530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames
,&obj0
)) goto fail
;
3531 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3532 if (SWIG_arg_fail(1)) SWIG_fail
;
3534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3535 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXPropCount();
3537 wxPyEndAllowThreads(__tstate
);
3538 if (PyErr_Occurred()) SWIG_fail
;
3541 resultobj
= SWIG_From_int((int)(result
));
3549 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3550 PyObject
*resultobj
;
3551 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3554 PyObject
* obj0
= 0 ;
3555 PyObject
* obj1
= 0 ;
3557 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3558 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3559 if (SWIG_arg_fail(1)) SWIG_fail
;
3561 arg2
= (int)(SWIG_As_int(obj1
));
3562 if (SWIG_arg_fail(2)) SWIG_fail
;
3565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3567 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc(arg2
);
3568 result
= (wxPropX
*) &_result_ref
;
3571 wxPyEndAllowThreads(__tstate
);
3572 if (PyErr_Occurred()) SWIG_fail
;
3574 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3581 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3582 PyObject
*resultobj
;
3583 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3584 wxString
*arg2
= 0 ;
3586 bool temp2
= false ;
3587 PyObject
* obj0
= 0 ;
3588 PyObject
* obj1
= 0 ;
3590 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3591 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3592 if (SWIG_arg_fail(1)) SWIG_fail
;
3594 arg2
= wxString_in_helper(obj1
);
3595 if (arg2
== NULL
) SWIG_fail
;
3599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3601 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc((wxString
const &)*arg2
);
3602 result
= (wxPropX
*) &_result_ref
;
3605 wxPyEndAllowThreads(__tstate
);
3606 if (PyErr_Occurred()) SWIG_fail
;
3608 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3623 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc(PyObject
*self
, PyObject
*args
) {
3628 argc
= PyObject_Length(args
);
3629 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3630 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3636 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3645 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3648 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self
,args
);
3656 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3664 _v
= SWIG_Check_int(argv
[1]);
3666 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self
,args
);
3671 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
3676 static PyObject
*_wrap_ActiveXWindow_GetAXMethodCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3677 PyObject
*resultobj
;
3678 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3680 PyObject
* obj0
= 0 ;
3682 (char *) "self", NULL
3685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames
,&obj0
)) goto fail
;
3686 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3687 if (SWIG_arg_fail(1)) SWIG_fail
;
3689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3690 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXMethodCount();
3692 wxPyEndAllowThreads(__tstate
);
3693 if (PyErr_Occurred()) SWIG_fail
;
3696 resultobj
= SWIG_From_int((int)(result
));
3704 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3705 PyObject
*resultobj
;
3706 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3709 PyObject
* obj0
= 0 ;
3710 PyObject
* obj1
= 0 ;
3712 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3713 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3714 if (SWIG_arg_fail(1)) SWIG_fail
;
3716 arg2
= (int)(SWIG_As_int(obj1
));
3717 if (SWIG_arg_fail(2)) SWIG_fail
;
3720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3722 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc(arg2
);
3723 result
= (wxFuncX
*) &_result_ref
;
3726 wxPyEndAllowThreads(__tstate
);
3727 if (PyErr_Occurred()) SWIG_fail
;
3729 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3736 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3737 PyObject
*resultobj
;
3738 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3739 wxString
*arg2
= 0 ;
3741 bool temp2
= false ;
3742 PyObject
* obj0
= 0 ;
3743 PyObject
* obj1
= 0 ;
3745 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3746 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3747 if (SWIG_arg_fail(1)) SWIG_fail
;
3749 arg2
= wxString_in_helper(obj1
);
3750 if (arg2
== NULL
) SWIG_fail
;
3754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3756 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc((wxString
const &)*arg2
);
3757 result
= (wxFuncX
*) &_result_ref
;
3760 wxPyEndAllowThreads(__tstate
);
3761 if (PyErr_Occurred()) SWIG_fail
;
3763 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3778 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc(PyObject
*self
, PyObject
*args
) {
3783 argc
= PyObject_Length(args
);
3784 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3785 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3791 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3800 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3803 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self
,args
);
3811 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3819 _v
= SWIG_Check_int(argv
[1]);
3821 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self
,args
);
3826 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
3831 static PyObject
*_wrap_ActiveXWindow_GetAXEvents(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3832 PyObject
*resultobj
;
3833 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3834 wxFuncXArray
*result
;
3835 PyObject
* obj0
= 0 ;
3837 (char *) "self", NULL
3840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEvents",kwnames
,&obj0
)) goto fail
;
3841 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3842 if (SWIG_arg_fail(1)) SWIG_fail
;
3844 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3846 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXEvents();
3847 result
= (wxFuncXArray
*) &_result_ref
;
3850 wxPyEndAllowThreads(__tstate
);
3851 if (PyErr_Occurred()) SWIG_fail
;
3853 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
3860 static PyObject
*_wrap_ActiveXWindow_GetAXMethods(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3861 PyObject
*resultobj
;
3862 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3863 wxFuncXArray
*result
;
3864 PyObject
* obj0
= 0 ;
3866 (char *) "self", NULL
3869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethods",kwnames
,&obj0
)) goto fail
;
3870 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3871 if (SWIG_arg_fail(1)) SWIG_fail
;
3873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3875 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXMethods();
3876 result
= (wxFuncXArray
*) &_result_ref
;
3879 wxPyEndAllowThreads(__tstate
);
3880 if (PyErr_Occurred()) SWIG_fail
;
3882 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
3889 static PyObject
*_wrap_ActiveXWindow_GetAXProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3890 PyObject
*resultobj
;
3891 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3892 wxPropXArray
*result
;
3893 PyObject
* obj0
= 0 ;
3895 (char *) "self", NULL
3898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXProperties",kwnames
,&obj0
)) goto fail
;
3899 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3900 if (SWIG_arg_fail(1)) SWIG_fail
;
3902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3904 wxPropXArray
const &_result_ref
= (arg1
)->GetAXProperties();
3905 result
= (wxPropXArray
*) &_result_ref
;
3908 wxPyEndAllowThreads(__tstate
);
3909 if (PyErr_Occurred()) SWIG_fail
;
3911 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropXArray
, 0);
3918 static PyObject
*_wrap_ActiveXWindow_SetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3919 PyObject
*resultobj
;
3920 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3921 wxString
*arg2
= 0 ;
3922 PyObject
*arg3
= (PyObject
*) 0 ;
3923 bool temp2
= false ;
3924 PyObject
* obj0
= 0 ;
3925 PyObject
* obj1
= 0 ;
3926 PyObject
* obj2
= 0 ;
3928 (char *) "self",(char *) "name",(char *) "value", NULL
3931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3932 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3933 if (SWIG_arg_fail(1)) SWIG_fail
;
3935 arg2
= wxString_in_helper(obj1
);
3936 if (arg2
== NULL
) SWIG_fail
;
3941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3942 (arg1
)->SetAXProp((wxString
const &)*arg2
,arg3
);
3944 wxPyEndAllowThreads(__tstate
);
3945 if (PyErr_Occurred()) SWIG_fail
;
3947 Py_INCREF(Py_None
); resultobj
= Py_None
;
3962 static PyObject
*_wrap_ActiveXWindow_GetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3963 PyObject
*resultobj
;
3964 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3965 wxString
*arg2
= 0 ;
3967 bool temp2
= false ;
3968 PyObject
* obj0
= 0 ;
3969 PyObject
* obj1
= 0 ;
3971 (char *) "self",(char *) "name", NULL
3974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXProp",kwnames
,&obj0
,&obj1
)) goto fail
;
3975 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3976 if (SWIG_arg_fail(1)) SWIG_fail
;
3978 arg2
= wxString_in_helper(obj1
);
3979 if (arg2
== NULL
) SWIG_fail
;
3983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3984 result
= (PyObject
*)(arg1
)->GetAXProp((wxString
const &)*arg2
);
3986 wxPyEndAllowThreads(__tstate
);
3987 if (PyErr_Occurred()) SWIG_fail
;
4004 static PyObject
*_wrap_ActiveXWindow__CallAXMethod(PyObject
*, PyObject
*args
) {
4005 PyObject
*resultobj
;
4006 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4007 wxString
*arg2
= 0 ;
4008 PyObject
*arg3
= (PyObject
*) 0 ;
4010 bool temp2
= false ;
4011 PyObject
* obj0
= 0 ;
4012 PyObject
* obj1
= 0 ;
4013 PyObject
* obj2
= 0 ;
4015 if(!PyArg_ParseTuple(args
,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0
,&obj1
,&obj2
)) goto fail
;
4016 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4017 if (SWIG_arg_fail(1)) SWIG_fail
;
4019 arg2
= wxString_in_helper(obj1
);
4020 if (arg2
== NULL
) SWIG_fail
;
4025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4026 result
= (PyObject
*)(arg1
)->_CallAXMethod((wxString
const &)*arg2
,arg3
);
4028 wxPyEndAllowThreads(__tstate
);
4029 if (PyErr_Occurred()) SWIG_fail
;
4046 static PyObject
* ActiveXWindow_swigregister(PyObject
*, PyObject
*args
) {
4048 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4049 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow
, obj
);
4051 return Py_BuildValue((char *)"");
4053 static PyObject
*_wrap_RegisterActiveXEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4054 PyObject
*resultobj
;
4055 wxString
*arg1
= 0 ;
4057 bool temp1
= false ;
4058 PyObject
* obj0
= 0 ;
4060 (char *) "eventName", NULL
4063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RegisterActiveXEvent",kwnames
,&obj0
)) goto fail
;
4065 arg1
= wxString_in_helper(obj0
);
4066 if (arg1
== NULL
) SWIG_fail
;
4070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4071 result
= (wxEventType
)RegisterActiveXEvent((wxString
const &)*arg1
);
4073 wxPyEndAllowThreads(__tstate
);
4074 if (PyErr_Occurred()) SWIG_fail
;
4077 resultobj
= SWIG_From_int((int)(result
));
4093 static PyObject
*_wrap_ActiveXEvent_EventName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4094 PyObject
*resultobj
;
4095 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4097 PyObject
* obj0
= 0 ;
4099 (char *) "self", NULL
4102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXEvent_EventName",kwnames
,&obj0
)) goto fail
;
4103 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4104 if (SWIG_arg_fail(1)) SWIG_fail
;
4106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4107 result
= (arg1
)->EventName();
4109 wxPyEndAllowThreads(__tstate
);
4110 if (PyErr_Occurred()) SWIG_fail
;
4114 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4116 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4125 static PyObject
*_wrap_ActiveXEvent__preCallInit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4126 PyObject
*resultobj
;
4127 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4128 PyObject
*arg2
= (PyObject
*) 0 ;
4129 PyObject
* obj0
= 0 ;
4130 PyObject
* obj1
= 0 ;
4132 (char *) "self",(char *) "pyself", NULL
4135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__preCallInit",kwnames
,&obj0
,&obj1
)) goto fail
;
4136 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4137 if (SWIG_arg_fail(1)) SWIG_fail
;
4140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4141 wxActiveXEvent__preCallInit(arg1
,arg2
);
4143 wxPyEndAllowThreads(__tstate
);
4144 if (PyErr_Occurred()) SWIG_fail
;
4146 Py_INCREF(Py_None
); resultobj
= Py_None
;
4153 static PyObject
*_wrap_ActiveXEvent__postCallCleanup(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4154 PyObject
*resultobj
;
4155 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4156 PyObject
*arg2
= (PyObject
*) 0 ;
4157 PyObject
* obj0
= 0 ;
4158 PyObject
* obj1
= 0 ;
4160 (char *) "self",(char *) "pyself", NULL
4163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames
,&obj0
,&obj1
)) goto fail
;
4164 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4165 if (SWIG_arg_fail(1)) SWIG_fail
;
4168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4169 wxActiveXEvent__postCallCleanup(arg1
,arg2
);
4171 wxPyEndAllowThreads(__tstate
);
4172 if (PyErr_Occurred()) SWIG_fail
;
4174 Py_INCREF(Py_None
); resultobj
= Py_None
;
4181 static PyObject
* ActiveXEvent_swigregister(PyObject
*, PyObject
*args
) {
4183 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4184 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent
, obj
);
4186 return Py_BuildValue((char *)"");
4188 static PyObject
*_wrap_new_IEHtmlWindowBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4189 PyObject
*resultobj
;
4190 wxWindow
*arg1
= (wxWindow
*) 0 ;
4192 int arg3
= (int) -1 ;
4193 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
4194 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
4195 wxSize
const &arg5_defvalue
= wxDefaultSize
;
4196 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
4197 long arg6
= (long) 0 ;
4198 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
4199 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
4200 wxIEHtmlWindowBase
*result
;
4203 bool temp7
= false ;
4204 PyObject
* obj0
= 0 ;
4205 PyObject
* obj1
= 0 ;
4206 PyObject
* obj2
= 0 ;
4207 PyObject
* obj3
= 0 ;
4208 PyObject
* obj4
= 0 ;
4209 PyObject
* obj5
= 0 ;
4210 PyObject
* obj6
= 0 ;
4212 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
4216 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
4217 if (SWIG_arg_fail(1)) SWIG_fail
;
4219 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
4220 if (SWIG_arg_fail(2)) SWIG_fail
;
4222 SWIG_null_ref("CLSID");
4224 if (SWIG_arg_fail(2)) SWIG_fail
;
4228 arg3
= (int)(SWIG_As_int(obj2
));
4229 if (SWIG_arg_fail(3)) SWIG_fail
;
4235 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
4241 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
4246 arg6
= (long)(SWIG_As_long(obj5
));
4247 if (SWIG_arg_fail(6)) SWIG_fail
;
4252 arg7
= wxString_in_helper(obj6
);
4253 if (arg7
== NULL
) SWIG_fail
;
4258 if (!wxPyCheckForApp()) SWIG_fail
;
4259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4260 result
= (wxIEHtmlWindowBase
*)new wxIEHtmlWindowBase(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
4262 wxPyEndAllowThreads(__tstate
);
4263 if (PyErr_Occurred()) SWIG_fail
;
4265 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxIEHtmlWindowBase
, 1);
4280 static PyObject
*_wrap_IEHtmlWindowBase_SetCharset(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4281 PyObject
*resultobj
;
4282 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4283 wxString
*arg2
= 0 ;
4284 bool temp2
= false ;
4285 PyObject
* obj0
= 0 ;
4286 PyObject
* obj1
= 0 ;
4288 (char *) "self",(char *) "charset", NULL
4291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames
,&obj0
,&obj1
)) goto fail
;
4292 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4293 if (SWIG_arg_fail(1)) SWIG_fail
;
4295 arg2
= wxString_in_helper(obj1
);
4296 if (arg2
== NULL
) SWIG_fail
;
4300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4301 (arg1
)->SetCharset((wxString
const &)*arg2
);
4303 wxPyEndAllowThreads(__tstate
);
4304 if (PyErr_Occurred()) SWIG_fail
;
4306 Py_INCREF(Py_None
); resultobj
= Py_None
;
4321 static PyObject
*_wrap_IEHtmlWindowBase_LoadString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4322 PyObject
*resultobj
;
4323 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4324 wxString
*arg2
= 0 ;
4326 bool temp2
= false ;
4327 PyObject
* obj0
= 0 ;
4328 PyObject
* obj1
= 0 ;
4330 (char *) "self",(char *) "html", NULL
4333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames
,&obj0
,&obj1
)) goto fail
;
4334 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4335 if (SWIG_arg_fail(1)) SWIG_fail
;
4337 arg2
= wxString_in_helper(obj1
);
4338 if (arg2
== NULL
) SWIG_fail
;
4342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4343 result
= (bool)(arg1
)->LoadString((wxString
const &)*arg2
);
4345 wxPyEndAllowThreads(__tstate
);
4346 if (PyErr_Occurred()) SWIG_fail
;
4349 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4365 static PyObject
*_wrap_IEHtmlWindowBase_LoadStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
*resultobj
;
4367 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4368 wxInputStream
*arg2
= (wxInputStream
*) 0 ;
4370 wxPyInputStream
*temp2
;
4371 PyObject
* obj0
= 0 ;
4372 PyObject
* obj1
= 0 ;
4374 (char *) "self",(char *) "is", NULL
4377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4378 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4379 if (SWIG_arg_fail(1)) SWIG_fail
;
4381 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
4382 arg2
= wxPyCBInputStream_copy((wxPyCBInputStream
*)temp2
->m_wxis
);
4384 PyErr_Clear(); // clear the failure of the wxPyConvert above
4385 arg2
= wxPyCBInputStream_create(obj1
, true);
4387 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4394 result
= (bool)(arg1
)->LoadStream(arg2
);
4396 wxPyEndAllowThreads(__tstate
);
4397 if (PyErr_Occurred()) SWIG_fail
;
4400 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4408 static PyObject
*_wrap_IEHtmlWindowBase_GetStringSelection(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4409 PyObject
*resultobj
;
4410 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4413 PyObject
* obj0
= 0 ;
4414 PyObject
* obj1
= 0 ;
4416 (char *) "self",(char *) "asHTML", NULL
4419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames
,&obj0
,&obj1
)) goto fail
;
4420 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4421 if (SWIG_arg_fail(1)) SWIG_fail
;
4423 arg2
= (bool)(SWIG_As_bool(obj1
));
4424 if (SWIG_arg_fail(2)) SWIG_fail
;
4427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4428 result
= (arg1
)->GetStringSelection(arg2
);
4430 wxPyEndAllowThreads(__tstate
);
4431 if (PyErr_Occurred()) SWIG_fail
;
4435 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4437 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4446 static PyObject
*_wrap_IEHtmlWindowBase_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4447 PyObject
*resultobj
;
4448 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4451 PyObject
* obj0
= 0 ;
4452 PyObject
* obj1
= 0 ;
4454 (char *) "self",(char *) "asHTML", NULL
4457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetText",kwnames
,&obj0
,&obj1
)) goto fail
;
4458 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4459 if (SWIG_arg_fail(1)) SWIG_fail
;
4461 arg2
= (bool)(SWIG_As_bool(obj1
));
4462 if (SWIG_arg_fail(2)) SWIG_fail
;
4465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4466 result
= (arg1
)->GetText(arg2
);
4468 wxPyEndAllowThreads(__tstate
);
4469 if (PyErr_Occurred()) SWIG_fail
;
4473 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4475 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4484 static PyObject
* IEHtmlWindowBase_swigregister(PyObject
*, PyObject
*args
) {
4486 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4487 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase
, obj
);
4489 return Py_BuildValue((char *)"");
4491 static PyMethodDef SwigMethods
[] = {
4492 { (char *)"new_CLSID", (PyCFunction
) _wrap_new_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4493 { (char *)"delete_CLSID", (PyCFunction
) _wrap_delete_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4494 { (char *)"CLSID_GetCLSIDString", (PyCFunction
) _wrap_CLSID_GetCLSIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4495 { (char *)"CLSID_GetProgIDString", (PyCFunction
) _wrap_CLSID_GetProgIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4496 { (char *)"CLSID_swigregister", CLSID_swigregister
, METH_VARARGS
, NULL
},
4497 { (char *)"ParamX_flags_get", (PyCFunction
) _wrap_ParamX_flags_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4498 { (char *)"ParamX_isPtr_get", (PyCFunction
) _wrap_ParamX_isPtr_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4499 { (char *)"ParamX_isSafeArray_get", (PyCFunction
) _wrap_ParamX_isSafeArray_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4500 { (char *)"ParamX_isOptional_get", (PyCFunction
) _wrap_ParamX_isOptional_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4501 { (char *)"ParamX_vt_get", (PyCFunction
) _wrap_ParamX_vt_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4502 { (char *)"ParamX_name_get", (PyCFunction
) _wrap_ParamX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4503 { (char *)"ParamX_vt_type_get", (PyCFunction
) _wrap_ParamX_vt_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4504 { (char *)"ParamX_IsIn", (PyCFunction
) _wrap_ParamX_IsIn
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4505 { (char *)"ParamX_IsOut", (PyCFunction
) _wrap_ParamX_IsOut
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4506 { (char *)"ParamX_IsRetVal", (PyCFunction
) _wrap_ParamX_IsRetVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4507 { (char *)"ParamX_swigregister", ParamX_swigregister
, METH_VARARGS
, NULL
},
4508 { (char *)"FuncX_name_get", (PyCFunction
) _wrap_FuncX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4509 { (char *)"FuncX_memid_get", (PyCFunction
) _wrap_FuncX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4510 { (char *)"FuncX_hasOut_get", (PyCFunction
) _wrap_FuncX_hasOut_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4511 { (char *)"FuncX_retType_get", (PyCFunction
) _wrap_FuncX_retType_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4512 { (char *)"FuncX_params_get", (PyCFunction
) _wrap_FuncX_params_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4513 { (char *)"FuncX_swigregister", FuncX_swigregister
, METH_VARARGS
, NULL
},
4514 { (char *)"PropX_name_get", (PyCFunction
) _wrap_PropX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4515 { (char *)"PropX_memid_get", (PyCFunction
) _wrap_PropX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4516 { (char *)"PropX_type_get", (PyCFunction
) _wrap_PropX_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4517 { (char *)"PropX_arg_get", (PyCFunction
) _wrap_PropX_arg_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4518 { (char *)"PropX_putByRef_get", (PyCFunction
) _wrap_PropX_putByRef_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4519 { (char *)"PropX_CanGet", (PyCFunction
) _wrap_PropX_CanGet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4520 { (char *)"PropX_CanSet", (PyCFunction
) _wrap_PropX_CanSet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4521 { (char *)"PropX_swigregister", PropX_swigregister
, METH_VARARGS
, NULL
},
4522 { (char *)"ParamXArray___nonzero__", (PyCFunction
) _wrap_ParamXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4523 { (char *)"ParamXArray___len__", (PyCFunction
) _wrap_ParamXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4524 { (char *)"ParamXArray___getitem__", (PyCFunction
) _wrap_ParamXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4525 { (char *)"ParamXArray_swigregister", ParamXArray_swigregister
, METH_VARARGS
, NULL
},
4526 { (char *)"FuncXArray___nonzero__", (PyCFunction
) _wrap_FuncXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4527 { (char *)"FuncXArray___len__", (PyCFunction
) _wrap_FuncXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4528 { (char *)"FuncXArray___getitem__", (PyCFunction
) _wrap_FuncXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4529 { (char *)"FuncXArray_swigregister", FuncXArray_swigregister
, METH_VARARGS
, NULL
},
4530 { (char *)"PropXArray___nonzero__", (PyCFunction
) _wrap_PropXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4531 { (char *)"PropXArray___len__", (PyCFunction
) _wrap_PropXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4532 { (char *)"PropXArray___getitem__", (PyCFunction
) _wrap_PropXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4533 { (char *)"PropXArray_swigregister", PropXArray_swigregister
, METH_VARARGS
, NULL
},
4534 { (char *)"new_ActiveXWindow", (PyCFunction
) _wrap_new_ActiveXWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4535 { (char *)"ActiveXWindow_GetCLSID", (PyCFunction
) _wrap_ActiveXWindow_GetCLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4536 { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4537 { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventDesc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4538 { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXPropCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4539 { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc
, METH_VARARGS
, NULL
},
4540 { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethodCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4541 { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc
, METH_VARARGS
, NULL
},
4542 { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction
) _wrap_ActiveXWindow_GetAXEvents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4543 { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethods
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4544 { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction
) _wrap_ActiveXWindow_GetAXProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4545 { (char *)"ActiveXWindow_SetAXProp", (PyCFunction
) _wrap_ActiveXWindow_SetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4546 { (char *)"ActiveXWindow_GetAXProp", (PyCFunction
) _wrap_ActiveXWindow_GetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4547 { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod
, METH_VARARGS
, NULL
},
4548 { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister
, METH_VARARGS
, NULL
},
4549 { (char *)"RegisterActiveXEvent", (PyCFunction
) _wrap_RegisterActiveXEvent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4550 { (char *)"ActiveXEvent_EventName", (PyCFunction
) _wrap_ActiveXEvent_EventName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4551 { (char *)"ActiveXEvent__preCallInit", (PyCFunction
) _wrap_ActiveXEvent__preCallInit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4552 { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction
) _wrap_ActiveXEvent__postCallCleanup
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4553 { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister
, METH_VARARGS
, NULL
},
4554 { (char *)"new_IEHtmlWindowBase", (PyCFunction
) _wrap_new_IEHtmlWindowBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4555 { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction
) _wrap_IEHtmlWindowBase_SetCharset
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4556 { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4557 { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4558 { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction
) _wrap_IEHtmlWindowBase_GetStringSelection
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4559 { (char *)"IEHtmlWindowBase_GetText", (PyCFunction
) _wrap_IEHtmlWindowBase_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4560 { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister
, METH_VARARGS
, NULL
},
4561 { NULL
, NULL
, 0, NULL
}
4565 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4567 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4568 return (void *)((wxWindow
*) ((wxControl
*) x
));
4570 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4571 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4573 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x
) {
4574 return (void *)((wxWindow
*) ((wxActiveXWindow
*) x
));
4576 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4577 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4579 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x
) {
4580 return (void *)((wxWindow
*) (wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4582 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x
) {
4583 return (void *)((wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4585 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
4586 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4588 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
4589 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
4591 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
4592 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
4594 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
4595 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
4597 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
4598 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
4600 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
4601 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
4603 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
4604 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
4606 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
4607 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
4609 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
4610 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
4612 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
4613 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4615 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
4616 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
4618 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
4619 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4621 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
4622 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4624 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
4625 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
4627 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
4628 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
4630 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
4631 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
4633 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
4634 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
4636 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
4637 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
4639 static void *_p_wxDateEventTo_p_wxEvent(void *x
) {
4640 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxDateEvent
*) x
));
4642 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
4643 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
4645 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
4646 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
4648 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
4649 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4651 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
4652 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4654 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
4655 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4657 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
4658 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4660 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
4661 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4663 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
4664 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
4666 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
4667 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
4669 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
4670 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4672 static void *_p_wxActiveXEventTo_p_wxEvent(void *x
) {
4673 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4675 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
4676 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
4678 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
4679 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
4681 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
4682 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4684 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
4685 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4687 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
4688 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4690 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
4691 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
4693 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
4694 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
4696 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4697 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4699 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4700 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4702 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4703 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4705 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4706 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4708 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4709 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4711 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4712 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4714 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4715 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4717 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4718 return (void *)((wxObject
*) ((wxSizer
*) x
));
4720 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4721 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4723 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4724 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4726 static void *_p_wxEventTo_p_wxObject(void *x
) {
4727 return (void *)((wxObject
*) ((wxEvent
*) x
));
4729 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4730 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4732 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4733 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4735 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4736 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4738 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4739 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4741 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4742 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4744 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4745 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4747 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4748 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4750 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4751 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4753 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4754 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4756 static void *_p_wxControlTo_p_wxObject(void *x
) {
4757 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4759 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4760 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4762 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4763 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4765 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4766 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4768 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4769 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4771 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4772 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4774 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4775 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4777 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4778 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4780 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4781 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4783 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4784 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4786 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4787 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4789 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4790 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4792 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4793 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4795 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4796 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4798 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4799 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4801 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4802 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4804 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4805 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4807 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
4808 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
4810 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4811 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4813 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4814 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4816 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4817 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4819 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4820 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4822 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4823 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4825 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4826 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4828 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4829 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4831 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4832 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4834 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
4835 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
4837 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
4838 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
4840 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
4841 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
4843 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
4844 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
4846 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
4847 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
4849 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
4850 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
4852 static void *_p_wxImageTo_p_wxObject(void *x
) {
4853 return (void *)((wxObject
*) ((wxImage
*) x
));
4855 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
4856 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
4858 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
4859 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4861 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
4862 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4864 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
4865 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
4867 static void *_p_wxWindowTo_p_wxObject(void *x
) {
4868 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
4870 static void *_p_wxMenuTo_p_wxObject(void *x
) {
4871 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
4873 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
4874 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
4876 static void *_p_wxActiveXWindowTo_p_wxObject(void *x
) {
4877 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxActiveXWindow
*) x
));
4879 static void *_p_wxActiveXEventTo_p_wxObject(void *x
) {
4880 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4882 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
4883 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
4885 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
4886 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4888 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
4889 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
4891 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x
) {
4892 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4894 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
4895 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
4897 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
4898 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
4900 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
4901 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
4903 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
4904 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
4906 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
4907 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4909 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
4910 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
4912 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
4913 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
4915 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
4916 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
4918 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
4919 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4921 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
4922 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4924 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
4925 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
4927 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
4928 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
4930 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
4931 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
4933 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
4934 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
4936 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
4937 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4939 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x
) {
4940 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxActiveXWindow
*) x
));
4942 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
4943 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
4945 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
4946 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
4948 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
4949 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
4951 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
4952 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
4954 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4955 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4957 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x
) {
4958 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4960 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
4961 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4963 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
4964 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
4966 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
4967 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4969 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) {
4970 return (void *)((wxCommandEvent
*) ((wxDateEvent
*) x
));
4972 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
4973 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4975 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x
) {
4976 return (void *)((wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4978 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
4979 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4981 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
4982 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4984 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
4985 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4987 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
4988 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4990 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_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_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}};
4991 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}};
4992 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}};
4993 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}};
4994 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}};
4995 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}};
4996 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}};
4997 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}};
4998 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}};
4999 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}};
5000 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}};
5001 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}};
5002 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}};
5003 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}};
5004 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}};
5005 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}};
5006 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}};
5007 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}};
5008 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}};
5009 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}};
5010 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}};
5011 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}};
5012 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}};
5013 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}};
5014 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}};
5015 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}};
5016 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}};
5017 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}};
5018 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}};
5020 static swig_type_info
*swig_types_initial
[] = {
5022 _swigt__p_unsigned_char
,
5024 _swigt__p_wxActiveXWindow
,
5026 _swigt__p_wxCommandEvent
,
5027 _swigt__p_unsigned_long
,
5028 _swigt__p_unsigned_int
,
5029 _swigt__unsigned_int
,
5030 _swigt__p_form_ops_t
,
5031 _swigt__p_wxDuplexMode
,
5033 _swigt__p_unsigned_short
,
5034 _swigt__p_wxInputStream
,
5035 _swigt__p_wxEvtHandler
,
5037 _swigt__p_wxParamXArray
,
5038 _swigt__p_wxFuncXArray
,
5039 _swigt__p_wxActiveXEvent
,
5040 _swigt__std__ptrdiff_t
,
5044 _swigt__p_wxIEHtmlWindowBase
,
5046 _swigt__p_wxPaperSize
,
5048 _swigt__p_wxPropXArray
,
5054 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5056 static swig_const_info swig_const_table
[] = {
5057 {0, 0, 0, 0.0, 0, 0}};
5068 /* Python-specific SWIG API */
5069 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5070 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5071 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5073 /* -----------------------------------------------------------------------------
5074 * global variable support code.
5075 * ----------------------------------------------------------------------------- */
5077 typedef struct swig_globalvar
{
5078 char *name
; /* Name of global variable */
5079 PyObject
*(*get_attr
)(); /* Return the current value */
5080 int (*set_attr
)(PyObject
*); /* Set the value */
5081 struct swig_globalvar
*next
;
5084 typedef struct swig_varlinkobject
{
5086 swig_globalvar
*vars
;
5087 } swig_varlinkobject
;
5090 swig_varlink_repr(swig_varlinkobject
*v
) {
5092 return PyString_FromString("<Swig global variables>");
5096 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
5097 swig_globalvar
*var
;
5099 fprintf(fp
,"Swig global variables { ");
5100 for (var
= v
->vars
; var
; var
=var
->next
) {
5101 fprintf(fp
,"%s", var
->name
);
5102 if (var
->next
) fprintf(fp
,", ");
5109 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
5110 swig_globalvar
*var
= v
->vars
;
5112 if (strcmp(var
->name
,n
) == 0) {
5113 return (*var
->get_attr
)();
5117 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5122 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
5123 swig_globalvar
*var
= v
->vars
;
5125 if (strcmp(var
->name
,n
) == 0) {
5126 return (*var
->set_attr
)(p
);
5130 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5134 static PyTypeObject varlinktype
= {
5135 PyObject_HEAD_INIT(0)
5136 0, /* Number of items in variable part (ob_size) */
5137 (char *)"swigvarlink", /* Type name (tp_name) */
5138 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
5139 0, /* Itemsize (tp_itemsize) */
5140 0, /* Deallocator (tp_dealloc) */
5141 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
5142 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
5143 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
5145 (reprfunc
) swig_varlink_repr
, /* tp_repr */
5146 0, /* tp_as_number */
5147 0, /* tp_as_sequence */
5148 0, /* tp_as_mapping */
5152 0, /* tp_getattro */
5153 0, /* tp_setattro */
5154 0, /* tp_as_buffer */
5157 #if PY_VERSION_HEX >= 0x02000000
5158 0, /* tp_traverse */
5161 #if PY_VERSION_HEX >= 0x02010000
5162 0, /* tp_richcompare */
5163 0, /* tp_weaklistoffset */
5165 #if PY_VERSION_HEX >= 0x02020000
5166 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5168 #if PY_VERSION_HEX >= 0x02030000
5172 0,0,0,0 /* tp_alloc -> tp_next */
5176 /* Create a variable linking object for use later */
5178 SWIG_Python_newvarlink(void) {
5179 swig_varlinkobject
*result
= 0;
5180 result
= PyMem_NEW(swig_varlinkobject
,1);
5181 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
5182 result
->ob_type
= &varlinktype
;
5184 result
->ob_refcnt
= 0;
5185 Py_XINCREF((PyObject
*) result
);
5186 return ((PyObject
*) result
);
5190 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
5191 swig_varlinkobject
*v
;
5193 v
= (swig_varlinkobject
*) p
;
5194 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
5195 gv
->name
= (char *) malloc(strlen(name
)+1);
5196 strcpy(gv
->name
,name
);
5197 gv
->get_attr
= get_attr
;
5198 gv
->set_attr
= set_attr
;
5203 /* -----------------------------------------------------------------------------
5204 * constants/methods manipulation
5205 * ----------------------------------------------------------------------------- */
5207 /* Install Constants */
5209 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
5212 for (i
= 0; constants
[i
].type
; i
++) {
5213 switch(constants
[i
].type
) {
5215 obj
= PyInt_FromLong(constants
[i
].lvalue
);
5218 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
5220 case SWIG_PY_STRING
:
5221 if (constants
[i
].pvalue
) {
5222 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
5228 case SWIG_PY_POINTER
:
5229 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
5231 case SWIG_PY_BINARY
:
5232 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
5239 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
5245 /* -----------------------------------------------------------------------------*/
5246 /* Fix SwigMethods to carry the callback ptrs when needed */
5247 /* -----------------------------------------------------------------------------*/
5250 SWIG_Python_FixMethods(PyMethodDef
*methods
,
5251 swig_const_info
*const_table
,
5252 swig_type_info
**types
,
5253 swig_type_info
**types_initial
) {
5255 for (i
= 0; methods
[i
].ml_name
; ++i
) {
5256 char *c
= methods
[i
].ml_doc
;
5257 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
5259 swig_const_info
*ci
= 0;
5260 char *name
= c
+ 10;
5261 for (j
= 0; const_table
[j
].type
; j
++) {
5262 if (strncmp(const_table
[j
].name
, name
,
5263 strlen(const_table
[j
].name
)) == 0) {
5264 ci
= &(const_table
[j
]);
5269 size_t shift
= (ci
->ptype
) - types
;
5270 swig_type_info
*ty
= types_initial
[shift
];
5271 size_t ldoc
= (c
- methods
[i
].ml_doc
);
5272 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
5273 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
5275 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
5276 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
5278 strncpy(buff
, "swig_ptr: ", 10);
5280 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
5281 methods
[i
].ml_doc
= ndoc
;
5287 /* -----------------------------------------------------------------------------*
5288 * Initialize type list
5289 * -----------------------------------------------------------------------------*/
5291 #if PY_MAJOR_VERSION < 2
5292 /* PyModule_AddObject function was introduced in Python 2.0. The following function
5293 is copied out of Python/modsupport.c in python version 2.3.4 */
5295 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
5298 if (!PyModule_Check(m
)) {
5299 PyErr_SetString(PyExc_TypeError
,
5300 "PyModule_AddObject() needs module as first arg");
5304 PyErr_SetString(PyExc_TypeError
,
5305 "PyModule_AddObject() needs non-NULL value");
5309 dict
= PyModule_GetDict(m
);
5311 /* Internal error -- modules must have a dict! */
5312 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
5313 PyModule_GetName(m
));
5316 if (PyDict_SetItemString(dict
, name
, o
))
5323 static swig_type_info
**
5324 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
5325 static PyMethodDef swig_empty_runtime_method_table
[] = {
5331 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
5332 swig_empty_runtime_method_table
);
5333 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
5334 if (pointer
&& module) {
5335 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
5337 return type_list_handle
;
5340 static swig_type_info
**
5341 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
5342 swig_type_info
**type_pointer
;
5344 /* first check if module already created */
5345 type_pointer
= SWIG_Python_GetTypeListHandle();
5347 return type_pointer
;
5349 /* create a new module and variable */
5350 return SWIG_Python_SetTypeListHandle(type_list_handle
);
5358 /* -----------------------------------------------------------------------------*
5359 * Partial Init method
5360 * -----------------------------------------------------------------------------*/
5362 #ifdef SWIG_LINK_RUNTIME
5366 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
5372 SWIGEXPORT(void) SWIG_init(void) {
5373 static PyObject
*SWIG_globals
= 0;
5374 static int typeinit
= 0;
5377 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
5379 /* Fix SwigMethods to carry the callback ptrs when needed */
5380 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
5382 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
5383 d
= PyModule_GetDict(m
);
5386 #ifdef SWIG_LINK_RUNTIME
5387 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
5389 # ifndef SWIG_STATIC_RUNTIME
5390 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
5393 for (i
= 0; swig_types_initial
[i
]; i
++) {
5394 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5398 SWIG_InstallConstants(d
,swig_const_table
);