]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/activex/activex_wrap.cpp
falling back to wxImage handler
[wxWidgets.git] / wxPython / contrib / activex / activex_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.24
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
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; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
33 # else
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
35 # endif
36 #endif
37
38
39 #include <Python.h>
40
41 /***********************************************************************
42 * swigrun.swg
43 *
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
46 *
47 ************************************************************************/
48
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
52
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
58 #else
59 #define SWIG_TYPE_TABLE_NAME
60 #endif
61
62 #include <string.h>
63
64 #ifndef SWIGINLINE
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
67 #else
68 # define SWIGINLINE
69 #endif
70 #endif
71
72 /*
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79 */
80 #ifndef SWIGRUNTIME
81 #define SWIGRUNTIME static
82 #endif
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
85 #endif
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91 typedef void *(*swig_converter_func)(void *);
92 typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94 typedef struct swig_type_info {
95 const char *name;
96 swig_converter_func converter;
97 const char *str;
98 void *clientdata;
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102 } swig_type_info;
103
104 /*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110 */
111 SWIGRUNTIME int
112 SWIG_TypeNameComp(const char *f1, const char *l1,
113 const char *f2, const char *l2) {
114 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
115 while ((*f1 == ' ') && (f1 != l1)) ++f1;
116 while ((*f2 == ' ') && (f2 != l2)) ++f2;
117 if (*f1 != *f2) return *f1 - *f2;
118 }
119 return (l1 - f1) - (l2 - f2);
120 }
121
122 /*
123 Check type equivalence in a name list like <name1>|<name2>|...
124 */
125 SWIGRUNTIME int
126 SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138 }
139
140 /*
141 Register a type mapping with the type-checking
142 */
143 SWIGRUNTIME swig_type_info *
144 SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) {
145 swig_type_info *tc, *head, *ret, *next;
146 /* Check to see if this type has already been registered */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc->str && ti->str && !strstr(tc->str,"|")) {
155 typeequiv = SWIG_TypeEquiv(ti->str,tc->str);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189 }
190
191 /*
192 Check the typename
193 */
194 SWIGRUNTIME swig_type_info *
195 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
200 if (strcmp(s->name,c) == 0) {
201 if (s == ty->next) return s;
202 /* Move s to the top of the linked list */
203 s->prev->next = s->next;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217 }
218
219 /*
220 Cast a pointer up an inheritance hierarchy
221 */
222 SWIGRUNTIMEINLINE void *
223 SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225 }
226
227 /*
228 Dynamic pointer casting. Down an inheritance hierarchy
229 */
230 SWIGRUNTIME swig_type_info *
231 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
232 swig_type_info *lastty = ty;
233 if (!ty || !ty->dcast) return ty;
234 while (ty && (ty->dcast)) {
235 ty = (*ty->dcast)(ptr);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239 }
240
241 /*
242 Return the name associated with this type
243 */
244 SWIGRUNTIMEINLINE const char *
245 SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247 }
248
249 /*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252 */
253 SWIGRUNTIME const char *
254 SWIG_TypePrettyName(const swig_type_info *type) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268 }
269
270 /*
271 Search for a swig_type_info structure
272 */
273 SWIGRUNTIME swig_type_info *
274 SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282 }
283
284 /*
285 Set the clientdata field for a type
286 */
287 SWIGRUNTIME void
288 SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) {
289 swig_type_info *tc, *equiv;
290 if (ti->clientdata) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti->clientdata = clientdata;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305 }
306
307 /*
308 Pack binary data into a string
309 */
310 SWIGRUNTIME char *
311 SWIG_PackData(char *c, void *ptr, size_t sz) {
312 static char hex[17] = "0123456789abcdef";
313 unsigned char *u = (unsigned char *) ptr;
314 const unsigned char *eu = u + sz;
315 register unsigned char uu;
316 for (; u != eu; ++u) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322 }
323
324 /*
325 Unpack binary data from a string
326 */
327 SWIGRUNTIME const char *
328 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
329 register unsigned char *u = (unsigned char *) ptr;
330 register const unsigned char *eu = u + sz;
331 for (; u != eu; ++u) {
332 register int d = *(c++);
333 register unsigned char uu = 0;
334 if ((d >= '0') && (d <= '9'))
335 uu = ((d - '0') << 4);
336 else if ((d >= 'a') && (d <= 'f'))
337 uu = ((d - ('a'-10)) << 4);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350 }
351
352 /*
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
357 */
358 SWIGRUNTIME void
359 SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374 }
375
376 /*
377 Pack 'void *' into a string buffer.
378 */
379 SWIGRUNTIME char *
380 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388 }
389
390 SWIGRUNTIME const char *
391 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401 }
402
403 SWIGRUNTIME char *
404 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416 }
417
418 SWIGRUNTIME const char *
419 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429 }
430
431 #ifdef __cplusplus
432 }
433 #endif
434
435 /***********************************************************************
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
441 *
442 * Author : David Beazley (beazley@cs.uchicago.edu)
443 *
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
449
450
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
454 # else
455 # define SWIGEXPORT(a) a
456 # endif
457 #else
458 # define SWIGEXPORT(a) a
459 #endif
460
461 #ifdef __cplusplus
462 extern "C" {
463 #endif
464
465
466 /*************************************************************************/
467
468
469 /* The static type info list */
470
471 static swig_type_info *swig_type_list = 0;
472 static swig_type_info **swig_type_list_handle = &swig_type_list;
473
474
475 /* Register a type mapping with the type-checking */
476 static swig_type_info *
477 SWIG_TypeRegister(swig_type_info *ti) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle, ti);
479 }
480
481 /* Search for a swig_type_info structure */
482 static swig_type_info *
483 SWIG_TypeQuery(const char *name) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle, name);
485 }
486
487 /* Set the clientdata field for a type */
488 static void
489 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491 }
492
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
497 */
498 static void
499 SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501 }
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
510
511 #ifdef __cplusplus
512 extern "C" {
513 #endif
514
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
518
519 #ifndef SWIGINTERN
520 #define SWIGINTERN static
521 #endif
522
523 #ifndef SWIGINTERNSHORT
524 #ifdef __cplusplus
525 #define SWIGINTERNSHORT static inline
526 #else /* C case */
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
529 #endif
530
531
532 /*
533 Exception handling in wrappers
534 */
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
541
542 /*
543 Contract support
544 */
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
551
552 /* Constant Types */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
558
559 /* Constant information structure */
560 typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567 } swig_const_info;
568
569
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
576
577 #ifdef __cplusplus
578 }
579 #endif
580
581
582 /***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
591
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
596
597
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
601
602
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606 /*
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
609 not always safe.
610 */
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
613 #endif
614
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
618
619
620 #ifdef __cplusplus
621 extern "C" {
622 #endif
623
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
627
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
630 #endif
631
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
637
638 typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642 } PySwigObject;
643
644 /* Declarations for objects of type PySwigObject */
645
646 SWIGRUNTIME int
647 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648 {
649 char result[SWIG_BUFFER_SIZE];
650 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
651 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
652 return 0;
653 } else {
654 return 1;
655 }
656 }
657
658 SWIGRUNTIME PyObject *
659 PySwigObject_repr(PySwigObject *v)
660 {
661 char result[SWIG_BUFFER_SIZE];
662 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
663 PyString_FromFormat("<Swig Object at %s>", result) : 0;
664 }
665
666 SWIGRUNTIME PyObject *
667 PySwigObject_str(PySwigObject *v)
668 {
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
672 }
673
674 SWIGRUNTIME PyObject *
675 PySwigObject_long(PySwigObject *v)
676 {
677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
678 }
679
680 SWIGRUNTIME PyObject *
681 PySwigObject_oct(PySwigObject *v)
682 {
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
690 }
691
692 SWIGRUNTIME PyObject *
693 PySwigObject_hex(PySwigObject *v)
694 {
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
698 }
699
700 SWIGRUNTIME int
701 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
702 {
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
710 }
711 }
712
713 SWIGRUNTIME void
714 PySwigObject_dealloc(PySwigObject *self)
715 {
716 PyObject_DEL(self);
717 }
718
719 SWIGRUNTIME PyTypeObject*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
723
724 static PyNumberMethods PySwigObject_as_number = {
725 (binaryfunc)0, /*nb_add*/
726 (binaryfunc)0, /*nb_subtract*/
727 (binaryfunc)0, /*nb_multiply*/
728 (binaryfunc)0, /*nb_divide*/
729 (binaryfunc)0, /*nb_remainder*/
730 (binaryfunc)0, /*nb_divmod*/
731 (ternaryfunc)0,/*nb_power*/
732 (unaryfunc)0, /*nb_negative*/
733 (unaryfunc)0, /*nb_positive*/
734 (unaryfunc)0, /*nb_absolute*/
735 (inquiry)0, /*nb_nonzero*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
742 (coercion)0, /*nb_coerce*/
743 (unaryfunc)PySwigObject_long, /*nb_int*/
744 (unaryfunc)PySwigObject_long, /*nb_long*/
745 (unaryfunc)0, /*nb_float*/
746 (unaryfunc)PySwigObject_oct, /*nb_oct*/
747 (unaryfunc)PySwigObject_hex, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
750 #endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
764 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
765 (printfunc)PySwigObject_print, /*tp_print*/
766 (getattrfunc)0, /*tp_getattr*/
767 (setattrfunc)0, /*tp_setattr*/
768 (cmpfunc)PySwigObject_compare, /*tp_compare*/
769 (reprfunc)PySwigObject_repr, /*tp_repr*/
770 &PySwigObject_as_number, /*tp_as_number*/
771 0, /*tp_as_sequence*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782 #endif
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786 #endif
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
789 #endif
790 #if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792 #endif
793 #ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795 #endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
800 }
801
802 return &PySwigObject_Type;
803 }
804
805 SWIGRUNTIME PyObject *
806 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807 {
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813 }
814
815 SWIGRUNTIMEINLINE void *
816 PySwigObject_AsVoidPtr(PyObject *self)
817 {
818 return ((PySwigObject *)self)->ptr;
819 }
820
821 SWIGRUNTIMEINLINE const char *
822 PySwigObject_GetDesc(PyObject *self)
823 {
824 return ((PySwigObject *)self)->desc;
825 }
826
827 SWIGRUNTIMEINLINE int
828 PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
831 }
832
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837 typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842 } PySwigPacked;
843
844 SWIGRUNTIME int
845 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
846 {
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
852 }
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
856 }
857
858 SWIGRUNTIME PyObject *
859 PySwigPacked_repr(PySwigPacked *v)
860 {
861 char result[SWIG_BUFFER_SIZE];
862 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
867 }
868
869 SWIGRUNTIME PyObject *
870 PySwigPacked_str(PySwigPacked *v)
871 {
872 char result[SWIG_BUFFER_SIZE];
873 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
874 return PyString_FromFormat("%s%s", result, v->desc);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
878 }
879
880 SWIGRUNTIME int
881 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
882 {
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
891 }
892 }
893
894 SWIGRUNTIME void
895 PySwigPacked_dealloc(PySwigPacked *self)
896 {
897 free(self->pack);
898 PyObject_DEL(self);
899 }
900
901 SWIGRUNTIME PyTypeObject*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init = 0;
906
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
916 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
917 (printfunc)PySwigPacked_print, /*tp_print*/
918 (getattrfunc)0, /*tp_getattr*/
919 (setattrfunc)0, /*tp_setattr*/
920 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
921 (reprfunc)PySwigPacked_repr, /*tp_repr*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934 #endif
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938 #endif
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
941 #endif
942 #if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944 #endif
945 #ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947 #endif
948 };
949
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
953
954
955
956 return &PySwigPacked_Type;
957 }
958
959 SWIGRUNTIME PyObject *
960 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
961 {
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
972 }
973 }
974
975 SWIGRUNTIMEINLINE const char *
976 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977 {
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982 }
983
984 SWIGRUNTIMEINLINE const char *
985 PySwigPacked_GetDesc(PyObject *self)
986 {
987 return ((PySwigPacked *)self)->desc;
988 }
989
990 SWIGRUNTIMEINLINE int
991 PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994 }
995
996 #else
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1000
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1005
1006 #endif
1007
1008 #endif
1009
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1013
1014 SWIGRUNTIME void
1015 SWIG_Python_TypeError(const char *type, PyObject *obj)
1016 {
1017 if (type) {
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027 #endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
1040 Py_DECREF(str);
1041 return;
1042 }
1043 }
1044 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1045 } else {
1046 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1047 }
1048 }
1049
1050 SWIGRUNTIMEINLINE void
1051 SWIG_Python_NullRef(const char *type)
1052 {
1053 if (type) {
1054 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1055 } else {
1056 PyErr_Format(PyExc_TypeError, "null reference was received");
1057 }
1058 }
1059
1060 SWIGRUNTIME int
1061 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1062 {
1063 if (PyErr_Occurred()) {
1064 PyObject *type = 0;
1065 PyObject *value = 0;
1066 PyObject *traceback = 0;
1067 PyErr_Fetch(&type, &value, &traceback);
1068 if (value) {
1069 PyObject *old_str = PyObject_Str(value);
1070 Py_XINCREF(type);
1071 PyErr_Clear();
1072 if (infront) {
1073 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1074 } else {
1075 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1076 }
1077 Py_DECREF(old_str);
1078 }
1079 return 1;
1080 } else {
1081 return 0;
1082 }
1083 }
1084
1085 SWIGRUNTIME int
1086 SWIG_Python_ArgFail(int argnum)
1087 {
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1090 char mesg[256];
1091 sprintf(mesg, "argument number %d:", argnum);
1092 return SWIG_Python_AddErrMesg(mesg, 1);
1093 } else {
1094 return 0;
1095 }
1096 }
1097
1098
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1102
1103 /* Convert a pointer value */
1104 SWIGRUNTIME int
1105 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1106 swig_type_info *tc;
1107 const char *c = 0;
1108 static PyObject *SWIG_this = 0;
1109 int newref = 0;
1110 PyObject *pyobj = 0;
1111 void *vptr;
1112
1113 if (!obj) return 0;
1114 if (obj == Py_None) {
1115 *ptr = 0;
1116 return 0;
1117 }
1118
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj))) {
1121 if (!SWIG_this)
1122 SWIG_this = PyString_FromString("this");
1123 pyobj = obj;
1124 obj = PyObject_GetAttr(obj,SWIG_this);
1125 newref = 1;
1126 if (!obj) goto type_error;
1127 if (!PySwigObject_Check(obj)) {
1128 Py_DECREF(obj);
1129 goto type_error;
1130 }
1131 }
1132 vptr = PySwigObject_AsVoidPtr(obj);
1133 c = (const char *) PySwigObject_GetDesc(obj);
1134 if (newref) { Py_DECREF(obj); }
1135 goto type_check;
1136 #else
1137 if (!(PyString_Check(obj))) {
1138 if (!SWIG_this)
1139 SWIG_this = PyString_FromString("this");
1140 pyobj = obj;
1141 obj = PyObject_GetAttr(obj,SWIG_this);
1142 newref = 1;
1143 if (!obj) goto type_error;
1144 if (!PyString_Check(obj)) {
1145 Py_DECREF(obj);
1146 goto type_error;
1147 }
1148 }
1149 c = PyString_AS_STRING(obj);
1150 /* Pointer values must start with leading underscore */
1151 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1152 if (newref) { Py_DECREF(obj); }
1153 if (!c) goto type_error;
1154 #endif
1155
1156 type_check:
1157
1158 if (ty) {
1159 tc = SWIG_TypeCheck(c,ty);
1160 if (!tc) goto type_error;
1161 *ptr = SWIG_TypeCast(tc,vptr);
1162 } else {
1163 *ptr = vptr;
1164 }
1165
1166 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1167 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1168 }
1169 return 0;
1170
1171 type_error:
1172 PyErr_Clear();
1173 if (pyobj && !obj) {
1174 obj = pyobj;
1175 if (PyCFunction_Check(obj)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1178 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1179 if (c) {
1180 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1181 if (!c) goto type_error;
1182 goto type_check;
1183 }
1184 }
1185 }
1186 if (flags & SWIG_POINTER_EXCEPTION) {
1187 if (ty) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1189 } else {
1190 SWIG_Python_TypeError("C/C++ pointer", obj);
1191 }
1192 }
1193 return -1;
1194 }
1195
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1197 SWIGRUNTIME void *
1198 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1199 void *result;
1200 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1201 PyErr_Clear();
1202 if (flags & SWIG_POINTER_EXCEPTION) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1204 SWIG_Python_ArgFail(argnum);
1205 }
1206 }
1207 return result;
1208 }
1209
1210 /* Convert a packed value value */
1211 SWIGRUNTIME int
1212 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1213 swig_type_info *tc;
1214 const char *c = 0;
1215
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c = PySwigPacked_UnpackData(obj, ptr, sz);
1218 #else
1219 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1220 c = PyString_AS_STRING(obj);
1221 /* Pointer values must start with leading underscore */
1222 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1223 #endif
1224 if (!c) goto type_error;
1225 if (ty) {
1226 tc = SWIG_TypeCheck(c,ty);
1227 if (!tc) goto type_error;
1228 }
1229 return 0;
1230
1231 type_error:
1232 PyErr_Clear();
1233 if (flags & SWIG_POINTER_EXCEPTION) {
1234 if (ty) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1236 } else {
1237 SWIG_Python_TypeError("C/C++ packed data", obj);
1238 }
1239 }
1240 return -1;
1241 }
1242
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject *
1245 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1246 PyObject *robj = 0;
1247 if (!ptr) {
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250 }
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1253 #else
1254 {
1255 char result[SWIG_BUFFER_SIZE];
1256 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1257 PyString_FromString(result) : 0;
1258 }
1259 #endif
1260 if (!robj || (robj == Py_None)) return robj;
1261 if (type->clientdata) {
1262 PyObject *inst;
1263 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1264 Py_DECREF(robj);
1265 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1266 Py_DECREF(args);
1267 if (inst) {
1268 if (own) {
1269 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1270 }
1271 robj = inst;
1272 }
1273 }
1274 return robj;
1275 }
1276
1277 SWIGRUNTIME PyObject *
1278 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1279 PyObject *robj = 0;
1280 if (!ptr) {
1281 Py_INCREF(Py_None);
1282 return Py_None;
1283 }
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1286 #else
1287 {
1288 char result[SWIG_BUFFER_SIZE];
1289 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1290 PyString_FromString(result) : 0;
1291 }
1292 #endif
1293 return robj;
1294 }
1295
1296 /* -----------------------------------------------------------------------------*
1297 * Get type list
1298 * -----------------------------------------------------------------------------*/
1299
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1302 #endif
1303
1304 SWIGRUNTIME swig_type_info **
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer = (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1311 #else
1312 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1314 if (PyErr_Occurred()) {
1315 PyErr_Clear();
1316 type_pointer = (void *)0;
1317 }
1318 }
1319 #endif
1320 return (swig_type_info **) type_pointer;
1321 }
1322
1323 /*
1324 Search for a swig_type_info structure
1325 */
1326 SWIGRUNTIMEINLINE swig_type_info *
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1329 return tlh ? *tlh : (swig_type_info*)0;
1330 }
1331
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1333
1334 #ifdef __cplusplus
1335 }
1336 #endif
1337
1338
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1340
1341 #define SWIGTYPE_p_wxObject swig_types[0]
1342 #define SWIGTYPE_p_unsigned_char swig_types[1]
1343 #define SWIGTYPE_p_wxFuncX swig_types[2]
1344 #define SWIGTYPE_p_wxActiveXWindow swig_types[3]
1345 #define SWIGTYPE_p_wxWindow swig_types[4]
1346 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1347 #define SWIGTYPE_p_unsigned_long swig_types[6]
1348 #define SWIGTYPE_p_unsigned_int swig_types[7]
1349 #define SWIGTYPE_unsigned_int swig_types[8]
1350 #define SWIGTYPE_p_form_ops_t swig_types[9]
1351 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1352 #define SWIGTYPE_p_char swig_types[11]
1353 #define SWIGTYPE_p_unsigned_short swig_types[12]
1354 #define SWIGTYPE_p_wxInputStream swig_types[13]
1355 #define SWIGTYPE_p_wxEvtHandler swig_types[14]
1356 #define SWIGTYPE_p_wxPropX swig_types[15]
1357 #define SWIGTYPE_p_wxParamXArray swig_types[16]
1358 #define SWIGTYPE_p_wxFuncXArray swig_types[17]
1359 #define SWIGTYPE_p_wxActiveXEvent swig_types[18]
1360 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1361 #define SWIGTYPE_ptrdiff_t swig_types[20]
1362 #define SWIGTYPE_p_long swig_types[21]
1363 #define SWIGTYPE_p_wxParamX swig_types[22]
1364 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[23]
1365 #define SWIGTYPE_p_wxEvent swig_types[24]
1366 #define SWIGTYPE_p_wxPaperSize swig_types[25]
1367 #define SWIGTYPE_p_CLSID swig_types[26]
1368 #define SWIGTYPE_p_wxPropXArray swig_types[27]
1369 #define SWIGTYPE_p_int swig_types[28]
1370 static swig_type_info *swig_types[30];
1371
1372 /* -------- TYPES TABLE (END) -------- */
1373
1374
1375 /*-----------------------------------------------
1376 @(target):= _activex.so
1377 ------------------------------------------------*/
1378 #define SWIG_init init_activex
1379
1380 #define SWIG_name "_activex"
1381
1382 #include "wx/wxPython/wxPython.h"
1383 #include "wx/wxPython/pyclasses.h"
1384 #include "wx/wxPython/pyistream.h"
1385
1386 #include "wxactivex.h"
1387
1388 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1389
1390 // Since SWIG doesn't support nested classes, we need to fool it a bit
1391 // and make them look like global classes. These defines make the C++ code
1392 // know what we are doing.
1393 #define wxParamX wxActiveX::ParamX
1394 #define wxFuncX wxActiveX::FuncX
1395 #define wxPropX wxActiveX::PropX
1396 #define wxParamXArray wxActiveX::ParamXArray
1397 #define wxFuncXArray wxActiveX::FuncXArray
1398 #define wxPropXArray wxActiveX::PropXArray
1399
1400
1401 // Some conversion helpers
1402 static wxVariant _PyObj2Variant(PyObject* value);
1403 static bool _PyObj2Variant(PyObject* value, wxVariant& wv);
1404 static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false);
1405 static wxString _VARTYPEname(VARTYPE vt);
1406
1407 // Check if an exception has been raised (blocking threads)
1408 inline bool wxPyErr_Occurred()
1409 {
1410 bool rval;
1411 bool blocked = wxPyBeginBlockThreads();
1412 rval = PyErr_Occurred() != NULL;
1413 wxPyEndBlockThreads(blocked);
1414 return rval;
1415 }
1416
1417
1418 static CLSID *new_CLSID(wxString const &id){
1419 int result;
1420 CLSID* self = new CLSID;
1421 memset(self, 0, sizeof(CLSID));
1422
1423 if (id[0] == _T('{')) {
1424 // Looks like a classID string
1425 result =
1426 CLSIDFromString(
1427 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
1428 self);
1429 } else {
1430 // Try a progID
1431 result =
1432 CLSIDFromProgID(
1433 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
1434 self);
1435 }
1436 if (result != NOERROR) {
1437 wxPyErr_SetString(PyExc_ValueError, "Not a recognized classID or progID");
1438 delete self;
1439 return NULL;
1440 }
1441 return self;
1442 }
1443 static void delete_CLSID(CLSID *self){ delete self; }
1444 static wxString CLSID_GetCLSIDString(CLSID *self){
1445 LPOLESTR s;
1446 wxString str;
1447 if (StringFromCLSID(*self, &s) == S_OK) {
1448 str = s;
1449 CoTaskMemFree(s);
1450 }
1451 else {
1452 str = _T("Error!"); // TODO: raise exception?
1453 }
1454 return str;
1455 }
1456 static wxString CLSID_GetProgIDString(CLSID *self){
1457 LPOLESTR s;
1458 wxString str;
1459 if (ProgIDFromCLSID(*self, &s) == S_OK) {
1460 str = s;
1461 CoTaskMemFree(s);
1462 }
1463 else {
1464 str = _T("Error!"); // TODO: raise exception?
1465 }
1466 return str;
1467 }
1468
1469 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1470 #define SWIG_From_unsigned_SS_short PyInt_FromLong
1471 /*@@*/
1472
1473 static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); }
1474
1475 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1476 #define SWIG_From_long PyInt_FromLong
1477 /*@@*/
1478
1479 static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; }
1480 static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); }
1481
1482 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1483 #define SWIG_From_int PyInt_FromLong
1484 /*@@*/
1485
1486
1487 #include <limits.h>
1488
1489
1490 SWIGINTERN int
1491 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1492 const char *errmsg)
1493 {
1494 if (value < min_value) {
1495 if (errmsg) {
1496 PyErr_Format(PyExc_OverflowError,
1497 "value %ld is less than '%s' minimum %ld",
1498 value, errmsg, min_value);
1499 }
1500 return 0;
1501 } else if (value > max_value) {
1502 if (errmsg) {
1503 PyErr_Format(PyExc_OverflowError,
1504 "value %ld is greater than '%s' maximum %ld",
1505 value, errmsg, max_value);
1506 }
1507 return 0;
1508 }
1509 return 1;
1510 }
1511
1512
1513 SWIGINTERN int
1514 SWIG_AsVal_long(PyObject* obj, long* val)
1515 {
1516 if (PyNumber_Check(obj)) {
1517 if (val) *val = PyInt_AsLong(obj);
1518 return 1;
1519 }
1520 else {
1521 SWIG_type_error("number", obj);
1522 }
1523 return 0;
1524 }
1525
1526
1527 #if INT_MAX != LONG_MAX
1528 SWIGINTERN int
1529 SWIG_AsVal_int(PyObject *obj, int *val)
1530 {
1531 const char* errmsg = val ? "int" : (char*)0;
1532 long v;
1533 if (SWIG_AsVal_long(obj, &v)) {
1534 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1535 if (val) *val = (int)(v);
1536 return 1;
1537 } else {
1538 return 0;
1539 }
1540 } else {
1541 PyErr_Clear();
1542 }
1543 if (val) {
1544 SWIG_type_error(errmsg, obj);
1545 }
1546 return 0;
1547 }
1548 #else
1549 SWIGINTERNSHORT int
1550 SWIG_AsVal_int(PyObject *obj, int *val)
1551 {
1552 return SWIG_AsVal_long(obj,(long*)val);
1553 }
1554 #endif
1555
1556
1557 SWIGINTERNSHORT int
1558 SWIG_As_int(PyObject* obj)
1559 {
1560 int v;
1561 if (!SWIG_AsVal_int(obj, &v)) {
1562 /*
1563 this is needed to make valgrind/purify happier.
1564 */
1565 memset((void*)&v, 0, sizeof(int));
1566 }
1567 return v;
1568 }
1569
1570
1571 SWIGINTERNSHORT int
1572 SWIG_Check_int(PyObject* obj)
1573 {
1574 return SWIG_AsVal_int(obj, (int*)0);
1575 }
1576
1577 static wxParamX const &wxParamXArray___getitem__(wxParamXArray *self,int idx){
1578 if ( idx >= 0 && idx < self->size() )
1579 return (*self)[idx];
1580 else {
1581 static wxParamX BadVal;
1582 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1583 return BadVal;
1584 }
1585 }
1586 static bool wxFuncXArray___nonzero__(wxFuncXArray *self){ return self->size() > 0; }
1587 static int wxFuncXArray___len__(wxFuncXArray *self){ return self->size(); }
1588 static wxFuncX const &wxFuncXArray___getitem__(wxFuncXArray *self,int idx){
1589 if ( idx >= 0 && idx < self->size() )
1590 return (*self)[idx];
1591 else {
1592 static wxFuncX BadVal;
1593 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1594 return BadVal;
1595 }
1596 }
1597 static bool wxPropXArray___nonzero__(wxPropXArray *self){ return self->size() > 0; }
1598 static int wxPropXArray___len__(wxPropXArray *self){ return self->size(); }
1599 static wxPropX const &wxPropXArray___getitem__(wxPropXArray *self,int idx){
1600 if ( idx >= 0 && idx < self->size() )
1601 return (*self)[idx];
1602 else {
1603 static wxPropX BadVal;
1604 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1605 return BadVal;
1606 }
1607 }
1608
1609 // C++ version of a Python-aware wxActiveX
1610 class wxActiveXWindow : public wxActiveX
1611 {
1612 private:
1613 CLSID m_CLSID;
1614 public:
1615 wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
1616 const wxPoint& pos = wxDefaultPosition,
1617 const wxSize& size = wxDefaultSize,
1618 long style = 0,
1619 const wxString& name = wxPyPanelNameStr)
1620 : wxActiveX(parent, clsId, id, pos, size, style, name)
1621 {
1622 m_CLSID = clsId;
1623 }
1624
1625 const CLSID& GetCLSID() const { return m_CLSID; }
1626
1627
1628 // Renamed versions of some base class methods that delegate
1629 // to the base where appropriate, and raise Python exceptions
1630 // when needed.
1631 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
1632 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
1633 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
1634
1635 const wxFuncX& GetAXEventDesc(int idx) const
1636 {
1637 static wxFuncX BadVal;
1638 if (idx < 0 || idx >= GetAXEventCount()) {
1639 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1640 return BadVal;
1641 }
1642 return m_events[idx];
1643 }
1644 const wxFuncX& GetAXMethodDesc(int idx) const
1645 {
1646 static wxFuncX BadVal;
1647 if (idx < 0 || idx >= GetAXMethodCount()) {
1648 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1649 return BadVal;
1650 }
1651 return m_methods[idx];
1652 }
1653 const wxPropX& GetAXPropDesc(int idx) const
1654 {
1655 static wxPropX BadVal;
1656 if (idx < 0 || idx >= GetAXPropCount()) {
1657 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1658 return BadVal;
1659 }
1660 return m_props[idx];
1661 }
1662
1663 const wxFuncX& GetAXMethodDesc(const wxString& name) const
1664 {
1665 NameMap::const_iterator it = m_methodNames.find(name);
1666 if (it == m_methodNames.end()) {
1667 wxString msg;
1668 msg << _T("method <") << name << _T("> not found");
1669 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
1670 static wxFuncX BadVal;
1671 return BadVal;
1672 };
1673 return GetAXMethodDesc(it->second);
1674 }
1675 const wxPropX& GetAXPropDesc(const wxString& name) const
1676 {
1677 NameMap::const_iterator it = m_propNames.find(name);
1678 if (it == m_propNames.end()) {
1679 wxString msg;
1680 msg << _T("property <") << name << _T("> not found");
1681 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
1682 static wxPropX BadVal;
1683 return BadVal;
1684 };
1685 return GetAXPropDesc(it->second);
1686 }
1687
1688 // Accessors for the internal vectors of events, methods and
1689 // proprties. Can be used as sequence like objects from
1690 // Python.
1691 const wxFuncXArray& GetAXEvents() { return m_events; }
1692 const wxFuncXArray& GetAXMethods() { return m_methods; }
1693 const wxPropXArray& GetAXProperties() { return m_props; }
1694
1695
1696 // Set a property from a Python object
1697 void SetAXProp(const wxString& name, PyObject* value)
1698 {
1699 const wxPropX& prop = GetAXPropDesc(name);
1700 bool blocked = wxPyBeginBlockThreads();
1701 if (! PyErr_Occurred() ) {
1702 if (! prop.CanSet()) {
1703 wxString msg;
1704 msg << _T("property <") << name << _T("> is readonly");
1705 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1706 goto done;
1707 } else {
1708 wxVariant wxV = _PyObj2Variant(value);
1709 if (PyErr_Occurred())
1710 goto done;
1711 VARIANT v = {prop.arg.vt};
1712 if (!VariantToMSWVariant(wxV, v) || PyErr_Occurred()) {
1713 wxString msg;
1714 msg << _T("Unable to convert value to expected type: (")
1715 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
1716 << name << _T(">");
1717 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1718 goto done;
1719 }
1720 PyThreadState* tstate = wxPyBeginAllowThreads();
1721 SetProp(prop.memid, v);
1722 VariantClear(&v);
1723 wxPyEndAllowThreads(tstate);
1724 }
1725 }
1726 done:
1727 wxPyEndBlockThreads(blocked);
1728 }
1729
1730
1731 // Get a property and convert it to a Python object
1732 PyObject* GetAXProp(const wxString& name)
1733 {
1734 PyObject* rval = NULL;
1735 const wxPropX& prop = GetAXPropDesc(name);
1736 bool blocked = wxPyBeginBlockThreads();
1737 if (! PyErr_Occurred() ) {
1738 if (! prop.CanGet()) {
1739 wxString msg;
1740 msg << _T("property <") << name << _T("> is writeonly");
1741 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1742 goto done;
1743 } else {
1744 PyThreadState* tstate = wxPyBeginAllowThreads();
1745 VARIANT v = GetPropAsVariant(prop.memid);
1746 wxPyEndAllowThreads(tstate);
1747 wxVariant wv;
1748 if (!MSWVariantToVariant(v, wv) || PyErr_Occurred()) {
1749 wxString msg;
1750 msg << _T("Unable to convert value to expected type: (")
1751 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
1752 << name << _T(">");
1753 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1754 goto done;
1755 }
1756 rval = _Variant2PyObj(wv);
1757 VariantClear(&v);
1758 }
1759 }
1760 done:
1761 wxPyEndBlockThreads(blocked);
1762 return rval;
1763 }
1764
1765
1766 // If both IsIn and isOut are false, assume it is actually an
1767 // input param
1768 bool paramIsIn(const wxParamX& p)
1769 {
1770 return p.IsIn() || (!p.IsIn() && !p.IsOut());
1771 }
1772
1773
1774 // Call a method of the ActiveX object
1775 PyObject* _CallAXMethod(const wxString& name, PyObject* args)
1776 {
1777 VARIANTARG *vargs = NULL;
1778 int nargs = 0;
1779 PyObject* rval = NULL;
1780 const wxFuncX& func = GetAXMethodDesc(name);
1781
1782 bool blocked = wxPyBeginBlockThreads();
1783 if (! PyErr_Occurred() ) {
1784 nargs = func.params.size();
1785 if (nargs > 0)
1786 vargs = new VARIANTARG[nargs];
1787
1788 if (vargs) {
1789 // init type of vargs, in reverse order
1790 int i;
1791 for (i = 0; i < nargs; i++)
1792 vargs[nargs - i - 1].vt = func.params[i].vt;
1793
1794 // Map the args coming from Python to the input parameters in vargs
1795 int pi = 0;
1796 i = 0;
1797 while ( i<nargs && pi<PyTuple_Size(args) ) {
1798 // Move to the next input param.
1799 if (! paramIsIn(func.params[i])) {
1800 i += 1;
1801 continue;
1802 }
1803 // convert the python object
1804 PyObject* obj = PyTuple_GetItem(args, pi);
1805 if (obj == Py_None) // special-case None?
1806 vargs[nargs - i - 1].vt = VT_EMPTY;
1807 else {
1808 wxVariant wxV = _PyObj2Variant(obj);
1809 if (PyErr_Occurred())
1810 goto done;
1811 if (!VariantToMSWVariant(wxV, vargs[nargs - i - 1]) || PyErr_Occurred()) {
1812 wxString msg;
1813 msg << _T("Unable to convert value to expected type: (")
1814 << _VARTYPEname(vargs[nargs - i - 1].vt)
1815 << _T(") for parameter ") << i;
1816 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1817 goto done;
1818 }
1819 }
1820 i += 1;
1821 pi += 1;
1822 }
1823 }
1824
1825 // call the method
1826 PyThreadState* tstate = wxPyBeginAllowThreads();
1827 VARIANT rv = CallMethod(func.memid, vargs, nargs);
1828 wxPyEndAllowThreads(tstate);
1829
1830 // Convert the return value and any out-params, ignoring
1831 // conversion errors for now
1832 wxVariant wv;
1833 MSWVariantToVariant(rv, wv);
1834 rval = _Variant2PyObj(wv, true);
1835 VariantClear(&rv);
1836
1837 if (func.hasOut) {
1838 // make a list and put the rval in it if it is not None
1839 PyObject* lst = PyList_New(0);
1840 if (rval != Py_None)
1841 PyList_Append(lst, rval);
1842 else
1843 Py_DECREF(rval);
1844
1845 // find the out params and convert them
1846 for (int i = 0; i < nargs; i++) {
1847 VARIANTARG& va = vargs[nargs - i - 1];
1848 const wxParamX &px = func.params[i];
1849 if (px.IsOut()) {
1850 MSWVariantToVariant(va, wv);
1851 PyObject* obj = _Variant2PyObj(wv, true);
1852 PyList_Append(lst, obj);
1853 }
1854 }
1855 rval = PyList_AsTuple(lst);
1856 Py_DECREF(lst);
1857 }
1858 if (PyErr_Occurred())
1859 PyErr_Clear();
1860 }
1861 done:
1862 wxPyEndBlockThreads(blocked);
1863 if (vargs) {
1864 for (int i = 0; i < nargs; i++)
1865 VariantClear(&vargs[i]);
1866 delete [] vargs;
1867 }
1868 return rval;
1869 }
1870 };
1871
1872
1873 SWIGINTERNSHORT long
1874 SWIG_As_long(PyObject* obj)
1875 {
1876 long v;
1877 if (!SWIG_AsVal_long(obj, &v)) {
1878 /*
1879 this is needed to make valgrind/purify happier.
1880 */
1881 memset((void*)&v, 0, sizeof(long));
1882 }
1883 return v;
1884 }
1885
1886
1887 SWIGINTERNSHORT int
1888 SWIG_Check_long(PyObject* obj)
1889 {
1890 return SWIG_AsVal_long(obj, (long*)0);
1891 }
1892
1893 static void wxActiveXEvent__preCallInit(wxActiveXEvent *self,PyObject *pyself){
1894 bool blocked = wxPyBeginBlockThreads();
1895 PyObject* pList = PyList_New(0);
1896 PyObject_SetAttrString(pyself, "paramList", pList);
1897 Py_DECREF(pList);
1898 for (int i=0; i<self->ParamCount(); i+=1) {
1899 PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str());
1900 PyObject* val = _Variant2PyObj((*self)[i], true);
1901 PyObject_SetAttr(pyself, name, val);
1902 PyList_Append(pList, name);
1903 Py_DECREF(val);
1904 Py_DECREF(name);
1905 }
1906 wxPyEndBlockThreads(blocked);
1907 }
1908 static void wxActiveXEvent__postCallCleanup(wxActiveXEvent *self,PyObject *pyself){
1909 bool blocked = wxPyBeginBlockThreads();
1910 for (int i=0; i<self->ParamCount(); i+=1) {
1911 PyObject* val = PyObject_GetAttrString(
1912 pyself, (char*)(const char*)self->ParamName(i).mb_str());
1913 _PyObj2Variant(val, (*self)[i]);
1914 Py_DECREF(val);
1915 }
1916 wxPyEndBlockThreads(blocked);
1917 }
1918
1919
1920 // Caller should already have the GIL!
1921 wxVariant _PyObj2Variant(PyObject* value)
1922 {
1923 wxVariant rval;
1924
1925 if (value == Py_None)
1926 return rval;
1927
1928 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
1929 else if (PyBool_Check(value))
1930 rval = (value == Py_True) ? true : false;
1931 #endif
1932
1933 else if (PyInt_Check(value))
1934 rval = PyInt_AS_LONG(value);
1935
1936 else if (PyFloat_Check(value))
1937 rval = PyFloat_AS_DOUBLE(value);
1938
1939 else if (PyString_Check(value) || PyUnicode_Check(value))
1940 rval = Py2wxString(value);
1941
1942 // TODO: PyList of strings --> wxArrayString
1943 // wxDateTime
1944 // list of objects
1945 // etc.
1946
1947 else {
1948 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _PyObj2Variant");
1949 rval = (long)0;
1950 }
1951
1952 return rval;
1953 }
1954
1955 // This one uses the type of the variant to try and force the conversion
1956 bool _PyObj2Variant(PyObject* value, wxVariant& wv)
1957 {
1958 wxString type = wv.GetType();
1959
1960 if ( type == _T("long") || type == _T("bool") || type == _T("char") )
1961 wv = PyInt_AsLong(value);
1962
1963 else if ( type == _T("string") )
1964 wv = Py2wxString(value);
1965
1966 else if ( type == _T("double") )
1967 wv = PyFloat_AsDouble(value);
1968
1969 else {
1970 // it's some other type that we dont' handle yet. Log it?
1971 return false;
1972 }
1973 return true;
1974 }
1975
1976 // Caller should already have the GIL!
1977 PyObject* _Variant2PyObj(wxVariant& value, bool useNone)
1978 {
1979 PyObject* rval = NULL;
1980
1981 if (value.IsNull()) {
1982 rval = Py_None;
1983 Py_INCREF(rval);
1984 }
1985
1986 // should "char" be treated as an int or as a string?
1987 else if (value.IsType(_T("char")) || value.IsType(_T("long")))
1988 rval = PyInt_FromLong(value);
1989
1990 else if (value.IsType(_T("double")))
1991 rval = PyFloat_FromDouble(value);
1992
1993 else if (value.IsType(_T("bool"))) {
1994 rval = (bool)value ? Py_True : Py_False;
1995 Py_INCREF(rval);
1996 }
1997
1998 else if (value.IsType(_T("string")))
1999 rval = wx2PyString(value);
2000
2001 else {
2002 if (useNone) {
2003 rval = Py_None;
2004 Py_INCREF(rval);
2005 }
2006 else {
2007 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _Variant2PyObj");
2008 }
2009 }
2010 return rval;
2011 }
2012
2013
2014 wxString _VARTYPEname(VARTYPE vt)
2015 {
2016 if (vt & VT_BYREF)
2017 vt &= ~(VT_BYREF);
2018
2019 switch(vt) {
2020 case VT_VARIANT:
2021 return _T("VT_VARIANT");
2022
2023 // 1 byte chars
2024 case VT_I1:
2025 case VT_UI1:
2026 // 2 byte shorts
2027 case VT_I2:
2028 case VT_UI2:
2029 // 4 bytes longs
2030 case VT_I4:
2031 case VT_UI4:
2032 case VT_INT:
2033 case VT_UINT:
2034 case VT_ERROR:
2035 return _T("int");
2036
2037 // 4 byte floats
2038 case VT_R4:
2039 // 8 byte doubles
2040 case VT_R8:
2041 // decimals are converted from doubles too
2042 case VT_DECIMAL:
2043 return _T("double");
2044
2045 case VT_BOOL:
2046 return _T("bool");
2047
2048 case VT_DATE:
2049 return _T("wx.DateTime");
2050
2051 case VT_BSTR:
2052 return _T("string");
2053
2054 case VT_UNKNOWN:
2055 return _T("VT_UNKNOWN");
2056
2057 case VT_DISPATCH:
2058 return _T("VT_DISPATCH");
2059
2060 case VT_EMPTY:
2061 return _T("VT_EMPTY");
2062
2063 case VT_NULL:
2064 return _T("VT_NULL");
2065
2066 case VT_VOID:
2067 return _T("VT_VOID");
2068
2069 default:
2070 wxString msg;
2071 msg << _T("unsupported type ") << vt;
2072 return msg;
2073 }
2074 }
2075
2076
2077
2078 // A class derived from out wxActiveXWindow for the IE WebBrowser
2079 // control that will serve as a base class for a Python
2080 // implementation. This is done so we can "eat our own dog food"
2081 // and use a class at least mostly generated by genaxmodule, but
2082 // also get some of the extra stuff like loading a document from
2083 // a string or a stream, getting text contents, etc. that
2084 // Lindsay's version gives us.
2085 //
2086
2087 #include <wx/mstream.h>
2088 #include <oleidl.h>
2089 #include <winerror.h>
2090 #include <exdispid.h>
2091 #include <exdisp.h>
2092 #include <olectl.h>
2093 #include <Mshtml.h>
2094 #include <sstream>
2095
2096 #include "IEHtmlStream.h"
2097
2098 class wxIEHtmlWindowBase : public wxActiveXWindow {
2099 private:
2100 wxAutoOleInterface<IWebBrowser2> m_webBrowser;
2101
2102 public:
2103
2104 wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
2105 const wxPoint& pos = wxDefaultPosition,
2106 const wxSize& size = wxDefaultSize,
2107 long style = 0,
2108 const wxString& name = wxPyPanelNameStr)
2109 : wxActiveXWindow(parent, clsId, id, pos, size, style, name)
2110 {
2111 HRESULT hret;
2112
2113 // Get IWebBrowser2 Interface
2114 hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX);
2115 wxASSERT(SUCCEEDED(hret));
2116
2117 // web browser setup
2118 m_webBrowser->put_MenuBar(VARIANT_FALSE);
2119 m_webBrowser->put_AddressBar(VARIANT_FALSE);
2120 m_webBrowser->put_StatusBar(VARIANT_FALSE);
2121 m_webBrowser->put_ToolBar(VARIANT_FALSE);
2122
2123 m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE);
2124 m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE);
2125
2126 m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL );
2127 }
2128
2129
2130 void SetCharset(const wxString& charset)
2131 {
2132 HRESULT hret;
2133
2134 // HTML Document ?
2135 IDispatch *pDisp = NULL;
2136 hret = m_webBrowser->get_Document(&pDisp);
2137 wxAutoOleInterface<IDispatch> disp(pDisp);
2138
2139 if (disp.Ok())
2140 {
2141 wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp);
2142 if (doc.Ok())
2143 doc->put_charset((BSTR) (const wchar_t *) charset.wc_str(wxConvUTF8));
2144 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
2145 }
2146 }
2147
2148
2149 bool LoadString(const wxString& html)
2150 {
2151 char *data = NULL;
2152 size_t len = html.length();
2153 len *= sizeof(wxChar);
2154 data = (char *) malloc(len);
2155 memcpy(data, html.c_str(), len);
2156 return LoadStream(new wxOwnedMemInputStream(data, len));
2157 }
2158
2159
2160 bool LoadStream(IStreamAdaptorBase *pstrm)
2161 {
2162 // need to prepend this as poxy MSHTML will not recognise a HTML comment
2163 // as starting a html document and treats it as plain text
2164 // Does nayone know how to force it to html mode ?
2165 #if wxUSE_UNICODE
2166 // TODO: What to do in this case???
2167 #else
2168 pstrm->prepend = _T("<html>");
2169 #endif
2170
2171 // strip leading whitespace as it can confuse MSHTML
2172 wxAutoOleInterface<IStream> strm(pstrm);
2173
2174 // Document Interface
2175 IDispatch *pDisp = NULL;
2176 HRESULT hret = m_webBrowser->get_Document(&pDisp);
2177 if (! pDisp)
2178 return false;
2179 wxAutoOleInterface<IDispatch> disp(pDisp);
2180
2181
2182 // get IPersistStreamInit
2183 wxAutoOleInterface<IPersistStreamInit>
2184 pPersistStreamInit(IID_IPersistStreamInit, disp);
2185
2186 if (pPersistStreamInit.Ok())
2187 {
2188 HRESULT hr = pPersistStreamInit->InitNew();
2189 if (SUCCEEDED(hr))
2190 hr = pPersistStreamInit->Load(strm);
2191
2192 return SUCCEEDED(hr);
2193 }
2194 else
2195 return false;
2196 }
2197
2198 bool LoadStream(wxInputStream *is)
2199 {
2200 // wrap reference around stream
2201 IwxStreamAdaptor *pstrm = new IwxStreamAdaptor(is);
2202 pstrm->AddRef();
2203
2204 return LoadStream(pstrm);
2205 }
2206
2207
2208 wxString GetStringSelection(bool asHTML)
2209 {
2210 wxAutoOleInterface<IHTMLTxtRange> tr(wxieGetSelRange(m_oleObject));
2211 if (! tr)
2212 return wxEmptyString;
2213
2214 BSTR text = NULL;
2215 HRESULT hr = E_FAIL;
2216
2217 if (asHTML)
2218 hr = tr->get_htmlText(&text);
2219 else
2220 hr = tr->get_text(&text);
2221 if (hr != S_OK)
2222 return wxEmptyString;
2223
2224 wxString s = text;
2225 SysFreeString(text);
2226
2227 return s;
2228 };
2229
2230 wxString GetText(bool asHTML)
2231 {
2232 if (! m_webBrowser.Ok())
2233 return wxEmptyString;
2234
2235 // get document dispatch interface
2236 IDispatch *iDisp = NULL;
2237 HRESULT hr = m_webBrowser->get_Document(&iDisp);
2238 if (hr != S_OK)
2239 return wxEmptyString;
2240
2241 // Query for Document Interface
2242 wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp);
2243 iDisp->Release();
2244
2245 if (! hd.Ok())
2246 return wxEmptyString;
2247
2248 // get body element
2249 IHTMLElement *_body = NULL;
2250 hd->get_body(&_body);
2251 if (! _body)
2252 return wxEmptyString;
2253 wxAutoOleInterface<IHTMLElement> body(_body);
2254
2255 // get inner text
2256 BSTR text = NULL;
2257 hr = E_FAIL;
2258
2259 if (asHTML)
2260 hr = body->get_innerHTML(&text);
2261 else
2262 hr = body->get_innerText(&text);
2263 if (hr != S_OK)
2264 return wxEmptyString;
2265
2266 wxString s = text;
2267 SysFreeString(text);
2268
2269 return s;
2270 }
2271
2272
2273 // void wxIEHtmlWin::SetEditMode(bool seton)
2274 // {
2275 // m_bAmbientUserMode = ! seton;
2276 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
2277 // };
2278
2279 // bool wxIEHtmlWin::GetEditMode()
2280 // {
2281 // return ! m_bAmbientUserMode;
2282 // };
2283 };
2284
2285
2286 SWIGINTERN int
2287 SWIG_AsVal_bool(PyObject *obj, bool *val)
2288 {
2289 if (obj == Py_True) {
2290 if (val) *val = true;
2291 return 1;
2292 }
2293 if (obj == Py_False) {
2294 if (val) *val = false;
2295 return 1;
2296 }
2297 int res = 0;
2298 if (SWIG_AsVal_int(obj, &res)) {
2299 if (val) *val = res ? true : false;
2300 return 1;
2301 } else {
2302 PyErr_Clear();
2303 }
2304 if (val) {
2305 SWIG_type_error("bool", obj);
2306 }
2307 return 0;
2308 }
2309
2310
2311 SWIGINTERNSHORT bool
2312 SWIG_As_bool(PyObject* obj)
2313 {
2314 bool v;
2315 if (!SWIG_AsVal_bool(obj, &v)) {
2316 /*
2317 this is needed to make valgrind/purify happier.
2318 */
2319 memset((void*)&v, 0, sizeof(bool));
2320 }
2321 return v;
2322 }
2323
2324
2325 SWIGINTERNSHORT int
2326 SWIG_Check_bool(PyObject* obj)
2327 {
2328 return SWIG_AsVal_bool(obj, (bool*)0);
2329 }
2330
2331 #ifdef __cplusplus
2332 extern "C" {
2333 #endif
2334 static PyObject *_wrap_new_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxString *arg1 = 0 ;
2337 CLSID *result;
2338 bool temp1 = false ;
2339 PyObject * obj0 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "id", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CLSID",kwnames,&obj0)) goto fail;
2345 {
2346 arg1 = wxString_in_helper(obj0);
2347 if (arg1 == NULL) SWIG_fail;
2348 temp1 = true;
2349 }
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 result = (CLSID *)new_CLSID((wxString const &)*arg1);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 1);
2358 {
2359 if (temp1)
2360 delete arg1;
2361 }
2362 return resultobj;
2363 fail:
2364 {
2365 if (temp1)
2366 delete arg1;
2367 }
2368 return NULL;
2369 }
2370
2371
2372 static PyObject *_wrap_delete_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
2373 PyObject *resultobj;
2374 CLSID *arg1 = (CLSID *) 0 ;
2375 PyObject * obj0 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "self", NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_CLSID",kwnames,&obj0)) goto fail;
2381 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2382 if (SWIG_arg_fail(1)) SWIG_fail;
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
2385 delete_CLSID(arg1);
2386
2387 wxPyEndAllowThreads(__tstate);
2388 if (PyErr_Occurred()) SWIG_fail;
2389 }
2390 Py_INCREF(Py_None); resultobj = Py_None;
2391 return resultobj;
2392 fail:
2393 return NULL;
2394 }
2395
2396
2397 static PyObject *_wrap_CLSID_GetCLSIDString(PyObject *, PyObject *args, PyObject *kwargs) {
2398 PyObject *resultobj;
2399 CLSID *arg1 = (CLSID *) 0 ;
2400 wxString result;
2401 PyObject * obj0 = 0 ;
2402 char *kwnames[] = {
2403 (char *) "self", NULL
2404 };
2405
2406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetCLSIDString",kwnames,&obj0)) goto fail;
2407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2408 if (SWIG_arg_fail(1)) SWIG_fail;
2409 {
2410 PyThreadState* __tstate = wxPyBeginAllowThreads();
2411 result = CLSID_GetCLSIDString(arg1);
2412
2413 wxPyEndAllowThreads(__tstate);
2414 if (PyErr_Occurred()) SWIG_fail;
2415 }
2416 {
2417 #if wxUSE_UNICODE
2418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2419 #else
2420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2421 #endif
2422 }
2423 return resultobj;
2424 fail:
2425 return NULL;
2426 }
2427
2428
2429 static PyObject *_wrap_CLSID_GetProgIDString(PyObject *, PyObject *args, PyObject *kwargs) {
2430 PyObject *resultobj;
2431 CLSID *arg1 = (CLSID *) 0 ;
2432 wxString result;
2433 PyObject * obj0 = 0 ;
2434 char *kwnames[] = {
2435 (char *) "self", NULL
2436 };
2437
2438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetProgIDString",kwnames,&obj0)) goto fail;
2439 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2440 if (SWIG_arg_fail(1)) SWIG_fail;
2441 {
2442 PyThreadState* __tstate = wxPyBeginAllowThreads();
2443 result = CLSID_GetProgIDString(arg1);
2444
2445 wxPyEndAllowThreads(__tstate);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
2448 {
2449 #if wxUSE_UNICODE
2450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2451 #else
2452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2453 #endif
2454 }
2455 return resultobj;
2456 fail:
2457 return NULL;
2458 }
2459
2460
2461 static PyObject * CLSID_swigregister(PyObject *, PyObject *args) {
2462 PyObject *obj;
2463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2464 SWIG_TypeClientData(SWIGTYPE_p_CLSID, obj);
2465 Py_INCREF(obj);
2466 return Py_BuildValue((char *)"");
2467 }
2468 static PyObject *_wrap_ParamX_flags_get(PyObject *, PyObject *args, PyObject *kwargs) {
2469 PyObject *resultobj;
2470 wxParamX *arg1 = (wxParamX *) 0 ;
2471 USHORT result;
2472 PyObject * obj0 = 0 ;
2473 char *kwnames[] = {
2474 (char *) "self", NULL
2475 };
2476
2477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_flags_get",kwnames,&obj0)) goto fail;
2478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2479 if (SWIG_arg_fail(1)) SWIG_fail;
2480 result = (USHORT) ((arg1)->flags);
2481
2482 {
2483 resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
2484 }
2485 return resultobj;
2486 fail:
2487 return NULL;
2488 }
2489
2490
2491 static PyObject *_wrap_ParamX_isPtr_get(PyObject *, PyObject *args, PyObject *kwargs) {
2492 PyObject *resultobj;
2493 wxParamX *arg1 = (wxParamX *) 0 ;
2494 bool result;
2495 PyObject * obj0 = 0 ;
2496 char *kwnames[] = {
2497 (char *) "self", NULL
2498 };
2499
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isPtr_get",kwnames,&obj0)) goto fail;
2501 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2502 if (SWIG_arg_fail(1)) SWIG_fail;
2503 result = (bool) ((arg1)->isPtr);
2504
2505 {
2506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2507 }
2508 return resultobj;
2509 fail:
2510 return NULL;
2511 }
2512
2513
2514 static PyObject *_wrap_ParamX_isSafeArray_get(PyObject *, PyObject *args, PyObject *kwargs) {
2515 PyObject *resultobj;
2516 wxParamX *arg1 = (wxParamX *) 0 ;
2517 bool result;
2518 PyObject * obj0 = 0 ;
2519 char *kwnames[] = {
2520 (char *) "self", NULL
2521 };
2522
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isSafeArray_get",kwnames,&obj0)) goto fail;
2524 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2525 if (SWIG_arg_fail(1)) SWIG_fail;
2526 result = (bool) ((arg1)->isSafeArray);
2527
2528 {
2529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2530 }
2531 return resultobj;
2532 fail:
2533 return NULL;
2534 }
2535
2536
2537 static PyObject *_wrap_ParamX_isOptional_get(PyObject *, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxParamX *arg1 = (wxParamX *) 0 ;
2540 bool result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isOptional_get",kwnames,&obj0)) goto fail;
2547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2548 if (SWIG_arg_fail(1)) SWIG_fail;
2549 result = (bool) ((arg1)->isOptional);
2550
2551 {
2552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2553 }
2554 return resultobj;
2555 fail:
2556 return NULL;
2557 }
2558
2559
2560 static PyObject *_wrap_ParamX_vt_get(PyObject *, PyObject *args, PyObject *kwargs) {
2561 PyObject *resultobj;
2562 wxParamX *arg1 = (wxParamX *) 0 ;
2563 VARTYPE result;
2564 PyObject * obj0 = 0 ;
2565 char *kwnames[] = {
2566 (char *) "self", NULL
2567 };
2568
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_get",kwnames,&obj0)) goto fail;
2570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2571 if (SWIG_arg_fail(1)) SWIG_fail;
2572 result = (VARTYPE) ((arg1)->vt);
2573
2574 {
2575 resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
2576 }
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_ParamX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 wxParamX *arg1 = (wxParamX *) 0 ;
2586 wxString *result;
2587 PyObject * obj0 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "self", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_name_get",kwnames,&obj0)) goto fail;
2593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2594 if (SWIG_arg_fail(1)) SWIG_fail;
2595 result = (wxString *)& ((arg1)->name);
2596
2597 {
2598 #if wxUSE_UNICODE
2599 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2600 #else
2601 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2602 #endif
2603 }
2604 return resultobj;
2605 fail:
2606 return NULL;
2607 }
2608
2609
2610 static PyObject *_wrap_ParamX_vt_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
2611 PyObject *resultobj;
2612 wxParamX *arg1 = (wxParamX *) 0 ;
2613 wxString result;
2614 PyObject * obj0 = 0 ;
2615 char *kwnames[] = {
2616 (char *) "self", NULL
2617 };
2618
2619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_type_get",kwnames,&obj0)) goto fail;
2620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2621 if (SWIG_arg_fail(1)) SWIG_fail;
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = wxParamX_vt_type_get(arg1);
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
2629 {
2630 #if wxUSE_UNICODE
2631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2632 #else
2633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2634 #endif
2635 }
2636 return resultobj;
2637 fail:
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_ParamX_IsIn(PyObject *, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 wxParamX *arg1 = (wxParamX *) 0 ;
2645 bool result;
2646 PyObject * obj0 = 0 ;
2647 char *kwnames[] = {
2648 (char *) "self", NULL
2649 };
2650
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsIn",kwnames,&obj0)) goto fail;
2652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2653 if (SWIG_arg_fail(1)) SWIG_fail;
2654 {
2655 PyThreadState* __tstate = wxPyBeginAllowThreads();
2656 result = (bool)((wxParamX const *)arg1)->IsIn();
2657
2658 wxPyEndAllowThreads(__tstate);
2659 if (PyErr_Occurred()) SWIG_fail;
2660 }
2661 {
2662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2663 }
2664 return resultobj;
2665 fail:
2666 return NULL;
2667 }
2668
2669
2670 static PyObject *_wrap_ParamX_IsOut(PyObject *, PyObject *args, PyObject *kwargs) {
2671 PyObject *resultobj;
2672 wxParamX *arg1 = (wxParamX *) 0 ;
2673 bool result;
2674 PyObject * obj0 = 0 ;
2675 char *kwnames[] = {
2676 (char *) "self", NULL
2677 };
2678
2679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsOut",kwnames,&obj0)) goto fail;
2680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2681 if (SWIG_arg_fail(1)) SWIG_fail;
2682 {
2683 PyThreadState* __tstate = wxPyBeginAllowThreads();
2684 result = (bool)((wxParamX const *)arg1)->IsOut();
2685
2686 wxPyEndAllowThreads(__tstate);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 }
2689 {
2690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2691 }
2692 return resultobj;
2693 fail:
2694 return NULL;
2695 }
2696
2697
2698 static PyObject *_wrap_ParamX_IsRetVal(PyObject *, PyObject *args, PyObject *kwargs) {
2699 PyObject *resultobj;
2700 wxParamX *arg1 = (wxParamX *) 0 ;
2701 bool result;
2702 PyObject * obj0 = 0 ;
2703 char *kwnames[] = {
2704 (char *) "self", NULL
2705 };
2706
2707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsRetVal",kwnames,&obj0)) goto fail;
2708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2709 if (SWIG_arg_fail(1)) SWIG_fail;
2710 {
2711 PyThreadState* __tstate = wxPyBeginAllowThreads();
2712 result = (bool)((wxParamX const *)arg1)->IsRetVal();
2713
2714 wxPyEndAllowThreads(__tstate);
2715 if (PyErr_Occurred()) SWIG_fail;
2716 }
2717 {
2718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2719 }
2720 return resultobj;
2721 fail:
2722 return NULL;
2723 }
2724
2725
2726 static PyObject * ParamX_swigregister(PyObject *, PyObject *args) {
2727 PyObject *obj;
2728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2729 SWIG_TypeClientData(SWIGTYPE_p_wxParamX, obj);
2730 Py_INCREF(obj);
2731 return Py_BuildValue((char *)"");
2732 }
2733 static PyObject *_wrap_FuncX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2734 PyObject *resultobj;
2735 wxFuncX *arg1 = (wxFuncX *) 0 ;
2736 wxString *result;
2737 PyObject * obj0 = 0 ;
2738 char *kwnames[] = {
2739 (char *) "self", NULL
2740 };
2741
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_name_get",kwnames,&obj0)) goto fail;
2743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2744 if (SWIG_arg_fail(1)) SWIG_fail;
2745 result = (wxString *)& ((arg1)->name);
2746
2747 {
2748 #if wxUSE_UNICODE
2749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2750 #else
2751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2752 #endif
2753 }
2754 return resultobj;
2755 fail:
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_FuncX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxFuncX *arg1 = (wxFuncX *) 0 ;
2763 MEMBERID result;
2764 PyObject * obj0 = 0 ;
2765 char *kwnames[] = {
2766 (char *) "self", NULL
2767 };
2768
2769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_memid_get",kwnames,&obj0)) goto fail;
2770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2771 if (SWIG_arg_fail(1)) SWIG_fail;
2772 result = (MEMBERID) ((arg1)->memid);
2773
2774 {
2775 resultobj = SWIG_From_long((long)(result));
2776 }
2777 return resultobj;
2778 fail:
2779 return NULL;
2780 }
2781
2782
2783 static PyObject *_wrap_FuncX_hasOut_get(PyObject *, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 wxFuncX *arg1 = (wxFuncX *) 0 ;
2786 bool result;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "self", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_hasOut_get",kwnames,&obj0)) goto fail;
2793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2794 if (SWIG_arg_fail(1)) SWIG_fail;
2795 result = (bool) ((arg1)->hasOut);
2796
2797 {
2798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2799 }
2800 return resultobj;
2801 fail:
2802 return NULL;
2803 }
2804
2805
2806 static PyObject *_wrap_FuncX_retType_get(PyObject *, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 wxFuncX *arg1 = (wxFuncX *) 0 ;
2809 wxParamX *result;
2810 PyObject * obj0 = 0 ;
2811 char *kwnames[] = {
2812 (char *) "self", NULL
2813 };
2814
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_retType_get",kwnames,&obj0)) goto fail;
2816 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2817 if (SWIG_arg_fail(1)) SWIG_fail;
2818 result = (wxParamX *)& ((arg1)->retType);
2819
2820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2821 return resultobj;
2822 fail:
2823 return NULL;
2824 }
2825
2826
2827 static PyObject *_wrap_FuncX_params_get(PyObject *, PyObject *args, PyObject *kwargs) {
2828 PyObject *resultobj;
2829 wxFuncX *arg1 = (wxFuncX *) 0 ;
2830 wxParamXArray *result;
2831 PyObject * obj0 = 0 ;
2832 char *kwnames[] = {
2833 (char *) "self", NULL
2834 };
2835
2836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_params_get",kwnames,&obj0)) goto fail;
2837 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2838 if (SWIG_arg_fail(1)) SWIG_fail;
2839 result = (wxParamXArray *)& ((arg1)->params);
2840
2841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamXArray, 0);
2842 return resultobj;
2843 fail:
2844 return NULL;
2845 }
2846
2847
2848 static PyObject * FuncX_swigregister(PyObject *, PyObject *args) {
2849 PyObject *obj;
2850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2851 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX, obj);
2852 Py_INCREF(obj);
2853 return Py_BuildValue((char *)"");
2854 }
2855 static PyObject *_wrap_PropX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2856 PyObject *resultobj;
2857 wxPropX *arg1 = (wxPropX *) 0 ;
2858 wxString *result;
2859 PyObject * obj0 = 0 ;
2860 char *kwnames[] = {
2861 (char *) "self", NULL
2862 };
2863
2864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_name_get",kwnames,&obj0)) goto fail;
2865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2866 if (SWIG_arg_fail(1)) SWIG_fail;
2867 result = (wxString *)& ((arg1)->name);
2868
2869 {
2870 #if wxUSE_UNICODE
2871 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2872 #else
2873 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2874 #endif
2875 }
2876 return resultobj;
2877 fail:
2878 return NULL;
2879 }
2880
2881
2882 static PyObject *_wrap_PropX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
2883 PyObject *resultobj;
2884 wxPropX *arg1 = (wxPropX *) 0 ;
2885 MEMBERID result;
2886 PyObject * obj0 = 0 ;
2887 char *kwnames[] = {
2888 (char *) "self", NULL
2889 };
2890
2891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_memid_get",kwnames,&obj0)) goto fail;
2892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2893 if (SWIG_arg_fail(1)) SWIG_fail;
2894 result = (MEMBERID) ((arg1)->memid);
2895
2896 {
2897 resultobj = SWIG_From_long((long)(result));
2898 }
2899 return resultobj;
2900 fail:
2901 return NULL;
2902 }
2903
2904
2905 static PyObject *_wrap_PropX_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
2906 PyObject *resultobj;
2907 wxPropX *arg1 = (wxPropX *) 0 ;
2908 wxParamX *result;
2909 PyObject * obj0 = 0 ;
2910 char *kwnames[] = {
2911 (char *) "self", NULL
2912 };
2913
2914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_type_get",kwnames,&obj0)) goto fail;
2915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2916 if (SWIG_arg_fail(1)) SWIG_fail;
2917 result = (wxParamX *)& ((arg1)->type);
2918
2919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2920 return resultobj;
2921 fail:
2922 return NULL;
2923 }
2924
2925
2926 static PyObject *_wrap_PropX_arg_get(PyObject *, PyObject *args, PyObject *kwargs) {
2927 PyObject *resultobj;
2928 wxPropX *arg1 = (wxPropX *) 0 ;
2929 wxParamX *result;
2930 PyObject * obj0 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "self", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_arg_get",kwnames,&obj0)) goto fail;
2936 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2937 if (SWIG_arg_fail(1)) SWIG_fail;
2938 result = (wxParamX *)& ((arg1)->arg);
2939
2940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2941 return resultobj;
2942 fail:
2943 return NULL;
2944 }
2945
2946
2947 static PyObject *_wrap_PropX_putByRef_get(PyObject *, PyObject *args, PyObject *kwargs) {
2948 PyObject *resultobj;
2949 wxPropX *arg1 = (wxPropX *) 0 ;
2950 bool result;
2951 PyObject * obj0 = 0 ;
2952 char *kwnames[] = {
2953 (char *) "self", NULL
2954 };
2955
2956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_putByRef_get",kwnames,&obj0)) goto fail;
2957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2958 if (SWIG_arg_fail(1)) SWIG_fail;
2959 result = (bool) ((arg1)->putByRef);
2960
2961 {
2962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2963 }
2964 return resultobj;
2965 fail:
2966 return NULL;
2967 }
2968
2969
2970 static PyObject *_wrap_PropX_CanGet(PyObject *, PyObject *args, PyObject *kwargs) {
2971 PyObject *resultobj;
2972 wxPropX *arg1 = (wxPropX *) 0 ;
2973 bool result;
2974 PyObject * obj0 = 0 ;
2975 char *kwnames[] = {
2976 (char *) "self", NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanGet",kwnames,&obj0)) goto fail;
2980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2981 if (SWIG_arg_fail(1)) SWIG_fail;
2982 {
2983 PyThreadState* __tstate = wxPyBeginAllowThreads();
2984 result = (bool)((wxPropX const *)arg1)->CanGet();
2985
2986 wxPyEndAllowThreads(__tstate);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 }
2989 {
2990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2991 }
2992 return resultobj;
2993 fail:
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_PropX_CanSet(PyObject *, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxPropX *arg1 = (wxPropX *) 0 ;
3001 bool result;
3002 PyObject * obj0 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanSet",kwnames,&obj0)) goto fail;
3008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
3009 if (SWIG_arg_fail(1)) SWIG_fail;
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 result = (bool)((wxPropX const *)arg1)->CanSet();
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 {
3018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3019 }
3020 return resultobj;
3021 fail:
3022 return NULL;
3023 }
3024
3025
3026 static PyObject * PropX_swigregister(PyObject *, PyObject *args) {
3027 PyObject *obj;
3028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3029 SWIG_TypeClientData(SWIGTYPE_p_wxPropX, obj);
3030 Py_INCREF(obj);
3031 return Py_BuildValue((char *)"");
3032 }
3033 static PyObject *_wrap_ParamXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3034 PyObject *resultobj;
3035 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3036 bool result;
3037 PyObject * obj0 = 0 ;
3038 char *kwnames[] = {
3039 (char *) "self", NULL
3040 };
3041
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___nonzero__",kwnames,&obj0)) goto fail;
3043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3044 if (SWIG_arg_fail(1)) SWIG_fail;
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 result = (bool)wxParamXArray___nonzero__(arg1);
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 {
3053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3054 }
3055 return resultobj;
3056 fail:
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_ParamXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3064 int result;
3065 PyObject * obj0 = 0 ;
3066 char *kwnames[] = {
3067 (char *) "self", NULL
3068 };
3069
3070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___len__",kwnames,&obj0)) goto fail;
3071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3072 if (SWIG_arg_fail(1)) SWIG_fail;
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 result = (int)wxParamXArray___len__(arg1);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) SWIG_fail;
3079 }
3080 {
3081 resultobj = SWIG_From_int((int)(result));
3082 }
3083 return resultobj;
3084 fail:
3085 return NULL;
3086 }
3087
3088
3089 static PyObject *_wrap_ParamXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3090 PyObject *resultobj;
3091 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3092 int arg2 ;
3093 wxParamX *result;
3094 PyObject * obj0 = 0 ;
3095 PyObject * obj1 = 0 ;
3096 char *kwnames[] = {
3097 (char *) "self",(char *) "idx", NULL
3098 };
3099
3100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ParamXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3101 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3102 if (SWIG_arg_fail(1)) SWIG_fail;
3103 {
3104 arg2 = (int)(SWIG_As_int(obj1));
3105 if (SWIG_arg_fail(2)) SWIG_fail;
3106 }
3107 {
3108 PyThreadState* __tstate = wxPyBeginAllowThreads();
3109 {
3110 wxParamX const &_result_ref = wxParamXArray___getitem__(arg1,arg2);
3111 result = (wxParamX *) &_result_ref;
3112 }
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject * ParamXArray_swigregister(PyObject *, PyObject *args) {
3125 PyObject *obj;
3126 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3127 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray, obj);
3128 Py_INCREF(obj);
3129 return Py_BuildValue((char *)"");
3130 }
3131 static PyObject *_wrap_FuncXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3132 PyObject *resultobj;
3133 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3134 bool result;
3135 PyObject * obj0 = 0 ;
3136 char *kwnames[] = {
3137 (char *) "self", NULL
3138 };
3139
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___nonzero__",kwnames,&obj0)) goto fail;
3141 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3142 if (SWIG_arg_fail(1)) SWIG_fail;
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 result = (bool)wxFuncXArray___nonzero__(arg1);
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 {
3151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3152 }
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_FuncXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj;
3161 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3162 int result;
3163 PyObject * obj0 = 0 ;
3164 char *kwnames[] = {
3165 (char *) "self", NULL
3166 };
3167
3168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___len__",kwnames,&obj0)) goto fail;
3169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3170 if (SWIG_arg_fail(1)) SWIG_fail;
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 result = (int)wxFuncXArray___len__(arg1);
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 {
3179 resultobj = SWIG_From_int((int)(result));
3180 }
3181 return resultobj;
3182 fail:
3183 return NULL;
3184 }
3185
3186
3187 static PyObject *_wrap_FuncXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3188 PyObject *resultobj;
3189 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3190 int arg2 ;
3191 wxFuncX *result;
3192 PyObject * obj0 = 0 ;
3193 PyObject * obj1 = 0 ;
3194 char *kwnames[] = {
3195 (char *) "self",(char *) "idx", NULL
3196 };
3197
3198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FuncXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3200 if (SWIG_arg_fail(1)) SWIG_fail;
3201 {
3202 arg2 = (int)(SWIG_As_int(obj1));
3203 if (SWIG_arg_fail(2)) SWIG_fail;
3204 }
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 {
3208 wxFuncX const &_result_ref = wxFuncXArray___getitem__(arg1,arg2);
3209 result = (wxFuncX *) &_result_ref;
3210 }
3211
3212 wxPyEndAllowThreads(__tstate);
3213 if (PyErr_Occurred()) SWIG_fail;
3214 }
3215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3216 return resultobj;
3217 fail:
3218 return NULL;
3219 }
3220
3221
3222 static PyObject * FuncXArray_swigregister(PyObject *, PyObject *args) {
3223 PyObject *obj;
3224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3225 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray, obj);
3226 Py_INCREF(obj);
3227 return Py_BuildValue((char *)"");
3228 }
3229 static PyObject *_wrap_PropXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3230 PyObject *resultobj;
3231 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3232 bool result;
3233 PyObject * obj0 = 0 ;
3234 char *kwnames[] = {
3235 (char *) "self", NULL
3236 };
3237
3238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___nonzero__",kwnames,&obj0)) goto fail;
3239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3240 if (SWIG_arg_fail(1)) SWIG_fail;
3241 {
3242 PyThreadState* __tstate = wxPyBeginAllowThreads();
3243 result = (bool)wxPropXArray___nonzero__(arg1);
3244
3245 wxPyEndAllowThreads(__tstate);
3246 if (PyErr_Occurred()) SWIG_fail;
3247 }
3248 {
3249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3250 }
3251 return resultobj;
3252 fail:
3253 return NULL;
3254 }
3255
3256
3257 static PyObject *_wrap_PropXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3258 PyObject *resultobj;
3259 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3260 int result;
3261 PyObject * obj0 = 0 ;
3262 char *kwnames[] = {
3263 (char *) "self", NULL
3264 };
3265
3266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___len__",kwnames,&obj0)) goto fail;
3267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3268 if (SWIG_arg_fail(1)) SWIG_fail;
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 result = (int)wxPropXArray___len__(arg1);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) SWIG_fail;
3275 }
3276 {
3277 resultobj = SWIG_From_int((int)(result));
3278 }
3279 return resultobj;
3280 fail:
3281 return NULL;
3282 }
3283
3284
3285 static PyObject *_wrap_PropXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3286 PyObject *resultobj;
3287 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3288 int arg2 ;
3289 wxPropX *result;
3290 PyObject * obj0 = 0 ;
3291 PyObject * obj1 = 0 ;
3292 char *kwnames[] = {
3293 (char *) "self",(char *) "idx", NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PropXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3298 if (SWIG_arg_fail(1)) SWIG_fail;
3299 {
3300 arg2 = (int)(SWIG_As_int(obj1));
3301 if (SWIG_arg_fail(2)) SWIG_fail;
3302 }
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 {
3306 wxPropX const &_result_ref = wxPropXArray___getitem__(arg1,arg2);
3307 result = (wxPropX *) &_result_ref;
3308 }
3309
3310 wxPyEndAllowThreads(__tstate);
3311 if (PyErr_Occurred()) SWIG_fail;
3312 }
3313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3314 return resultobj;
3315 fail:
3316 return NULL;
3317 }
3318
3319
3320 static PyObject * PropXArray_swigregister(PyObject *, PyObject *args) {
3321 PyObject *obj;
3322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3323 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray, obj);
3324 Py_INCREF(obj);
3325 return Py_BuildValue((char *)"");
3326 }
3327 static PyObject *_wrap_new_ActiveXWindow(PyObject *, PyObject *args, PyObject *kwargs) {
3328 PyObject *resultobj;
3329 wxWindow *arg1 = (wxWindow *) 0 ;
3330 CLSID *arg2 = 0 ;
3331 int arg3 = (int) -1 ;
3332 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3333 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3334 wxSize const &arg5_defvalue = wxDefaultSize ;
3335 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3336 long arg6 = (long) 0 ;
3337 wxString const &arg7_defvalue = wxPyPanelNameStr ;
3338 wxString *arg7 = (wxString *) &arg7_defvalue ;
3339 wxActiveXWindow *result;
3340 wxPoint temp4 ;
3341 wxSize temp5 ;
3342 bool temp7 = false ;
3343 PyObject * obj0 = 0 ;
3344 PyObject * obj1 = 0 ;
3345 PyObject * obj2 = 0 ;
3346 PyObject * obj3 = 0 ;
3347 PyObject * obj4 = 0 ;
3348 PyObject * obj5 = 0 ;
3349 PyObject * obj6 = 0 ;
3350 char *kwnames[] = {
3351 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3352 };
3353
3354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3356 if (SWIG_arg_fail(1)) SWIG_fail;
3357 {
3358 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
3359 if (SWIG_arg_fail(2)) SWIG_fail;
3360 if (arg2 == NULL) {
3361 SWIG_null_ref("CLSID");
3362 }
3363 if (SWIG_arg_fail(2)) SWIG_fail;
3364 }
3365 if (obj2) {
3366 {
3367 arg3 = (int)(SWIG_As_int(obj2));
3368 if (SWIG_arg_fail(3)) SWIG_fail;
3369 }
3370 }
3371 if (obj3) {
3372 {
3373 arg4 = &temp4;
3374 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3375 }
3376 }
3377 if (obj4) {
3378 {
3379 arg5 = &temp5;
3380 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3381 }
3382 }
3383 if (obj5) {
3384 {
3385 arg6 = (long)(SWIG_As_long(obj5));
3386 if (SWIG_arg_fail(6)) SWIG_fail;
3387 }
3388 }
3389 if (obj6) {
3390 {
3391 arg7 = wxString_in_helper(obj6);
3392 if (arg7 == NULL) SWIG_fail;
3393 temp7 = true;
3394 }
3395 }
3396 {
3397 if (!wxPyCheckForApp()) SWIG_fail;
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActiveXWindow, 1);
3405 {
3406 if (temp7)
3407 delete arg7;
3408 }
3409 return resultobj;
3410 fail:
3411 {
3412 if (temp7)
3413 delete arg7;
3414 }
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_ActiveXWindow_GetCLSID(PyObject *, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3422 CLSID *result;
3423 PyObject * obj0 = 0 ;
3424 char *kwnames[] = {
3425 (char *) "self", NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetCLSID",kwnames,&obj0)) goto fail;
3429 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3430 if (SWIG_arg_fail(1)) SWIG_fail;
3431 {
3432 PyThreadState* __tstate = wxPyBeginAllowThreads();
3433 {
3434 CLSID const &_result_ref = ((wxActiveXWindow const *)arg1)->GetCLSID();
3435 result = (CLSID *) &_result_ref;
3436 }
3437
3438 wxPyEndAllowThreads(__tstate);
3439 if (PyErr_Occurred()) SWIG_fail;
3440 }
3441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 0);
3442 return resultobj;
3443 fail:
3444 return NULL;
3445 }
3446
3447
3448 static PyObject *_wrap_ActiveXWindow_GetAXEventCount(PyObject *, PyObject *args, PyObject *kwargs) {
3449 PyObject *resultobj;
3450 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3451 int result;
3452 PyObject * obj0 = 0 ;
3453 char *kwnames[] = {
3454 (char *) "self", NULL
3455 };
3456
3457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames,&obj0)) goto fail;
3458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3459 if (SWIG_arg_fail(1)) SWIG_fail;
3460 {
3461 PyThreadState* __tstate = wxPyBeginAllowThreads();
3462 result = (int)((wxActiveXWindow const *)arg1)->GetAXEventCount();
3463
3464 wxPyEndAllowThreads(__tstate);
3465 if (PyErr_Occurred()) SWIG_fail;
3466 }
3467 {
3468 resultobj = SWIG_From_int((int)(result));
3469 }
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_ActiveXWindow_GetAXEventDesc(PyObject *, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3479 int arg2 ;
3480 wxFuncX *result;
3481 PyObject * obj0 = 0 ;
3482 PyObject * obj1 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self",(char *) "idx", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames,&obj0,&obj1)) goto fail;
3488 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3489 if (SWIG_arg_fail(1)) SWIG_fail;
3490 {
3491 arg2 = (int)(SWIG_As_int(obj1));
3492 if (SWIG_arg_fail(2)) SWIG_fail;
3493 }
3494 {
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 {
3497 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXEventDesc(arg2);
3498 result = (wxFuncX *) &_result_ref;
3499 }
3500
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3505 return resultobj;
3506 fail:
3507 return NULL;
3508 }
3509
3510
3511 static PyObject *_wrap_ActiveXWindow_GetAXPropCount(PyObject *, PyObject *args, PyObject *kwargs) {
3512 PyObject *resultobj;
3513 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3514 int result;
3515 PyObject * obj0 = 0 ;
3516 char *kwnames[] = {
3517 (char *) "self", NULL
3518 };
3519
3520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames,&obj0)) goto fail;
3521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3522 if (SWIG_arg_fail(1)) SWIG_fail;
3523 {
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
3525 result = (int)((wxActiveXWindow const *)arg1)->GetAXPropCount();
3526
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 {
3531 resultobj = SWIG_From_int((int)(result));
3532 }
3533 return resultobj;
3534 fail:
3535 return NULL;
3536 }
3537
3538
3539 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject *, PyObject *args) {
3540 PyObject *resultobj;
3541 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3542 int arg2 ;
3543 wxPropX *result;
3544 PyObject * obj0 = 0 ;
3545 PyObject * obj1 = 0 ;
3546
3547 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
3548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3549 if (SWIG_arg_fail(1)) SWIG_fail;
3550 {
3551 arg2 = (int)(SWIG_As_int(obj1));
3552 if (SWIG_arg_fail(2)) SWIG_fail;
3553 }
3554 {
3555 PyThreadState* __tstate = wxPyBeginAllowThreads();
3556 {
3557 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc(arg2);
3558 result = (wxPropX *) &_result_ref;
3559 }
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3565 return resultobj;
3566 fail:
3567 return NULL;
3568 }
3569
3570
3571 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject *, PyObject *args) {
3572 PyObject *resultobj;
3573 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3574 wxString *arg2 = 0 ;
3575 wxPropX *result;
3576 bool temp2 = false ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579
3580 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
3581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3582 if (SWIG_arg_fail(1)) SWIG_fail;
3583 {
3584 arg2 = wxString_in_helper(obj1);
3585 if (arg2 == NULL) SWIG_fail;
3586 temp2 = true;
3587 }
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 {
3591 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc((wxString const &)*arg2);
3592 result = (wxPropX *) &_result_ref;
3593 }
3594
3595 wxPyEndAllowThreads(__tstate);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3599 {
3600 if (temp2)
3601 delete arg2;
3602 }
3603 return resultobj;
3604 fail:
3605 {
3606 if (temp2)
3607 delete arg2;
3608 }
3609 return NULL;
3610 }
3611
3612
3613 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc(PyObject *self, PyObject *args) {
3614 int argc;
3615 PyObject *argv[3];
3616 int ii;
3617
3618 argc = PyObject_Length(args);
3619 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3620 argv[ii] = PyTuple_GetItem(args,ii);
3621 }
3622 if (argc == 2) {
3623 int _v;
3624 {
3625 void *ptr;
3626 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3627 _v = 0;
3628 PyErr_Clear();
3629 } else {
3630 _v = 1;
3631 }
3632 }
3633 if (_v) {
3634 {
3635 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
3636 }
3637 if (_v) {
3638 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self,args);
3639 }
3640 }
3641 }
3642 if (argc == 2) {
3643 int _v;
3644 {
3645 void *ptr;
3646 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3647 _v = 0;
3648 PyErr_Clear();
3649 } else {
3650 _v = 1;
3651 }
3652 }
3653 if (_v) {
3654 _v = SWIG_Check_int(argv[1]);
3655 if (_v) {
3656 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self,args);
3657 }
3658 }
3659 }
3660
3661 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
3662 return NULL;
3663 }
3664
3665
3666 static PyObject *_wrap_ActiveXWindow_GetAXMethodCount(PyObject *, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj;
3668 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3669 int result;
3670 PyObject * obj0 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames,&obj0)) goto fail;
3676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3677 if (SWIG_arg_fail(1)) SWIG_fail;
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 result = (int)((wxActiveXWindow const *)arg1)->GetAXMethodCount();
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 {
3686 resultobj = SWIG_From_int((int)(result));
3687 }
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject *, PyObject *args) {
3695 PyObject *resultobj;
3696 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3697 int arg2 ;
3698 wxFuncX *result;
3699 PyObject * obj0 = 0 ;
3700 PyObject * obj1 = 0 ;
3701
3702 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
3703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3704 if (SWIG_arg_fail(1)) SWIG_fail;
3705 {
3706 arg2 = (int)(SWIG_As_int(obj1));
3707 if (SWIG_arg_fail(2)) SWIG_fail;
3708 }
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 {
3712 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc(arg2);
3713 result = (wxFuncX *) &_result_ref;
3714 }
3715
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject *, PyObject *args) {
3727 PyObject *resultobj;
3728 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3729 wxString *arg2 = 0 ;
3730 wxFuncX *result;
3731 bool temp2 = false ;
3732 PyObject * obj0 = 0 ;
3733 PyObject * obj1 = 0 ;
3734
3735 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
3736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3737 if (SWIG_arg_fail(1)) SWIG_fail;
3738 {
3739 arg2 = wxString_in_helper(obj1);
3740 if (arg2 == NULL) SWIG_fail;
3741 temp2 = true;
3742 }
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 {
3746 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc((wxString const &)*arg2);
3747 result = (wxFuncX *) &_result_ref;
3748 }
3749
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return resultobj;
3759 fail:
3760 {
3761 if (temp2)
3762 delete arg2;
3763 }
3764 return NULL;
3765 }
3766
3767
3768 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc(PyObject *self, PyObject *args) {
3769 int argc;
3770 PyObject *argv[3];
3771 int ii;
3772
3773 argc = PyObject_Length(args);
3774 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3775 argv[ii] = PyTuple_GetItem(args,ii);
3776 }
3777 if (argc == 2) {
3778 int _v;
3779 {
3780 void *ptr;
3781 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3782 _v = 0;
3783 PyErr_Clear();
3784 } else {
3785 _v = 1;
3786 }
3787 }
3788 if (_v) {
3789 {
3790 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
3791 }
3792 if (_v) {
3793 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self,args);
3794 }
3795 }
3796 }
3797 if (argc == 2) {
3798 int _v;
3799 {
3800 void *ptr;
3801 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3802 _v = 0;
3803 PyErr_Clear();
3804 } else {
3805 _v = 1;
3806 }
3807 }
3808 if (_v) {
3809 _v = SWIG_Check_int(argv[1]);
3810 if (_v) {
3811 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self,args);
3812 }
3813 }
3814 }
3815
3816 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
3817 return NULL;
3818 }
3819
3820
3821 static PyObject *_wrap_ActiveXWindow_GetAXEvents(PyObject *, PyObject *args, PyObject *kwargs) {
3822 PyObject *resultobj;
3823 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3824 wxFuncXArray *result;
3825 PyObject * obj0 = 0 ;
3826 char *kwnames[] = {
3827 (char *) "self", NULL
3828 };
3829
3830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEvents",kwnames,&obj0)) goto fail;
3831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3832 if (SWIG_arg_fail(1)) SWIG_fail;
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
3835 {
3836 wxFuncXArray const &_result_ref = (arg1)->GetAXEvents();
3837 result = (wxFuncXArray *) &_result_ref;
3838 }
3839
3840 wxPyEndAllowThreads(__tstate);
3841 if (PyErr_Occurred()) SWIG_fail;
3842 }
3843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
3844 return resultobj;
3845 fail:
3846 return NULL;
3847 }
3848
3849
3850 static PyObject *_wrap_ActiveXWindow_GetAXMethods(PyObject *, PyObject *args, PyObject *kwargs) {
3851 PyObject *resultobj;
3852 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3853 wxFuncXArray *result;
3854 PyObject * obj0 = 0 ;
3855 char *kwnames[] = {
3856 (char *) "self", NULL
3857 };
3858
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethods",kwnames,&obj0)) goto fail;
3860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3861 if (SWIG_arg_fail(1)) SWIG_fail;
3862 {
3863 PyThreadState* __tstate = wxPyBeginAllowThreads();
3864 {
3865 wxFuncXArray const &_result_ref = (arg1)->GetAXMethods();
3866 result = (wxFuncXArray *) &_result_ref;
3867 }
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_ActiveXWindow_GetAXProperties(PyObject *, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3882 wxPropXArray *result;
3883 PyObject * obj0 = 0 ;
3884 char *kwnames[] = {
3885 (char *) "self", NULL
3886 };
3887
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXProperties",kwnames,&obj0)) goto fail;
3889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3890 if (SWIG_arg_fail(1)) SWIG_fail;
3891 {
3892 PyThreadState* __tstate = wxPyBeginAllowThreads();
3893 {
3894 wxPropXArray const &_result_ref = (arg1)->GetAXProperties();
3895 result = (wxPropXArray *) &_result_ref;
3896 }
3897
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropXArray, 0);
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 static PyObject *_wrap_ActiveXWindow_SetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj;
3910 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3911 wxString *arg2 = 0 ;
3912 PyObject *arg3 = (PyObject *) 0 ;
3913 bool temp2 = false ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 PyObject * obj2 = 0 ;
3917 char *kwnames[] = {
3918 (char *) "self",(char *) "name",(char *) "value", NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames,&obj0,&obj1,&obj2)) goto fail;
3922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3923 if (SWIG_arg_fail(1)) SWIG_fail;
3924 {
3925 arg2 = wxString_in_helper(obj1);
3926 if (arg2 == NULL) SWIG_fail;
3927 temp2 = true;
3928 }
3929 arg3 = obj2;
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 (arg1)->SetAXProp((wxString const &)*arg2,arg3);
3933
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 Py_INCREF(Py_None); resultobj = Py_None;
3938 {
3939 if (temp2)
3940 delete arg2;
3941 }
3942 return resultobj;
3943 fail:
3944 {
3945 if (temp2)
3946 delete arg2;
3947 }
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_ActiveXWindow_GetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3955 wxString *arg2 = 0 ;
3956 PyObject *result;
3957 bool temp2 = false ;
3958 PyObject * obj0 = 0 ;
3959 PyObject * obj1 = 0 ;
3960 char *kwnames[] = {
3961 (char *) "self",(char *) "name", NULL
3962 };
3963
3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXProp",kwnames,&obj0,&obj1)) goto fail;
3965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3966 if (SWIG_arg_fail(1)) SWIG_fail;
3967 {
3968 arg2 = wxString_in_helper(obj1);
3969 if (arg2 == NULL) SWIG_fail;
3970 temp2 = true;
3971 }
3972 {
3973 PyThreadState* __tstate = wxPyBeginAllowThreads();
3974 result = (PyObject *)(arg1)->GetAXProp((wxString const &)*arg2);
3975
3976 wxPyEndAllowThreads(__tstate);
3977 if (PyErr_Occurred()) SWIG_fail;
3978 }
3979 resultobj = result;
3980 {
3981 if (temp2)
3982 delete arg2;
3983 }
3984 return resultobj;
3985 fail:
3986 {
3987 if (temp2)
3988 delete arg2;
3989 }
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_ActiveXWindow__CallAXMethod(PyObject *, PyObject *args) {
3995 PyObject *resultobj;
3996 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3997 wxString *arg2 = 0 ;
3998 PyObject *arg3 = (PyObject *) 0 ;
3999 PyObject *result;
4000 bool temp2 = false ;
4001 PyObject * obj0 = 0 ;
4002 PyObject * obj1 = 0 ;
4003 PyObject * obj2 = 0 ;
4004
4005 if(!PyArg_ParseTuple(args,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0,&obj1,&obj2)) goto fail;
4006 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
4007 if (SWIG_arg_fail(1)) SWIG_fail;
4008 {
4009 arg2 = wxString_in_helper(obj1);
4010 if (arg2 == NULL) SWIG_fail;
4011 temp2 = true;
4012 }
4013 arg3 = obj2;
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = (PyObject *)(arg1)->_CallAXMethod((wxString const &)*arg2,arg3);
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = result;
4022 {
4023 if (temp2)
4024 delete arg2;
4025 }
4026 return resultobj;
4027 fail:
4028 {
4029 if (temp2)
4030 delete arg2;
4031 }
4032 return NULL;
4033 }
4034
4035
4036 static PyObject * ActiveXWindow_swigregister(PyObject *, PyObject *args) {
4037 PyObject *obj;
4038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4039 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow, obj);
4040 Py_INCREF(obj);
4041 return Py_BuildValue((char *)"");
4042 }
4043 static PyObject *_wrap_RegisterActiveXEvent(PyObject *, PyObject *args, PyObject *kwargs) {
4044 PyObject *resultobj;
4045 wxString *arg1 = 0 ;
4046 wxEventType result;
4047 bool temp1 = false ;
4048 PyObject * obj0 = 0 ;
4049 char *kwnames[] = {
4050 (char *) "eventName", NULL
4051 };
4052
4053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterActiveXEvent",kwnames,&obj0)) goto fail;
4054 {
4055 arg1 = wxString_in_helper(obj0);
4056 if (arg1 == NULL) SWIG_fail;
4057 temp1 = true;
4058 }
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (wxEventType)RegisterActiveXEvent((wxString const &)*arg1);
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 {
4067 resultobj = SWIG_From_int((int)(result));
4068 }
4069 {
4070 if (temp1)
4071 delete arg1;
4072 }
4073 return resultobj;
4074 fail:
4075 {
4076 if (temp1)
4077 delete arg1;
4078 }
4079 return NULL;
4080 }
4081
4082
4083 static PyObject *_wrap_ActiveXEvent_EventName(PyObject *, PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj;
4085 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4086 wxString result;
4087 PyObject * obj0 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "self", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXEvent_EventName",kwnames,&obj0)) goto fail;
4093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4094 if (SWIG_arg_fail(1)) SWIG_fail;
4095 {
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 result = (arg1)->EventName();
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 {
4103 #if wxUSE_UNICODE
4104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4105 #else
4106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4107 #endif
4108 }
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_ActiveXEvent__preCallInit(PyObject *, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4118 PyObject *arg2 = (PyObject *) 0 ;
4119 PyObject * obj0 = 0 ;
4120 PyObject * obj1 = 0 ;
4121 char *kwnames[] = {
4122 (char *) "self",(char *) "pyself", NULL
4123 };
4124
4125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__preCallInit",kwnames,&obj0,&obj1)) goto fail;
4126 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4127 if (SWIG_arg_fail(1)) SWIG_fail;
4128 arg2 = obj1;
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 wxActiveXEvent__preCallInit(arg1,arg2);
4132
4133 wxPyEndAllowThreads(__tstate);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
4136 Py_INCREF(Py_None); resultobj = Py_None;
4137 return resultobj;
4138 fail:
4139 return NULL;
4140 }
4141
4142
4143 static PyObject *_wrap_ActiveXEvent__postCallCleanup(PyObject *, PyObject *args, PyObject *kwargs) {
4144 PyObject *resultobj;
4145 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4146 PyObject *arg2 = (PyObject *) 0 ;
4147 PyObject * obj0 = 0 ;
4148 PyObject * obj1 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self",(char *) "pyself", NULL
4151 };
4152
4153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames,&obj0,&obj1)) goto fail;
4154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4155 if (SWIG_arg_fail(1)) SWIG_fail;
4156 arg2 = obj1;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 wxActiveXEvent__postCallCleanup(arg1,arg2);
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 Py_INCREF(Py_None); resultobj = Py_None;
4165 return resultobj;
4166 fail:
4167 return NULL;
4168 }
4169
4170
4171 static PyObject * ActiveXEvent_swigregister(PyObject *, PyObject *args) {
4172 PyObject *obj;
4173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4174 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent, obj);
4175 Py_INCREF(obj);
4176 return Py_BuildValue((char *)"");
4177 }
4178 static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj;
4180 wxWindow *arg1 = (wxWindow *) 0 ;
4181 CLSID *arg2 = 0 ;
4182 int arg3 = (int) -1 ;
4183 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4184 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4185 wxSize const &arg5_defvalue = wxDefaultSize ;
4186 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4187 long arg6 = (long) 0 ;
4188 wxString const &arg7_defvalue = wxPyPanelNameStr ;
4189 wxString *arg7 = (wxString *) &arg7_defvalue ;
4190 wxIEHtmlWindowBase *result;
4191 wxPoint temp4 ;
4192 wxSize temp5 ;
4193 bool temp7 = false ;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 PyObject * obj2 = 0 ;
4197 PyObject * obj3 = 0 ;
4198 PyObject * obj4 = 0 ;
4199 PyObject * obj5 = 0 ;
4200 PyObject * obj6 = 0 ;
4201 char *kwnames[] = {
4202 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4203 };
4204
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4206 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4207 if (SWIG_arg_fail(1)) SWIG_fail;
4208 {
4209 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
4210 if (SWIG_arg_fail(2)) SWIG_fail;
4211 if (arg2 == NULL) {
4212 SWIG_null_ref("CLSID");
4213 }
4214 if (SWIG_arg_fail(2)) SWIG_fail;
4215 }
4216 if (obj2) {
4217 {
4218 arg3 = (int)(SWIG_As_int(obj2));
4219 if (SWIG_arg_fail(3)) SWIG_fail;
4220 }
4221 }
4222 if (obj3) {
4223 {
4224 arg4 = &temp4;
4225 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4226 }
4227 }
4228 if (obj4) {
4229 {
4230 arg5 = &temp5;
4231 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4232 }
4233 }
4234 if (obj5) {
4235 {
4236 arg6 = (long)(SWIG_As_long(obj5));
4237 if (SWIG_arg_fail(6)) SWIG_fail;
4238 }
4239 }
4240 if (obj6) {
4241 {
4242 arg7 = wxString_in_helper(obj6);
4243 if (arg7 == NULL) SWIG_fail;
4244 temp7 = true;
4245 }
4246 }
4247 {
4248 if (!wxPyCheckForApp()) SWIG_fail;
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIEHtmlWindowBase, 1);
4256 {
4257 if (temp7)
4258 delete arg7;
4259 }
4260 return resultobj;
4261 fail:
4262 {
4263 if (temp7)
4264 delete arg7;
4265 }
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_IEHtmlWindowBase_SetCharset(PyObject *, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4273 wxString *arg2 = 0 ;
4274 bool temp2 = false ;
4275 PyObject * obj0 = 0 ;
4276 PyObject * obj1 = 0 ;
4277 char *kwnames[] = {
4278 (char *) "self",(char *) "charset", NULL
4279 };
4280
4281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames,&obj0,&obj1)) goto fail;
4282 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4283 if (SWIG_arg_fail(1)) SWIG_fail;
4284 {
4285 arg2 = wxString_in_helper(obj1);
4286 if (arg2 == NULL) SWIG_fail;
4287 temp2 = true;
4288 }
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 (arg1)->SetCharset((wxString const &)*arg2);
4292
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 Py_INCREF(Py_None); resultobj = Py_None;
4297 {
4298 if (temp2)
4299 delete arg2;
4300 }
4301 return resultobj;
4302 fail:
4303 {
4304 if (temp2)
4305 delete arg2;
4306 }
4307 return NULL;
4308 }
4309
4310
4311 static PyObject *_wrap_IEHtmlWindowBase_LoadString(PyObject *, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4314 wxString *arg2 = 0 ;
4315 bool result;
4316 bool temp2 = false ;
4317 PyObject * obj0 = 0 ;
4318 PyObject * obj1 = 0 ;
4319 char *kwnames[] = {
4320 (char *) "self",(char *) "html", NULL
4321 };
4322
4323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames,&obj0,&obj1)) goto fail;
4324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4325 if (SWIG_arg_fail(1)) SWIG_fail;
4326 {
4327 arg2 = wxString_in_helper(obj1);
4328 if (arg2 == NULL) SWIG_fail;
4329 temp2 = true;
4330 }
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (bool)(arg1)->LoadString((wxString const &)*arg2);
4334
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 {
4339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4340 }
4341 {
4342 if (temp2)
4343 delete arg2;
4344 }
4345 return resultobj;
4346 fail:
4347 {
4348 if (temp2)
4349 delete arg2;
4350 }
4351 return NULL;
4352 }
4353
4354
4355 static PyObject *_wrap_IEHtmlWindowBase_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj;
4357 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4358 wxInputStream *arg2 = (wxInputStream *) 0 ;
4359 bool result;
4360 wxPyInputStream *temp2 ;
4361 bool created2 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char *kwnames[] = {
4365 (char *) "self",(char *) "is", NULL
4366 };
4367
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames,&obj0,&obj1)) goto fail;
4369 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4370 if (SWIG_arg_fail(1)) SWIG_fail;
4371 {
4372 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
4373 arg2 = temp2->m_wxis;
4374 created2 = false;
4375 } else {
4376 PyErr_Clear(); // clear the failure of the wxPyConvert above
4377 arg2 = wxPyCBInputStream_create(obj1, false);
4378 if (arg2 == NULL) {
4379 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
4380 SWIG_fail;
4381 }
4382 created2 = true;
4383 }
4384 }
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 result = (bool)(arg1)->LoadStream(arg2);
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 {
4393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4394 }
4395 {
4396 if (created2)
4397 delete arg2;
4398 }
4399 return resultobj;
4400 fail:
4401 {
4402 if (created2)
4403 delete arg2;
4404 }
4405 return NULL;
4406 }
4407
4408
4409 static PyObject *_wrap_IEHtmlWindowBase_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj;
4411 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4412 bool arg2 ;
4413 wxString result;
4414 PyObject * obj0 = 0 ;
4415 PyObject * obj1 = 0 ;
4416 char *kwnames[] = {
4417 (char *) "self",(char *) "asHTML", NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames,&obj0,&obj1)) goto fail;
4421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4422 if (SWIG_arg_fail(1)) SWIG_fail;
4423 {
4424 arg2 = (bool)(SWIG_As_bool(obj1));
4425 if (SWIG_arg_fail(2)) SWIG_fail;
4426 }
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 result = (arg1)->GetStringSelection(arg2);
4430
4431 wxPyEndAllowThreads(__tstate);
4432 if (PyErr_Occurred()) SWIG_fail;
4433 }
4434 {
4435 #if wxUSE_UNICODE
4436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4437 #else
4438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4439 #endif
4440 }
4441 return resultobj;
4442 fail:
4443 return NULL;
4444 }
4445
4446
4447 static PyObject *_wrap_IEHtmlWindowBase_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
4448 PyObject *resultobj;
4449 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4450 bool arg2 ;
4451 wxString result;
4452 PyObject * obj0 = 0 ;
4453 PyObject * obj1 = 0 ;
4454 char *kwnames[] = {
4455 (char *) "self",(char *) "asHTML", NULL
4456 };
4457
4458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetText",kwnames,&obj0,&obj1)) goto fail;
4459 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4460 if (SWIG_arg_fail(1)) SWIG_fail;
4461 {
4462 arg2 = (bool)(SWIG_As_bool(obj1));
4463 if (SWIG_arg_fail(2)) SWIG_fail;
4464 }
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
4467 result = (arg1)->GetText(arg2);
4468
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 {
4473 #if wxUSE_UNICODE
4474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4475 #else
4476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4477 #endif
4478 }
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 static PyObject * IEHtmlWindowBase_swigregister(PyObject *, PyObject *args) {
4486 PyObject *obj;
4487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4488 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase, obj);
4489 Py_INCREF(obj);
4490 return Py_BuildValue((char *)"");
4491 }
4492 static PyMethodDef SwigMethods[] = {
4493 { (char *)"new_CLSID", (PyCFunction) _wrap_new_CLSID, METH_VARARGS | METH_KEYWORDS, NULL},
4494 { (char *)"delete_CLSID", (PyCFunction) _wrap_delete_CLSID, METH_VARARGS | METH_KEYWORDS, NULL},
4495 { (char *)"CLSID_GetCLSIDString", (PyCFunction) _wrap_CLSID_GetCLSIDString, METH_VARARGS | METH_KEYWORDS, NULL},
4496 { (char *)"CLSID_GetProgIDString", (PyCFunction) _wrap_CLSID_GetProgIDString, METH_VARARGS | METH_KEYWORDS, NULL},
4497 { (char *)"CLSID_swigregister", CLSID_swigregister, METH_VARARGS, NULL},
4498 { (char *)"ParamX_flags_get", (PyCFunction) _wrap_ParamX_flags_get, METH_VARARGS | METH_KEYWORDS, NULL},
4499 { (char *)"ParamX_isPtr_get", (PyCFunction) _wrap_ParamX_isPtr_get, METH_VARARGS | METH_KEYWORDS, NULL},
4500 { (char *)"ParamX_isSafeArray_get", (PyCFunction) _wrap_ParamX_isSafeArray_get, METH_VARARGS | METH_KEYWORDS, NULL},
4501 { (char *)"ParamX_isOptional_get", (PyCFunction) _wrap_ParamX_isOptional_get, METH_VARARGS | METH_KEYWORDS, NULL},
4502 { (char *)"ParamX_vt_get", (PyCFunction) _wrap_ParamX_vt_get, METH_VARARGS | METH_KEYWORDS, NULL},
4503 { (char *)"ParamX_name_get", (PyCFunction) _wrap_ParamX_name_get, METH_VARARGS | METH_KEYWORDS, NULL},
4504 { (char *)"ParamX_vt_type_get", (PyCFunction) _wrap_ParamX_vt_type_get, METH_VARARGS | METH_KEYWORDS, NULL},
4505 { (char *)"ParamX_IsIn", (PyCFunction) _wrap_ParamX_IsIn, METH_VARARGS | METH_KEYWORDS, NULL},
4506 { (char *)"ParamX_IsOut", (PyCFunction) _wrap_ParamX_IsOut, METH_VARARGS | METH_KEYWORDS, NULL},
4507 { (char *)"ParamX_IsRetVal", (PyCFunction) _wrap_ParamX_IsRetVal, METH_VARARGS | METH_KEYWORDS, NULL},
4508 { (char *)"ParamX_swigregister", ParamX_swigregister, METH_VARARGS, NULL},
4509 { (char *)"FuncX_name_get", (PyCFunction) _wrap_FuncX_name_get, METH_VARARGS | METH_KEYWORDS, NULL},
4510 { (char *)"FuncX_memid_get", (PyCFunction) _wrap_FuncX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL},
4511 { (char *)"FuncX_hasOut_get", (PyCFunction) _wrap_FuncX_hasOut_get, METH_VARARGS | METH_KEYWORDS, NULL},
4512 { (char *)"FuncX_retType_get", (PyCFunction) _wrap_FuncX_retType_get, METH_VARARGS | METH_KEYWORDS, NULL},
4513 { (char *)"FuncX_params_get", (PyCFunction) _wrap_FuncX_params_get, METH_VARARGS | METH_KEYWORDS, NULL},
4514 { (char *)"FuncX_swigregister", FuncX_swigregister, METH_VARARGS, NULL},
4515 { (char *)"PropX_name_get", (PyCFunction) _wrap_PropX_name_get, METH_VARARGS | METH_KEYWORDS, NULL},
4516 { (char *)"PropX_memid_get", (PyCFunction) _wrap_PropX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL},
4517 { (char *)"PropX_type_get", (PyCFunction) _wrap_PropX_type_get, METH_VARARGS | METH_KEYWORDS, NULL},
4518 { (char *)"PropX_arg_get", (PyCFunction) _wrap_PropX_arg_get, METH_VARARGS | METH_KEYWORDS, NULL},
4519 { (char *)"PropX_putByRef_get", (PyCFunction) _wrap_PropX_putByRef_get, METH_VARARGS | METH_KEYWORDS, NULL},
4520 { (char *)"PropX_CanGet", (PyCFunction) _wrap_PropX_CanGet, METH_VARARGS | METH_KEYWORDS, NULL},
4521 { (char *)"PropX_CanSet", (PyCFunction) _wrap_PropX_CanSet, METH_VARARGS | METH_KEYWORDS, NULL},
4522 { (char *)"PropX_swigregister", PropX_swigregister, METH_VARARGS, NULL},
4523 { (char *)"ParamXArray___nonzero__", (PyCFunction) _wrap_ParamXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
4524 { (char *)"ParamXArray___len__", (PyCFunction) _wrap_ParamXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL},
4525 { (char *)"ParamXArray___getitem__", (PyCFunction) _wrap_ParamXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL},
4526 { (char *)"ParamXArray_swigregister", ParamXArray_swigregister, METH_VARARGS, NULL},
4527 { (char *)"FuncXArray___nonzero__", (PyCFunction) _wrap_FuncXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
4528 { (char *)"FuncXArray___len__", (PyCFunction) _wrap_FuncXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL},
4529 { (char *)"FuncXArray___getitem__", (PyCFunction) _wrap_FuncXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL},
4530 { (char *)"FuncXArray_swigregister", FuncXArray_swigregister, METH_VARARGS, NULL},
4531 { (char *)"PropXArray___nonzero__", (PyCFunction) _wrap_PropXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
4532 { (char *)"PropXArray___len__", (PyCFunction) _wrap_PropXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL},
4533 { (char *)"PropXArray___getitem__", (PyCFunction) _wrap_PropXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL},
4534 { (char *)"PropXArray_swigregister", PropXArray_swigregister, METH_VARARGS, NULL},
4535 { (char *)"new_ActiveXWindow", (PyCFunction) _wrap_new_ActiveXWindow, METH_VARARGS | METH_KEYWORDS, NULL},
4536 { (char *)"ActiveXWindow_GetCLSID", (PyCFunction) _wrap_ActiveXWindow_GetCLSID, METH_VARARGS | METH_KEYWORDS, NULL},
4537 { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction) _wrap_ActiveXWindow_GetAXEventCount, METH_VARARGS | METH_KEYWORDS, NULL},
4538 { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction) _wrap_ActiveXWindow_GetAXEventDesc, METH_VARARGS | METH_KEYWORDS, NULL},
4539 { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction) _wrap_ActiveXWindow_GetAXPropCount, METH_VARARGS | METH_KEYWORDS, NULL},
4540 { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc, METH_VARARGS, NULL},
4541 { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction) _wrap_ActiveXWindow_GetAXMethodCount, METH_VARARGS | METH_KEYWORDS, NULL},
4542 { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc, METH_VARARGS, NULL},
4543 { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction) _wrap_ActiveXWindow_GetAXEvents, METH_VARARGS | METH_KEYWORDS, NULL},
4544 { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction) _wrap_ActiveXWindow_GetAXMethods, METH_VARARGS | METH_KEYWORDS, NULL},
4545 { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction) _wrap_ActiveXWindow_GetAXProperties, METH_VARARGS | METH_KEYWORDS, NULL},
4546 { (char *)"ActiveXWindow_SetAXProp", (PyCFunction) _wrap_ActiveXWindow_SetAXProp, METH_VARARGS | METH_KEYWORDS, NULL},
4547 { (char *)"ActiveXWindow_GetAXProp", (PyCFunction) _wrap_ActiveXWindow_GetAXProp, METH_VARARGS | METH_KEYWORDS, NULL},
4548 { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod, METH_VARARGS, NULL},
4549 { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister, METH_VARARGS, NULL},
4550 { (char *)"RegisterActiveXEvent", (PyCFunction) _wrap_RegisterActiveXEvent, METH_VARARGS | METH_KEYWORDS, NULL},
4551 { (char *)"ActiveXEvent_EventName", (PyCFunction) _wrap_ActiveXEvent_EventName, METH_VARARGS | METH_KEYWORDS, NULL},
4552 { (char *)"ActiveXEvent__preCallInit", (PyCFunction) _wrap_ActiveXEvent__preCallInit, METH_VARARGS | METH_KEYWORDS, NULL},
4553 { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction) _wrap_ActiveXEvent__postCallCleanup, METH_VARARGS | METH_KEYWORDS, NULL},
4554 { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister, METH_VARARGS, NULL},
4555 { (char *)"new_IEHtmlWindowBase", (PyCFunction) _wrap_new_IEHtmlWindowBase, METH_VARARGS | METH_KEYWORDS, NULL},
4556 { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction) _wrap_IEHtmlWindowBase_SetCharset, METH_VARARGS | METH_KEYWORDS, NULL},
4557 { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction) _wrap_IEHtmlWindowBase_LoadString, METH_VARARGS | METH_KEYWORDS, NULL},
4558 { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction) _wrap_IEHtmlWindowBase_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
4559 { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction) _wrap_IEHtmlWindowBase_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
4560 { (char *)"IEHtmlWindowBase_GetText", (PyCFunction) _wrap_IEHtmlWindowBase_GetText, METH_VARARGS | METH_KEYWORDS, NULL},
4561 { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister, METH_VARARGS, NULL},
4562 { NULL, NULL, 0, NULL }
4563 };
4564
4565
4566 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4567
4568 static void *_p_wxControlTo_p_wxWindow(void *x) {
4569 return (void *)((wxWindow *) ((wxControl *) x));
4570 }
4571 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
4572 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
4573 }
4574 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x) {
4575 return (void *)((wxWindow *) ((wxActiveXWindow *) x));
4576 }
4577 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
4578 return (void *)((wxWindow *) ((wxMenuBar *) x));
4579 }
4580 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x) {
4581 return (void *)((wxWindow *) (wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4582 }
4583 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x) {
4584 return (void *)((wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4585 }
4586 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
4587 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
4588 }
4589 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
4590 return (void *)((wxEvent *) ((wxMenuEvent *) x));
4591 }
4592 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
4593 return (void *)((wxEvent *) ((wxCloseEvent *) x));
4594 }
4595 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
4596 return (void *)((wxEvent *) ((wxMouseEvent *) x));
4597 }
4598 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
4599 return (void *)((wxEvent *) ((wxEraseEvent *) x));
4600 }
4601 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
4602 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
4603 }
4604 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
4605 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
4606 }
4607 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
4608 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
4609 }
4610 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
4611 return (void *)((wxEvent *) ((wxPyEvent *) x));
4612 }
4613 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
4614 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
4615 }
4616 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
4617 return (void *)((wxEvent *) ((wxIdleEvent *) x));
4618 }
4619 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
4620 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
4621 }
4622 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
4623 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
4624 }
4625 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
4626 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
4627 }
4628 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
4629 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
4630 }
4631 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
4632 return (void *)((wxEvent *) ((wxActivateEvent *) x));
4633 }
4634 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
4635 return (void *)((wxEvent *) ((wxSizeEvent *) x));
4636 }
4637 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
4638 return (void *)((wxEvent *) ((wxMoveEvent *) x));
4639 }
4640 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
4641 return (void *)((wxEvent *) ((wxPaintEvent *) x));
4642 }
4643 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
4644 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
4645 }
4646 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
4647 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
4648 }
4649 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
4650 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
4651 }
4652 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
4653 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
4654 }
4655 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
4656 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4657 }
4658 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
4659 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
4660 }
4661 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
4662 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
4663 }
4664 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
4665 return (void *)((wxEvent *) ((wxFocusEvent *) x));
4666 }
4667 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
4668 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
4669 }
4670 static void *_p_wxActiveXEventTo_p_wxEvent(void *x) {
4671 return (void *)((wxEvent *) (wxCommandEvent *) ((wxActiveXEvent *) x));
4672 }
4673 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
4674 return (void *)((wxEvent *) ((wxShowEvent *) x));
4675 }
4676 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
4677 return (void *)((wxEvent *) ((wxCommandEvent *) x));
4678 }
4679 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
4680 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
4681 }
4682 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
4683 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4684 }
4685 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
4686 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
4687 }
4688 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
4689 return (void *)((wxEvent *) ((wxKeyEvent *) x));
4690 }
4691 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
4692 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
4693 }
4694 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
4695 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
4696 }
4697 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
4698 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
4699 }
4700 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
4701 return (void *)((wxObject *) ((wxSizerItem *) x));
4702 }
4703 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
4704 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
4705 }
4706 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
4707 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
4708 }
4709 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
4710 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
4711 }
4712 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
4713 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
4714 }
4715 static void *_p_wxSizerTo_p_wxObject(void *x) {
4716 return (void *)((wxObject *) ((wxSizer *) x));
4717 }
4718 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
4719 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
4720 }
4721 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
4722 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
4723 }
4724 static void *_p_wxEventTo_p_wxObject(void *x) {
4725 return (void *)((wxObject *) ((wxEvent *) x));
4726 }
4727 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
4728 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
4729 }
4730 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
4731 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
4732 }
4733 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
4734 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
4735 }
4736 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
4737 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
4738 }
4739 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
4740 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
4741 }
4742 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
4743 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
4744 }
4745 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
4746 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
4747 }
4748 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
4749 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4750 }
4751 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
4752 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
4753 }
4754 static void *_p_wxControlTo_p_wxObject(void *x) {
4755 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
4756 }
4757 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
4758 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
4759 }
4760 static void *_p_wxFSFileTo_p_wxObject(void *x) {
4761 return (void *)((wxObject *) ((wxFSFile *) x));
4762 }
4763 static void *_p_wxPySizerTo_p_wxObject(void *x) {
4764 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
4765 }
4766 static void *_p_wxPyEventTo_p_wxObject(void *x) {
4767 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
4768 }
4769 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
4770 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
4771 }
4772 static void *_p_wxShowEventTo_p_wxObject(void *x) {
4773 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
4774 }
4775 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
4776 return (void *)((wxObject *) ((wxMenuItem *) x));
4777 }
4778 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
4779 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
4780 }
4781 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
4782 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
4783 }
4784 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
4785 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
4786 }
4787 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
4788 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
4789 }
4790 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
4791 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
4792 }
4793 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
4794 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
4795 }
4796 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
4797 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
4798 }
4799 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
4800 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
4801 }
4802 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
4803 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
4804 }
4805 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
4806 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
4807 }
4808 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
4809 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
4810 }
4811 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
4812 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
4813 }
4814 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
4815 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
4816 }
4817 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
4818 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
4819 }
4820 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
4821 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
4822 }
4823 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
4824 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
4825 }
4826 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
4827 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
4828 }
4829 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
4830 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
4831 }
4832 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
4833 return (void *)((wxObject *) ((wxImageHandler *) x));
4834 }
4835 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
4836 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
4837 }
4838 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
4839 return (void *)((wxObject *) ((wxEvtHandler *) x));
4840 }
4841 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
4842 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
4843 }
4844 static void *_p_wxImageTo_p_wxObject(void *x) {
4845 return (void *)((wxObject *) ((wxImage *) x));
4846 }
4847 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
4848 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
4849 }
4850 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
4851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4852 }
4853 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
4854 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
4855 }
4856 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
4857 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
4858 }
4859 static void *_p_wxActiveXWindowTo_p_wxObject(void *x) {
4860 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxActiveXWindow *) x));
4861 }
4862 static void *_p_wxWindowTo_p_wxObject(void *x) {
4863 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
4864 }
4865 static void *_p_wxMenuTo_p_wxObject(void *x) {
4866 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
4867 }
4868 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
4869 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
4870 }
4871 static void *_p_wxActiveXEventTo_p_wxObject(void *x) {
4872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxActiveXEvent *) x));
4873 }
4874 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
4875 return (void *)((wxObject *) ((wxFileSystem *) x));
4876 }
4877 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
4878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
4879 }
4880 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
4881 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
4882 }
4883 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x) {
4884 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4885 }
4886 static void *_p_wxPyAppTo_p_wxObject(void *x) {
4887 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
4888 }
4889 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
4890 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
4891 }
4892 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
4893 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
4894 }
4895 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
4896 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
4897 }
4898 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
4899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
4900 }
4901 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
4902 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
4903 }
4904 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
4905 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
4906 }
4907 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
4908 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
4909 }
4910 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
4911 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
4912 }
4913 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
4914 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4915 }
4916 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
4917 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
4918 }
4919 static void *_p_wxValidatorTo_p_wxObject(void *x) {
4920 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
4921 }
4922 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
4923 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
4924 }
4925 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
4926 return (void *)((wxEvtHandler *) ((wxWindow *) x));
4927 }
4928 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
4929 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4930 }
4931 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x) {
4932 return (void *)((wxEvtHandler *) (wxWindow *) ((wxActiveXWindow *) x));
4933 }
4934 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
4935 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
4936 }
4937 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
4938 return (void *)((wxEvtHandler *) ((wxValidator *) x));
4939 }
4940 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
4941 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
4942 }
4943 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
4944 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
4945 }
4946 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
4947 return (void *)((wxEvtHandler *) ((wxMenu *) x));
4948 }
4949 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x) {
4950 return (void *)((wxEvtHandler *) (wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4951 }
4952 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
4953 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
4954 }
4955 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
4956 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
4957 }
4958 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
4959 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
4960 }
4961 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
4962 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
4963 }
4964 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x) {
4965 return (void *)((wxCommandEvent *) ((wxActiveXEvent *) x));
4966 }
4967 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
4968 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4969 }
4970 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
4971 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
4972 }
4973 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
4974 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
4975 }
4976 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
4977 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
4978 }
4979 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4980 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4981 static swig_type_info _swigt__p_wxFuncX[] = {{"_p_wxFuncX", 0, "wxFuncX *", 0, 0, 0, 0},{"_p_wxFuncX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4982 static swig_type_info _swigt__p_wxActiveXWindow[] = {{"_p_wxActiveXWindow", 0, "wxActiveXWindow *", 0, 0, 0, 0},{"_p_wxActiveXWindow", 0, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4983 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4984 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4985 static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4986 static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4987 static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4988 static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4989 static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4990 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4991 static swig_type_info _swigt__p_unsigned_short[] = {{"_p_unsigned_short", 0, "unsigned short *|VARTYPE *", 0, 0, 0, 0},{"_p_unsigned_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4992 static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4993 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4994 static swig_type_info _swigt__p_wxPropX[] = {{"_p_wxPropX", 0, "wxPropX *", 0, 0, 0, 0},{"_p_wxPropX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4995 static swig_type_info _swigt__p_wxParamXArray[] = {{"_p_wxParamXArray", 0, "wxParamXArray *", 0, 0, 0, 0},{"_p_wxParamXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4996 static swig_type_info _swigt__p_wxFuncXArray[] = {{"_p_wxFuncXArray", 0, "wxFuncXArray *", 0, 0, 0, 0},{"_p_wxFuncXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4997 static swig_type_info _swigt__p_wxActiveXEvent[] = {{"_p_wxActiveXEvent", 0, "wxActiveXEvent *", 0, 0, 0, 0},{"_p_wxActiveXEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4998 static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4999 static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5000 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *|MEMBERID *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5001 static swig_type_info _swigt__p_wxParamX[] = {{"_p_wxParamX", 0, "wxParamX *", 0, 0, 0, 0},{"_p_wxParamX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5002 static swig_type_info _swigt__p_wxIEHtmlWindowBase[] = {{"_p_wxIEHtmlWindowBase", 0, "wxIEHtmlWindowBase *", 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5003 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5004 static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5005 static swig_type_info _swigt__p_CLSID[] = {{"_p_CLSID", 0, "CLSID *", 0, 0, 0, 0},{"_p_CLSID", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5006 static swig_type_info _swigt__p_wxPropXArray[] = {{"_p_wxPropXArray", 0, "wxPropXArray *", 0, 0, 0, 0},{"_p_wxPropXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5007 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5008
5009 static swig_type_info *swig_types_initial[] = {
5010 _swigt__p_wxObject,
5011 _swigt__p_unsigned_char,
5012 _swigt__p_wxFuncX,
5013 _swigt__p_wxActiveXWindow,
5014 _swigt__p_wxWindow,
5015 _swigt__p_wxCommandEvent,
5016 _swigt__p_unsigned_long,
5017 _swigt__p_unsigned_int,
5018 _swigt__unsigned_int,
5019 _swigt__p_form_ops_t,
5020 _swigt__p_wxDuplexMode,
5021 _swigt__p_char,
5022 _swigt__p_unsigned_short,
5023 _swigt__p_wxInputStream,
5024 _swigt__p_wxEvtHandler,
5025 _swigt__p_wxPropX,
5026 _swigt__p_wxParamXArray,
5027 _swigt__p_wxFuncXArray,
5028 _swigt__p_wxActiveXEvent,
5029 _swigt__std__ptrdiff_t,
5030 _swigt__ptrdiff_t,
5031 _swigt__p_long,
5032 _swigt__p_wxParamX,
5033 _swigt__p_wxIEHtmlWindowBase,
5034 _swigt__p_wxEvent,
5035 _swigt__p_wxPaperSize,
5036 _swigt__p_CLSID,
5037 _swigt__p_wxPropXArray,
5038 _swigt__p_int,
5039 0
5040 };
5041
5042
5043 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5044
5045 static swig_const_info swig_const_table[] = {
5046 {0, 0, 0, 0.0, 0, 0}};
5047
5048 #ifdef __cplusplus
5049 }
5050 #endif
5051
5052
5053 #ifdef __cplusplus
5054 extern "C" {
5055 #endif
5056
5057 /* Python-specific SWIG API */
5058 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5059 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5060 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5061
5062 /* -----------------------------------------------------------------------------
5063 * global variable support code.
5064 * ----------------------------------------------------------------------------- */
5065
5066 typedef struct swig_globalvar {
5067 char *name; /* Name of global variable */
5068 PyObject *(*get_attr)(); /* Return the current value */
5069 int (*set_attr)(PyObject *); /* Set the value */
5070 struct swig_globalvar *next;
5071 } swig_globalvar;
5072
5073 typedef struct swig_varlinkobject {
5074 PyObject_HEAD
5075 swig_globalvar *vars;
5076 } swig_varlinkobject;
5077
5078 static PyObject *
5079 swig_varlink_repr(swig_varlinkobject *v) {
5080 v = v;
5081 return PyString_FromString("<Swig global variables>");
5082 }
5083
5084 static int
5085 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
5086 swig_globalvar *var;
5087 flags = flags;
5088 fprintf(fp,"Swig global variables { ");
5089 for (var = v->vars; var; var=var->next) {
5090 fprintf(fp,"%s", var->name);
5091 if (var->next) fprintf(fp,", ");
5092 }
5093 fprintf(fp," }\n");
5094 return 0;
5095 }
5096
5097 static PyObject *
5098 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
5099 swig_globalvar *var = v->vars;
5100 while (var) {
5101 if (strcmp(var->name,n) == 0) {
5102 return (*var->get_attr)();
5103 }
5104 var = var->next;
5105 }
5106 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5107 return NULL;
5108 }
5109
5110 static int
5111 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
5112 swig_globalvar *var = v->vars;
5113 while (var) {
5114 if (strcmp(var->name,n) == 0) {
5115 return (*var->set_attr)(p);
5116 }
5117 var = var->next;
5118 }
5119 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5120 return 1;
5121 }
5122
5123 static PyTypeObject varlinktype = {
5124 PyObject_HEAD_INIT(0)
5125 0, /* Number of items in variable part (ob_size) */
5126 (char *)"swigvarlink", /* Type name (tp_name) */
5127 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
5128 0, /* Itemsize (tp_itemsize) */
5129 0, /* Deallocator (tp_dealloc) */
5130 (printfunc) swig_varlink_print, /* Print (tp_print) */
5131 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
5132 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
5133 0, /* tp_compare */
5134 (reprfunc) swig_varlink_repr, /* tp_repr */
5135 0, /* tp_as_number */
5136 0, /* tp_as_sequence */
5137 0, /* tp_as_mapping */
5138 0, /* tp_hash */
5139 0, /* tp_call */
5140 0, /* tp_str */
5141 0, /* tp_getattro */
5142 0, /* tp_setattro */
5143 0, /* tp_as_buffer */
5144 0, /* tp_flags */
5145 0, /* tp_doc */
5146 #if PY_VERSION_HEX >= 0x02000000
5147 0, /* tp_traverse */
5148 0, /* tp_clear */
5149 #endif
5150 #if PY_VERSION_HEX >= 0x02010000
5151 0, /* tp_richcompare */
5152 0, /* tp_weaklistoffset */
5153 #endif
5154 #if PY_VERSION_HEX >= 0x02020000
5155 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5156 #endif
5157 #if PY_VERSION_HEX >= 0x02030000
5158 0, /* tp_del */
5159 #endif
5160 #ifdef COUNT_ALLOCS
5161 0,0,0,0 /* tp_alloc -> tp_next */
5162 #endif
5163 };
5164
5165 /* Create a variable linking object for use later */
5166 static PyObject *
5167 SWIG_Python_newvarlink(void) {
5168 swig_varlinkobject *result = 0;
5169 result = PyMem_NEW(swig_varlinkobject,1);
5170 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
5171 result->ob_type = &varlinktype;
5172 result->vars = 0;
5173 result->ob_refcnt = 0;
5174 Py_XINCREF((PyObject *) result);
5175 return ((PyObject*) result);
5176 }
5177
5178 static void
5179 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
5180 swig_varlinkobject *v;
5181 swig_globalvar *gv;
5182 v= (swig_varlinkobject *) p;
5183 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
5184 gv->name = (char *) malloc(strlen(name)+1);
5185 strcpy(gv->name,name);
5186 gv->get_attr = get_attr;
5187 gv->set_attr = set_attr;
5188 gv->next = v->vars;
5189 v->vars = gv;
5190 }
5191
5192 /* -----------------------------------------------------------------------------
5193 * constants/methods manipulation
5194 * ----------------------------------------------------------------------------- */
5195
5196 /* Install Constants */
5197 static void
5198 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
5199 PyObject *obj = 0;
5200 size_t i;
5201 for (i = 0; constants[i].type; i++) {
5202 switch(constants[i].type) {
5203 case SWIG_PY_INT:
5204 obj = PyInt_FromLong(constants[i].lvalue);
5205 break;
5206 case SWIG_PY_FLOAT:
5207 obj = PyFloat_FromDouble(constants[i].dvalue);
5208 break;
5209 case SWIG_PY_STRING:
5210 if (constants[i].pvalue) {
5211 obj = PyString_FromString((char *) constants[i].pvalue);
5212 } else {
5213 Py_INCREF(Py_None);
5214 obj = Py_None;
5215 }
5216 break;
5217 case SWIG_PY_POINTER:
5218 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
5219 break;
5220 case SWIG_PY_BINARY:
5221 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
5222 break;
5223 default:
5224 obj = 0;
5225 break;
5226 }
5227 if (obj) {
5228 PyDict_SetItemString(d,constants[i].name,obj);
5229 Py_DECREF(obj);
5230 }
5231 }
5232 }
5233
5234 /* -----------------------------------------------------------------------------*/
5235 /* Fix SwigMethods to carry the callback ptrs when needed */
5236 /* -----------------------------------------------------------------------------*/
5237
5238 static void
5239 SWIG_Python_FixMethods(PyMethodDef *methods,
5240 swig_const_info *const_table,
5241 swig_type_info **types,
5242 swig_type_info **types_initial) {
5243 size_t i;
5244 for (i = 0; methods[i].ml_name; ++i) {
5245 char *c = methods[i].ml_doc;
5246 if (c && (c = strstr(c, "swig_ptr: "))) {
5247 int j;
5248 swig_const_info *ci = 0;
5249 char *name = c + 10;
5250 for (j = 0; const_table[j].type; j++) {
5251 if (strncmp(const_table[j].name, name,
5252 strlen(const_table[j].name)) == 0) {
5253 ci = &(const_table[j]);
5254 break;
5255 }
5256 }
5257 if (ci) {
5258 size_t shift = (ci->ptype) - types;
5259 swig_type_info *ty = types_initial[shift];
5260 size_t ldoc = (c - methods[i].ml_doc);
5261 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5262 char *ndoc = (char*)malloc(ldoc + lptr + 10);
5263 char *buff = ndoc;
5264 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
5265 strncpy(buff, methods[i].ml_doc, ldoc);
5266 buff += ldoc;
5267 strncpy(buff, "swig_ptr: ", 10);
5268 buff += 10;
5269 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5270 methods[i].ml_doc = ndoc;
5271 }
5272 }
5273 }
5274 }
5275
5276 /* -----------------------------------------------------------------------------*
5277 * Initialize type list
5278 * -----------------------------------------------------------------------------*/
5279
5280 #if PY_MAJOR_VERSION < 2
5281 /* PyModule_AddObject function was introduced in Python 2.0. The following function
5282 is copied out of Python/modsupport.c in python version 2.3.4 */
5283 static int
5284 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
5285 {
5286 PyObject *dict;
5287 if (!PyModule_Check(m)) {
5288 PyErr_SetString(PyExc_TypeError,
5289 "PyModule_AddObject() needs module as first arg");
5290 return -1;
5291 }
5292 if (!o) {
5293 PyErr_SetString(PyExc_TypeError,
5294 "PyModule_AddObject() needs non-NULL value");
5295 return -1;
5296 }
5297
5298 dict = PyModule_GetDict(m);
5299 if (dict == NULL) {
5300 /* Internal error -- modules must have a dict! */
5301 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
5302 PyModule_GetName(m));
5303 return -1;
5304 }
5305 if (PyDict_SetItemString(dict, name, o))
5306 return -1;
5307 Py_DECREF(o);
5308 return 0;
5309 }
5310 #endif
5311
5312 static swig_type_info **
5313 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
5314 static PyMethodDef swig_empty_runtime_method_table[] = {
5315 {
5316 NULL, NULL, 0, NULL
5317 }
5318 };/* Sentinel */
5319
5320 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
5321 swig_empty_runtime_method_table);
5322 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
5323 if (pointer && module) {
5324 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
5325 }
5326 return type_list_handle;
5327 }
5328
5329 static swig_type_info **
5330 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
5331 swig_type_info **type_pointer;
5332
5333 /* first check if module already created */
5334 type_pointer = SWIG_Python_GetTypeListHandle();
5335 if (type_pointer) {
5336 return type_pointer;
5337 } else {
5338 /* create a new module and variable */
5339 return SWIG_Python_SetTypeListHandle(type_list_handle);
5340 }
5341 }
5342
5343 #ifdef __cplusplus
5344 }
5345 #endif
5346
5347 /* -----------------------------------------------------------------------------*
5348 * Partial Init method
5349 * -----------------------------------------------------------------------------*/
5350
5351 #ifdef SWIG_LINK_RUNTIME
5352 #ifdef __cplusplus
5353 extern "C"
5354 #endif
5355 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
5356 #endif
5357
5358 #ifdef __cplusplus
5359 extern "C"
5360 #endif
5361 SWIGEXPORT(void) SWIG_init(void) {
5362 static PyObject *SWIG_globals = 0;
5363 static int typeinit = 0;
5364 PyObject *m, *d;
5365 int i;
5366 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
5367
5368 /* Fix SwigMethods to carry the callback ptrs when needed */
5369 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
5370
5371 m = Py_InitModule((char *) SWIG_name, SwigMethods);
5372 d = PyModule_GetDict(m);
5373
5374 if (!typeinit) {
5375 #ifdef SWIG_LINK_RUNTIME
5376 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
5377 #else
5378 # ifndef SWIG_STATIC_RUNTIME
5379 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
5380 # endif
5381 #endif
5382 for (i = 0; swig_types_initial[i]; i++) {
5383 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
5384 }
5385 typeinit = 1;
5386 }
5387 SWIG_InstallConstants(d,swig_const_table);
5388
5389 }
5390