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
);
29 /***********************************************************************
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
34 ************************************************************************/
36 /* template workaround for compilers that cannot correctly implement the C++ standard */
37 #ifndef SWIGTEMPLATEDISAMBIGUATOR
38 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # define SWIGTEMPLATEDISAMBIGUATOR
45 /* inline attribute */
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
63 /* internal SWIG method */
65 # define SWIGINTERN static SWIGUNUSED
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
73 /* exporting methods for Windows DLLs */
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
79 # define SWIGEXPORT __declspec(dllexport)
86 /* calling conventions for Windows */
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
99 /***********************************************************************
102 * This file contains generic CAPI SWIG runtime support for pointer
105 ************************************************************************/
107 /* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
109 #define SWIG_RUNTIME_VERSION "2"
111 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112 #ifdef SWIG_TYPE_TABLE
113 # define SWIG_QUOTE_STRING(x) #x
114 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 # define SWIG_TYPE_TABLE_NAME
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
130 # define SWIGRUNTIME SWIGINTERN
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
143 typedef void *(*swig_converter_func
)(void *);
144 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
146 /* Structure to store inforomation on one type */
147 typedef struct swig_type_info
{
148 const char *name
; /* mangled name of this type */
149 const char *str
; /* human readable name of this type */
150 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
152 void *clientdata
; /* language specific type data */
155 /* Structure to store a type and conversion function used for casting */
156 typedef struct swig_cast_info
{
157 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter
; /* function to cast the void pointers */
159 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
160 struct swig_cast_info
*prev
; /* pointer to the previous cast */
163 /* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166 typedef struct swig_module_info
{
167 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size
; /* Number of types in this module */
169 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
170 swig_type_info
**type_initial
; /* Array of initially generated type structures */
171 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
172 void *clientdata
; /* Language specific module data */
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
184 SWIG_TypeNameComp(const char *f1
, const char *l1
,
185 const char *f2
, const char *l2
) {
186 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
187 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
188 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
189 if (*f1
!= *f2
) return (int)(*f1
- *f2
);
191 return (l1
- f1
) - (l2
- f2
);
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
199 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
201 const char* te
= tb
+ strlen(tb
);
203 while (!equiv
&& *ne
) {
204 for (nb
= ne
; *ne
; ++ne
) {
205 if (*ne
== '|') break;
207 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
218 SWIG_TypeCompare(const char *nb
, const char *tb
) {
220 const char* te
= tb
+ strlen(tb
);
222 while (!equiv
&& *ne
) {
223 for (nb
= ne
; *ne
; ++ne
) {
224 if (*ne
== '|') break;
226 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
236 swig_cast_info *iter = ty->cast; \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
246 if (ty->cast) ty->cast->prev = iter; \
258 SWIGRUNTIME swig_cast_info
*
259 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
260 SWIG_TypeCheck_Template(strcmp(iter
->type
->name
, c
) == 0, ty
);
263 /* Same as previous function, except strcmp is replaced with a pointer comparison */
264 SWIGRUNTIME swig_cast_info
*
265 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*into
) {
266 SWIG_TypeCheck_Template(iter
->type
== from
, into
);
270 Cast a pointer up an inheritance hierarchy
272 SWIGRUNTIMEINLINE
void *
273 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
274 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
278 Dynamic pointer casting. Down an inheritance hierarchy
280 SWIGRUNTIME swig_type_info
*
281 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
282 swig_type_info
*lastty
= ty
;
283 if (!ty
|| !ty
->dcast
) return ty
;
284 while (ty
&& (ty
->dcast
)) {
285 ty
= (*ty
->dcast
)(ptr
);
292 Return the name associated with this type
294 SWIGRUNTIMEINLINE
const char *
295 SWIG_TypeName(const swig_type_info
*ty
) {
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
303 SWIGRUNTIME
const char *
304 SWIG_TypePrettyName(const swig_type_info
*type
) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
309 if (type
->str
!= NULL
) {
310 const char *last_name
= type
->str
;
312 for (s
= type
->str
; *s
; s
++)
313 if (*s
== '|') last_name
= s
+1;
321 Set the clientdata field for a type
324 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
325 swig_cast_info
*cast
= ti
->cast
;
326 /* if (ti->clientdata == clientdata) return; */
327 ti
->clientdata
= clientdata
;
330 if (!cast
->converter
) {
331 swig_type_info
*tc
= cast
->type
;
332 if (!tc
->clientdata
) {
333 SWIG_TypeClientData(tc
, clientdata
);
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
348 SWIGRUNTIME swig_type_info
*
349 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
350 swig_module_info
*end
,
352 swig_module_info
*iter
= start
;
355 register size_t l
= 0;
356 register size_t r
= iter
->size
- 1;
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i
= (l
+ r
) >> 1;
360 const char *iname
= iter
->types
[i
]->name
;
362 register int compare
= strcmp(name
, iname
);
364 return iter
->types
[i
];
365 } else if (compare
< 0) {
371 } else if (compare
> 0) {
375 break; /* should never happen */
380 } while (iter
!= end
);
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
393 SWIGRUNTIME swig_type_info
*
394 SWIG_TypeQueryModule(swig_module_info
*start
,
395 swig_module_info
*end
,
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info
*iter
= start
;
406 register size_t i
= 0;
407 for (; i
< iter
->size
; ++i
) {
408 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
409 return iter
->types
[i
];
412 } while (iter
!= end
);
415 /* neither found a match */
421 Pack binary data into a string
424 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
425 static const char hex
[17] = "0123456789abcdef";
426 register const unsigned char *u
= (unsigned char *) ptr
;
427 register const unsigned char *eu
= u
+ sz
;
428 for (; u
!= eu
; ++u
) {
429 register unsigned char uu
= *u
;
430 *(c
++) = hex
[(uu
& 0xf0) >> 4];
431 *(c
++) = hex
[uu
& 0xf];
437 Unpack binary data from a string
439 SWIGRUNTIME
const char *
440 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
441 register unsigned char *u
= (unsigned char *) ptr
;
442 register const unsigned char *eu
= u
+ sz
;
443 for (; u
!= eu
; ++u
) {
444 register char d
= *(c
++);
445 register unsigned char uu
= 0;
446 if ((d
>= '0') && (d
<= '9'))
447 uu
= ((d
- '0') << 4);
448 else if ((d
>= 'a') && (d
<= 'f'))
449 uu
= ((d
- ('a'-10)) << 4);
453 if ((d
>= '0') && (d
<= '9'))
455 else if ((d
>= 'a') && (d
<= 'f'))
456 uu
|= (d
- ('a'-10));
465 Pack 'void *' into a string buffer.
468 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
470 if ((2*sizeof(void *) + 2) > bsz
) return 0;
472 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
473 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
478 SWIGRUNTIME
const char *
479 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
481 if (strcmp(c
,"NULL") == 0) {
488 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
492 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
494 size_t lname
= (name
? strlen(name
) : 0);
495 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
497 r
= SWIG_PackData(r
,ptr
,sz
);
499 strncpy(r
,name
,lname
+1);
506 SWIGRUNTIME
const char *
507 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
509 if (strcmp(c
,"NULL") == 0) {
516 return SWIG_UnpackData(++c
,ptr
,sz
);
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
536 # define SWIGINTERN static SWIGUNUSED
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
544 Exception handling in wrappers
546 #define SWIG_fail goto fail
547 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
564 #define SWIG_PY_INT 1
565 #define SWIG_PY_FLOAT 2
566 #define SWIG_PY_STRING 3
567 #define SWIG_PY_POINTER 4
568 #define SWIG_PY_BINARY 5
570 /* Constant information structure */
571 typedef struct swig_const_info
{
577 swig_type_info
**ptype
;
581 /* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584 #define SWIG_OLDOBJ 1
585 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586 #define SWIG_PYSTR SWIG_NEWOBJ + 1
593 /***********************************************************************
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
603 /* Common SWIG API */
604 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
609 /* Python-specific SWIG API */
610 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
653 PyString_FromFormat(const char *fmt
, ...) {
655 char buf
[SWIG_BUFFER_SIZE
* 2];
658 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
660 return (res
< 0 || res
>= sizeof(buf
)) ? 0 : PyString_FromString(buf
);
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
668 #if defined(SWIG_COBJECT_TYPES)
669 #if !defined(SWIG_COBJECT_PYTHON)
670 /* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
680 /* Declarations for objects of type PySwigObject */
683 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
685 char result
[SWIG_BUFFER_SIZE
];
687 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
688 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
695 SWIGRUNTIME PyObject
*
696 PySwigObject_repr(PySwigObject
*v
)
698 char result
[SWIG_BUFFER_SIZE
];
699 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
700 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
703 SWIGRUNTIME PyObject
*
704 PySwigObject_str(PySwigObject
*v
)
706 char result
[SWIG_BUFFER_SIZE
];
707 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
708 PyString_FromString(result
) : 0;
711 SWIGRUNTIME PyObject
*
712 PySwigObject_long(PySwigObject
*v
)
714 return PyLong_FromVoidPtr(v
->ptr
);
717 SWIGRUNTIME PyObject
*
718 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
720 PyObject
*res
= NULL
;
721 PyObject
*args
= PyTuple_New(1);
722 if (args
&& (PyTuple_SetItem(args
, 0, PySwigObject_long(v
)) == 0)) {
723 PyObject
*ofmt
= PyString_FromString(fmt
);
725 res
= PyString_Format(ofmt
,args
);
733 SWIGRUNTIME PyObject
*
734 PySwigObject_oct(PySwigObject
*v
)
736 return PySwigObject_format("%o",v
);
739 SWIGRUNTIME PyObject
*
740 PySwigObject_hex(PySwigObject
*v
)
742 return PySwigObject_format("%x",v
);
746 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
748 int c
= strcmp(v
->desc
, w
->desc
);
750 return (c
> 0) ? 1 : -1;
754 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
759 PySwigObject_dealloc(PySwigObject
*self
)
764 SWIGRUNTIME PyTypeObject
*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__
[] =
767 "Swig object carries a C/C++ instance pointer";
769 static PyNumberMethods PySwigObject_as_number
= {
770 (binaryfunc
)0, /*nb_add*/
771 (binaryfunc
)0, /*nb_subtract*/
772 (binaryfunc
)0, /*nb_multiply*/
773 (binaryfunc
)0, /*nb_divide*/
774 (binaryfunc
)0, /*nb_remainder*/
775 (binaryfunc
)0, /*nb_divmod*/
776 (ternaryfunc
)0,/*nb_power*/
777 (unaryfunc
)0, /*nb_negative*/
778 (unaryfunc
)0, /*nb_positive*/
779 (unaryfunc
)0, /*nb_absolute*/
780 (inquiry
)0, /*nb_nonzero*/
787 (coercion
)0, /*nb_coerce*/
788 (unaryfunc
)PySwigObject_long
, /*nb_int*/
789 (unaryfunc
)PySwigObject_long
, /*nb_long*/
790 (unaryfunc
)0, /*nb_float*/
791 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
792 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
793 #if PY_VERSION_HEX >= 0x02020000
794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
795 #elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
803 static int type_init
= 0;
808 PyObject_HEAD_INIT(&PyType_Type
)
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject
), /*tp_basicsize*/
814 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
815 (printfunc
)PySwigObject_print
, /*tp_print*/
816 (getattrfunc
)0, /*tp_getattr*/
817 (setattrfunc
)0, /*tp_setattr*/
818 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
819 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
820 &PySwigObject_as_number
, /*tp_as_number*/
821 0, /*tp_as_sequence*/
823 (hashfunc
)0, /*tp_hash*/
824 (ternaryfunc
)0, /*tp_call*/
825 (reprfunc
)PySwigObject_str
, /*tp_str*/
826 /* Space for future expansion */
828 pyswigobject_type__doc__
, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
837 #if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #if PY_VERSION_HEX >= 0x02030000
844 0,0,0,0 /* tp_alloc -> tp_next */
847 #if !defined(__cplusplus)
848 pyswigobject_type
= tmp
;
852 return &pyswigobject_type
;
855 SWIGRUNTIME PyObject
*
856 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
858 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_type());
863 return (PyObject
*)self
;
866 SWIGRUNTIMEINLINE
void *
867 PySwigObject_AsVoidPtr(PyObject
*self
)
869 return ((PySwigObject
*)self
)->ptr
;
872 SWIGRUNTIMEINLINE
const char *
873 PySwigObject_GetDesc(PyObject
*self
)
875 return ((PySwigObject
*)self
)->desc
;
878 SWIGRUNTIMEINLINE
int
879 PySwigObject_Check(PyObject
*op
) {
880 return ((op
)->ob_type
== PySwigObject_type())
881 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
896 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
898 char result
[SWIG_BUFFER_SIZE
];
900 fputs("<Swig Packed ", fp
);
901 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
910 SWIGRUNTIME PyObject
*
911 PySwigPacked_repr(PySwigPacked
*v
)
913 char result
[SWIG_BUFFER_SIZE
];
914 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
917 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
921 SWIGRUNTIME PyObject
*
922 PySwigPacked_str(PySwigPacked
*v
)
924 char result
[SWIG_BUFFER_SIZE
];
925 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
926 return PyString_FromFormat("%s%s", result
, v
->desc
);
928 return PyString_FromString(v
->desc
);
933 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
935 int c
= strcmp(v
->desc
, w
->desc
);
937 return (c
> 0) ? 1 : -1;
941 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
942 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
947 PySwigPacked_dealloc(PySwigPacked
*self
)
953 SWIGRUNTIME PyTypeObject
*
954 PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__
[] =
956 "Swig object carries a C/C++ instance pointer";
957 static PyTypeObject pyswigpacked_type
958 #if !defined(__cplusplus)
960 static int type_init
= 0;
965 PyObject_HEAD_INIT(&PyType_Type
)
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked
), /*tp_basicsize*/
971 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
972 (printfunc
)PySwigPacked_print
, /*tp_print*/
973 (getattrfunc
)0, /*tp_getattr*/
974 (setattrfunc
)0, /*tp_setattr*/
975 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
976 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
978 0, /*tp_as_sequence*/
980 (hashfunc
)0, /*tp_hash*/
981 (ternaryfunc
)0, /*tp_call*/
982 (reprfunc
)PySwigPacked_str
, /*tp_str*/
983 /* Space for future expansion */
985 pyswigpacked_type__doc__
, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
994 #if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #if PY_VERSION_HEX >= 0x02030000
1001 0,0,0,0 /* tp_alloc -> tp_next */
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type
= tmp
;
1009 return &pyswigpacked_type
;
1012 SWIGRUNTIME PyObject
*
1013 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
1015 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1019 void *pack
= malloc(size
);
1021 memcpy(pack
, ptr
, size
);
1025 return (PyObject
*) self
;
1031 SWIGRUNTIMEINLINE
const char *
1032 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1034 PySwigPacked
*self
= (PySwigPacked
*)obj
;
1035 if (self
->size
!= size
) return 0;
1036 memcpy(ptr
, self
->pack
, size
);
1040 SWIGRUNTIMEINLINE
const char *
1041 PySwigPacked_GetDesc(PyObject
*self
)
1043 return ((PySwigPacked
*)self
)->desc
;
1046 SWIGRUNTIMEINLINE
int
1047 PySwigPacked_Check(PyObject
*op
) {
1048 return ((op
)->ob_type
== PySwigPacked_type())
1049 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1057 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1059 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1071 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj
&& PySwigObject_Check(obj
)) {
1076 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1078 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1085 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1087 PyObject
*str
= PyObject_Str(obj
);
1088 const char *cstr
= str
? PyString_AsString(str
) : 0;
1090 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1093 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1100 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1102 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1106 SWIGRUNTIMEINLINE
void
1107 SWIG_Python_NullRef(const char *type
)
1110 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1112 PyErr_Format(PyExc_TypeError
, "null reference was received");
1117 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1119 if (PyErr_Occurred()) {
1121 PyObject
*value
= 0;
1122 PyObject
*traceback
= 0;
1123 PyErr_Fetch(&type
, &value
, &traceback
);
1125 PyObject
*old_str
= PyObject_Str(value
);
1129 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1131 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1142 SWIG_Python_ArgFail(int argnum
)
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1147 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
1148 return SWIG_Python_AddErrMesg(mesg
, 1);
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1159 /* Convert a pointer value */
1161 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1164 static PyObject
*SWIG_this
= 0;
1166 PyObject
*pyobj
= 0;
1170 if (obj
== Py_None
) {
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj
))) {
1178 SWIG_this
= PyString_FromString("this");
1180 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1182 if (!obj
) goto type_error
;
1183 if (!PySwigObject_Check(obj
)) {
1188 vptr
= PySwigObject_AsVoidPtr(obj
);
1189 c
= (const char *) PySwigObject_GetDesc(obj
);
1190 if (newref
) { Py_DECREF(obj
); }
1193 if (!(PyString_Check(obj
))) {
1195 SWIG_this
= PyString_FromString("this");
1197 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1199 if (!obj
) goto type_error
;
1200 if (!PyString_Check(obj
)) {
1205 c
= PyString_AsString(obj
);
1206 /* Pointer values must start with leading underscore */
1207 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1208 if (newref
) { Py_DECREF(obj
); }
1209 if (!c
) goto type_error
;
1214 tc
= SWIG_TypeCheck(c
,ty
);
1215 if (!tc
) goto type_error
;
1216 *ptr
= SWIG_TypeCast(tc
,vptr
);
1220 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1221 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1227 if (pyobj
&& !obj
) {
1229 if (PyCFunction_Check(obj
)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1232 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1234 c
= ty
? SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
) : 0;
1235 if (!c
) goto type_error
;
1240 if (flags
& SWIG_POINTER_EXCEPTION
) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1244 SWIG_Python_TypeError("C/C++ pointer", obj
);
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1254 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1256 if (flags
& SWIG_POINTER_EXCEPTION
) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1258 SWIG_Python_ArgFail(argnum
);
1264 /* Convert a packed value value */
1266 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1273 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1274 c
= PyString_AsString(obj
);
1275 /* Pointer values must start with leading underscore */
1276 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1278 if (!c
) goto type_error
;
1280 tc
= SWIG_TypeCheck(c
,ty
);
1281 if (!tc
) goto type_error
;
1287 if (flags
& SWIG_POINTER_EXCEPTION
) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1291 SWIG_Python_TypeError("C/C++ packed data", obj
);
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject
*
1299 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError
, "Swig: null type passed to NewPointerObj");
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1315 char result
[SWIG_BUFFER_SIZE
];
1316 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1317 PyString_FromString(result
) : 0;
1320 if (!robj
|| (robj
== Py_None
)) return robj
;
1321 if (type
->clientdata
) {
1323 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1325 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1329 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1337 SWIGRUNTIME PyObject
*
1338 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1348 char result
[SWIG_BUFFER_SIZE
];
1349 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1350 PyString_FromString(result
) : 0;
1356 /* -----------------------------------------------------------------------------*
1358 * -----------------------------------------------------------------------------*/
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
1364 SWIGRUNTIME swig_module_info
*
1365 SWIG_Python_GetModule(void) {
1366 static void *type_pointer
= (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer
) {
1369 #ifdef SWIG_LINK_RUNTIME
1370 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1372 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1374 if (PyErr_Occurred()) {
1376 type_pointer
= (void *)0;
1380 return (swig_module_info
*) type_pointer
;
1383 #if PY_MAJOR_VERSION < 2
1384 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1385 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
1390 if (!PyModule_Check(m
)) {
1391 PyErr_SetString(PyExc_TypeError
,
1392 "PyModule_AddObject() needs module as first arg");
1396 PyErr_SetString(PyExc_TypeError
,
1397 "PyModule_AddObject() needs non-NULL value");
1401 dict
= PyModule_GetDict(m
);
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
1405 PyModule_GetName(m
));
1408 if (PyDict_SetItemString(dict
, name
, o
))
1416 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
1417 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
1419 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1420 swig_empty_runtime_method_table
);
1421 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) swig_module
, NULL
);
1422 if (pointer
&& module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
1432 /* -------- TYPES TABLE (BEGIN) -------- */
1434 #define SWIGTYPE_p_CLSID swig_types[0]
1435 #define SWIGTYPE_p_char swig_types[1]
1436 #define SWIGTYPE_p_form_ops_t swig_types[2]
1437 #define SWIGTYPE_p_int swig_types[3]
1438 #define SWIGTYPE_p_long swig_types[4]
1439 #define SWIGTYPE_p_unsigned_char swig_types[5]
1440 #define SWIGTYPE_p_unsigned_int swig_types[6]
1441 #define SWIGTYPE_p_unsigned_long swig_types[7]
1442 #define SWIGTYPE_p_unsigned_short swig_types[8]
1443 #define SWIGTYPE_p_wxANIHandler swig_types[9]
1444 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
1445 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
1446 #define SWIGTYPE_p_wxActiveXEvent swig_types[12]
1447 #define SWIGTYPE_p_wxActiveXWindow swig_types[13]
1448 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
1449 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
1450 #define SWIGTYPE_p_wxCURHandler swig_types[16]
1451 #define SWIGTYPE_p_wxChildFocusEvent swig_types[17]
1452 #define SWIGTYPE_p_wxCloseEvent swig_types[18]
1453 #define SWIGTYPE_p_wxCommandEvent swig_types[19]
1454 #define SWIGTYPE_p_wxContextMenuEvent swig_types[20]
1455 #define SWIGTYPE_p_wxControl swig_types[21]
1456 #define SWIGTYPE_p_wxControlWithItems swig_types[22]
1457 #define SWIGTYPE_p_wxDateEvent swig_types[23]
1458 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[24]
1459 #define SWIGTYPE_p_wxDropFilesEvent swig_types[25]
1460 #define SWIGTYPE_p_wxDuplexMode swig_types[26]
1461 #define SWIGTYPE_p_wxEraseEvent swig_types[27]
1462 #define SWIGTYPE_p_wxEvent swig_types[28]
1463 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
1464 #define SWIGTYPE_p_wxFSFile swig_types[30]
1465 #define SWIGTYPE_p_wxFileSystem swig_types[31]
1466 #define SWIGTYPE_p_wxFlexGridSizer swig_types[32]
1467 #define SWIGTYPE_p_wxFocusEvent swig_types[33]
1468 #define SWIGTYPE_p_wxFuncX swig_types[34]
1469 #define SWIGTYPE_p_wxFuncXArray swig_types[35]
1470 #define SWIGTYPE_p_wxGBSizerItem swig_types[36]
1471 #define SWIGTYPE_p_wxGIFHandler swig_types[37]
1472 #define SWIGTYPE_p_wxGridBagSizer swig_types[38]
1473 #define SWIGTYPE_p_wxGridSizer swig_types[39]
1474 #define SWIGTYPE_p_wxICOHandler swig_types[40]
1475 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[41]
1476 #define SWIGTYPE_p_wxIconizeEvent swig_types[42]
1477 #define SWIGTYPE_p_wxIdleEvent swig_types[43]
1478 #define SWIGTYPE_p_wxImage swig_types[44]
1479 #define SWIGTYPE_p_wxImageHandler swig_types[45]
1480 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[46]
1481 #define SWIGTYPE_p_wxInitDialogEvent swig_types[47]
1482 #define SWIGTYPE_p_wxInputStream swig_types[48]
1483 #define SWIGTYPE_p_wxJPEGHandler swig_types[49]
1484 #define SWIGTYPE_p_wxKeyEvent swig_types[50]
1485 #define SWIGTYPE_p_wxLayoutConstraints swig_types[51]
1486 #define SWIGTYPE_p_wxMaximizeEvent swig_types[52]
1487 #define SWIGTYPE_p_wxMenu swig_types[53]
1488 #define SWIGTYPE_p_wxMenuBar swig_types[54]
1489 #define SWIGTYPE_p_wxMenuEvent swig_types[55]
1490 #define SWIGTYPE_p_wxMenuItem swig_types[56]
1491 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[57]
1492 #define SWIGTYPE_p_wxMouseEvent swig_types[58]
1493 #define SWIGTYPE_p_wxMoveEvent swig_types[59]
1494 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[60]
1495 #define SWIGTYPE_p_wxNcPaintEvent swig_types[61]
1496 #define SWIGTYPE_p_wxNotifyEvent swig_types[62]
1497 #define SWIGTYPE_p_wxObject swig_types[63]
1498 #define SWIGTYPE_p_wxPCXHandler swig_types[64]
1499 #define SWIGTYPE_p_wxPNGHandler swig_types[65]
1500 #define SWIGTYPE_p_wxPNMHandler swig_types[66]
1501 #define SWIGTYPE_p_wxPaintEvent swig_types[67]
1502 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[68]
1503 #define SWIGTYPE_p_wxPaperSize swig_types[69]
1504 #define SWIGTYPE_p_wxParamX swig_types[70]
1505 #define SWIGTYPE_p_wxParamXArray swig_types[71]
1506 #define SWIGTYPE_p_wxPropX swig_types[72]
1507 #define SWIGTYPE_p_wxPropXArray swig_types[73]
1508 #define SWIGTYPE_p_wxPyApp swig_types[74]
1509 #define SWIGTYPE_p_wxPyCommandEvent swig_types[75]
1510 #define SWIGTYPE_p_wxPyEvent swig_types[76]
1511 #define SWIGTYPE_p_wxPyImageHandler swig_types[77]
1512 #define SWIGTYPE_p_wxPySizer swig_types[78]
1513 #define SWIGTYPE_p_wxPyValidator swig_types[79]
1514 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[80]
1515 #define SWIGTYPE_p_wxScrollEvent swig_types[81]
1516 #define SWIGTYPE_p_wxScrollWinEvent swig_types[82]
1517 #define SWIGTYPE_p_wxSetCursorEvent swig_types[83]
1518 #define SWIGTYPE_p_wxShowEvent swig_types[84]
1519 #define SWIGTYPE_p_wxSizeEvent swig_types[85]
1520 #define SWIGTYPE_p_wxSizer swig_types[86]
1521 #define SWIGTYPE_p_wxSizerItem swig_types[87]
1522 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[88]
1523 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[89]
1524 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[90]
1525 #define SWIGTYPE_p_wxTIFFHandler swig_types[91]
1526 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[92]
1527 #define SWIGTYPE_p_wxValidator swig_types[93]
1528 #define SWIGTYPE_p_wxWindow swig_types[94]
1529 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[95]
1530 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[96]
1531 #define SWIGTYPE_p_wxXPMHandler swig_types[97]
1532 #define SWIGTYPE_ptrdiff_t swig_types[98]
1533 #define SWIGTYPE_std__ptrdiff_t swig_types[99]
1534 #define SWIGTYPE_unsigned_int swig_types[100]
1535 static swig_type_info
*swig_types
[102];
1536 static swig_module_info swig_module
= {swig_types
, 101, 0, 0, 0, 0};
1537 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1538 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1540 /* -------- TYPES TABLE (END) -------- */
1543 /*-----------------------------------------------
1544 @(target):= _activex.so
1545 ------------------------------------------------*/
1546 #define SWIG_init init_activex
1548 #define SWIG_name "_activex"
1550 #include "wx/wxPython/wxPython.h"
1551 #include "wx/wxPython/pyclasses.h"
1552 #include "wx/wxPython/pyistream.h"
1554 #include "wxactivex.h"
1556 static const wxString
wxPyPanelNameStr(wxPanelNameStr
);
1558 // Since SWIG doesn't support nested classes, we need to fool it a bit
1559 // and make them look like global classes. These defines make the C++ code
1560 // know what we are doing.
1561 #define wxParamX wxActiveX::ParamX
1562 #define wxFuncX wxActiveX::FuncX
1563 #define wxPropX wxActiveX::PropX
1564 #define wxParamXArray wxActiveX::ParamXArray
1565 #define wxFuncXArray wxActiveX::FuncXArray
1566 #define wxPropXArray wxActiveX::PropXArray
1569 // Some conversion helpers
1570 static wxVariant
_PyObj2Variant(PyObject
* value
);
1571 static bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
);
1572 static PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
=false);
1573 static wxString
_VARTYPEname(VARTYPE vt
);
1575 // Check if an exception has been raised (blocking threads)
1576 inline bool wxPyErr_Occurred()
1579 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1580 rval
= PyErr_Occurred() != NULL
;
1581 wxPyEndBlockThreads(blocked
);
1586 static CLSID
*new_CLSID(wxString
const &id
){
1588 CLSID
* self
= new CLSID
;
1589 memset(self
, 0, sizeof(CLSID
));
1591 if (id
[0] == _T('{')) {
1592 // Looks like a classID string
1595 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1601 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
1604 if (result
!= NOERROR
) {
1605 wxPyErr_SetString(PyExc_ValueError
, "Not a recognized classID or progID");
1611 static void delete_CLSID(CLSID
*self
){ delete self
; }
1612 static wxString
CLSID_GetCLSIDString(CLSID
*self
){
1615 if (StringFromCLSID(*self
, &s
) == S_OK
) {
1620 str
= _T("Error!"); // TODO: raise exception?
1624 static wxString
CLSID_GetProgIDString(CLSID
*self
){
1627 if (ProgIDFromCLSID(*self
, &s
) == S_OK
) {
1632 str
= _T("Error!"); // TODO: raise exception?
1637 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1638 #define SWIG_From_unsigned_SS_short PyInt_FromLong
1641 static wxString
wxParamX_vt_type_get(wxParamX
*self
){ return _VARTYPEname(self
->vt
); }
1643 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1644 #define SWIG_From_long PyInt_FromLong
1647 static bool wxParamXArray___nonzero__(wxParamXArray
*self
){ return self
->size() > 0; }
1648 static int wxParamXArray___len__(wxParamXArray
*self
){ return self
->size(); }
1650 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1651 #define SWIG_From_int PyInt_FromLong
1659 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1662 if (value
< min_value
) {
1664 PyErr_Format(PyExc_OverflowError
,
1665 "value %ld is less than '%s' minimum %ld",
1666 value
, errmsg
, min_value
);
1669 } else if (value
> max_value
) {
1671 PyErr_Format(PyExc_OverflowError
,
1672 "value %ld is greater than '%s' maximum %ld",
1673 value
, errmsg
, max_value
);
1682 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1684 if (PyNumber_Check(obj
)) {
1685 if (val
) *val
= PyInt_AsLong(obj
);
1689 SWIG_Python_TypeError("number", obj
);
1695 #if INT_MAX != LONG_MAX
1697 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1699 const char* errmsg
= val
? "int" : (char*)0;
1701 if (SWIG_AsVal_long(obj
, &v
)) {
1702 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1703 if (val
) *val
= static_cast<int >(v
);
1712 SWIG_type_error(errmsg
, obj
);
1717 SWIGINTERNINLINE
int
1718 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1720 return SWIG_AsVal_long(obj
,(long*)val
);
1725 SWIGINTERNINLINE
int
1726 SWIG_As_int(PyObject
* obj
)
1729 if (!SWIG_AsVal_int(obj
, &v
)) {
1731 this is needed to make valgrind/purify happier.
1733 memset((void*)&v
, 0, sizeof(int));
1739 SWIGINTERNINLINE
int
1740 SWIG_Check_int(PyObject
* obj
)
1742 return SWIG_AsVal_int(obj
, (int*)0);
1745 static wxParamX
const &wxParamXArray___getitem__(wxParamXArray
*self
,int idx
){
1746 if ( idx
>= 0 && idx
< self
->size() )
1747 return (*self
)[idx
];
1749 static wxParamX BadVal
;
1750 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1754 static bool wxFuncXArray___nonzero__(wxFuncXArray
*self
){ return self
->size() > 0; }
1755 static int wxFuncXArray___len__(wxFuncXArray
*self
){ return self
->size(); }
1756 static wxFuncX
const &wxFuncXArray___getitem__(wxFuncXArray
*self
,int idx
){
1757 if ( idx
>= 0 && idx
< self
->size() )
1758 return (*self
)[idx
];
1760 static wxFuncX BadVal
;
1761 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1765 static bool wxPropXArray___nonzero__(wxPropXArray
*self
){ return self
->size() > 0; }
1766 static int wxPropXArray___len__(wxPropXArray
*self
){ return self
->size(); }
1767 static wxPropX
const &wxPropXArray___getitem__(wxPropXArray
*self
,int idx
){
1768 if ( idx
>= 0 && idx
< self
->size() )
1769 return (*self
)[idx
];
1771 static wxPropX BadVal
;
1772 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1777 // C++ version of a Python-aware wxActiveX
1778 class wxActiveXWindow
: public wxActiveX
1783 DECLARE_ABSTRACT_CLASS(wxActiveXWindow
);
1786 wxActiveXWindow( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
1787 const wxPoint
& pos
= wxDefaultPosition
,
1788 const wxSize
& size
= wxDefaultSize
,
1790 const wxString
& name
= wxPyPanelNameStr
)
1791 : wxActiveX(parent
, clsId
, id
, pos
, size
, style
, name
)
1796 const CLSID
& GetCLSID() const { return m_CLSID
; }
1799 // Renamed versions of some base class methods that delegate
1800 // to the base where appropriate, and raise Python exceptions
1802 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
1803 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
1804 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
1806 const wxFuncX
& GetAXEventDesc(int idx
) const
1808 static wxFuncX BadVal
;
1809 if (idx
< 0 || idx
>= GetAXEventCount()) {
1810 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1813 return m_events
[idx
];
1815 const wxFuncX
& GetAXMethodDesc(int idx
) const
1817 static wxFuncX BadVal
;
1818 if (idx
< 0 || idx
>= GetAXMethodCount()) {
1819 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1822 return m_methods
[idx
];
1824 const wxPropX
& GetAXPropDesc(int idx
) const
1826 static wxPropX BadVal
;
1827 if (idx
< 0 || idx
>= GetAXPropCount()) {
1828 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
1831 return m_props
[idx
];
1834 const wxFuncX
& GetAXMethodDesc(const wxString
& name
) const
1836 NameMap::const_iterator it
= m_methodNames
.find(name
);
1837 if (it
== m_methodNames
.end()) {
1839 msg
<< _T("method <") << name
<< _T("> not found");
1840 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1841 static wxFuncX BadVal
;
1844 return GetAXMethodDesc(it
->second
);
1846 const wxPropX
& GetAXPropDesc(const wxString
& name
) const
1848 NameMap::const_iterator it
= m_propNames
.find(name
);
1849 if (it
== m_propNames
.end()) {
1851 msg
<< _T("property <") << name
<< _T("> not found");
1852 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
1853 static wxPropX BadVal
;
1856 return GetAXPropDesc(it
->second
);
1859 // Accessors for the internal vectors of events, methods and
1860 // proprties. Can be used as sequence like objects from
1862 const wxFuncXArray
& GetAXEvents() { return m_events
; }
1863 const wxFuncXArray
& GetAXMethods() { return m_methods
; }
1864 const wxPropXArray
& GetAXProperties() { return m_props
; }
1867 // Set a property from a Python object
1868 void SetAXProp(const wxString
& name
, PyObject
* value
)
1870 const wxPropX
& prop
= GetAXPropDesc(name
);
1871 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1872 if (! PyErr_Occurred() ) {
1873 if (! prop
.CanSet()) {
1875 msg
<< _T("property <") << name
<< _T("> is readonly");
1876 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1879 wxVariant wxV
= _PyObj2Variant(value
);
1880 if (PyErr_Occurred())
1882 VARIANT v
= {prop
.arg
.vt
};
1883 if (!VariantToMSWVariant(wxV
, v
) || PyErr_Occurred()) {
1885 msg
<< _T("Unable to convert value to expected type: (")
1886 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1888 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1891 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1892 SetProp(prop
.memid
, v
);
1894 wxPyEndAllowThreads(tstate
);
1898 wxPyEndBlockThreads(blocked
);
1902 // Get a property and convert it to a Python object
1903 PyObject
* GetAXProp(const wxString
& name
)
1905 PyObject
* rval
= NULL
;
1906 const wxPropX
& prop
= GetAXPropDesc(name
);
1907 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1908 if (! PyErr_Occurred() ) {
1909 if (! prop
.CanGet()) {
1911 msg
<< _T("property <") << name
<< _T("> is writeonly");
1912 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1915 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1916 VARIANT v
= GetPropAsVariant(prop
.memid
);
1917 wxPyEndAllowThreads(tstate
);
1919 if (!MSWVariantToVariant(v
, wv
) || PyErr_Occurred()) {
1921 msg
<< _T("Unable to convert value to expected type: (")
1922 << _VARTYPEname(prop
.arg
.vt
) << _T(") for property <")
1924 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1927 rval
= _Variant2PyObj(wv
);
1932 wxPyEndBlockThreads(blocked
);
1937 // If both IsIn and isOut are false, assume it is actually an
1939 bool paramIsIn(const wxParamX
& p
)
1941 return p
.IsIn() || (!p
.IsIn() && !p
.IsOut());
1945 // Call a method of the ActiveX object
1946 PyObject
* _CallAXMethod(const wxString
& name
, PyObject
* args
)
1948 VARIANTARG
*vargs
= NULL
;
1950 PyObject
* rval
= NULL
;
1951 const wxFuncX
& func
= GetAXMethodDesc(name
);
1953 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1954 if (! PyErr_Occurred() ) {
1955 nargs
= func
.params
.size();
1957 vargs
= new VARIANTARG
[nargs
];
1960 // init type of vargs, in reverse order
1962 for (i
= 0; i
< nargs
; i
++)
1963 vargs
[nargs
- i
- 1].vt
= func
.params
[i
].vt
;
1965 // Map the args coming from Python to the input parameters in vargs
1968 while ( i
<nargs
&& pi
<PyTuple_Size(args
) ) {
1969 // Move to the next input param.
1970 if (! paramIsIn(func
.params
[i
])) {
1974 // convert the python object
1975 PyObject
* obj
= PyTuple_GetItem(args
, pi
);
1976 if (obj
== Py_None
) // special-case None?
1977 vargs
[nargs
- i
- 1].vt
= VT_EMPTY
;
1979 wxVariant wxV
= _PyObj2Variant(obj
);
1980 if (PyErr_Occurred())
1982 if (!VariantToMSWVariant(wxV
, vargs
[nargs
- i
- 1]) || PyErr_Occurred()) {
1984 msg
<< _T("Unable to convert value to expected type: (")
1985 << _VARTYPEname(vargs
[nargs
- i
- 1].vt
)
1986 << _T(") for parameter ") << i
;
1987 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
1997 PyThreadState
* tstate
= wxPyBeginAllowThreads();
1998 VARIANT rv
= CallMethod(func
.memid
, vargs
, nargs
);
1999 wxPyEndAllowThreads(tstate
);
2001 // Convert the return value and any out-params, ignoring
2002 // conversion errors for now
2004 MSWVariantToVariant(rv
, wv
);
2005 rval
= _Variant2PyObj(wv
, true);
2009 // make a list and put the rval in it if it is not None
2010 PyObject
* lst
= PyList_New(0);
2011 if (rval
!= Py_None
)
2012 PyList_Append(lst
, rval
);
2016 // find the out params and convert them
2017 for (int i
= 0; i
< nargs
; i
++) {
2018 VARIANTARG
& va
= vargs
[nargs
- i
- 1];
2019 const wxParamX
&px
= func
.params
[i
];
2021 MSWVariantToVariant(va
, wv
);
2022 PyObject
* obj
= _Variant2PyObj(wv
, true);
2023 PyList_Append(lst
, obj
);
2026 rval
= PyList_AsTuple(lst
);
2029 if (PyErr_Occurred())
2033 wxPyEndBlockThreads(blocked
);
2035 for (int i
= 0; i
< nargs
; i
++)
2036 VariantClear(&vargs
[i
]);
2043 IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow
, wxWindow
);
2046 SWIGINTERNINLINE
long
2047 SWIG_As_long(PyObject
* obj
)
2050 if (!SWIG_AsVal_long(obj
, &v
)) {
2052 this is needed to make valgrind/purify happier.
2054 memset((void*)&v
, 0, sizeof(long));
2060 SWIGINTERNINLINE
int
2061 SWIG_Check_long(PyObject
* obj
)
2063 return SWIG_AsVal_long(obj
, (long*)0);
2066 static void wxActiveXEvent__preCallInit(wxActiveXEvent
*self
,PyObject
*pyself
){
2067 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
2068 PyObject
* pList
= PyList_New(0);
2069 PyObject_SetAttrString(pyself
, "paramList", pList
);
2071 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
2072 PyObject
* name
= PyString_FromString((char*)(const char*)self
->ParamName(i
).mb_str());
2073 PyObject
* val
= _Variant2PyObj((*self
)[i
], true);
2074 PyObject_SetAttr(pyself
, name
, val
);
2075 PyList_Append(pList
, name
);
2079 wxPyEndBlockThreads(blocked
);
2081 static void wxActiveXEvent__postCallCleanup(wxActiveXEvent
*self
,PyObject
*pyself
){
2082 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
2083 for (int i
=0; i
<self
->ParamCount(); i
+=1) {
2084 PyObject
* val
= PyObject_GetAttrString(
2085 pyself
, (char*)(const char*)self
->ParamName(i
).mb_str());
2086 _PyObj2Variant(val
, (*self
)[i
]);
2089 wxPyEndBlockThreads(blocked
);
2093 // Caller should already have the GIL!
2094 wxVariant
_PyObj2Variant(PyObject
* value
)
2098 if (value
== Py_None
)
2101 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
2102 else if (PyBool_Check(value
))
2103 rval
= (value
== Py_True
) ? true : false;
2106 else if (PyInt_Check(value
))
2107 rval
= PyInt_AS_LONG(value
);
2109 else if (PyFloat_Check(value
))
2110 rval
= PyFloat_AS_DOUBLE(value
);
2112 else if (PyString_Check(value
) || PyUnicode_Check(value
))
2113 rval
= Py2wxString(value
);
2115 // TODO: PyList of strings --> wxArrayString
2121 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _PyObj2Variant");
2128 // This one uses the type of the variant to try and force the conversion
2129 bool _PyObj2Variant(PyObject
* value
, wxVariant
& wv
)
2131 wxString type
= wv
.GetType();
2133 if ( type
== _T("long") || type
== _T("bool") || type
== _T("char") )
2134 wv
= PyInt_AsLong(value
);
2136 else if ( type
== _T("string") )
2137 wv
= Py2wxString(value
);
2139 else if ( type
== _T("double") )
2140 wv
= PyFloat_AsDouble(value
);
2143 // it's some other type that we dont' handle yet. Log it?
2149 // Caller should already have the GIL!
2150 PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
)
2152 PyObject
* rval
= NULL
;
2154 if (value
.IsNull()) {
2159 // should "char" be treated as an int or as a string?
2160 else if (value
.IsType(_T("char")) || value
.IsType(_T("long")))
2161 rval
= PyInt_FromLong(value
);
2163 else if (value
.IsType(_T("double")))
2164 rval
= PyFloat_FromDouble(value
);
2166 else if (value
.IsType(_T("bool"))) {
2167 rval
= (bool)value
? Py_True
: Py_False
;
2171 else if (value
.IsType(_T("string")))
2172 rval
= wx2PyString(value
);
2180 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _Variant2PyObj");
2187 wxString
_VARTYPEname(VARTYPE vt
)
2194 return _T("VT_VARIANT");
2214 // decimals are converted from doubles too
2216 return _T("double");
2222 return _T("wx.DateTime");
2225 return _T("string");
2228 return _T("VT_UNKNOWN");
2231 return _T("VT_DISPATCH");
2234 return _T("VT_EMPTY");
2237 return _T("VT_NULL");
2240 return _T("VT_VOID");
2244 msg
<< _T("unsupported type ") << vt
;
2251 // A class derived from our wxActiveXWindow for the IE WebBrowser
2252 // control that will serve as a base class for a Python
2253 // implementation. This is done so we can "eat our own dog food"
2254 // and use a class at least mostly generated by genaxmodule, but
2255 // also get some of the extra stuff like loading a document from
2256 // a string or a stream, getting text contents, etc. that
2257 // Lindsay's version gives us.
2260 #include <wx/mstream.h>
2262 #include <winerror.h>
2263 #include <exdispid.h>
2269 #include "IEHtmlStream.h"
2271 class wxIEHtmlWindowBase
: public wxActiveXWindow
{
2273 wxAutoOleInterface
<IWebBrowser2
> m_webBrowser
;
2275 DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase
);
2279 wxIEHtmlWindowBase ( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
2280 const wxPoint
& pos
= wxDefaultPosition
,
2281 const wxSize
& size
= wxDefaultSize
,
2283 const wxString
& name
= wxPyPanelNameStr
)
2284 : wxActiveXWindow(parent
, clsId
, id
, pos
, size
, style
, name
)
2288 // Get IWebBrowser2 Interface
2289 hret
= m_webBrowser
.QueryInterface(IID_IWebBrowser2
, m_ActiveX
);
2290 wxASSERT(SUCCEEDED(hret
));
2292 // web browser setup
2293 m_webBrowser
->put_MenuBar(VARIANT_FALSE
);
2294 m_webBrowser
->put_AddressBar(VARIANT_FALSE
);
2295 m_webBrowser
->put_StatusBar(VARIANT_FALSE
);
2296 m_webBrowser
->put_ToolBar(VARIANT_FALSE
);
2298 m_webBrowser
->put_RegisterAsBrowser(VARIANT_TRUE
);
2299 m_webBrowser
->put_RegisterAsDropTarget(VARIANT_TRUE
);
2301 m_webBrowser
->Navigate( L
"about:blank", NULL
, NULL
, NULL
, NULL
);
2305 void SetCharset(const wxString
& charset
)
2310 IDispatch
*pDisp
= NULL
;
2311 hret
= m_webBrowser
->get_Document(&pDisp
);
2312 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2316 wxAutoOleInterface
<IHTMLDocument2
> doc(IID_IHTMLDocument2
, disp
);
2318 doc
->put_charset((BSTR
) (const wchar_t *) charset
.wc_str(wxConvUTF8
));
2319 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
2324 bool LoadString(const wxString
& html
)
2327 size_t len
= html
.length();
2328 len
*= sizeof(wxChar
);
2329 data
= (char *) malloc(len
);
2330 memcpy(data
, html
.c_str(), len
);
2331 return LoadStream(new wxOwnedMemInputStream(data
, len
));
2335 bool LoadStream(IStreamAdaptorBase
*pstrm
)
2337 // need to prepend this as poxy MSHTML will not recognise a HTML comment
2338 // as starting a html document and treats it as plain text
2339 // Does nayone know how to force it to html mode ?
2341 // TODO: What to do in this case???
2343 pstrm
->prepend
= _T("<html>");
2346 // strip leading whitespace as it can confuse MSHTML
2347 wxAutoOleInterface
<IStream
> strm(pstrm
);
2349 // Document Interface
2350 IDispatch
*pDisp
= NULL
;
2351 HRESULT hret
= m_webBrowser
->get_Document(&pDisp
);
2354 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
2357 // get IPersistStreamInit
2358 wxAutoOleInterface
<IPersistStreamInit
>
2359 pPersistStreamInit(IID_IPersistStreamInit
, disp
);
2361 if (pPersistStreamInit
.Ok())
2363 HRESULT hr
= pPersistStreamInit
->InitNew();
2365 hr
= pPersistStreamInit
->Load(strm
);
2367 return SUCCEEDED(hr
);
2373 bool LoadStream(wxInputStream
*is
)
2375 // wrap reference around stream
2376 IwxStreamAdaptor
*pstrm
= new IwxStreamAdaptor(is
);
2379 return LoadStream(pstrm
);
2383 wxString
GetStringSelection(bool asHTML
)
2385 wxAutoOleInterface
<IHTMLTxtRange
> tr(wxieGetSelRange(m_oleObject
));
2387 return wxEmptyString
;
2390 HRESULT hr
= E_FAIL
;
2393 hr
= tr
->get_htmlText(&text
);
2395 hr
= tr
->get_text(&text
);
2397 return wxEmptyString
;
2400 SysFreeString(text
);
2405 wxString
GetText(bool asHTML
)
2407 if (! m_webBrowser
.Ok())
2408 return wxEmptyString
;
2410 // get document dispatch interface
2411 IDispatch
*iDisp
= NULL
;
2412 HRESULT hr
= m_webBrowser
->get_Document(&iDisp
);
2414 return wxEmptyString
;
2416 // Query for Document Interface
2417 wxAutoOleInterface
<IHTMLDocument2
> hd(IID_IHTMLDocument2
, iDisp
);
2421 return wxEmptyString
;
2424 IHTMLElement
*_body
= NULL
;
2425 hd
->get_body(&_body
);
2427 return wxEmptyString
;
2428 wxAutoOleInterface
<IHTMLElement
> body(_body
);
2435 hr
= body
->get_innerHTML(&text
);
2437 hr
= body
->get_innerText(&text
);
2439 return wxEmptyString
;
2442 SysFreeString(text
);
2448 // void wxIEHtmlWin::SetEditMode(bool seton)
2450 // m_bAmbientUserMode = ! seton;
2451 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
2454 // bool wxIEHtmlWin::GetEditMode()
2456 // return ! m_bAmbientUserMode;
2460 IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase
, wxActiveXWindow
);
2465 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
2467 if (obj
== Py_True
) {
2468 if (val
) *val
= true;
2471 if (obj
== Py_False
) {
2472 if (val
) *val
= false;
2476 if (SWIG_AsVal_int(obj
, &res
)) {
2477 if (val
) *val
= res
? true : false;
2483 SWIG_type_error("bool", obj
);
2489 SWIGINTERNINLINE
bool
2490 SWIG_As_bool(PyObject
* obj
)
2493 if (!SWIG_AsVal_bool(obj
, &v
)) {
2495 this is needed to make valgrind/purify happier.
2497 memset((void*)&v
, 0, sizeof(bool));
2503 SWIGINTERNINLINE
int
2504 SWIG_Check_bool(PyObject
* obj
)
2506 return SWIG_AsVal_bool(obj
, (bool*)0);
2512 static PyObject
*_wrap_new_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2513 PyObject
*resultobj
= NULL
;
2514 wxString
*arg1
= 0 ;
2516 bool temp1
= false ;
2517 PyObject
* obj0
= 0 ;
2522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_CLSID",kwnames
,&obj0
)) goto fail
;
2524 arg1
= wxString_in_helper(obj0
);
2525 if (arg1
== NULL
) SWIG_fail
;
2529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2530 result
= (CLSID
*)new_CLSID((wxString
const &)*arg1
);
2532 wxPyEndAllowThreads(__tstate
);
2533 if (PyErr_Occurred()) SWIG_fail
;
2535 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 1);
2550 static PyObject
*_wrap_delete_CLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
*resultobj
= NULL
;
2552 CLSID
*arg1
= (CLSID
*) 0 ;
2553 PyObject
* obj0
= 0 ;
2555 (char *) "self", NULL
2558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_CLSID",kwnames
,&obj0
)) goto fail
;
2559 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2560 if (SWIG_arg_fail(1)) SWIG_fail
;
2562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2565 wxPyEndAllowThreads(__tstate
);
2566 if (PyErr_Occurred()) SWIG_fail
;
2568 Py_INCREF(Py_None
); resultobj
= Py_None
;
2575 static PyObject
*_wrap_CLSID_GetCLSIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2576 PyObject
*resultobj
= NULL
;
2577 CLSID
*arg1
= (CLSID
*) 0 ;
2579 PyObject
* obj0
= 0 ;
2581 (char *) "self", NULL
2584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetCLSIDString",kwnames
,&obj0
)) goto fail
;
2585 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2586 if (SWIG_arg_fail(1)) SWIG_fail
;
2588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2589 result
= CLSID_GetCLSIDString(arg1
);
2591 wxPyEndAllowThreads(__tstate
);
2592 if (PyErr_Occurred()) SWIG_fail
;
2596 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2598 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2607 static PyObject
*_wrap_CLSID_GetProgIDString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2608 PyObject
*resultobj
= NULL
;
2609 CLSID
*arg1
= (CLSID
*) 0 ;
2611 PyObject
* obj0
= 0 ;
2613 (char *) "self", NULL
2616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CLSID_GetProgIDString",kwnames
,&obj0
)) goto fail
;
2617 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
2618 if (SWIG_arg_fail(1)) SWIG_fail
;
2620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2621 result
= CLSID_GetProgIDString(arg1
);
2623 wxPyEndAllowThreads(__tstate
);
2624 if (PyErr_Occurred()) SWIG_fail
;
2628 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2630 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2639 static PyObject
* CLSID_swigregister(PyObject
*, PyObject
*args
) {
2641 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2642 SWIG_TypeClientData(SWIGTYPE_p_CLSID
, obj
);
2644 return Py_BuildValue((char *)"");
2646 static PyObject
*_wrap_ParamX_flags_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2647 PyObject
*resultobj
= NULL
;
2648 wxParamX
*arg1
= (wxParamX
*) 0 ;
2650 PyObject
* obj0
= 0 ;
2652 (char *) "self", NULL
2655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_flags_get",kwnames
,&obj0
)) goto fail
;
2656 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2657 if (SWIG_arg_fail(1)) SWIG_fail
;
2658 result
= (USHORT
) ((arg1
)->flags
);
2661 resultobj
= SWIG_From_unsigned_SS_short(static_cast<unsigned short >(result
));
2669 static PyObject
*_wrap_ParamX_isPtr_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
*resultobj
= NULL
;
2671 wxParamX
*arg1
= (wxParamX
*) 0 ;
2673 PyObject
* obj0
= 0 ;
2675 (char *) "self", NULL
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isPtr_get",kwnames
,&obj0
)) goto fail
;
2679 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2680 if (SWIG_arg_fail(1)) SWIG_fail
;
2681 result
= (bool) ((arg1
)->isPtr
);
2684 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2692 static PyObject
*_wrap_ParamX_isSafeArray_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2693 PyObject
*resultobj
= NULL
;
2694 wxParamX
*arg1
= (wxParamX
*) 0 ;
2696 PyObject
* obj0
= 0 ;
2698 (char *) "self", NULL
2701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isSafeArray_get",kwnames
,&obj0
)) goto fail
;
2702 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2703 if (SWIG_arg_fail(1)) SWIG_fail
;
2704 result
= (bool) ((arg1
)->isSafeArray
);
2707 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2715 static PyObject
*_wrap_ParamX_isOptional_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2716 PyObject
*resultobj
= NULL
;
2717 wxParamX
*arg1
= (wxParamX
*) 0 ;
2719 PyObject
* obj0
= 0 ;
2721 (char *) "self", NULL
2724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_isOptional_get",kwnames
,&obj0
)) goto fail
;
2725 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2726 if (SWIG_arg_fail(1)) SWIG_fail
;
2727 result
= (bool) ((arg1
)->isOptional
);
2730 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2738 static PyObject
*_wrap_ParamX_vt_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2739 PyObject
*resultobj
= NULL
;
2740 wxParamX
*arg1
= (wxParamX
*) 0 ;
2742 PyObject
* obj0
= 0 ;
2744 (char *) "self", NULL
2747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_get",kwnames
,&obj0
)) goto fail
;
2748 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2749 if (SWIG_arg_fail(1)) SWIG_fail
;
2750 result
= (VARTYPE
) ((arg1
)->vt
);
2753 resultobj
= SWIG_From_unsigned_SS_short(static_cast<unsigned short >(result
));
2761 static PyObject
*_wrap_ParamX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2762 PyObject
*resultobj
= NULL
;
2763 wxParamX
*arg1
= (wxParamX
*) 0 ;
2765 PyObject
* obj0
= 0 ;
2767 (char *) "self", NULL
2770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_name_get",kwnames
,&obj0
)) goto fail
;
2771 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2772 if (SWIG_arg_fail(1)) SWIG_fail
;
2773 result
= (wxString
*)& ((arg1
)->name
);
2777 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2779 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2788 static PyObject
*_wrap_ParamX_vt_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2789 PyObject
*resultobj
= NULL
;
2790 wxParamX
*arg1
= (wxParamX
*) 0 ;
2792 PyObject
* obj0
= 0 ;
2794 (char *) "self", NULL
2797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_vt_type_get",kwnames
,&obj0
)) goto fail
;
2798 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2799 if (SWIG_arg_fail(1)) SWIG_fail
;
2801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2802 result
= wxParamX_vt_type_get(arg1
);
2804 wxPyEndAllowThreads(__tstate
);
2805 if (PyErr_Occurred()) SWIG_fail
;
2809 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2811 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
2820 static PyObject
*_wrap_ParamX_IsIn(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
*resultobj
= NULL
;
2822 wxParamX
*arg1
= (wxParamX
*) 0 ;
2824 PyObject
* obj0
= 0 ;
2826 (char *) "self", NULL
2829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsIn",kwnames
,&obj0
)) goto fail
;
2830 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2831 if (SWIG_arg_fail(1)) SWIG_fail
;
2833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2834 result
= (bool)((wxParamX
const *)arg1
)->IsIn();
2836 wxPyEndAllowThreads(__tstate
);
2837 if (PyErr_Occurred()) SWIG_fail
;
2840 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2848 static PyObject
*_wrap_ParamX_IsOut(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2849 PyObject
*resultobj
= NULL
;
2850 wxParamX
*arg1
= (wxParamX
*) 0 ;
2852 PyObject
* obj0
= 0 ;
2854 (char *) "self", NULL
2857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsOut",kwnames
,&obj0
)) goto fail
;
2858 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2859 if (SWIG_arg_fail(1)) SWIG_fail
;
2861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2862 result
= (bool)((wxParamX
const *)arg1
)->IsOut();
2864 wxPyEndAllowThreads(__tstate
);
2865 if (PyErr_Occurred()) SWIG_fail
;
2868 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2876 static PyObject
*_wrap_ParamX_IsRetVal(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2877 PyObject
*resultobj
= NULL
;
2878 wxParamX
*arg1
= (wxParamX
*) 0 ;
2880 PyObject
* obj0
= 0 ;
2882 (char *) "self", NULL
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamX_IsRetVal",kwnames
,&obj0
)) goto fail
;
2886 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamX
, SWIG_POINTER_EXCEPTION
| 0);
2887 if (SWIG_arg_fail(1)) SWIG_fail
;
2889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2890 result
= (bool)((wxParamX
const *)arg1
)->IsRetVal();
2892 wxPyEndAllowThreads(__tstate
);
2893 if (PyErr_Occurred()) SWIG_fail
;
2896 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2904 static PyObject
* ParamX_swigregister(PyObject
*, PyObject
*args
) {
2906 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2907 SWIG_TypeClientData(SWIGTYPE_p_wxParamX
, obj
);
2909 return Py_BuildValue((char *)"");
2911 static PyObject
*_wrap_FuncX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2912 PyObject
*resultobj
= NULL
;
2913 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2915 PyObject
* obj0
= 0 ;
2917 (char *) "self", NULL
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_name_get",kwnames
,&obj0
)) goto fail
;
2921 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2922 if (SWIG_arg_fail(1)) SWIG_fail
;
2923 result
= (wxString
*)& ((arg1
)->name
);
2927 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
2929 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
2938 static PyObject
*_wrap_FuncX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2939 PyObject
*resultobj
= NULL
;
2940 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2942 PyObject
* obj0
= 0 ;
2944 (char *) "self", NULL
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_memid_get",kwnames
,&obj0
)) goto fail
;
2948 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2949 if (SWIG_arg_fail(1)) SWIG_fail
;
2950 result
= (MEMBERID
) ((arg1
)->memid
);
2953 resultobj
= SWIG_From_long(static_cast<long >(result
));
2961 static PyObject
*_wrap_FuncX_hasOut_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2962 PyObject
*resultobj
= NULL
;
2963 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2965 PyObject
* obj0
= 0 ;
2967 (char *) "self", NULL
2970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_hasOut_get",kwnames
,&obj0
)) goto fail
;
2971 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2972 if (SWIG_arg_fail(1)) SWIG_fail
;
2973 result
= (bool) ((arg1
)->hasOut
);
2976 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2984 static PyObject
*_wrap_FuncX_retType_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2985 PyObject
*resultobj
= NULL
;
2986 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
2988 PyObject
* obj0
= 0 ;
2990 (char *) "self", NULL
2993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_retType_get",kwnames
,&obj0
)) goto fail
;
2994 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
2995 if (SWIG_arg_fail(1)) SWIG_fail
;
2996 result
= (wxParamX
*)& ((arg1
)->retType
);
2998 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3005 static PyObject
*_wrap_FuncX_params_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3006 PyObject
*resultobj
= NULL
;
3007 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
3008 wxParamXArray
*result
;
3009 PyObject
* obj0
= 0 ;
3011 (char *) "self", NULL
3014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncX_params_get",kwnames
,&obj0
)) goto fail
;
3015 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncX
, SWIG_POINTER_EXCEPTION
| 0);
3016 if (SWIG_arg_fail(1)) SWIG_fail
;
3017 result
= (wxParamXArray
*)& ((arg1
)->params
);
3019 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamXArray
, 0);
3026 static PyObject
* FuncX_swigregister(PyObject
*, PyObject
*args
) {
3028 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3029 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX
, obj
);
3031 return Py_BuildValue((char *)"");
3033 static PyObject
*_wrap_PropX_name_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3034 PyObject
*resultobj
= NULL
;
3035 wxPropX
*arg1
= (wxPropX
*) 0 ;
3037 PyObject
* obj0
= 0 ;
3039 (char *) "self", NULL
3042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_name_get",kwnames
,&obj0
)) goto fail
;
3043 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3044 if (SWIG_arg_fail(1)) SWIG_fail
;
3045 result
= (wxString
*)& ((arg1
)->name
);
3049 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
3051 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
3060 static PyObject
*_wrap_PropX_memid_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3061 PyObject
*resultobj
= NULL
;
3062 wxPropX
*arg1
= (wxPropX
*) 0 ;
3064 PyObject
* obj0
= 0 ;
3066 (char *) "self", NULL
3069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_memid_get",kwnames
,&obj0
)) goto fail
;
3070 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3071 if (SWIG_arg_fail(1)) SWIG_fail
;
3072 result
= (MEMBERID
) ((arg1
)->memid
);
3075 resultobj
= SWIG_From_long(static_cast<long >(result
));
3083 static PyObject
*_wrap_PropX_type_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3084 PyObject
*resultobj
= NULL
;
3085 wxPropX
*arg1
= (wxPropX
*) 0 ;
3087 PyObject
* obj0
= 0 ;
3089 (char *) "self", NULL
3092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_type_get",kwnames
,&obj0
)) goto fail
;
3093 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3094 if (SWIG_arg_fail(1)) SWIG_fail
;
3095 result
= (wxParamX
*)& ((arg1
)->type
);
3097 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3104 static PyObject
*_wrap_PropX_arg_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3105 PyObject
*resultobj
= NULL
;
3106 wxPropX
*arg1
= (wxPropX
*) 0 ;
3108 PyObject
* obj0
= 0 ;
3110 (char *) "self", NULL
3113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_arg_get",kwnames
,&obj0
)) goto fail
;
3114 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3115 if (SWIG_arg_fail(1)) SWIG_fail
;
3116 result
= (wxParamX
*)& ((arg1
)->arg
);
3118 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3125 static PyObject
*_wrap_PropX_putByRef_get(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3126 PyObject
*resultobj
= NULL
;
3127 wxPropX
*arg1
= (wxPropX
*) 0 ;
3129 PyObject
* obj0
= 0 ;
3131 (char *) "self", NULL
3134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_putByRef_get",kwnames
,&obj0
)) goto fail
;
3135 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3136 if (SWIG_arg_fail(1)) SWIG_fail
;
3137 result
= (bool) ((arg1
)->putByRef
);
3140 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3148 static PyObject
*_wrap_PropX_CanGet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3149 PyObject
*resultobj
= NULL
;
3150 wxPropX
*arg1
= (wxPropX
*) 0 ;
3152 PyObject
* obj0
= 0 ;
3154 (char *) "self", NULL
3157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanGet",kwnames
,&obj0
)) goto fail
;
3158 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3159 if (SWIG_arg_fail(1)) SWIG_fail
;
3161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3162 result
= (bool)((wxPropX
const *)arg1
)->CanGet();
3164 wxPyEndAllowThreads(__tstate
);
3165 if (PyErr_Occurred()) SWIG_fail
;
3168 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3176 static PyObject
*_wrap_PropX_CanSet(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3177 PyObject
*resultobj
= NULL
;
3178 wxPropX
*arg1
= (wxPropX
*) 0 ;
3180 PyObject
* obj0
= 0 ;
3182 (char *) "self", NULL
3185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropX_CanSet",kwnames
,&obj0
)) goto fail
;
3186 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropX
, SWIG_POINTER_EXCEPTION
| 0);
3187 if (SWIG_arg_fail(1)) SWIG_fail
;
3189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3190 result
= (bool)((wxPropX
const *)arg1
)->CanSet();
3192 wxPyEndAllowThreads(__tstate
);
3193 if (PyErr_Occurred()) SWIG_fail
;
3196 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3204 static PyObject
* PropX_swigregister(PyObject
*, PyObject
*args
) {
3206 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3207 SWIG_TypeClientData(SWIGTYPE_p_wxPropX
, obj
);
3209 return Py_BuildValue((char *)"");
3211 static PyObject
*_wrap_ParamXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3212 PyObject
*resultobj
= NULL
;
3213 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3215 PyObject
* obj0
= 0 ;
3217 (char *) "self", NULL
3220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3221 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3222 if (SWIG_arg_fail(1)) SWIG_fail
;
3224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3225 result
= (bool)wxParamXArray___nonzero__(arg1
);
3227 wxPyEndAllowThreads(__tstate
);
3228 if (PyErr_Occurred()) SWIG_fail
;
3231 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3239 static PyObject
*_wrap_ParamXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3240 PyObject
*resultobj
= NULL
;
3241 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3243 PyObject
* obj0
= 0 ;
3245 (char *) "self", NULL
3248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ParamXArray___len__",kwnames
,&obj0
)) goto fail
;
3249 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3250 if (SWIG_arg_fail(1)) SWIG_fail
;
3252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3253 result
= (int)wxParamXArray___len__(arg1
);
3255 wxPyEndAllowThreads(__tstate
);
3256 if (PyErr_Occurred()) SWIG_fail
;
3259 resultobj
= SWIG_From_int(static_cast<int >(result
));
3267 static PyObject
*_wrap_ParamXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3268 PyObject
*resultobj
= NULL
;
3269 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
3272 PyObject
* obj0
= 0 ;
3273 PyObject
* obj1
= 0 ;
3275 (char *) "self",(char *) "idx", NULL
3278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ParamXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3279 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxParamXArray
, SWIG_POINTER_EXCEPTION
| 0);
3280 if (SWIG_arg_fail(1)) SWIG_fail
;
3282 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3283 if (SWIG_arg_fail(2)) SWIG_fail
;
3286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3288 wxParamX
const &_result_ref
= wxParamXArray___getitem__(arg1
,arg2
);
3289 result
= (wxParamX
*) &_result_ref
;
3292 wxPyEndAllowThreads(__tstate
);
3293 if (PyErr_Occurred()) SWIG_fail
;
3295 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
3302 static PyObject
* ParamXArray_swigregister(PyObject
*, PyObject
*args
) {
3304 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3305 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray
, obj
);
3307 return Py_BuildValue((char *)"");
3309 static PyObject
*_wrap_FuncXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3310 PyObject
*resultobj
= NULL
;
3311 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3313 PyObject
* obj0
= 0 ;
3315 (char *) "self", NULL
3318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3319 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3320 if (SWIG_arg_fail(1)) SWIG_fail
;
3322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3323 result
= (bool)wxFuncXArray___nonzero__(arg1
);
3325 wxPyEndAllowThreads(__tstate
);
3326 if (PyErr_Occurred()) SWIG_fail
;
3329 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3337 static PyObject
*_wrap_FuncXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
*resultobj
= NULL
;
3339 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3341 PyObject
* obj0
= 0 ;
3343 (char *) "self", NULL
3346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:FuncXArray___len__",kwnames
,&obj0
)) goto fail
;
3347 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3348 if (SWIG_arg_fail(1)) SWIG_fail
;
3350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3351 result
= (int)wxFuncXArray___len__(arg1
);
3353 wxPyEndAllowThreads(__tstate
);
3354 if (PyErr_Occurred()) SWIG_fail
;
3357 resultobj
= SWIG_From_int(static_cast<int >(result
));
3365 static PyObject
*_wrap_FuncXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3366 PyObject
*resultobj
= NULL
;
3367 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
3370 PyObject
* obj0
= 0 ;
3371 PyObject
* obj1
= 0 ;
3373 (char *) "self",(char *) "idx", NULL
3376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:FuncXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3377 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxFuncXArray
, SWIG_POINTER_EXCEPTION
| 0);
3378 if (SWIG_arg_fail(1)) SWIG_fail
;
3380 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3381 if (SWIG_arg_fail(2)) SWIG_fail
;
3384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3386 wxFuncX
const &_result_ref
= wxFuncXArray___getitem__(arg1
,arg2
);
3387 result
= (wxFuncX
*) &_result_ref
;
3390 wxPyEndAllowThreads(__tstate
);
3391 if (PyErr_Occurred()) SWIG_fail
;
3393 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3400 static PyObject
* FuncXArray_swigregister(PyObject
*, PyObject
*args
) {
3402 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3403 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray
, obj
);
3405 return Py_BuildValue((char *)"");
3407 static PyObject
*_wrap_PropXArray___nonzero__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3408 PyObject
*resultobj
= NULL
;
3409 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3411 PyObject
* obj0
= 0 ;
3413 (char *) "self", NULL
3416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___nonzero__",kwnames
,&obj0
)) goto fail
;
3417 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3418 if (SWIG_arg_fail(1)) SWIG_fail
;
3420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3421 result
= (bool)wxPropXArray___nonzero__(arg1
);
3423 wxPyEndAllowThreads(__tstate
);
3424 if (PyErr_Occurred()) SWIG_fail
;
3427 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3435 static PyObject
*_wrap_PropXArray___len__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3436 PyObject
*resultobj
= NULL
;
3437 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3439 PyObject
* obj0
= 0 ;
3441 (char *) "self", NULL
3444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:PropXArray___len__",kwnames
,&obj0
)) goto fail
;
3445 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3446 if (SWIG_arg_fail(1)) SWIG_fail
;
3448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3449 result
= (int)wxPropXArray___len__(arg1
);
3451 wxPyEndAllowThreads(__tstate
);
3452 if (PyErr_Occurred()) SWIG_fail
;
3455 resultobj
= SWIG_From_int(static_cast<int >(result
));
3463 static PyObject
*_wrap_PropXArray___getitem__(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3464 PyObject
*resultobj
= NULL
;
3465 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
3468 PyObject
* obj0
= 0 ;
3469 PyObject
* obj1
= 0 ;
3471 (char *) "self",(char *) "idx", NULL
3474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:PropXArray___getitem__",kwnames
,&obj0
,&obj1
)) goto fail
;
3475 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxPropXArray
, SWIG_POINTER_EXCEPTION
| 0);
3476 if (SWIG_arg_fail(1)) SWIG_fail
;
3478 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3479 if (SWIG_arg_fail(2)) SWIG_fail
;
3482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3484 wxPropX
const &_result_ref
= wxPropXArray___getitem__(arg1
,arg2
);
3485 result
= (wxPropX
*) &_result_ref
;
3488 wxPyEndAllowThreads(__tstate
);
3489 if (PyErr_Occurred()) SWIG_fail
;
3491 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3498 static PyObject
* PropXArray_swigregister(PyObject
*, PyObject
*args
) {
3500 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3501 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray
, obj
);
3503 return Py_BuildValue((char *)"");
3505 static PyObject
*_wrap_new_ActiveXWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3506 PyObject
*resultobj
= NULL
;
3507 wxWindow
*arg1
= (wxWindow
*) 0 ;
3509 int arg3
= (int) -1 ;
3510 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3511 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3512 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3513 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3514 long arg6
= (long) 0 ;
3515 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
3516 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3517 wxActiveXWindow
*result
;
3520 bool temp7
= false ;
3521 PyObject
* obj0
= 0 ;
3522 PyObject
* obj1
= 0 ;
3523 PyObject
* obj2
= 0 ;
3524 PyObject
* obj3
= 0 ;
3525 PyObject
* obj4
= 0 ;
3526 PyObject
* obj5
= 0 ;
3527 PyObject
* obj6
= 0 ;
3529 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3533 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3534 if (SWIG_arg_fail(1)) SWIG_fail
;
3536 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
3537 if (SWIG_arg_fail(2)) SWIG_fail
;
3539 SWIG_null_ref("CLSID");
3541 if (SWIG_arg_fail(2)) SWIG_fail
;
3545 arg3
= static_cast<int >(SWIG_As_int(obj2
));
3546 if (SWIG_arg_fail(3)) SWIG_fail
;
3552 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3558 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3563 arg6
= static_cast<long >(SWIG_As_long(obj5
));
3564 if (SWIG_arg_fail(6)) SWIG_fail
;
3569 arg7
= wxString_in_helper(obj6
);
3570 if (arg7
== NULL
) SWIG_fail
;
3575 if (!wxPyCheckForApp()) SWIG_fail
;
3576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3577 result
= (wxActiveXWindow
*)new wxActiveXWindow(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3579 wxPyEndAllowThreads(__tstate
);
3580 if (PyErr_Occurred()) SWIG_fail
;
3582 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxActiveXWindow
, 1);
3597 static PyObject
*_wrap_ActiveXWindow_GetCLSID(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3598 PyObject
*resultobj
= NULL
;
3599 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3601 PyObject
* obj0
= 0 ;
3603 (char *) "self", NULL
3606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetCLSID",kwnames
,&obj0
)) goto fail
;
3607 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3608 if (SWIG_arg_fail(1)) SWIG_fail
;
3610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3612 CLSID
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetCLSID();
3613 result
= (CLSID
*) &_result_ref
;
3616 wxPyEndAllowThreads(__tstate
);
3617 if (PyErr_Occurred()) SWIG_fail
;
3619 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 0);
3626 static PyObject
*_wrap_ActiveXWindow_GetAXEventCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3627 PyObject
*resultobj
= NULL
;
3628 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3630 PyObject
* obj0
= 0 ;
3632 (char *) "self", NULL
3635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames
,&obj0
)) goto fail
;
3636 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3637 if (SWIG_arg_fail(1)) SWIG_fail
;
3639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3640 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXEventCount();
3642 wxPyEndAllowThreads(__tstate
);
3643 if (PyErr_Occurred()) SWIG_fail
;
3646 resultobj
= SWIG_From_int(static_cast<int >(result
));
3654 static PyObject
*_wrap_ActiveXWindow_GetAXEventDesc(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3655 PyObject
*resultobj
= NULL
;
3656 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3659 PyObject
* obj0
= 0 ;
3660 PyObject
* obj1
= 0 ;
3662 (char *) "self",(char *) "idx", NULL
3665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames
,&obj0
,&obj1
)) goto fail
;
3666 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3667 if (SWIG_arg_fail(1)) SWIG_fail
;
3669 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3670 if (SWIG_arg_fail(2)) SWIG_fail
;
3673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3675 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXEventDesc(arg2
);
3676 result
= (wxFuncX
*) &_result_ref
;
3679 wxPyEndAllowThreads(__tstate
);
3680 if (PyErr_Occurred()) SWIG_fail
;
3682 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3689 static PyObject
*_wrap_ActiveXWindow_GetAXPropCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3690 PyObject
*resultobj
= NULL
;
3691 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3693 PyObject
* obj0
= 0 ;
3695 (char *) "self", NULL
3698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames
,&obj0
)) goto fail
;
3699 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3700 if (SWIG_arg_fail(1)) SWIG_fail
;
3702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3703 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXPropCount();
3705 wxPyEndAllowThreads(__tstate
);
3706 if (PyErr_Occurred()) SWIG_fail
;
3709 resultobj
= SWIG_From_int(static_cast<int >(result
));
3717 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3718 PyObject
*resultobj
= NULL
;
3719 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3722 PyObject
* obj0
= 0 ;
3723 PyObject
* obj1
= 0 ;
3725 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3726 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3727 if (SWIG_arg_fail(1)) SWIG_fail
;
3729 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3730 if (SWIG_arg_fail(2)) SWIG_fail
;
3733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3735 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc(arg2
);
3736 result
= (wxPropX
*) &_result_ref
;
3739 wxPyEndAllowThreads(__tstate
);
3740 if (PyErr_Occurred()) SWIG_fail
;
3742 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3749 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3750 PyObject
*resultobj
= NULL
;
3751 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3752 wxString
*arg2
= 0 ;
3754 bool temp2
= false ;
3755 PyObject
* obj0
= 0 ;
3756 PyObject
* obj1
= 0 ;
3758 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0
,&obj1
)) goto fail
;
3759 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3760 if (SWIG_arg_fail(1)) SWIG_fail
;
3762 arg2
= wxString_in_helper(obj1
);
3763 if (arg2
== NULL
) SWIG_fail
;
3767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3769 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc((wxString
const &)*arg2
);
3770 result
= (wxPropX
*) &_result_ref
;
3773 wxPyEndAllowThreads(__tstate
);
3774 if (PyErr_Occurred()) SWIG_fail
;
3776 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
3791 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc(PyObject
*self
, PyObject
*args
) {
3796 argc
= PyObject_Length(args
);
3797 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3798 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3804 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3813 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3816 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self
,args
);
3824 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3832 _v
= SWIG_Check_int(argv
[1]);
3834 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self
,args
);
3839 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
3844 static PyObject
*_wrap_ActiveXWindow_GetAXMethodCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3845 PyObject
*resultobj
= NULL
;
3846 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3848 PyObject
* obj0
= 0 ;
3850 (char *) "self", NULL
3853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames
,&obj0
)) goto fail
;
3854 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3855 if (SWIG_arg_fail(1)) SWIG_fail
;
3857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3858 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXMethodCount();
3860 wxPyEndAllowThreads(__tstate
);
3861 if (PyErr_Occurred()) SWIG_fail
;
3864 resultobj
= SWIG_From_int(static_cast<int >(result
));
3872 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject
*, PyObject
*args
) {
3873 PyObject
*resultobj
= NULL
;
3874 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3877 PyObject
* obj0
= 0 ;
3878 PyObject
* obj1
= 0 ;
3880 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3881 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3882 if (SWIG_arg_fail(1)) SWIG_fail
;
3884 arg2
= static_cast<int >(SWIG_As_int(obj1
));
3885 if (SWIG_arg_fail(2)) SWIG_fail
;
3888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3890 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc(arg2
);
3891 result
= (wxFuncX
*) &_result_ref
;
3894 wxPyEndAllowThreads(__tstate
);
3895 if (PyErr_Occurred()) SWIG_fail
;
3897 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3904 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject
*, PyObject
*args
) {
3905 PyObject
*resultobj
= NULL
;
3906 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
3907 wxString
*arg2
= 0 ;
3909 bool temp2
= false ;
3910 PyObject
* obj0
= 0 ;
3911 PyObject
* obj1
= 0 ;
3913 if(!PyArg_ParseTuple(args
,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0
,&obj1
)) goto fail
;
3914 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
3915 if (SWIG_arg_fail(1)) SWIG_fail
;
3917 arg2
= wxString_in_helper(obj1
);
3918 if (arg2
== NULL
) SWIG_fail
;
3922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3924 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc((wxString
const &)*arg2
);
3925 result
= (wxFuncX
*) &_result_ref
;
3928 wxPyEndAllowThreads(__tstate
);
3929 if (PyErr_Occurred()) SWIG_fail
;
3931 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
3946 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc(PyObject
*self
, PyObject
*args
) {
3951 argc
= PyObject_Length(args
);
3952 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
3953 argv
[ii
] = PyTuple_GetItem(args
,ii
);
3959 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3968 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
3971 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self
,args
);
3979 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
3987 _v
= SWIG_Check_int(argv
[1]);
3989 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self
,args
);
3994 PyErr_SetString(PyExc_NotImplementedError
,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
3999 static PyObject
*_wrap_ActiveXWindow_GetAXEvents(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4000 PyObject
*resultobj
= NULL
;
4001 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4002 wxFuncXArray
*result
;
4003 PyObject
* obj0
= 0 ;
4005 (char *) "self", NULL
4008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXEvents",kwnames
,&obj0
)) goto fail
;
4009 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4010 if (SWIG_arg_fail(1)) SWIG_fail
;
4012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4014 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXEvents();
4015 result
= (wxFuncXArray
*) &_result_ref
;
4018 wxPyEndAllowThreads(__tstate
);
4019 if (PyErr_Occurred()) SWIG_fail
;
4021 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
4028 static PyObject
*_wrap_ActiveXWindow_GetAXMethods(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4029 PyObject
*resultobj
= NULL
;
4030 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4031 wxFuncXArray
*result
;
4032 PyObject
* obj0
= 0 ;
4034 (char *) "self", NULL
4037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXMethods",kwnames
,&obj0
)) goto fail
;
4038 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4039 if (SWIG_arg_fail(1)) SWIG_fail
;
4041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4043 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXMethods();
4044 result
= (wxFuncXArray
*) &_result_ref
;
4047 wxPyEndAllowThreads(__tstate
);
4048 if (PyErr_Occurred()) SWIG_fail
;
4050 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
4057 static PyObject
*_wrap_ActiveXWindow_GetAXProperties(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4058 PyObject
*resultobj
= NULL
;
4059 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4060 wxPropXArray
*result
;
4061 PyObject
* obj0
= 0 ;
4063 (char *) "self", NULL
4066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXWindow_GetAXProperties",kwnames
,&obj0
)) goto fail
;
4067 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4068 if (SWIG_arg_fail(1)) SWIG_fail
;
4070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4072 wxPropXArray
const &_result_ref
= (arg1
)->GetAXProperties();
4073 result
= (wxPropXArray
*) &_result_ref
;
4076 wxPyEndAllowThreads(__tstate
);
4077 if (PyErr_Occurred()) SWIG_fail
;
4079 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropXArray
, 0);
4086 static PyObject
*_wrap_ActiveXWindow_SetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4087 PyObject
*resultobj
= NULL
;
4088 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4089 wxString
*arg2
= 0 ;
4090 PyObject
*arg3
= (PyObject
*) 0 ;
4091 bool temp2
= false ;
4092 PyObject
* obj0
= 0 ;
4093 PyObject
* obj1
= 0 ;
4094 PyObject
* obj2
= 0 ;
4096 (char *) "self",(char *) "name",(char *) "value", NULL
4099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
4100 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4101 if (SWIG_arg_fail(1)) SWIG_fail
;
4103 arg2
= wxString_in_helper(obj1
);
4104 if (arg2
== NULL
) SWIG_fail
;
4109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4110 (arg1
)->SetAXProp((wxString
const &)*arg2
,arg3
);
4112 wxPyEndAllowThreads(__tstate
);
4113 if (PyErr_Occurred()) SWIG_fail
;
4115 Py_INCREF(Py_None
); resultobj
= Py_None
;
4130 static PyObject
*_wrap_ActiveXWindow_GetAXProp(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4131 PyObject
*resultobj
= NULL
;
4132 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4133 wxString
*arg2
= 0 ;
4135 bool temp2
= false ;
4136 PyObject
* obj0
= 0 ;
4137 PyObject
* obj1
= 0 ;
4139 (char *) "self",(char *) "name", NULL
4142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXWindow_GetAXProp",kwnames
,&obj0
,&obj1
)) goto fail
;
4143 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4144 if (SWIG_arg_fail(1)) SWIG_fail
;
4146 arg2
= wxString_in_helper(obj1
);
4147 if (arg2
== NULL
) SWIG_fail
;
4151 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4152 result
= (PyObject
*)(arg1
)->GetAXProp((wxString
const &)*arg2
);
4154 wxPyEndAllowThreads(__tstate
);
4155 if (PyErr_Occurred()) SWIG_fail
;
4172 static PyObject
*_wrap_ActiveXWindow__CallAXMethod(PyObject
*, PyObject
*args
) {
4173 PyObject
*resultobj
= NULL
;
4174 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
4175 wxString
*arg2
= 0 ;
4176 PyObject
*arg3
= (PyObject
*) 0 ;
4178 bool temp2
= false ;
4179 PyObject
* obj0
= 0 ;
4180 PyObject
* obj1
= 0 ;
4181 PyObject
* obj2
= 0 ;
4183 if(!PyArg_ParseTuple(args
,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0
,&obj1
,&obj2
)) goto fail
;
4184 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXWindow
, SWIG_POINTER_EXCEPTION
| 0);
4185 if (SWIG_arg_fail(1)) SWIG_fail
;
4187 arg2
= wxString_in_helper(obj1
);
4188 if (arg2
== NULL
) SWIG_fail
;
4193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4194 result
= (PyObject
*)(arg1
)->_CallAXMethod((wxString
const &)*arg2
,arg3
);
4196 wxPyEndAllowThreads(__tstate
);
4197 if (PyErr_Occurred()) SWIG_fail
;
4214 static PyObject
* ActiveXWindow_swigregister(PyObject
*, PyObject
*args
) {
4216 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4217 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow
, obj
);
4219 return Py_BuildValue((char *)"");
4221 static PyObject
*_wrap_RegisterActiveXEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4222 PyObject
*resultobj
= NULL
;
4223 wxString
*arg1
= 0 ;
4225 bool temp1
= false ;
4226 PyObject
* obj0
= 0 ;
4228 (char *) "eventName", NULL
4231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RegisterActiveXEvent",kwnames
,&obj0
)) goto fail
;
4233 arg1
= wxString_in_helper(obj0
);
4234 if (arg1
== NULL
) SWIG_fail
;
4238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4239 result
= (wxEventType
)RegisterActiveXEvent((wxString
const &)*arg1
);
4241 wxPyEndAllowThreads(__tstate
);
4242 if (PyErr_Occurred()) SWIG_fail
;
4245 resultobj
= SWIG_From_int(static_cast<int >(result
));
4261 static PyObject
*_wrap_ActiveXEvent_EventName(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4262 PyObject
*resultobj
= NULL
;
4263 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4265 PyObject
* obj0
= 0 ;
4267 (char *) "self", NULL
4270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:ActiveXEvent_EventName",kwnames
,&obj0
)) goto fail
;
4271 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4272 if (SWIG_arg_fail(1)) SWIG_fail
;
4274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4275 result
= (arg1
)->EventName();
4277 wxPyEndAllowThreads(__tstate
);
4278 if (PyErr_Occurred()) SWIG_fail
;
4282 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4284 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4293 static PyObject
*_wrap_ActiveXEvent__preCallInit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4294 PyObject
*resultobj
= NULL
;
4295 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4296 PyObject
*arg2
= (PyObject
*) 0 ;
4297 PyObject
* obj0
= 0 ;
4298 PyObject
* obj1
= 0 ;
4300 (char *) "self",(char *) "pyself", NULL
4303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__preCallInit",kwnames
,&obj0
,&obj1
)) goto fail
;
4304 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4305 if (SWIG_arg_fail(1)) SWIG_fail
;
4308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4309 wxActiveXEvent__preCallInit(arg1
,arg2
);
4311 wxPyEndAllowThreads(__tstate
);
4312 if (PyErr_Occurred()) SWIG_fail
;
4314 Py_INCREF(Py_None
); resultobj
= Py_None
;
4321 static PyObject
*_wrap_ActiveXEvent__postCallCleanup(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4322 PyObject
*resultobj
= NULL
;
4323 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
4324 PyObject
*arg2
= (PyObject
*) 0 ;
4325 PyObject
* obj0
= 0 ;
4326 PyObject
* obj1
= 0 ;
4328 (char *) "self",(char *) "pyself", NULL
4331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames
,&obj0
,&obj1
)) goto fail
;
4332 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxActiveXEvent
, SWIG_POINTER_EXCEPTION
| 0);
4333 if (SWIG_arg_fail(1)) SWIG_fail
;
4336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4337 wxActiveXEvent__postCallCleanup(arg1
,arg2
);
4339 wxPyEndAllowThreads(__tstate
);
4340 if (PyErr_Occurred()) SWIG_fail
;
4342 Py_INCREF(Py_None
); resultobj
= Py_None
;
4349 static PyObject
* ActiveXEvent_swigregister(PyObject
*, PyObject
*args
) {
4351 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4352 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent
, obj
);
4354 return Py_BuildValue((char *)"");
4356 static PyObject
*_wrap_new_IEHtmlWindowBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4357 PyObject
*resultobj
= NULL
;
4358 wxWindow
*arg1
= (wxWindow
*) 0 ;
4360 int arg3
= (int) -1 ;
4361 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
4362 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
4363 wxSize
const &arg5_defvalue
= wxDefaultSize
;
4364 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
4365 long arg6
= (long) 0 ;
4366 wxString
const &arg7_defvalue
= wxPyPanelNameStr
;
4367 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
4368 wxIEHtmlWindowBase
*result
;
4371 bool temp7
= false ;
4372 PyObject
* obj0
= 0 ;
4373 PyObject
* obj1
= 0 ;
4374 PyObject
* obj2
= 0 ;
4375 PyObject
* obj3
= 0 ;
4376 PyObject
* obj4
= 0 ;
4377 PyObject
* obj5
= 0 ;
4378 PyObject
* obj6
= 0 ;
4380 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
4384 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
4385 if (SWIG_arg_fail(1)) SWIG_fail
;
4387 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_CLSID
, SWIG_POINTER_EXCEPTION
| 0);
4388 if (SWIG_arg_fail(2)) SWIG_fail
;
4390 SWIG_null_ref("CLSID");
4392 if (SWIG_arg_fail(2)) SWIG_fail
;
4396 arg3
= static_cast<int >(SWIG_As_int(obj2
));
4397 if (SWIG_arg_fail(3)) SWIG_fail
;
4403 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
4409 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
4414 arg6
= static_cast<long >(SWIG_As_long(obj5
));
4415 if (SWIG_arg_fail(6)) SWIG_fail
;
4420 arg7
= wxString_in_helper(obj6
);
4421 if (arg7
== NULL
) SWIG_fail
;
4426 if (!wxPyCheckForApp()) SWIG_fail
;
4427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4428 result
= (wxIEHtmlWindowBase
*)new wxIEHtmlWindowBase(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
4430 wxPyEndAllowThreads(__tstate
);
4431 if (PyErr_Occurred()) SWIG_fail
;
4433 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxIEHtmlWindowBase
, 1);
4448 static PyObject
*_wrap_IEHtmlWindowBase_SetCharset(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4449 PyObject
*resultobj
= NULL
;
4450 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4451 wxString
*arg2
= 0 ;
4452 bool temp2
= false ;
4453 PyObject
* obj0
= 0 ;
4454 PyObject
* obj1
= 0 ;
4456 (char *) "self",(char *) "charset", NULL
4459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames
,&obj0
,&obj1
)) goto fail
;
4460 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4461 if (SWIG_arg_fail(1)) SWIG_fail
;
4463 arg2
= wxString_in_helper(obj1
);
4464 if (arg2
== NULL
) SWIG_fail
;
4468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4469 (arg1
)->SetCharset((wxString
const &)*arg2
);
4471 wxPyEndAllowThreads(__tstate
);
4472 if (PyErr_Occurred()) SWIG_fail
;
4474 Py_INCREF(Py_None
); resultobj
= Py_None
;
4489 static PyObject
*_wrap_IEHtmlWindowBase_LoadString(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4490 PyObject
*resultobj
= NULL
;
4491 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4492 wxString
*arg2
= 0 ;
4494 bool temp2
= false ;
4495 PyObject
* obj0
= 0 ;
4496 PyObject
* obj1
= 0 ;
4498 (char *) "self",(char *) "html", NULL
4501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames
,&obj0
,&obj1
)) goto fail
;
4502 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4503 if (SWIG_arg_fail(1)) SWIG_fail
;
4505 arg2
= wxString_in_helper(obj1
);
4506 if (arg2
== NULL
) SWIG_fail
;
4510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4511 result
= (bool)(arg1
)->LoadString((wxString
const &)*arg2
);
4513 wxPyEndAllowThreads(__tstate
);
4514 if (PyErr_Occurred()) SWIG_fail
;
4517 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4533 static PyObject
*_wrap_IEHtmlWindowBase_LoadStream(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4534 PyObject
*resultobj
= NULL
;
4535 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4536 wxInputStream
*arg2
= (wxInputStream
*) 0 ;
4538 wxPyInputStream
*temp2
;
4539 PyObject
* obj0
= 0 ;
4540 PyObject
* obj1
= 0 ;
4542 (char *) "self",(char *) "is", NULL
4545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames
,&obj0
,&obj1
)) goto fail
;
4546 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4547 if (SWIG_arg_fail(1)) SWIG_fail
;
4549 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
4550 arg2
= wxPyCBInputStream_copy((wxPyCBInputStream
*)temp2
->m_wxis
);
4552 PyErr_Clear(); // clear the failure of the wxPyConvert above
4553 arg2
= wxPyCBInputStream_create(obj1
, true);
4555 PyErr_SetString(PyExc_TypeError
, "Expected wx.InputStream or Python file-like object.");
4561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4562 result
= (bool)(arg1
)->LoadStream(arg2
);
4564 wxPyEndAllowThreads(__tstate
);
4565 if (PyErr_Occurred()) SWIG_fail
;
4568 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4576 static PyObject
*_wrap_IEHtmlWindowBase_GetStringSelection(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4577 PyObject
*resultobj
= NULL
;
4578 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4581 PyObject
* obj0
= 0 ;
4582 PyObject
* obj1
= 0 ;
4584 (char *) "self",(char *) "asHTML", NULL
4587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames
,&obj0
,&obj1
)) goto fail
;
4588 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4589 if (SWIG_arg_fail(1)) SWIG_fail
;
4591 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
4592 if (SWIG_arg_fail(2)) SWIG_fail
;
4595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4596 result
= (arg1
)->GetStringSelection(arg2
);
4598 wxPyEndAllowThreads(__tstate
);
4599 if (PyErr_Occurred()) SWIG_fail
;
4603 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4605 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4614 static PyObject
*_wrap_IEHtmlWindowBase_GetText(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4615 PyObject
*resultobj
= NULL
;
4616 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
4619 PyObject
* obj0
= 0 ;
4620 PyObject
* obj1
= 0 ;
4622 (char *) "self",(char *) "asHTML", NULL
4625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:IEHtmlWindowBase_GetText",kwnames
,&obj0
,&obj1
)) goto fail
;
4626 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxIEHtmlWindowBase
, SWIG_POINTER_EXCEPTION
| 0);
4627 if (SWIG_arg_fail(1)) SWIG_fail
;
4629 arg2
= static_cast<bool >(SWIG_As_bool(obj1
));
4630 if (SWIG_arg_fail(2)) SWIG_fail
;
4633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4634 result
= (arg1
)->GetText(arg2
);
4636 wxPyEndAllowThreads(__tstate
);
4637 if (PyErr_Occurred()) SWIG_fail
;
4641 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
4643 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
4652 static PyObject
* IEHtmlWindowBase_swigregister(PyObject
*, PyObject
*args
) {
4654 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4655 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase
, obj
);
4657 return Py_BuildValue((char *)"");
4659 static PyMethodDef SwigMethods
[] = {
4660 { (char *)"new_CLSID", (PyCFunction
) _wrap_new_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4661 { (char *)"delete_CLSID", (PyCFunction
) _wrap_delete_CLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4662 { (char *)"CLSID_GetCLSIDString", (PyCFunction
) _wrap_CLSID_GetCLSIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4663 { (char *)"CLSID_GetProgIDString", (PyCFunction
) _wrap_CLSID_GetProgIDString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4664 { (char *)"CLSID_swigregister", CLSID_swigregister
, METH_VARARGS
, NULL
},
4665 { (char *)"ParamX_flags_get", (PyCFunction
) _wrap_ParamX_flags_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4666 { (char *)"ParamX_isPtr_get", (PyCFunction
) _wrap_ParamX_isPtr_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4667 { (char *)"ParamX_isSafeArray_get", (PyCFunction
) _wrap_ParamX_isSafeArray_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4668 { (char *)"ParamX_isOptional_get", (PyCFunction
) _wrap_ParamX_isOptional_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4669 { (char *)"ParamX_vt_get", (PyCFunction
) _wrap_ParamX_vt_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4670 { (char *)"ParamX_name_get", (PyCFunction
) _wrap_ParamX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4671 { (char *)"ParamX_vt_type_get", (PyCFunction
) _wrap_ParamX_vt_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4672 { (char *)"ParamX_IsIn", (PyCFunction
) _wrap_ParamX_IsIn
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4673 { (char *)"ParamX_IsOut", (PyCFunction
) _wrap_ParamX_IsOut
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4674 { (char *)"ParamX_IsRetVal", (PyCFunction
) _wrap_ParamX_IsRetVal
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4675 { (char *)"ParamX_swigregister", ParamX_swigregister
, METH_VARARGS
, NULL
},
4676 { (char *)"FuncX_name_get", (PyCFunction
) _wrap_FuncX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4677 { (char *)"FuncX_memid_get", (PyCFunction
) _wrap_FuncX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4678 { (char *)"FuncX_hasOut_get", (PyCFunction
) _wrap_FuncX_hasOut_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4679 { (char *)"FuncX_retType_get", (PyCFunction
) _wrap_FuncX_retType_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4680 { (char *)"FuncX_params_get", (PyCFunction
) _wrap_FuncX_params_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4681 { (char *)"FuncX_swigregister", FuncX_swigregister
, METH_VARARGS
, NULL
},
4682 { (char *)"PropX_name_get", (PyCFunction
) _wrap_PropX_name_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4683 { (char *)"PropX_memid_get", (PyCFunction
) _wrap_PropX_memid_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4684 { (char *)"PropX_type_get", (PyCFunction
) _wrap_PropX_type_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4685 { (char *)"PropX_arg_get", (PyCFunction
) _wrap_PropX_arg_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4686 { (char *)"PropX_putByRef_get", (PyCFunction
) _wrap_PropX_putByRef_get
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4687 { (char *)"PropX_CanGet", (PyCFunction
) _wrap_PropX_CanGet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4688 { (char *)"PropX_CanSet", (PyCFunction
) _wrap_PropX_CanSet
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4689 { (char *)"PropX_swigregister", PropX_swigregister
, METH_VARARGS
, NULL
},
4690 { (char *)"ParamXArray___nonzero__", (PyCFunction
) _wrap_ParamXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4691 { (char *)"ParamXArray___len__", (PyCFunction
) _wrap_ParamXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4692 { (char *)"ParamXArray___getitem__", (PyCFunction
) _wrap_ParamXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4693 { (char *)"ParamXArray_swigregister", ParamXArray_swigregister
, METH_VARARGS
, NULL
},
4694 { (char *)"FuncXArray___nonzero__", (PyCFunction
) _wrap_FuncXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4695 { (char *)"FuncXArray___len__", (PyCFunction
) _wrap_FuncXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4696 { (char *)"FuncXArray___getitem__", (PyCFunction
) _wrap_FuncXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4697 { (char *)"FuncXArray_swigregister", FuncXArray_swigregister
, METH_VARARGS
, NULL
},
4698 { (char *)"PropXArray___nonzero__", (PyCFunction
) _wrap_PropXArray___nonzero__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4699 { (char *)"PropXArray___len__", (PyCFunction
) _wrap_PropXArray___len__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4700 { (char *)"PropXArray___getitem__", (PyCFunction
) _wrap_PropXArray___getitem__
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4701 { (char *)"PropXArray_swigregister", PropXArray_swigregister
, METH_VARARGS
, NULL
},
4702 { (char *)"new_ActiveXWindow", (PyCFunction
) _wrap_new_ActiveXWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4703 { (char *)"ActiveXWindow_GetCLSID", (PyCFunction
) _wrap_ActiveXWindow_GetCLSID
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4704 { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4705 { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction
) _wrap_ActiveXWindow_GetAXEventDesc
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4706 { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXPropCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4707 { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc
, METH_VARARGS
, NULL
},
4708 { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethodCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4709 { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc
, METH_VARARGS
, NULL
},
4710 { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction
) _wrap_ActiveXWindow_GetAXEvents
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4711 { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction
) _wrap_ActiveXWindow_GetAXMethods
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4712 { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction
) _wrap_ActiveXWindow_GetAXProperties
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4713 { (char *)"ActiveXWindow_SetAXProp", (PyCFunction
) _wrap_ActiveXWindow_SetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4714 { (char *)"ActiveXWindow_GetAXProp", (PyCFunction
) _wrap_ActiveXWindow_GetAXProp
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4715 { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod
, METH_VARARGS
, NULL
},
4716 { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister
, METH_VARARGS
, NULL
},
4717 { (char *)"RegisterActiveXEvent", (PyCFunction
) _wrap_RegisterActiveXEvent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4718 { (char *)"ActiveXEvent_EventName", (PyCFunction
) _wrap_ActiveXEvent_EventName
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4719 { (char *)"ActiveXEvent__preCallInit", (PyCFunction
) _wrap_ActiveXEvent__preCallInit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4720 { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction
) _wrap_ActiveXEvent__postCallCleanup
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4721 { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister
, METH_VARARGS
, NULL
},
4722 { (char *)"new_IEHtmlWindowBase", (PyCFunction
) _wrap_new_IEHtmlWindowBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4723 { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction
) _wrap_IEHtmlWindowBase_SetCharset
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4724 { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadString
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4725 { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction
) _wrap_IEHtmlWindowBase_LoadStream
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4726 { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction
) _wrap_IEHtmlWindowBase_GetStringSelection
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4727 { (char *)"IEHtmlWindowBase_GetText", (PyCFunction
) _wrap_IEHtmlWindowBase_GetText
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4728 { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister
, METH_VARARGS
, NULL
},
4729 { NULL
, NULL
, 0, NULL
}
4733 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4735 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4736 return (void *)((wxWindow
*) ((wxControl
*) x
));
4738 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4739 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4741 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x
) {
4742 return (void *)((wxWindow
*) ((wxActiveXWindow
*) x
));
4744 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4745 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4747 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x
) {
4748 return (void *)((wxWindow
*) (wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4750 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x
) {
4751 return (void *)((wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
4753 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
4754 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4756 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
4757 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
4759 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
4760 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
4762 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
4763 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
4765 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
4766 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
4768 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
4769 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
4771 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
4772 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
4774 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
4775 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
4777 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
4778 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
4780 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
4781 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4783 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
4784 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
4786 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
4787 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4789 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
4790 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4792 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
4793 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
4795 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
4796 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
4798 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
4799 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
4801 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
4802 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
4804 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
4805 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
4807 static void *_p_wxDateEventTo_p_wxEvent(void *x
) {
4808 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxDateEvent
*) x
));
4810 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
4811 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
4813 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
4814 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
4816 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
4817 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4819 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
4820 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4822 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
4823 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4825 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
4826 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4828 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
4829 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4831 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
4832 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
4834 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
4835 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
4837 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
4838 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4840 static void *_p_wxActiveXEventTo_p_wxEvent(void *x
) {
4841 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxActiveXEvent
*) x
));
4843 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
4844 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
4846 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
4847 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
4849 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
4850 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4852 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
4853 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4855 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
4856 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4858 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
4859 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
4861 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
4862 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
4864 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4865 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4867 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4868 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4870 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4871 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4873 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4874 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4876 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4877 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4879 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4880 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4882 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4883 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4885 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4886 return (void *)((wxObject
*) ((wxSizer
*) x
));
4888 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4889 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4891 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4892 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4894 static void *_p_wxEventTo_p_wxObject(void *x
) {
4895 return (void *)((wxObject
*) ((wxEvent
*) x
));
4897 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4898 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4900 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4901 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4903 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4904 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4906 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4907 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4909 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4910 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4912 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4913 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4915 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4916 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4918 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4919 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4921 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4922 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4924 static void *_p_wxControlTo_p_wxObject(void *x
) {
4925 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4927 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4928 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4930 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4931 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4933 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4934 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4936 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4937 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4939 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4940 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4942 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4943 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4945 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4946 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4948 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4949 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4951 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4952 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4954 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4955 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4957 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4958 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4960 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4961 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4963 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4964 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4966 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4967 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4969 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4970 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4972 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4973 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4975 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4976 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4978 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4979 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4981 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4982 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4984 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4985 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4987 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4988 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4990 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4991 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4993 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4994 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4996 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4997 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4999 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
5000 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
5002 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
5003 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
5005 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
5006 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
5008 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
5009 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
5011 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
5012 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
5014 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
5015 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
5017 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
5018 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
5020 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
5021 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
5023 static void *_p_wxImageTo_p_wxObject(void *x
) {
5024 return (void *)((wxObject
*) ((wxImage
*) x
));
5026 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
5027 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
5029 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
5030 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5032 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
5033 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
5035 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
5036 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
5038 static void *_p_wxWindowTo_p_wxObject(void *x
) {
5039 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
5041 static void *_p_wxMenuTo_p_wxObject(void *x
) {
5042 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
5044 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
5045 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
5047 static void *_p_wxActiveXWindowTo_p_wxObject(void *x
) {
5048 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxActiveXWindow
*) x
));
5050 static void *_p_wxActiveXEventTo_p_wxObject(void *x
) {
5051 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxActiveXEvent
*) x
));
5053 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
5054 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
5056 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
5057 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5059 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
5060 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
5062 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x
) {
5063 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
5065 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
5066 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
5068 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
5069 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
5071 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
5072 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
5074 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
5075 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
5077 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
5078 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5080 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
5081 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
5083 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
5084 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
5086 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
5087 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
5089 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
5090 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5092 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
5093 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5095 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
5096 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
5098 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
5099 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
5101 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
5102 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
5104 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
5105 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
5107 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
5108 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
5110 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x
) {
5111 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxActiveXWindow
*) x
));
5113 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
5114 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
5116 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
5117 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
5119 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
5120 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
5122 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
5123 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
5125 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
5126 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
5128 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x
) {
5129 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
5131 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
5132 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
5134 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
5135 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
5137 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
5138 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
5140 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) {
5141 return (void *)((wxCommandEvent
*) ((wxDateEvent
*) x
));
5143 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
5144 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
5146 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x
) {
5147 return (void *)((wxCommandEvent
*) ((wxActiveXEvent
*) x
));
5149 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
5150 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
5152 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
5153 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
5155 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
5156 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
5158 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
5159 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
5161 static swig_type_info _swigt__p_CLSID
= {"_p_CLSID", "CLSID *", 0, 0, 0};
5162 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, 0};
5163 static swig_type_info _swigt__p_form_ops_t
= {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
5164 static swig_type_info _swigt__p_int
= {"_p_int", "int *|wxEventType *", 0, 0, 0};
5165 static swig_type_info _swigt__p_long
= {"_p_long", "long *|MEMBERID *", 0, 0, 0};
5166 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
5167 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
5168 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
5169 static swig_type_info _swigt__p_unsigned_short
= {"_p_unsigned_short", "unsigned short *|VARTYPE *", 0, 0, 0};
5170 static swig_type_info _swigt__p_wxActiveXEvent
= {"_p_wxActiveXEvent", "wxActiveXEvent *", 0, 0, 0};
5171 static swig_type_info _swigt__p_wxActiveXWindow
= {"_p_wxActiveXWindow", "wxActiveXWindow *", 0, 0, 0};
5172 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0};
5173 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0};
5174 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0};
5175 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
5176 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0};
5177 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
5178 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
5179 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0};
5180 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0};
5181 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0};
5182 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
5183 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", "wxEvent *", 0, 0, 0};
5184 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0};
5185 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0};
5186 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0};
5187 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0};
5188 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0};
5189 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0};
5190 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0};
5191 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
5192 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0};
5193 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0};
5194 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0};
5195 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0};
5196 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0};
5197 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0};
5198 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0};
5199 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0};
5200 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
5201 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
5202 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
5203 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
5204 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0};
5205 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0};
5206 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0};
5207 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
5208 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0};
5209 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0};
5210 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
5211 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0};
5212 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0};
5213 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0};
5214 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0};
5215 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0};
5216 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0};
5217 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0};
5218 static swig_type_info _swigt__p_wxFuncX
= {"_p_wxFuncX", "wxFuncX *", 0, 0, 0};
5219 static swig_type_info _swigt__p_wxFuncXArray
= {"_p_wxFuncXArray", "wxFuncXArray *", 0, 0, 0};
5220 static swig_type_info _swigt__p_wxIEHtmlWindowBase
= {"_p_wxIEHtmlWindowBase", "wxIEHtmlWindowBase *", 0, 0, 0};
5221 static swig_type_info _swigt__p_wxInputStream
= {"_p_wxInputStream", "wxInputStream *", 0, 0, 0};
5222 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, 0};
5223 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0};
5224 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0};
5225 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0};
5226 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
5227 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
5228 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0};
5229 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0};
5230 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0};
5231 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0};
5232 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0};
5233 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0};
5234 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0};
5235 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0};
5236 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0};
5237 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0};
5238 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0};
5239 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0};
5240 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0};
5241 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0};
5242 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0};
5243 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0};
5244 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0};
5245 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0};
5246 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0};
5247 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0};
5248 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0};
5249 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
5250 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0};
5251 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", 0, 0, 0, 0};
5252 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", 0, 0, 0, 0};
5253 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
5254 static swig_type_info _swigt__p_wxParamX
= {"_p_wxParamX", "wxParamX *", 0, 0, 0};
5255 static swig_type_info _swigt__p_wxParamXArray
= {"_p_wxParamXArray", "wxParamXArray *", 0, 0, 0};
5256 static swig_type_info _swigt__p_wxPropX
= {"_p_wxPropX", "wxPropX *", 0, 0, 0};
5257 static swig_type_info _swigt__p_wxPropXArray
= {"_p_wxPropXArray", "wxPropXArray *", 0, 0, 0};
5258 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, 0};
5259 static swig_type_info _swigt__ptrdiff_t
= {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
5260 static swig_type_info _swigt__std__ptrdiff_t
= {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
5261 static swig_type_info _swigt__unsigned_int
= {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
5263 static swig_type_info
*swig_type_initial
[] = {
5266 &_swigt__p_form_ops_t
,
5269 &_swigt__p_unsigned_char
,
5270 &_swigt__p_unsigned_int
,
5271 &_swigt__p_unsigned_long
,
5272 &_swigt__p_unsigned_short
,
5273 &_swigt__p_wxANIHandler
,
5274 &_swigt__p_wxAcceleratorTable
,
5275 &_swigt__p_wxActivateEvent
,
5276 &_swigt__p_wxActiveXEvent
,
5277 &_swigt__p_wxActiveXWindow
,
5278 &_swigt__p_wxBMPHandler
,
5279 &_swigt__p_wxBoxSizer
,
5280 &_swigt__p_wxCURHandler
,
5281 &_swigt__p_wxChildFocusEvent
,
5282 &_swigt__p_wxCloseEvent
,
5283 &_swigt__p_wxCommandEvent
,
5284 &_swigt__p_wxContextMenuEvent
,
5285 &_swigt__p_wxControl
,
5286 &_swigt__p_wxControlWithItems
,
5287 &_swigt__p_wxDateEvent
,
5288 &_swigt__p_wxDisplayChangedEvent
,
5289 &_swigt__p_wxDropFilesEvent
,
5290 &_swigt__p_wxDuplexMode
,
5291 &_swigt__p_wxEraseEvent
,
5293 &_swigt__p_wxEvtHandler
,
5294 &_swigt__p_wxFSFile
,
5295 &_swigt__p_wxFileSystem
,
5296 &_swigt__p_wxFlexGridSizer
,
5297 &_swigt__p_wxFocusEvent
,
5299 &_swigt__p_wxFuncXArray
,
5300 &_swigt__p_wxGBSizerItem
,
5301 &_swigt__p_wxGIFHandler
,
5302 &_swigt__p_wxGridBagSizer
,
5303 &_swigt__p_wxGridSizer
,
5304 &_swigt__p_wxICOHandler
,
5305 &_swigt__p_wxIEHtmlWindowBase
,
5306 &_swigt__p_wxIconizeEvent
,
5307 &_swigt__p_wxIdleEvent
,
5309 &_swigt__p_wxImageHandler
,
5310 &_swigt__p_wxIndividualLayoutConstraint
,
5311 &_swigt__p_wxInitDialogEvent
,
5312 &_swigt__p_wxInputStream
,
5313 &_swigt__p_wxJPEGHandler
,
5314 &_swigt__p_wxKeyEvent
,
5315 &_swigt__p_wxLayoutConstraints
,
5316 &_swigt__p_wxMaximizeEvent
,
5318 &_swigt__p_wxMenuBar
,
5319 &_swigt__p_wxMenuEvent
,
5320 &_swigt__p_wxMenuItem
,
5321 &_swigt__p_wxMouseCaptureChangedEvent
,
5322 &_swigt__p_wxMouseEvent
,
5323 &_swigt__p_wxMoveEvent
,
5324 &_swigt__p_wxNavigationKeyEvent
,
5325 &_swigt__p_wxNcPaintEvent
,
5326 &_swigt__p_wxNotifyEvent
,
5327 &_swigt__p_wxObject
,
5328 &_swigt__p_wxPCXHandler
,
5329 &_swigt__p_wxPNGHandler
,
5330 &_swigt__p_wxPNMHandler
,
5331 &_swigt__p_wxPaintEvent
,
5332 &_swigt__p_wxPaletteChangedEvent
,
5333 &_swigt__p_wxPaperSize
,
5334 &_swigt__p_wxParamX
,
5335 &_swigt__p_wxParamXArray
,
5337 &_swigt__p_wxPropXArray
,
5339 &_swigt__p_wxPyCommandEvent
,
5340 &_swigt__p_wxPyEvent
,
5341 &_swigt__p_wxPyImageHandler
,
5342 &_swigt__p_wxPySizer
,
5343 &_swigt__p_wxPyValidator
,
5344 &_swigt__p_wxQueryNewPaletteEvent
,
5345 &_swigt__p_wxScrollEvent
,
5346 &_swigt__p_wxScrollWinEvent
,
5347 &_swigt__p_wxSetCursorEvent
,
5348 &_swigt__p_wxShowEvent
,
5349 &_swigt__p_wxSizeEvent
,
5351 &_swigt__p_wxSizerItem
,
5352 &_swigt__p_wxStaticBoxSizer
,
5353 &_swigt__p_wxStdDialogButtonSizer
,
5354 &_swigt__p_wxSysColourChangedEvent
,
5355 &_swigt__p_wxTIFFHandler
,
5356 &_swigt__p_wxUpdateUIEvent
,
5357 &_swigt__p_wxValidator
,
5358 &_swigt__p_wxWindow
,
5359 &_swigt__p_wxWindowCreateEvent
,
5360 &_swigt__p_wxWindowDestroyEvent
,
5361 &_swigt__p_wxXPMHandler
,
5363 &_swigt__std__ptrdiff_t
,
5364 &_swigt__unsigned_int
,
5367 static swig_cast_info _swigc__p_CLSID
[] = { {&_swigt__p_CLSID
, 0, 0, 0},{0, 0, 0, 0}};
5368 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
5369 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
5370 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
5371 static swig_cast_info _swigc__p_long
[] = { {&_swigt__p_long
, 0, 0, 0},{0, 0, 0, 0}};
5372 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
5373 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
5374 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
5375 static swig_cast_info _swigc__p_unsigned_short
[] = { {&_swigt__p_unsigned_short
, 0, 0, 0},{0, 0, 0, 0}};
5376 static swig_cast_info _swigc__p_wxActiveXEvent
[] = { {&_swigt__p_wxActiveXEvent
, 0, 0, 0},{0, 0, 0, 0}};
5377 static swig_cast_info _swigc__p_wxActiveXWindow
[] = { {&_swigt__p_wxActiveXWindow
, 0, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase
, _p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow
, 0, 0},{0, 0, 0, 0}};
5378 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
5379 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
5380 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
5381 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
5382 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
5383 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
5384 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
5385 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
5386 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
5387 static swig_cast_info _swigc__p_wxCommandEvent
[] = { {&_swigt__p_wxChildFocusEvent
, _p_wxChildFocusEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxScrollEvent
, _p_wxScrollEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxWindowCreateEvent
, _p_wxWindowCreateEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxDateEvent
, _p_wxDateEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxUpdateUIEvent
, _p_wxUpdateUIEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxActiveXEvent
, _p_wxActiveXEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxWindowDestroyEvent
, _p_wxWindowDestroyEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxContextMenuEvent
, _p_wxContextMenuEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxCommandEvent
, 0, 0, 0}, {&_swigt__p_wxNotifyEvent
, _p_wxNotifyEventTo_p_wxCommandEvent
, 0, 0}, {&_swigt__p_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxCommandEvent
, 0, 0},{0, 0, 0, 0}};
5388 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
5389 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
5390 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
5391 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
5392 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
5393 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
5394 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
5395 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
5396 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
5397 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
5398 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
5399 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
5400 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
5401 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
5402 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
5403 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
5404 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
5405 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
5406 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
5407 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
5408 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
5409 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
5410 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
5411 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
5412 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
5413 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
5414 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
5415 static swig_cast_info _swigc__p_wxEvent
[] = { {&_swigt__p_wxContextMenuEvent
, _p_wxContextMenuEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxMenuEvent
, _p_wxMenuEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxCloseEvent
, _p_wxCloseEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxMouseEvent
, _p_wxMouseEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxEraseEvent
, _p_wxEraseEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxSetCursorEvent
, _p_wxSetCursorEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxInitDialogEvent
, _p_wxInitDialogEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxScrollEvent
, _p_wxScrollEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxPyEvent
, _p_wxPyEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxNotifyEvent
, _p_wxNotifyEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxEvent
, 0, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent
, _p_wxQueryNewPaletteEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxWindowCreateEvent
, _p_wxWindowCreateEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxIdleEvent
, _p_wxIdleEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxMaximizeEvent
, _p_wxMaximizeEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxIconizeEvent
, _p_wxIconizeEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxActivateEvent
, _p_wxActivateEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxDateEvent
, _p_wxDateEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxMoveEvent
, _p_wxMoveEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxSizeEvent
, _p_wxSizeEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxPaintEvent
, _p_wxPaintEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxNcPaintEvent
, _p_wxNcPaintEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxUpdateUIEvent
, _p_wxUpdateUIEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxPaletteChangedEvent
, _p_wxPaletteChangedEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxDisplayChangedEvent
, _p_wxDisplayChangedEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent
, _p_wxMouseCaptureChangedEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxSysColourChangedEvent
, _p_wxSysColourChangedEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxActiveXEvent
, _p_wxActiveXEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxDropFilesEvent
, _p_wxDropFilesEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxFocusEvent
, _p_wxFocusEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxChildFocusEvent
, _p_wxChildFocusEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxShowEvent
, _p_wxShowEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxCommandEvent
, _p_wxCommandEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxWindowDestroyEvent
, _p_wxWindowDestroyEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxNavigationKeyEvent
, _p_wxNavigationKeyEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxKeyEvent
, _p_wxKeyEventTo_p_wxEvent
, 0, 0}, {&_swigt__p_wxScrollWinEvent
, _p_wxScrollWinEventTo_p_wxEvent
, 0, 0},{0, 0, 0, 0}};
5416 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
5417 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
5418 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
5419 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
5420 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
5421 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
5422 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
5423 static swig_cast_info _swigc__p_wxEvtHandler
[] = { {&_swigt__p_wxControl
, _p_wxControlTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxWindow
, _p_wxWindowTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxActiveXWindow
, _p_wxActiveXWindowTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxEvtHandler
, 0, 0, 0}, {&_swigt__p_wxPyApp
, _p_wxPyAppTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxValidator
, _p_wxValidatorTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxPyValidator
, _p_wxPyValidatorTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxMenu
, _p_wxMenuTo_p_wxEvtHandler
, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase
, _p_wxIEHtmlWindowBaseTo_p_wxEvtHandler
, 0, 0},{0, 0, 0, 0}};
5424 static swig_cast_info _swigc__p_wxFuncX
[] = { {&_swigt__p_wxFuncX
, 0, 0, 0},{0, 0, 0, 0}};
5425 static swig_cast_info _swigc__p_wxFuncXArray
[] = { {&_swigt__p_wxFuncXArray
, 0, 0, 0},{0, 0, 0, 0}};
5426 static swig_cast_info _swigc__p_wxIEHtmlWindowBase
[] = { {&_swigt__p_wxIEHtmlWindowBase
, 0, 0, 0},{0, 0, 0, 0}};
5427 static swig_cast_info _swigc__p_wxInputStream
[] = { {&_swigt__p_wxInputStream
, 0, 0, 0},{0, 0, 0, 0}};
5428 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
5429 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
5430 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
5431 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
5432 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
5433 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
5434 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
5435 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
5436 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
5437 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
5438 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
5439 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
5440 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
5441 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
5442 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
5443 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
5444 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
5445 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
5446 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
5447 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
5448 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
5449 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
5450 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
5451 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
5452 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
5453 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
5454 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
5455 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
5456 static swig_cast_info _swigc__p_wxImage
[] = {{&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
5457 static swig_cast_info _swigc__p_wxFileSystem
[] = {{&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
5458 static swig_cast_info _swigc__p_wxObject
[] = { {&_swigt__p_wxLayoutConstraints
, _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGBSizerItem
, _p_wxGBSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizerItem
, _p_wxSizerItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollEvent
, _p_wxScrollEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint
, _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0}, {&_swigt__p_wxStaticBoxSizer
, _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBoxSizer
, _p_wxBoxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizer
, _p_wxSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGridBagSizer
, _p_wxGridBagSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxUpdateUIEvent
, _p_wxUpdateUIEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenu
, _p_wxMenuTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvent
, _p_wxEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFlexGridSizer
, _p_wxFlexGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGridSizer
, _p_wxGridSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxInitDialogEvent
, _p_wxInitDialogEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNcPaintEvent
, _p_wxNcPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaintEvent
, _p_wxPaintEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPaletteChangedEvent
, _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDisplayChangedEvent
, _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent
, _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSysColourChangedEvent
, _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControl
, _p_wxControlTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSetCursorEvent
, _p_wxSetCursorEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFSFile
, _p_wxFSFileTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPySizer
, _p_wxPySizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyEvent
, _p_wxPyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNotifyEvent
, _p_wxNotifyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxShowEvent
, _p_wxShowEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuItem
, _p_wxMenuItemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDateEvent
, _p_wxDateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMoveEvent
, _p_wxMoveEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxSizeEvent
, _p_wxSizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxActivateEvent
, _p_wxActivateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIconizeEvent
, _p_wxIconizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMaximizeEvent
, _p_wxMaximizeEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIdleEvent
, _p_wxIdleEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowCreateEvent
, _p_wxWindowCreateEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent
, _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPCXHandler
, _p_wxPCXHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxGIFHandler
, _p_wxGIFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNGHandler
, _p_wxPNGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxANIHandler
, _p_wxANIHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCURHandler
, _p_wxCURHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxICOHandler
, _p_wxICOHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxBMPHandler
, _p_wxBMPHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyImageHandler
, _p_wxPyImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImageHandler
, _p_wxImageHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxXPMHandler
, _p_wxXPMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxTIFFHandler
, _p_wxTIFFHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEvtHandler
, _p_wxEvtHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxJPEGHandler
, _p_wxJPEGHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPNMHandler
, _p_wxPNMHandlerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer
, _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0}, {&_swigt__p_wxAcceleratorTable
, _p_wxAcceleratorTableTo_p_wxObject
, 0, 0}, {&_swigt__p_wxImage
, _p_wxImageTo_p_wxObject
, 0, 0}, {&_swigt__p_wxScrollWinEvent
, _p_wxScrollWinEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxObject
, 0, 0, 0}, {&_swigt__p_wxKeyEvent
, _p_wxKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxNavigationKeyEvent
, _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindowDestroyEvent
, _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxActiveXEvent
, _p_wxActiveXEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxActiveXWindow
, _p_wxActiveXWindowTo_p_wxObject
, 0, 0}, {&_swigt__p_wxWindow
, _p_wxWindowTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFileSystem
, _p_wxFileSystemTo_p_wxObject
, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase
, _p_wxIEHtmlWindowBaseTo_p_wxObject
, 0, 0}, {&_swigt__p_wxContextMenuEvent
, _p_wxContextMenuEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMenuEvent
, _p_wxMenuEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyApp
, _p_wxPyAppTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCloseEvent
, _p_wxCloseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxMouseEvent
, _p_wxMouseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxEraseEvent
, _p_wxEraseEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxCommandEvent
, _p_wxCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyCommandEvent
, _p_wxPyCommandEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxDropFilesEvent
, _p_wxDropFilesEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxFocusEvent
, _p_wxFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxChildFocusEvent
, _p_wxChildFocusEventTo_p_wxObject
, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxObject
, 0, 0}, {&_swigt__p_wxPyValidator
, _p_wxPyValidatorTo_p_wxObject
, 0, 0}, {&_swigt__p_wxValidator
, _p_wxValidatorTo_p_wxObject
, 0, 0},{0, 0, 0, 0}};
5459 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
5460 static swig_cast_info _swigc__p_wxParamX
[] = { {&_swigt__p_wxParamX
, 0, 0, 0},{0, 0, 0, 0}};
5461 static swig_cast_info _swigc__p_wxParamXArray
[] = { {&_swigt__p_wxParamXArray
, 0, 0, 0},{0, 0, 0, 0}};
5462 static swig_cast_info _swigc__p_wxPropX
[] = { {&_swigt__p_wxPropX
, 0, 0, 0},{0, 0, 0, 0}};
5463 static swig_cast_info _swigc__p_wxPropXArray
[] = { {&_swigt__p_wxPropXArray
, 0, 0, 0},{0, 0, 0, 0}};
5464 static swig_cast_info _swigc__p_wxWindow
[] = { {&_swigt__p_wxControl
, _p_wxControlTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxWindow
, 0, 0, 0}, {&_swigt__p_wxControlWithItems
, _p_wxControlWithItemsTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxActiveXWindow
, _p_wxActiveXWindowTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxMenuBar
, _p_wxMenuBarTo_p_wxWindow
, 0, 0}, {&_swigt__p_wxIEHtmlWindowBase
, _p_wxIEHtmlWindowBaseTo_p_wxWindow
, 0, 0},{0, 0, 0, 0}};
5465 static swig_cast_info _swigc__ptrdiff_t
[] = { {&_swigt__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
5466 static swig_cast_info _swigc__std__ptrdiff_t
[] = { {&_swigt__std__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
5467 static swig_cast_info _swigc__unsigned_int
[] = { {&_swigt__unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
5469 static swig_cast_info
*swig_cast_initial
[] = {
5472 _swigc__p_form_ops_t
,
5475 _swigc__p_unsigned_char
,
5476 _swigc__p_unsigned_int
,
5477 _swigc__p_unsigned_long
,
5478 _swigc__p_unsigned_short
,
5479 _swigc__p_wxANIHandler
,
5480 _swigc__p_wxAcceleratorTable
,
5481 _swigc__p_wxActivateEvent
,
5482 _swigc__p_wxActiveXEvent
,
5483 _swigc__p_wxActiveXWindow
,
5484 _swigc__p_wxBMPHandler
,
5485 _swigc__p_wxBoxSizer
,
5486 _swigc__p_wxCURHandler
,
5487 _swigc__p_wxChildFocusEvent
,
5488 _swigc__p_wxCloseEvent
,
5489 _swigc__p_wxCommandEvent
,
5490 _swigc__p_wxContextMenuEvent
,
5491 _swigc__p_wxControl
,
5492 _swigc__p_wxControlWithItems
,
5493 _swigc__p_wxDateEvent
,
5494 _swigc__p_wxDisplayChangedEvent
,
5495 _swigc__p_wxDropFilesEvent
,
5496 _swigc__p_wxDuplexMode
,
5497 _swigc__p_wxEraseEvent
,
5499 _swigc__p_wxEvtHandler
,
5501 _swigc__p_wxFileSystem
,
5502 _swigc__p_wxFlexGridSizer
,
5503 _swigc__p_wxFocusEvent
,
5505 _swigc__p_wxFuncXArray
,
5506 _swigc__p_wxGBSizerItem
,
5507 _swigc__p_wxGIFHandler
,
5508 _swigc__p_wxGridBagSizer
,
5509 _swigc__p_wxGridSizer
,
5510 _swigc__p_wxICOHandler
,
5511 _swigc__p_wxIEHtmlWindowBase
,
5512 _swigc__p_wxIconizeEvent
,
5513 _swigc__p_wxIdleEvent
,
5515 _swigc__p_wxImageHandler
,
5516 _swigc__p_wxIndividualLayoutConstraint
,
5517 _swigc__p_wxInitDialogEvent
,
5518 _swigc__p_wxInputStream
,
5519 _swigc__p_wxJPEGHandler
,
5520 _swigc__p_wxKeyEvent
,
5521 _swigc__p_wxLayoutConstraints
,
5522 _swigc__p_wxMaximizeEvent
,
5524 _swigc__p_wxMenuBar
,
5525 _swigc__p_wxMenuEvent
,
5526 _swigc__p_wxMenuItem
,
5527 _swigc__p_wxMouseCaptureChangedEvent
,
5528 _swigc__p_wxMouseEvent
,
5529 _swigc__p_wxMoveEvent
,
5530 _swigc__p_wxNavigationKeyEvent
,
5531 _swigc__p_wxNcPaintEvent
,
5532 _swigc__p_wxNotifyEvent
,
5534 _swigc__p_wxPCXHandler
,
5535 _swigc__p_wxPNGHandler
,
5536 _swigc__p_wxPNMHandler
,
5537 _swigc__p_wxPaintEvent
,
5538 _swigc__p_wxPaletteChangedEvent
,
5539 _swigc__p_wxPaperSize
,
5541 _swigc__p_wxParamXArray
,
5543 _swigc__p_wxPropXArray
,
5545 _swigc__p_wxPyCommandEvent
,
5546 _swigc__p_wxPyEvent
,
5547 _swigc__p_wxPyImageHandler
,
5548 _swigc__p_wxPySizer
,
5549 _swigc__p_wxPyValidator
,
5550 _swigc__p_wxQueryNewPaletteEvent
,
5551 _swigc__p_wxScrollEvent
,
5552 _swigc__p_wxScrollWinEvent
,
5553 _swigc__p_wxSetCursorEvent
,
5554 _swigc__p_wxShowEvent
,
5555 _swigc__p_wxSizeEvent
,
5557 _swigc__p_wxSizerItem
,
5558 _swigc__p_wxStaticBoxSizer
,
5559 _swigc__p_wxStdDialogButtonSizer
,
5560 _swigc__p_wxSysColourChangedEvent
,
5561 _swigc__p_wxTIFFHandler
,
5562 _swigc__p_wxUpdateUIEvent
,
5563 _swigc__p_wxValidator
,
5565 _swigc__p_wxWindowCreateEvent
,
5566 _swigc__p_wxWindowDestroyEvent
,
5567 _swigc__p_wxXPMHandler
,
5569 _swigc__std__ptrdiff_t
,
5570 _swigc__unsigned_int
,
5574 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5576 static swig_const_info swig_const_table
[] = {
5577 {0, 0, 0, 0.0, 0, 0}};
5582 /*************************************************************************
5583 * Type initialization:
5584 * This problem is tough by the requirement that no dynamic
5585 * memory is used. Also, since swig_type_info structures store pointers to
5586 * swig_cast_info structures and swig_cast_info structures store pointers back
5587 * to swig_type_info structures, we need some lookup code at initialization.
5588 * The idea is that swig generates all the structures that are needed.
5589 * The runtime then collects these partially filled structures.
5590 * The SWIG_InitializeModule function takes these initial arrays out of
5591 * swig_module, and does all the lookup, filling in the swig_module.types
5592 * array with the correct data and linking the correct swig_cast_info
5593 * structures together.
5595 * The generated swig_type_info structures are assigned staticly to an initial
5596 * array. We just loop though that array, and handle each type individually.
5597 * First we lookup if this type has been already loaded, and if so, use the
5598 * loaded structure instead of the generated one. Then we have to fill in the
5599 * cast linked list. The cast data is initially stored in something like a
5600 * two-dimensional array. Each row corresponds to a type (there are the same
5601 * number of rows as there are in the swig_type_initial array). Each entry in
5602 * a column is one of the swig_cast_info structures for that type.
5603 * The cast_initial array is actually an array of arrays, because each row has
5604 * a variable number of columns. So to actually build the cast linked list,
5605 * we find the array of casts associated with the type, and loop through it
5606 * adding the casts to the list. The one last trick we need to do is making
5607 * sure the type pointer in the swig_cast_info struct is correct.
5609 * First off, we lookup the cast->type name to see if it is already loaded.
5610 * There are three cases to handle:
5611 * 1) If the cast->type has already been loaded AND the type we are adding
5612 * casting info to has not been loaded (it is in this module), THEN we
5613 * replace the cast->type pointer with the type pointer that has already
5615 * 2) If BOTH types (the one we are adding casting info to, and the
5616 * cast->type) are loaded, THEN the cast info has already been loaded by
5617 * the previous module so we just ignore it.
5618 * 3) Finally, if cast->type has not already been loaded, then we add that
5619 * swig_cast_info to the linked list (because the cast->type) pointer will
5631 #define SWIGRUNTIME_DEBUG
5635 SWIG_InitializeModule(void *clientdata
) {
5637 swig_module_info
*module_head
;
5638 static int init_run
= 0;
5640 clientdata
= clientdata
;
5642 if (init_run
) return;
5645 /* Initialize the swig_module */
5646 swig_module
.type_initial
= swig_type_initial
;
5647 swig_module
.cast_initial
= swig_cast_initial
;
5649 /* Try and load any already created modules */
5650 module_head
= SWIG_GetModule(clientdata
);
5652 swig_module
.next
= module_head
->next
;
5653 module_head
->next
= &swig_module
;
5655 /* This is the first module loaded */
5656 swig_module
.next
= &swig_module
;
5657 SWIG_SetModule(clientdata
, &swig_module
);
5660 /* Now work on filling in swig_module.types */
5661 #ifdef SWIGRUNTIME_DEBUG
5662 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
5664 for (i
= 0; i
< swig_module
.size
; ++i
) {
5665 swig_type_info
*type
= 0;
5666 swig_type_info
*ret
;
5667 swig_cast_info
*cast
;
5669 #ifdef SWIGRUNTIME_DEBUG
5670 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
5673 /* if there is another module already loaded */
5674 if (swig_module
.next
!= &swig_module
) {
5675 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
5678 /* Overwrite clientdata field */
5679 #ifdef SWIGRUNTIME_DEBUG
5680 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
5682 if (swig_module
.type_initial
[i
]->clientdata
) {
5683 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
5684 #ifdef SWIGRUNTIME_DEBUG
5685 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
5689 type
= swig_module
.type_initial
[i
];
5692 /* Insert casting types */
5693 cast
= swig_module
.cast_initial
[i
];
5694 while (cast
->type
) {
5695 /* Don't need to add information already in the list */
5697 #ifdef SWIGRUNTIME_DEBUG
5698 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
5700 if (swig_module
.next
!= &swig_module
) {
5701 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
5702 #ifdef SWIGRUNTIME_DEBUG
5703 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
5707 if (type
== swig_module
.type_initial
[i
]) {
5708 #ifdef SWIGRUNTIME_DEBUG
5709 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
5714 /* Check for casting already in the list */
5715 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
5716 #ifdef SWIGRUNTIME_DEBUG
5717 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
5719 if (!ocast
) ret
= 0;
5724 #ifdef SWIGRUNTIME_DEBUG
5725 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
5728 type
->cast
->prev
= cast
;
5729 cast
->next
= type
->cast
;
5735 /* Set entry in modules->types array equal to the type */
5736 swig_module
.types
[i
] = type
;
5738 swig_module
.types
[i
] = 0;
5740 #ifdef SWIGRUNTIME_DEBUG
5741 printf("**** SWIG_InitializeModule: Cast List ******\n");
5742 for (i
= 0; i
< swig_module
.size
; ++i
) {
5744 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
5745 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
5746 while (cast
->type
) {
5747 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
5751 printf("---- Total casts: %d\n",j
);
5753 printf("**** SWIG_InitializeModule: Cast List ******\n");
5757 /* This function will propagate the clientdata field of type to
5758 * any new swig_type_info structures that have been added into the list
5759 * of equivalent types. It is like calling
5760 * SWIG_TypeClientData(type, clientdata) a second time.
5763 SWIG_PropagateClientData(void) {
5765 swig_cast_info
*equiv
;
5766 static int init_run
= 0;
5768 if (init_run
) return;
5771 for (i
= 0; i
< swig_module
.size
; i
++) {
5772 if (swig_module
.types
[i
]->clientdata
) {
5773 equiv
= swig_module
.types
[i
]->cast
;
5775 if (!equiv
->converter
) {
5776 if (equiv
->type
&& !equiv
->type
->clientdata
)
5777 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
5779 equiv
= equiv
->next
;
5799 /* Python-specific SWIG API */
5800 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5801 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5802 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5804 /* -----------------------------------------------------------------------------
5805 * global variable support code.
5806 * ----------------------------------------------------------------------------- */
5808 typedef struct swig_globalvar
{
5809 char *name
; /* Name of global variable */
5810 PyObject
*(*get_attr
)(void); /* Return the current value */
5811 int (*set_attr
)(PyObject
*); /* Set the value */
5812 struct swig_globalvar
*next
;
5815 typedef struct swig_varlinkobject
{
5817 swig_globalvar
*vars
;
5818 } swig_varlinkobject
;
5820 SWIGINTERN PyObject
*
5821 swig_varlink_repr(swig_varlinkobject
*v
) {
5823 return PyString_FromString("<Swig global variables>");
5827 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
5828 swig_globalvar
*var
;
5830 fprintf(fp
,"Swig global variables { ");
5831 for (var
= v
->vars
; var
; var
=var
->next
) {
5832 fprintf(fp
,"%s", var
->name
);
5833 if (var
->next
) fprintf(fp
,", ");
5839 SWIGINTERN PyObject
*
5840 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
5841 swig_globalvar
*var
= v
->vars
;
5843 if (strcmp(var
->name
,n
) == 0) {
5844 return (*var
->get_attr
)();
5848 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5853 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
5854 swig_globalvar
*var
= v
->vars
;
5856 if (strcmp(var
->name
,n
) == 0) {
5857 return (*var
->set_attr
)(p
);
5861 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
5865 SWIGINTERN PyTypeObject
*
5866 swig_varlink_type(void) {
5867 static char varlink__doc__
[] = "Swig var link object";
5868 static PyTypeObject varlink_type
5869 #if !defined(__cplusplus)
5871 static int type_init
= 0;
5876 PyObject_HEAD_INIT(&PyType_Type
)
5877 0, /* Number of items in variable part (ob_size) */
5878 (char *)"swigvarlink", /* Type name (tp_name) */
5879 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
5880 0, /* Itemsize (tp_itemsize) */
5881 0, /* Deallocator (tp_dealloc) */
5882 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
5883 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
5884 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
5886 (reprfunc
) swig_varlink_repr
, /* tp_repr */
5887 0, /* tp_as_number */
5888 0, /* tp_as_sequence */
5889 0, /* tp_as_mapping */
5893 0, /* tp_getattro */
5894 0, /* tp_setattro */
5895 0, /* tp_as_buffer */
5897 varlink__doc__
, /* tp_doc */
5898 #if PY_VERSION_HEX >= 0x02000000
5899 0, /* tp_traverse */
5902 #if PY_VERSION_HEX >= 0x02010000
5903 0, /* tp_richcompare */
5904 0, /* tp_weaklistoffset */
5906 #if PY_VERSION_HEX >= 0x02020000
5907 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5909 #if PY_VERSION_HEX >= 0x02030000
5913 0,0,0,0 /* tp_alloc -> tp_next */
5916 #if !defined(__cplusplus)
5921 return &varlink_type
;
5924 /* Create a variable linking object for use later */
5925 SWIGINTERN PyObject
*
5926 SWIG_Python_newvarlink(void) {
5927 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
5931 return ((PyObject
*) result
);
5935 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
5936 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
5937 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
5939 size_t size
= strlen(name
)+1;
5940 gv
->name
= (char *)malloc(size
);
5942 strncpy(gv
->name
,name
,size
);
5943 gv
->get_attr
= get_attr
;
5944 gv
->set_attr
= set_attr
;
5951 /* -----------------------------------------------------------------------------
5952 * constants/methods manipulation
5953 * ----------------------------------------------------------------------------- */
5955 /* Install Constants */
5957 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
5960 for (i
= 0; constants
[i
].type
; ++i
) {
5961 switch(constants
[i
].type
) {
5963 obj
= PyInt_FromLong(constants
[i
].lvalue
);
5966 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
5968 case SWIG_PY_STRING
:
5969 if (constants
[i
].pvalue
) {
5970 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
5976 case SWIG_PY_POINTER
:
5977 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
5979 case SWIG_PY_BINARY
:
5980 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
5987 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
5993 /* -----------------------------------------------------------------------------*/
5994 /* Fix SwigMethods to carry the callback ptrs when needed */
5995 /* -----------------------------------------------------------------------------*/
5998 SWIG_Python_FixMethods(PyMethodDef
*methods
,
5999 swig_const_info
*const_table
,
6000 swig_type_info
**types
,
6001 swig_type_info
**types_initial
) {
6003 for (i
= 0; methods
[i
].ml_name
; ++i
) {
6004 char *c
= methods
[i
].ml_doc
;
6005 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
6007 swig_const_info
*ci
= 0;
6008 char *name
= c
+ 10;
6009 for (j
= 0; const_table
[j
].type
; ++j
) {
6010 if (strncmp(const_table
[j
].name
, name
,
6011 strlen(const_table
[j
].name
)) == 0) {
6012 ci
= &(const_table
[j
]);
6017 size_t shift
= (ci
->ptype
) - types
;
6018 swig_type_info
*ty
= types_initial
[shift
];
6019 size_t ldoc
= (c
- methods
[i
].ml_doc
);
6020 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
6021 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
6024 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
6026 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
6028 strncpy(buff
, "swig_ptr: ", 10);
6030 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
6031 methods
[i
].ml_doc
= ndoc
;
6039 /* -----------------------------------------------------------------------------*
6040 * Initialize type list
6041 * -----------------------------------------------------------------------------*/
6047 /* -----------------------------------------------------------------------------*
6048 * Partial Init method
6049 * -----------------------------------------------------------------------------*/
6054 SWIGEXPORT
void SWIG_init(void) {
6055 static PyObject
*SWIG_globals
= 0;
6057 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
6059 /* Fix SwigMethods to carry the callback ptrs when needed */
6060 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
6062 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
6063 d
= PyModule_GetDict(m
);
6065 SWIG_InitializeModule(0);
6066 SWIG_InstallConstants(d
,swig_const_table
);