]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/activex/activex_wrap.cpp
added GetFirstSibling and GetLastSibling
[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 if (str)
1041 Py_DECREF(str);
1042 return;
1043 }
1044 }
1045 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1046 } else {
1047 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1048 }
1049 }
1050
1051 SWIGRUNTIMEINLINE void
1052 SWIG_Python_NullRef(const char *type)
1053 {
1054 if (type) {
1055 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1056 } else {
1057 PyErr_Format(PyExc_TypeError, "null reference was received");
1058 }
1059 }
1060
1061 SWIGRUNTIME int
1062 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1063 {
1064 if (PyErr_Occurred()) {
1065 PyObject *type = 0;
1066 PyObject *value = 0;
1067 PyObject *traceback = 0;
1068 PyErr_Fetch(&type, &value, &traceback);
1069 if (value) {
1070 PyObject *old_str = PyObject_Str(value);
1071 Py_XINCREF(type);
1072 PyErr_Clear();
1073 if (infront) {
1074 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1075 } else {
1076 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1077 }
1078 Py_DECREF(old_str);
1079 }
1080 return 1;
1081 } else {
1082 return 0;
1083 }
1084 }
1085
1086 SWIGRUNTIME int
1087 SWIG_Python_ArgFail(int argnum)
1088 {
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1091 char mesg[256];
1092 sprintf(mesg, "argument number %d:", argnum);
1093 return SWIG_Python_AddErrMesg(mesg, 1);
1094 } else {
1095 return 0;
1096 }
1097 }
1098
1099
1100 /* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
1103
1104 /* Convert a pointer value */
1105 SWIGRUNTIME int
1106 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1107 swig_type_info *tc;
1108 const char *c = 0;
1109 static PyObject *SWIG_this = 0;
1110 int newref = 0;
1111 PyObject *pyobj = 0;
1112 void *vptr;
1113
1114 if (!obj) return 0;
1115 if (obj == Py_None) {
1116 *ptr = 0;
1117 return 0;
1118 }
1119
1120 #ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj))) {
1122 if (!SWIG_this)
1123 SWIG_this = PyString_FromString("this");
1124 pyobj = obj;
1125 obj = PyObject_GetAttr(obj,SWIG_this);
1126 newref = 1;
1127 if (!obj) goto type_error;
1128 if (!PySwigObject_Check(obj)) {
1129 Py_DECREF(obj);
1130 goto type_error;
1131 }
1132 }
1133 vptr = PySwigObject_AsVoidPtr(obj);
1134 c = (const char *) PySwigObject_GetDesc(obj);
1135 if (newref) { Py_DECREF(obj); }
1136 goto type_check;
1137 #else
1138 if (!(PyString_Check(obj))) {
1139 if (!SWIG_this)
1140 SWIG_this = PyString_FromString("this");
1141 pyobj = obj;
1142 obj = PyObject_GetAttr(obj,SWIG_this);
1143 newref = 1;
1144 if (!obj) goto type_error;
1145 if (!PyString_Check(obj)) {
1146 Py_DECREF(obj);
1147 goto type_error;
1148 }
1149 }
1150 c = PyString_AS_STRING(obj);
1151 /* Pointer values must start with leading underscore */
1152 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1153 if (newref) { Py_DECREF(obj); }
1154 if (!c) goto type_error;
1155 #endif
1156
1157 type_check:
1158
1159 if (ty) {
1160 tc = SWIG_TypeCheck(c,ty);
1161 if (!tc) goto type_error;
1162 *ptr = SWIG_TypeCast(tc,vptr);
1163 } else {
1164 *ptr = vptr;
1165 }
1166
1167 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1168 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1169 }
1170 return 0;
1171
1172 type_error:
1173 PyErr_Clear();
1174 if (pyobj && !obj) {
1175 obj = pyobj;
1176 if (PyCFunction_Check(obj)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1179 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1180 if (c) {
1181 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1182 if (!c) goto type_error;
1183 goto type_check;
1184 }
1185 }
1186 }
1187 if (flags & SWIG_POINTER_EXCEPTION) {
1188 if (ty) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1190 } else {
1191 SWIG_Python_TypeError("C/C++ pointer", obj);
1192 }
1193 }
1194 return -1;
1195 }
1196
1197 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIGRUNTIME void *
1199 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1200 void *result;
1201 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1202 PyErr_Clear();
1203 if (flags & SWIG_POINTER_EXCEPTION) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1205 SWIG_Python_ArgFail(argnum);
1206 }
1207 }
1208 return result;
1209 }
1210
1211 /* Convert a packed value value */
1212 SWIGRUNTIME int
1213 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1214 swig_type_info *tc;
1215 const char *c = 0;
1216
1217 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c = PySwigPacked_UnpackData(obj, ptr, sz);
1219 #else
1220 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1221 c = PyString_AS_STRING(obj);
1222 /* Pointer values must start with leading underscore */
1223 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1224 #endif
1225 if (!c) goto type_error;
1226 if (ty) {
1227 tc = SWIG_TypeCheck(c,ty);
1228 if (!tc) goto type_error;
1229 }
1230 return 0;
1231
1232 type_error:
1233 PyErr_Clear();
1234 if (flags & SWIG_POINTER_EXCEPTION) {
1235 if (ty) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1237 } else {
1238 SWIG_Python_TypeError("C/C++ packed data", obj);
1239 }
1240 }
1241 return -1;
1242 }
1243
1244 /* Create a new array object */
1245 SWIGRUNTIME PyObject *
1246 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1247 PyObject *robj = 0;
1248 if (!ptr) {
1249 Py_INCREF(Py_None);
1250 return Py_None;
1251 }
1252 #ifdef SWIG_COBJECT_TYPES
1253 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1254 #else
1255 {
1256 char result[SWIG_BUFFER_SIZE];
1257 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1258 PyString_FromString(result) : 0;
1259 }
1260 #endif
1261 if (!robj || (robj == Py_None)) return robj;
1262 if (type->clientdata) {
1263 PyObject *inst;
1264 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1265 Py_DECREF(robj);
1266 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1267 Py_DECREF(args);
1268 if (inst) {
1269 if (own) {
1270 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1271 }
1272 robj = inst;
1273 }
1274 }
1275 return robj;
1276 }
1277
1278 SWIGRUNTIME PyObject *
1279 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1280 PyObject *robj = 0;
1281 if (!ptr) {
1282 Py_INCREF(Py_None);
1283 return Py_None;
1284 }
1285 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1287 #else
1288 {
1289 char result[SWIG_BUFFER_SIZE];
1290 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1291 PyString_FromString(result) : 0;
1292 }
1293 #endif
1294 return robj;
1295 }
1296
1297 /* -----------------------------------------------------------------------------*
1298 * Get type list
1299 * -----------------------------------------------------------------------------*/
1300
1301 #ifdef SWIG_LINK_RUNTIME
1302 void *SWIG_ReturnGlobalTypeList(void *);
1303 #endif
1304
1305 SWIGRUNTIME swig_type_info **
1306 SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer = (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer) {
1310 #ifdef SWIG_LINK_RUNTIME
1311 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1312 #else
1313 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1315 if (PyErr_Occurred()) {
1316 PyErr_Clear();
1317 type_pointer = (void *)0;
1318 }
1319 }
1320 #endif
1321 return (swig_type_info **) type_pointer;
1322 }
1323
1324 /*
1325 Search for a swig_type_info structure
1326 */
1327 SWIGRUNTIMEINLINE swig_type_info *
1328 SWIG_Python_GetTypeList() {
1329 swig_type_info **tlh = SWIG_Python_GetTypeListHandle();
1330 return tlh ? *tlh : (swig_type_info*)0;
1331 }
1332
1333 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1334
1335 #ifdef __cplusplus
1336 }
1337 #endif
1338
1339
1340 /* -------- TYPES TABLE (BEGIN) -------- */
1341
1342 #define SWIGTYPE_p_wxObject swig_types[0]
1343 #define SWIGTYPE_p_unsigned_char swig_types[1]
1344 #define SWIGTYPE_p_wxFuncX swig_types[2]
1345 #define SWIGTYPE_p_wxActiveXWindow swig_types[3]
1346 #define SWIGTYPE_p_wxWindow swig_types[4]
1347 #define SWIGTYPE_p_wxCommandEvent swig_types[5]
1348 #define SWIGTYPE_p_unsigned_long swig_types[6]
1349 #define SWIGTYPE_p_unsigned_int swig_types[7]
1350 #define SWIGTYPE_unsigned_int swig_types[8]
1351 #define SWIGTYPE_p_form_ops_t swig_types[9]
1352 #define SWIGTYPE_p_wxDuplexMode swig_types[10]
1353 #define SWIGTYPE_p_char swig_types[11]
1354 #define SWIGTYPE_p_unsigned_short swig_types[12]
1355 #define SWIGTYPE_p_wxInputStream swig_types[13]
1356 #define SWIGTYPE_p_wxEvtHandler swig_types[14]
1357 #define SWIGTYPE_p_wxPropX swig_types[15]
1358 #define SWIGTYPE_p_wxParamXArray swig_types[16]
1359 #define SWIGTYPE_p_wxFuncXArray swig_types[17]
1360 #define SWIGTYPE_p_wxActiveXEvent swig_types[18]
1361 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1362 #define SWIGTYPE_ptrdiff_t swig_types[20]
1363 #define SWIGTYPE_p_long swig_types[21]
1364 #define SWIGTYPE_p_wxParamX swig_types[22]
1365 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[23]
1366 #define SWIGTYPE_p_wxEvent swig_types[24]
1367 #define SWIGTYPE_p_wxPaperSize swig_types[25]
1368 #define SWIGTYPE_p_CLSID swig_types[26]
1369 #define SWIGTYPE_p_wxPropXArray swig_types[27]
1370 #define SWIGTYPE_p_int swig_types[28]
1371 static swig_type_info *swig_types[30];
1372
1373 /* -------- TYPES TABLE (END) -------- */
1374
1375
1376 /*-----------------------------------------------
1377 @(target):= _activex.so
1378 ------------------------------------------------*/
1379 #define SWIG_init init_activex
1380
1381 #define SWIG_name "_activex"
1382
1383 #include "wx/wxPython/wxPython.h"
1384 #include "wx/wxPython/pyclasses.h"
1385 #include "wx/wxPython/pyistream.h"
1386
1387 #include "wxactivex.h"
1388
1389 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1390
1391 // Since SWIG doesn't support nested classes, we need to fool it a bit
1392 // and make them look like global classes. These defines make the C++ code
1393 // know what we are doing.
1394 #define wxParamX wxActiveX::ParamX
1395 #define wxFuncX wxActiveX::FuncX
1396 #define wxPropX wxActiveX::PropX
1397 #define wxParamXArray wxActiveX::ParamXArray
1398 #define wxFuncXArray wxActiveX::FuncXArray
1399 #define wxPropXArray wxActiveX::PropXArray
1400
1401
1402 // Some conversion helpers
1403 static wxVariant _PyObj2Variant(PyObject* value);
1404 static bool _PyObj2Variant(PyObject* value, wxVariant& wv);
1405 static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false);
1406 static wxString _VARTYPEname(VARTYPE vt);
1407
1408 // Check if an exception has been raised (blocking threads)
1409 inline bool wxPyErr_Occurred()
1410 {
1411 bool rval;
1412 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1413 rval = PyErr_Occurred() != NULL;
1414 wxPyEndBlockThreads(blocked);
1415 return rval;
1416 }
1417
1418
1419 static CLSID *new_CLSID(wxString const &id){
1420 int result;
1421 CLSID* self = new CLSID;
1422 memset(self, 0, sizeof(CLSID));
1423
1424 if (id[0] == _T('{')) {
1425 // Looks like a classID string
1426 result =
1427 CLSIDFromString(
1428 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
1429 self);
1430 } else {
1431 // Try a progID
1432 result =
1433 CLSIDFromProgID(
1434 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
1435 self);
1436 }
1437 if (result != NOERROR) {
1438 wxPyErr_SetString(PyExc_ValueError, "Not a recognized classID or progID");
1439 delete self;
1440 return NULL;
1441 }
1442 return self;
1443 }
1444 static void delete_CLSID(CLSID *self){ delete self; }
1445 static wxString CLSID_GetCLSIDString(CLSID *self){
1446 LPOLESTR s;
1447 wxString str;
1448 if (StringFromCLSID(*self, &s) == S_OK) {
1449 str = s;
1450 CoTaskMemFree(s);
1451 }
1452 else {
1453 str = _T("Error!"); // TODO: raise exception?
1454 }
1455 return str;
1456 }
1457 static wxString CLSID_GetProgIDString(CLSID *self){
1458 LPOLESTR s;
1459 wxString str;
1460 if (ProgIDFromCLSID(*self, &s) == S_OK) {
1461 str = s;
1462 CoTaskMemFree(s);
1463 }
1464 else {
1465 str = _T("Error!"); // TODO: raise exception?
1466 }
1467 return str;
1468 }
1469
1470 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1471 #define SWIG_From_unsigned_SS_short PyInt_FromLong
1472 /*@@*/
1473
1474 static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); }
1475
1476 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1477 #define SWIG_From_long PyInt_FromLong
1478 /*@@*/
1479
1480 static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; }
1481 static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); }
1482
1483 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1484 #define SWIG_From_int PyInt_FromLong
1485 /*@@*/
1486
1487
1488 #include <limits.h>
1489
1490
1491 SWIGINTERN int
1492 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1493 const char *errmsg)
1494 {
1495 if (value < min_value) {
1496 if (errmsg) {
1497 PyErr_Format(PyExc_OverflowError,
1498 "value %ld is less than '%s' minimum %ld",
1499 value, errmsg, min_value);
1500 }
1501 return 0;
1502 } else if (value > max_value) {
1503 if (errmsg) {
1504 PyErr_Format(PyExc_OverflowError,
1505 "value %ld is greater than '%s' maximum %ld",
1506 value, errmsg, max_value);
1507 }
1508 return 0;
1509 }
1510 return 1;
1511 }
1512
1513
1514 SWIGINTERN int
1515 SWIG_AsVal_long(PyObject* obj, long* val)
1516 {
1517 if (PyNumber_Check(obj)) {
1518 if (val) *val = PyInt_AsLong(obj);
1519 return 1;
1520 }
1521 else {
1522 SWIG_type_error("number", obj);
1523 }
1524 return 0;
1525 }
1526
1527
1528 #if INT_MAX != LONG_MAX
1529 SWIGINTERN int
1530 SWIG_AsVal_int(PyObject *obj, int *val)
1531 {
1532 const char* errmsg = val ? "int" : (char*)0;
1533 long v;
1534 if (SWIG_AsVal_long(obj, &v)) {
1535 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1536 if (val) *val = (int)(v);
1537 return 1;
1538 } else {
1539 return 0;
1540 }
1541 } else {
1542 PyErr_Clear();
1543 }
1544 if (val) {
1545 SWIG_type_error(errmsg, obj);
1546 }
1547 return 0;
1548 }
1549 #else
1550 SWIGINTERNSHORT int
1551 SWIG_AsVal_int(PyObject *obj, int *val)
1552 {
1553 return SWIG_AsVal_long(obj,(long*)val);
1554 }
1555 #endif
1556
1557
1558 SWIGINTERNSHORT int
1559 SWIG_As_int(PyObject* obj)
1560 {
1561 int v;
1562 if (!SWIG_AsVal_int(obj, &v)) {
1563 /*
1564 this is needed to make valgrind/purify happier.
1565 */
1566 memset((void*)&v, 0, sizeof(int));
1567 }
1568 return v;
1569 }
1570
1571
1572 SWIGINTERNSHORT int
1573 SWIG_Check_int(PyObject* obj)
1574 {
1575 return SWIG_AsVal_int(obj, (int*)0);
1576 }
1577
1578 static wxParamX const &wxParamXArray___getitem__(wxParamXArray *self,int idx){
1579 if ( idx >= 0 && idx < self->size() )
1580 return (*self)[idx];
1581 else {
1582 static wxParamX BadVal;
1583 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1584 return BadVal;
1585 }
1586 }
1587 static bool wxFuncXArray___nonzero__(wxFuncXArray *self){ return self->size() > 0; }
1588 static int wxFuncXArray___len__(wxFuncXArray *self){ return self->size(); }
1589 static wxFuncX const &wxFuncXArray___getitem__(wxFuncXArray *self,int idx){
1590 if ( idx >= 0 && idx < self->size() )
1591 return (*self)[idx];
1592 else {
1593 static wxFuncX BadVal;
1594 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1595 return BadVal;
1596 }
1597 }
1598 static bool wxPropXArray___nonzero__(wxPropXArray *self){ return self->size() > 0; }
1599 static int wxPropXArray___len__(wxPropXArray *self){ return self->size(); }
1600 static wxPropX const &wxPropXArray___getitem__(wxPropXArray *self,int idx){
1601 if ( idx >= 0 && idx < self->size() )
1602 return (*self)[idx];
1603 else {
1604 static wxPropX BadVal;
1605 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1606 return BadVal;
1607 }
1608 }
1609
1610 // C++ version of a Python-aware wxActiveX
1611 class wxActiveXWindow : public wxActiveX
1612 {
1613 private:
1614 CLSID m_CLSID;
1615
1616 DECLARE_ABSTRACT_CLASS(wxActiveXWindow);
1617
1618 public:
1619 wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
1620 const wxPoint& pos = wxDefaultPosition,
1621 const wxSize& size = wxDefaultSize,
1622 long style = 0,
1623 const wxString& name = wxPyPanelNameStr)
1624 : wxActiveX(parent, clsId, id, pos, size, style, name)
1625 {
1626 m_CLSID = clsId;
1627 }
1628
1629 const CLSID& GetCLSID() const { return m_CLSID; }
1630
1631
1632 // Renamed versions of some base class methods that delegate
1633 // to the base where appropriate, and raise Python exceptions
1634 // when needed.
1635 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
1636 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
1637 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
1638
1639 const wxFuncX& GetAXEventDesc(int idx) const
1640 {
1641 static wxFuncX BadVal;
1642 if (idx < 0 || idx >= GetAXEventCount()) {
1643 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1644 return BadVal;
1645 }
1646 return m_events[idx];
1647 }
1648 const wxFuncX& GetAXMethodDesc(int idx) const
1649 {
1650 static wxFuncX BadVal;
1651 if (idx < 0 || idx >= GetAXMethodCount()) {
1652 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1653 return BadVal;
1654 }
1655 return m_methods[idx];
1656 }
1657 const wxPropX& GetAXPropDesc(int idx) const
1658 {
1659 static wxPropX BadVal;
1660 if (idx < 0 || idx >= GetAXPropCount()) {
1661 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
1662 return BadVal;
1663 }
1664 return m_props[idx];
1665 }
1666
1667 const wxFuncX& GetAXMethodDesc(const wxString& name) const
1668 {
1669 NameMap::const_iterator it = m_methodNames.find(name);
1670 if (it == m_methodNames.end()) {
1671 wxString msg;
1672 msg << _T("method <") << name << _T("> not found");
1673 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
1674 static wxFuncX BadVal;
1675 return BadVal;
1676 };
1677 return GetAXMethodDesc(it->second);
1678 }
1679 const wxPropX& GetAXPropDesc(const wxString& name) const
1680 {
1681 NameMap::const_iterator it = m_propNames.find(name);
1682 if (it == m_propNames.end()) {
1683 wxString msg;
1684 msg << _T("property <") << name << _T("> not found");
1685 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
1686 static wxPropX BadVal;
1687 return BadVal;
1688 };
1689 return GetAXPropDesc(it->second);
1690 }
1691
1692 // Accessors for the internal vectors of events, methods and
1693 // proprties. Can be used as sequence like objects from
1694 // Python.
1695 const wxFuncXArray& GetAXEvents() { return m_events; }
1696 const wxFuncXArray& GetAXMethods() { return m_methods; }
1697 const wxPropXArray& GetAXProperties() { return m_props; }
1698
1699
1700 // Set a property from a Python object
1701 void SetAXProp(const wxString& name, PyObject* value)
1702 {
1703 const wxPropX& prop = GetAXPropDesc(name);
1704 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1705 if (! PyErr_Occurred() ) {
1706 if (! prop.CanSet()) {
1707 wxString msg;
1708 msg << _T("property <") << name << _T("> is readonly");
1709 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1710 goto done;
1711 } else {
1712 wxVariant wxV = _PyObj2Variant(value);
1713 if (PyErr_Occurred())
1714 goto done;
1715 VARIANT v = {prop.arg.vt};
1716 if (!VariantToMSWVariant(wxV, v) || PyErr_Occurred()) {
1717 wxString msg;
1718 msg << _T("Unable to convert value to expected type: (")
1719 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
1720 << name << _T(">");
1721 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1722 goto done;
1723 }
1724 PyThreadState* tstate = wxPyBeginAllowThreads();
1725 SetProp(prop.memid, v);
1726 VariantClear(&v);
1727 wxPyEndAllowThreads(tstate);
1728 }
1729 }
1730 done:
1731 wxPyEndBlockThreads(blocked);
1732 }
1733
1734
1735 // Get a property and convert it to a Python object
1736 PyObject* GetAXProp(const wxString& name)
1737 {
1738 PyObject* rval = NULL;
1739 const wxPropX& prop = GetAXPropDesc(name);
1740 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1741 if (! PyErr_Occurred() ) {
1742 if (! prop.CanGet()) {
1743 wxString msg;
1744 msg << _T("property <") << name << _T("> is writeonly");
1745 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1746 goto done;
1747 } else {
1748 PyThreadState* tstate = wxPyBeginAllowThreads();
1749 VARIANT v = GetPropAsVariant(prop.memid);
1750 wxPyEndAllowThreads(tstate);
1751 wxVariant wv;
1752 if (!MSWVariantToVariant(v, wv) || PyErr_Occurred()) {
1753 wxString msg;
1754 msg << _T("Unable to convert value to expected type: (")
1755 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
1756 << name << _T(">");
1757 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1758 goto done;
1759 }
1760 rval = _Variant2PyObj(wv);
1761 VariantClear(&v);
1762 }
1763 }
1764 done:
1765 wxPyEndBlockThreads(blocked);
1766 return rval;
1767 }
1768
1769
1770 // If both IsIn and isOut are false, assume it is actually an
1771 // input param
1772 bool paramIsIn(const wxParamX& p)
1773 {
1774 return p.IsIn() || (!p.IsIn() && !p.IsOut());
1775 }
1776
1777
1778 // Call a method of the ActiveX object
1779 PyObject* _CallAXMethod(const wxString& name, PyObject* args)
1780 {
1781 VARIANTARG *vargs = NULL;
1782 int nargs = 0;
1783 PyObject* rval = NULL;
1784 const wxFuncX& func = GetAXMethodDesc(name);
1785
1786 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1787 if (! PyErr_Occurred() ) {
1788 nargs = func.params.size();
1789 if (nargs > 0)
1790 vargs = new VARIANTARG[nargs];
1791
1792 if (vargs) {
1793 // init type of vargs, in reverse order
1794 int i;
1795 for (i = 0; i < nargs; i++)
1796 vargs[nargs - i - 1].vt = func.params[i].vt;
1797
1798 // Map the args coming from Python to the input parameters in vargs
1799 int pi = 0;
1800 i = 0;
1801 while ( i<nargs && pi<PyTuple_Size(args) ) {
1802 // Move to the next input param.
1803 if (! paramIsIn(func.params[i])) {
1804 i += 1;
1805 continue;
1806 }
1807 // convert the python object
1808 PyObject* obj = PyTuple_GetItem(args, pi);
1809 if (obj == Py_None) // special-case None?
1810 vargs[nargs - i - 1].vt = VT_EMPTY;
1811 else {
1812 wxVariant wxV = _PyObj2Variant(obj);
1813 if (PyErr_Occurred())
1814 goto done;
1815 if (!VariantToMSWVariant(wxV, vargs[nargs - i - 1]) || PyErr_Occurred()) {
1816 wxString msg;
1817 msg << _T("Unable to convert value to expected type: (")
1818 << _VARTYPEname(vargs[nargs - i - 1].vt)
1819 << _T(") for parameter ") << i;
1820 PyErr_SetString(PyExc_TypeError, msg.mb_str());
1821 goto done;
1822 }
1823 }
1824 i += 1;
1825 pi += 1;
1826 }
1827 }
1828
1829 // call the method
1830 PyThreadState* tstate = wxPyBeginAllowThreads();
1831 VARIANT rv = CallMethod(func.memid, vargs, nargs);
1832 wxPyEndAllowThreads(tstate);
1833
1834 // Convert the return value and any out-params, ignoring
1835 // conversion errors for now
1836 wxVariant wv;
1837 MSWVariantToVariant(rv, wv);
1838 rval = _Variant2PyObj(wv, true);
1839 VariantClear(&rv);
1840
1841 if (func.hasOut) {
1842 // make a list and put the rval in it if it is not None
1843 PyObject* lst = PyList_New(0);
1844 if (rval != Py_None)
1845 PyList_Append(lst, rval);
1846 else
1847 Py_DECREF(rval);
1848
1849 // find the out params and convert them
1850 for (int i = 0; i < nargs; i++) {
1851 VARIANTARG& va = vargs[nargs - i - 1];
1852 const wxParamX &px = func.params[i];
1853 if (px.IsOut()) {
1854 MSWVariantToVariant(va, wv);
1855 PyObject* obj = _Variant2PyObj(wv, true);
1856 PyList_Append(lst, obj);
1857 }
1858 }
1859 rval = PyList_AsTuple(lst);
1860 Py_DECREF(lst);
1861 }
1862 if (PyErr_Occurred())
1863 PyErr_Clear();
1864 }
1865 done:
1866 wxPyEndBlockThreads(blocked);
1867 if (vargs) {
1868 for (int i = 0; i < nargs; i++)
1869 VariantClear(&vargs[i]);
1870 delete [] vargs;
1871 }
1872 return rval;
1873 }
1874 };
1875
1876 IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow, wxWindow );
1877
1878
1879 SWIGINTERNSHORT long
1880 SWIG_As_long(PyObject* obj)
1881 {
1882 long v;
1883 if (!SWIG_AsVal_long(obj, &v)) {
1884 /*
1885 this is needed to make valgrind/purify happier.
1886 */
1887 memset((void*)&v, 0, sizeof(long));
1888 }
1889 return v;
1890 }
1891
1892
1893 SWIGINTERNSHORT int
1894 SWIG_Check_long(PyObject* obj)
1895 {
1896 return SWIG_AsVal_long(obj, (long*)0);
1897 }
1898
1899 static void wxActiveXEvent__preCallInit(wxActiveXEvent *self,PyObject *pyself){
1900 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1901 PyObject* pList = PyList_New(0);
1902 PyObject_SetAttrString(pyself, "paramList", pList);
1903 Py_DECREF(pList);
1904 for (int i=0; i<self->ParamCount(); i+=1) {
1905 PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str());
1906 PyObject* val = _Variant2PyObj((*self)[i], true);
1907 PyObject_SetAttr(pyself, name, val);
1908 PyList_Append(pList, name);
1909 Py_DECREF(val);
1910 Py_DECREF(name);
1911 }
1912 wxPyEndBlockThreads(blocked);
1913 }
1914 static void wxActiveXEvent__postCallCleanup(wxActiveXEvent *self,PyObject *pyself){
1915 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1916 for (int i=0; i<self->ParamCount(); i+=1) {
1917 PyObject* val = PyObject_GetAttrString(
1918 pyself, (char*)(const char*)self->ParamName(i).mb_str());
1919 _PyObj2Variant(val, (*self)[i]);
1920 Py_DECREF(val);
1921 }
1922 wxPyEndBlockThreads(blocked);
1923 }
1924
1925
1926 // Caller should already have the GIL!
1927 wxVariant _PyObj2Variant(PyObject* value)
1928 {
1929 wxVariant rval;
1930
1931 if (value == Py_None)
1932 return rval;
1933
1934 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
1935 else if (PyBool_Check(value))
1936 rval = (value == Py_True) ? true : false;
1937 #endif
1938
1939 else if (PyInt_Check(value))
1940 rval = PyInt_AS_LONG(value);
1941
1942 else if (PyFloat_Check(value))
1943 rval = PyFloat_AS_DOUBLE(value);
1944
1945 else if (PyString_Check(value) || PyUnicode_Check(value))
1946 rval = Py2wxString(value);
1947
1948 // TODO: PyList of strings --> wxArrayString
1949 // wxDateTime
1950 // list of objects
1951 // etc.
1952
1953 else {
1954 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _PyObj2Variant");
1955 rval = (long)0;
1956 }
1957
1958 return rval;
1959 }
1960
1961 // This one uses the type of the variant to try and force the conversion
1962 bool _PyObj2Variant(PyObject* value, wxVariant& wv)
1963 {
1964 wxString type = wv.GetType();
1965
1966 if ( type == _T("long") || type == _T("bool") || type == _T("char") )
1967 wv = PyInt_AsLong(value);
1968
1969 else if ( type == _T("string") )
1970 wv = Py2wxString(value);
1971
1972 else if ( type == _T("double") )
1973 wv = PyFloat_AsDouble(value);
1974
1975 else {
1976 // it's some other type that we dont' handle yet. Log it?
1977 return false;
1978 }
1979 return true;
1980 }
1981
1982 // Caller should already have the GIL!
1983 PyObject* _Variant2PyObj(wxVariant& value, bool useNone)
1984 {
1985 PyObject* rval = NULL;
1986
1987 if (value.IsNull()) {
1988 rval = Py_None;
1989 Py_INCREF(rval);
1990 }
1991
1992 // should "char" be treated as an int or as a string?
1993 else if (value.IsType(_T("char")) || value.IsType(_T("long")))
1994 rval = PyInt_FromLong(value);
1995
1996 else if (value.IsType(_T("double")))
1997 rval = PyFloat_FromDouble(value);
1998
1999 else if (value.IsType(_T("bool"))) {
2000 rval = (bool)value ? Py_True : Py_False;
2001 Py_INCREF(rval);
2002 }
2003
2004 else if (value.IsType(_T("string")))
2005 rval = wx2PyString(value);
2006
2007 else {
2008 if (useNone) {
2009 rval = Py_None;
2010 Py_INCREF(rval);
2011 }
2012 else {
2013 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _Variant2PyObj");
2014 }
2015 }
2016 return rval;
2017 }
2018
2019
2020 wxString _VARTYPEname(VARTYPE vt)
2021 {
2022 if (vt & VT_BYREF)
2023 vt &= ~(VT_BYREF);
2024
2025 switch(vt) {
2026 case VT_VARIANT:
2027 return _T("VT_VARIANT");
2028
2029 // 1 byte chars
2030 case VT_I1:
2031 case VT_UI1:
2032 // 2 byte shorts
2033 case VT_I2:
2034 case VT_UI2:
2035 // 4 bytes longs
2036 case VT_I4:
2037 case VT_UI4:
2038 case VT_INT:
2039 case VT_UINT:
2040 case VT_ERROR:
2041 return _T("int");
2042
2043 // 4 byte floats
2044 case VT_R4:
2045 // 8 byte doubles
2046 case VT_R8:
2047 // decimals are converted from doubles too
2048 case VT_DECIMAL:
2049 return _T("double");
2050
2051 case VT_BOOL:
2052 return _T("bool");
2053
2054 case VT_DATE:
2055 return _T("wx.DateTime");
2056
2057 case VT_BSTR:
2058 return _T("string");
2059
2060 case VT_UNKNOWN:
2061 return _T("VT_UNKNOWN");
2062
2063 case VT_DISPATCH:
2064 return _T("VT_DISPATCH");
2065
2066 case VT_EMPTY:
2067 return _T("VT_EMPTY");
2068
2069 case VT_NULL:
2070 return _T("VT_NULL");
2071
2072 case VT_VOID:
2073 return _T("VT_VOID");
2074
2075 default:
2076 wxString msg;
2077 msg << _T("unsupported type ") << vt;
2078 return msg;
2079 }
2080 }
2081
2082
2083
2084 // A class derived from out wxActiveXWindow for the IE WebBrowser
2085 // control that will serve as a base class for a Python
2086 // implementation. This is done so we can "eat our own dog food"
2087 // and use a class at least mostly generated by genaxmodule, but
2088 // also get some of the extra stuff like loading a document from
2089 // a string or a stream, getting text contents, etc. that
2090 // Lindsay's version gives us.
2091 //
2092
2093 #include <wx/mstream.h>
2094 #include <oleidl.h>
2095 #include <winerror.h>
2096 #include <exdispid.h>
2097 #include <exdisp.h>
2098 #include <olectl.h>
2099 #include <Mshtml.h>
2100 #include <sstream>
2101
2102 #include "IEHtmlStream.h"
2103
2104 class wxIEHtmlWindowBase : public wxActiveXWindow {
2105 private:
2106 wxAutoOleInterface<IWebBrowser2> m_webBrowser;
2107
2108 DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase);
2109
2110 public:
2111
2112 wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
2113 const wxPoint& pos = wxDefaultPosition,
2114 const wxSize& size = wxDefaultSize,
2115 long style = 0,
2116 const wxString& name = wxPyPanelNameStr)
2117 : wxActiveXWindow(parent, clsId, id, pos, size, style, name)
2118 {
2119 HRESULT hret;
2120
2121 // Get IWebBrowser2 Interface
2122 hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX);
2123 wxASSERT(SUCCEEDED(hret));
2124
2125 // web browser setup
2126 m_webBrowser->put_MenuBar(VARIANT_FALSE);
2127 m_webBrowser->put_AddressBar(VARIANT_FALSE);
2128 m_webBrowser->put_StatusBar(VARIANT_FALSE);
2129 m_webBrowser->put_ToolBar(VARIANT_FALSE);
2130
2131 m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE);
2132 m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE);
2133
2134 m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL );
2135 }
2136
2137
2138 void SetCharset(const wxString& charset)
2139 {
2140 HRESULT hret;
2141
2142 // HTML Document ?
2143 IDispatch *pDisp = NULL;
2144 hret = m_webBrowser->get_Document(&pDisp);
2145 wxAutoOleInterface<IDispatch> disp(pDisp);
2146
2147 if (disp.Ok())
2148 {
2149 wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp);
2150 if (doc.Ok())
2151 doc->put_charset((BSTR) (const wchar_t *) charset.wc_str(wxConvUTF8));
2152 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
2153 }
2154 }
2155
2156
2157 bool LoadString(const wxString& html)
2158 {
2159 char *data = NULL;
2160 size_t len = html.length();
2161 len *= sizeof(wxChar);
2162 data = (char *) malloc(len);
2163 memcpy(data, html.c_str(), len);
2164 return LoadStream(new wxOwnedMemInputStream(data, len));
2165 }
2166
2167
2168 bool LoadStream(IStreamAdaptorBase *pstrm)
2169 {
2170 // need to prepend this as poxy MSHTML will not recognise a HTML comment
2171 // as starting a html document and treats it as plain text
2172 // Does nayone know how to force it to html mode ?
2173 #if wxUSE_UNICODE
2174 // TODO: What to do in this case???
2175 #else
2176 pstrm->prepend = _T("<html>");
2177 #endif
2178
2179 // strip leading whitespace as it can confuse MSHTML
2180 wxAutoOleInterface<IStream> strm(pstrm);
2181
2182 // Document Interface
2183 IDispatch *pDisp = NULL;
2184 HRESULT hret = m_webBrowser->get_Document(&pDisp);
2185 if (! pDisp)
2186 return false;
2187 wxAutoOleInterface<IDispatch> disp(pDisp);
2188
2189
2190 // get IPersistStreamInit
2191 wxAutoOleInterface<IPersistStreamInit>
2192 pPersistStreamInit(IID_IPersistStreamInit, disp);
2193
2194 if (pPersistStreamInit.Ok())
2195 {
2196 HRESULT hr = pPersistStreamInit->InitNew();
2197 if (SUCCEEDED(hr))
2198 hr = pPersistStreamInit->Load(strm);
2199
2200 return SUCCEEDED(hr);
2201 }
2202 else
2203 return false;
2204 }
2205
2206 bool LoadStream(wxInputStream *is)
2207 {
2208 // wrap reference around stream
2209 IwxStreamAdaptor *pstrm = new IwxStreamAdaptor(is);
2210 pstrm->AddRef();
2211
2212 return LoadStream(pstrm);
2213 }
2214
2215
2216 wxString GetStringSelection(bool asHTML)
2217 {
2218 wxAutoOleInterface<IHTMLTxtRange> tr(wxieGetSelRange(m_oleObject));
2219 if (! tr)
2220 return wxEmptyString;
2221
2222 BSTR text = NULL;
2223 HRESULT hr = E_FAIL;
2224
2225 if (asHTML)
2226 hr = tr->get_htmlText(&text);
2227 else
2228 hr = tr->get_text(&text);
2229 if (hr != S_OK)
2230 return wxEmptyString;
2231
2232 wxString s = text;
2233 SysFreeString(text);
2234
2235 return s;
2236 };
2237
2238 wxString GetText(bool asHTML)
2239 {
2240 if (! m_webBrowser.Ok())
2241 return wxEmptyString;
2242
2243 // get document dispatch interface
2244 IDispatch *iDisp = NULL;
2245 HRESULT hr = m_webBrowser->get_Document(&iDisp);
2246 if (hr != S_OK)
2247 return wxEmptyString;
2248
2249 // Query for Document Interface
2250 wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp);
2251 iDisp->Release();
2252
2253 if (! hd.Ok())
2254 return wxEmptyString;
2255
2256 // get body element
2257 IHTMLElement *_body = NULL;
2258 hd->get_body(&_body);
2259 if (! _body)
2260 return wxEmptyString;
2261 wxAutoOleInterface<IHTMLElement> body(_body);
2262
2263 // get inner text
2264 BSTR text = NULL;
2265 hr = E_FAIL;
2266
2267 if (asHTML)
2268 hr = body->get_innerHTML(&text);
2269 else
2270 hr = body->get_innerText(&text);
2271 if (hr != S_OK)
2272 return wxEmptyString;
2273
2274 wxString s = text;
2275 SysFreeString(text);
2276
2277 return s;
2278 }
2279
2280
2281 // void wxIEHtmlWin::SetEditMode(bool seton)
2282 // {
2283 // m_bAmbientUserMode = ! seton;
2284 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
2285 // };
2286
2287 // bool wxIEHtmlWin::GetEditMode()
2288 // {
2289 // return ! m_bAmbientUserMode;
2290 // };
2291 };
2292
2293 IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase, wxActiveXWindow );
2294
2295
2296
2297 SWIGINTERN int
2298 SWIG_AsVal_bool(PyObject *obj, bool *val)
2299 {
2300 if (obj == Py_True) {
2301 if (val) *val = true;
2302 return 1;
2303 }
2304 if (obj == Py_False) {
2305 if (val) *val = false;
2306 return 1;
2307 }
2308 int res = 0;
2309 if (SWIG_AsVal_int(obj, &res)) {
2310 if (val) *val = res ? true : false;
2311 return 1;
2312 } else {
2313 PyErr_Clear();
2314 }
2315 if (val) {
2316 SWIG_type_error("bool", obj);
2317 }
2318 return 0;
2319 }
2320
2321
2322 SWIGINTERNSHORT bool
2323 SWIG_As_bool(PyObject* obj)
2324 {
2325 bool v;
2326 if (!SWIG_AsVal_bool(obj, &v)) {
2327 /*
2328 this is needed to make valgrind/purify happier.
2329 */
2330 memset((void*)&v, 0, sizeof(bool));
2331 }
2332 return v;
2333 }
2334
2335
2336 SWIGINTERNSHORT int
2337 SWIG_Check_bool(PyObject* obj)
2338 {
2339 return SWIG_AsVal_bool(obj, (bool*)0);
2340 }
2341
2342 #ifdef __cplusplus
2343 extern "C" {
2344 #endif
2345 static PyObject *_wrap_new_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
2346 PyObject *resultobj;
2347 wxString *arg1 = 0 ;
2348 CLSID *result;
2349 bool temp1 = false ;
2350 PyObject * obj0 = 0 ;
2351 char *kwnames[] = {
2352 (char *) "id", NULL
2353 };
2354
2355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CLSID",kwnames,&obj0)) goto fail;
2356 {
2357 arg1 = wxString_in_helper(obj0);
2358 if (arg1 == NULL) SWIG_fail;
2359 temp1 = true;
2360 }
2361 {
2362 PyThreadState* __tstate = wxPyBeginAllowThreads();
2363 result = (CLSID *)new_CLSID((wxString const &)*arg1);
2364
2365 wxPyEndAllowThreads(__tstate);
2366 if (PyErr_Occurred()) SWIG_fail;
2367 }
2368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 1);
2369 {
2370 if (temp1)
2371 delete arg1;
2372 }
2373 return resultobj;
2374 fail:
2375 {
2376 if (temp1)
2377 delete arg1;
2378 }
2379 return NULL;
2380 }
2381
2382
2383 static PyObject *_wrap_delete_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
2384 PyObject *resultobj;
2385 CLSID *arg1 = (CLSID *) 0 ;
2386 PyObject * obj0 = 0 ;
2387 char *kwnames[] = {
2388 (char *) "self", NULL
2389 };
2390
2391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_CLSID",kwnames,&obj0)) goto fail;
2392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2393 if (SWIG_arg_fail(1)) SWIG_fail;
2394 {
2395 PyThreadState* __tstate = wxPyBeginAllowThreads();
2396 delete_CLSID(arg1);
2397
2398 wxPyEndAllowThreads(__tstate);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 }
2401 Py_INCREF(Py_None); resultobj = Py_None;
2402 return resultobj;
2403 fail:
2404 return NULL;
2405 }
2406
2407
2408 static PyObject *_wrap_CLSID_GetCLSIDString(PyObject *, PyObject *args, PyObject *kwargs) {
2409 PyObject *resultobj;
2410 CLSID *arg1 = (CLSID *) 0 ;
2411 wxString result;
2412 PyObject * obj0 = 0 ;
2413 char *kwnames[] = {
2414 (char *) "self", NULL
2415 };
2416
2417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetCLSIDString",kwnames,&obj0)) goto fail;
2418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2419 if (SWIG_arg_fail(1)) SWIG_fail;
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
2422 result = CLSID_GetCLSIDString(arg1);
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) SWIG_fail;
2426 }
2427 {
2428 #if wxUSE_UNICODE
2429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2430 #else
2431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2432 #endif
2433 }
2434 return resultobj;
2435 fail:
2436 return NULL;
2437 }
2438
2439
2440 static PyObject *_wrap_CLSID_GetProgIDString(PyObject *, PyObject *args, PyObject *kwargs) {
2441 PyObject *resultobj;
2442 CLSID *arg1 = (CLSID *) 0 ;
2443 wxString result;
2444 PyObject * obj0 = 0 ;
2445 char *kwnames[] = {
2446 (char *) "self", NULL
2447 };
2448
2449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetProgIDString",kwnames,&obj0)) goto fail;
2450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
2451 if (SWIG_arg_fail(1)) SWIG_fail;
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 result = CLSID_GetProgIDString(arg1);
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
2459 {
2460 #if wxUSE_UNICODE
2461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2462 #else
2463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2464 #endif
2465 }
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject * CLSID_swigregister(PyObject *, PyObject *args) {
2473 PyObject *obj;
2474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2475 SWIG_TypeClientData(SWIGTYPE_p_CLSID, obj);
2476 Py_INCREF(obj);
2477 return Py_BuildValue((char *)"");
2478 }
2479 static PyObject *_wrap_ParamX_flags_get(PyObject *, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxParamX *arg1 = (wxParamX *) 0 ;
2482 USHORT result;
2483 PyObject * obj0 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_flags_get",kwnames,&obj0)) goto fail;
2489 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2490 if (SWIG_arg_fail(1)) SWIG_fail;
2491 result = (USHORT) ((arg1)->flags);
2492
2493 {
2494 resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
2495 }
2496 return resultobj;
2497 fail:
2498 return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_ParamX_isPtr_get(PyObject *, PyObject *args, PyObject *kwargs) {
2503 PyObject *resultobj;
2504 wxParamX *arg1 = (wxParamX *) 0 ;
2505 bool result;
2506 PyObject * obj0 = 0 ;
2507 char *kwnames[] = {
2508 (char *) "self", NULL
2509 };
2510
2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isPtr_get",kwnames,&obj0)) goto fail;
2512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2513 if (SWIG_arg_fail(1)) SWIG_fail;
2514 result = (bool) ((arg1)->isPtr);
2515
2516 {
2517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2518 }
2519 return resultobj;
2520 fail:
2521 return NULL;
2522 }
2523
2524
2525 static PyObject *_wrap_ParamX_isSafeArray_get(PyObject *, PyObject *args, PyObject *kwargs) {
2526 PyObject *resultobj;
2527 wxParamX *arg1 = (wxParamX *) 0 ;
2528 bool result;
2529 PyObject * obj0 = 0 ;
2530 char *kwnames[] = {
2531 (char *) "self", NULL
2532 };
2533
2534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isSafeArray_get",kwnames,&obj0)) goto fail;
2535 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2536 if (SWIG_arg_fail(1)) SWIG_fail;
2537 result = (bool) ((arg1)->isSafeArray);
2538
2539 {
2540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2541 }
2542 return resultobj;
2543 fail:
2544 return NULL;
2545 }
2546
2547
2548 static PyObject *_wrap_ParamX_isOptional_get(PyObject *, PyObject *args, PyObject *kwargs) {
2549 PyObject *resultobj;
2550 wxParamX *arg1 = (wxParamX *) 0 ;
2551 bool result;
2552 PyObject * obj0 = 0 ;
2553 char *kwnames[] = {
2554 (char *) "self", NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isOptional_get",kwnames,&obj0)) goto fail;
2558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2559 if (SWIG_arg_fail(1)) SWIG_fail;
2560 result = (bool) ((arg1)->isOptional);
2561
2562 {
2563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2564 }
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_ParamX_vt_get(PyObject *, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxParamX *arg1 = (wxParamX *) 0 ;
2574 VARTYPE result;
2575 PyObject * obj0 = 0 ;
2576 char *kwnames[] = {
2577 (char *) "self", NULL
2578 };
2579
2580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_get",kwnames,&obj0)) goto fail;
2581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2582 if (SWIG_arg_fail(1)) SWIG_fail;
2583 result = (VARTYPE) ((arg1)->vt);
2584
2585 {
2586 resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result));
2587 }
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_ParamX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2595 PyObject *resultobj;
2596 wxParamX *arg1 = (wxParamX *) 0 ;
2597 wxString *result;
2598 PyObject * obj0 = 0 ;
2599 char *kwnames[] = {
2600 (char *) "self", NULL
2601 };
2602
2603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_name_get",kwnames,&obj0)) goto fail;
2604 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2605 if (SWIG_arg_fail(1)) SWIG_fail;
2606 result = (wxString *)& ((arg1)->name);
2607
2608 {
2609 #if wxUSE_UNICODE
2610 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2611 #else
2612 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2613 #endif
2614 }
2615 return resultobj;
2616 fail:
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_ParamX_vt_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxParamX *arg1 = (wxParamX *) 0 ;
2624 wxString result;
2625 PyObject * obj0 = 0 ;
2626 char *kwnames[] = {
2627 (char *) "self", NULL
2628 };
2629
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_type_get",kwnames,&obj0)) goto fail;
2631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2632 if (SWIG_arg_fail(1)) SWIG_fail;
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 result = wxParamX_vt_type_get(arg1);
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 {
2641 #if wxUSE_UNICODE
2642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2643 #else
2644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2645 #endif
2646 }
2647 return resultobj;
2648 fail:
2649 return NULL;
2650 }
2651
2652
2653 static PyObject *_wrap_ParamX_IsIn(PyObject *, PyObject *args, PyObject *kwargs) {
2654 PyObject *resultobj;
2655 wxParamX *arg1 = (wxParamX *) 0 ;
2656 bool result;
2657 PyObject * obj0 = 0 ;
2658 char *kwnames[] = {
2659 (char *) "self", NULL
2660 };
2661
2662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsIn",kwnames,&obj0)) goto fail;
2663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2664 if (SWIG_arg_fail(1)) SWIG_fail;
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (bool)((wxParamX const *)arg1)->IsIn();
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 {
2673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2674 }
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_ParamX_IsOut(PyObject *, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxParamX *arg1 = (wxParamX *) 0 ;
2684 bool result;
2685 PyObject * obj0 = 0 ;
2686 char *kwnames[] = {
2687 (char *) "self", NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsOut",kwnames,&obj0)) goto fail;
2691 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2692 if (SWIG_arg_fail(1)) SWIG_fail;
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = (bool)((wxParamX const *)arg1)->IsOut();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 {
2701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2702 }
2703 return resultobj;
2704 fail:
2705 return NULL;
2706 }
2707
2708
2709 static PyObject *_wrap_ParamX_IsRetVal(PyObject *, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxParamX *arg1 = (wxParamX *) 0 ;
2712 bool result;
2713 PyObject * obj0 = 0 ;
2714 char *kwnames[] = {
2715 (char *) "self", NULL
2716 };
2717
2718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsRetVal",kwnames,&obj0)) goto fail;
2719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0);
2720 if (SWIG_arg_fail(1)) SWIG_fail;
2721 {
2722 PyThreadState* __tstate = wxPyBeginAllowThreads();
2723 result = (bool)((wxParamX const *)arg1)->IsRetVal();
2724
2725 wxPyEndAllowThreads(__tstate);
2726 if (PyErr_Occurred()) SWIG_fail;
2727 }
2728 {
2729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2730 }
2731 return resultobj;
2732 fail:
2733 return NULL;
2734 }
2735
2736
2737 static PyObject * ParamX_swigregister(PyObject *, PyObject *args) {
2738 PyObject *obj;
2739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2740 SWIG_TypeClientData(SWIGTYPE_p_wxParamX, obj);
2741 Py_INCREF(obj);
2742 return Py_BuildValue((char *)"");
2743 }
2744 static PyObject *_wrap_FuncX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2745 PyObject *resultobj;
2746 wxFuncX *arg1 = (wxFuncX *) 0 ;
2747 wxString *result;
2748 PyObject * obj0 = 0 ;
2749 char *kwnames[] = {
2750 (char *) "self", NULL
2751 };
2752
2753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_name_get",kwnames,&obj0)) goto fail;
2754 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2755 if (SWIG_arg_fail(1)) SWIG_fail;
2756 result = (wxString *)& ((arg1)->name);
2757
2758 {
2759 #if wxUSE_UNICODE
2760 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2761 #else
2762 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2763 #endif
2764 }
2765 return resultobj;
2766 fail:
2767 return NULL;
2768 }
2769
2770
2771 static PyObject *_wrap_FuncX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
2772 PyObject *resultobj;
2773 wxFuncX *arg1 = (wxFuncX *) 0 ;
2774 MEMBERID result;
2775 PyObject * obj0 = 0 ;
2776 char *kwnames[] = {
2777 (char *) "self", NULL
2778 };
2779
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_memid_get",kwnames,&obj0)) goto fail;
2781 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2782 if (SWIG_arg_fail(1)) SWIG_fail;
2783 result = (MEMBERID) ((arg1)->memid);
2784
2785 {
2786 resultobj = SWIG_From_long((long)(result));
2787 }
2788 return resultobj;
2789 fail:
2790 return NULL;
2791 }
2792
2793
2794 static PyObject *_wrap_FuncX_hasOut_get(PyObject *, PyObject *args, PyObject *kwargs) {
2795 PyObject *resultobj;
2796 wxFuncX *arg1 = (wxFuncX *) 0 ;
2797 bool result;
2798 PyObject * obj0 = 0 ;
2799 char *kwnames[] = {
2800 (char *) "self", NULL
2801 };
2802
2803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_hasOut_get",kwnames,&obj0)) goto fail;
2804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2805 if (SWIG_arg_fail(1)) SWIG_fail;
2806 result = (bool) ((arg1)->hasOut);
2807
2808 {
2809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2810 }
2811 return resultobj;
2812 fail:
2813 return NULL;
2814 }
2815
2816
2817 static PyObject *_wrap_FuncX_retType_get(PyObject *, PyObject *args, PyObject *kwargs) {
2818 PyObject *resultobj;
2819 wxFuncX *arg1 = (wxFuncX *) 0 ;
2820 wxParamX *result;
2821 PyObject * obj0 = 0 ;
2822 char *kwnames[] = {
2823 (char *) "self", NULL
2824 };
2825
2826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_retType_get",kwnames,&obj0)) goto fail;
2827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2828 if (SWIG_arg_fail(1)) SWIG_fail;
2829 result = (wxParamX *)& ((arg1)->retType);
2830
2831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2832 return resultobj;
2833 fail:
2834 return NULL;
2835 }
2836
2837
2838 static PyObject *_wrap_FuncX_params_get(PyObject *, PyObject *args, PyObject *kwargs) {
2839 PyObject *resultobj;
2840 wxFuncX *arg1 = (wxFuncX *) 0 ;
2841 wxParamXArray *result;
2842 PyObject * obj0 = 0 ;
2843 char *kwnames[] = {
2844 (char *) "self", NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_params_get",kwnames,&obj0)) goto fail;
2848 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0);
2849 if (SWIG_arg_fail(1)) SWIG_fail;
2850 result = (wxParamXArray *)& ((arg1)->params);
2851
2852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamXArray, 0);
2853 return resultobj;
2854 fail:
2855 return NULL;
2856 }
2857
2858
2859 static PyObject * FuncX_swigregister(PyObject *, PyObject *args) {
2860 PyObject *obj;
2861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2862 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX, obj);
2863 Py_INCREF(obj);
2864 return Py_BuildValue((char *)"");
2865 }
2866 static PyObject *_wrap_PropX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
2867 PyObject *resultobj;
2868 wxPropX *arg1 = (wxPropX *) 0 ;
2869 wxString *result;
2870 PyObject * obj0 = 0 ;
2871 char *kwnames[] = {
2872 (char *) "self", NULL
2873 };
2874
2875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_name_get",kwnames,&obj0)) goto fail;
2876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2877 if (SWIG_arg_fail(1)) SWIG_fail;
2878 result = (wxString *)& ((arg1)->name);
2879
2880 {
2881 #if wxUSE_UNICODE
2882 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
2883 #else
2884 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
2885 #endif
2886 }
2887 return resultobj;
2888 fail:
2889 return NULL;
2890 }
2891
2892
2893 static PyObject *_wrap_PropX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
2894 PyObject *resultobj;
2895 wxPropX *arg1 = (wxPropX *) 0 ;
2896 MEMBERID result;
2897 PyObject * obj0 = 0 ;
2898 char *kwnames[] = {
2899 (char *) "self", NULL
2900 };
2901
2902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_memid_get",kwnames,&obj0)) goto fail;
2903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2904 if (SWIG_arg_fail(1)) SWIG_fail;
2905 result = (MEMBERID) ((arg1)->memid);
2906
2907 {
2908 resultobj = SWIG_From_long((long)(result));
2909 }
2910 return resultobj;
2911 fail:
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_PropX_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxPropX *arg1 = (wxPropX *) 0 ;
2919 wxParamX *result;
2920 PyObject * obj0 = 0 ;
2921 char *kwnames[] = {
2922 (char *) "self", NULL
2923 };
2924
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_type_get",kwnames,&obj0)) goto fail;
2926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2927 if (SWIG_arg_fail(1)) SWIG_fail;
2928 result = (wxParamX *)& ((arg1)->type);
2929
2930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2931 return resultobj;
2932 fail:
2933 return NULL;
2934 }
2935
2936
2937 static PyObject *_wrap_PropX_arg_get(PyObject *, PyObject *args, PyObject *kwargs) {
2938 PyObject *resultobj;
2939 wxPropX *arg1 = (wxPropX *) 0 ;
2940 wxParamX *result;
2941 PyObject * obj0 = 0 ;
2942 char *kwnames[] = {
2943 (char *) "self", NULL
2944 };
2945
2946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_arg_get",kwnames,&obj0)) goto fail;
2947 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2948 if (SWIG_arg_fail(1)) SWIG_fail;
2949 result = (wxParamX *)& ((arg1)->arg);
2950
2951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2952 return resultobj;
2953 fail:
2954 return NULL;
2955 }
2956
2957
2958 static PyObject *_wrap_PropX_putByRef_get(PyObject *, PyObject *args, PyObject *kwargs) {
2959 PyObject *resultobj;
2960 wxPropX *arg1 = (wxPropX *) 0 ;
2961 bool result;
2962 PyObject * obj0 = 0 ;
2963 char *kwnames[] = {
2964 (char *) "self", NULL
2965 };
2966
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_putByRef_get",kwnames,&obj0)) goto fail;
2968 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2969 if (SWIG_arg_fail(1)) SWIG_fail;
2970 result = (bool) ((arg1)->putByRef);
2971
2972 {
2973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2974 }
2975 return resultobj;
2976 fail:
2977 return NULL;
2978 }
2979
2980
2981 static PyObject *_wrap_PropX_CanGet(PyObject *, PyObject *args, PyObject *kwargs) {
2982 PyObject *resultobj;
2983 wxPropX *arg1 = (wxPropX *) 0 ;
2984 bool result;
2985 PyObject * obj0 = 0 ;
2986 char *kwnames[] = {
2987 (char *) "self", NULL
2988 };
2989
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanGet",kwnames,&obj0)) goto fail;
2991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
2992 if (SWIG_arg_fail(1)) SWIG_fail;
2993 {
2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2995 result = (bool)((wxPropX const *)arg1)->CanGet();
2996
2997 wxPyEndAllowThreads(__tstate);
2998 if (PyErr_Occurred()) SWIG_fail;
2999 }
3000 {
3001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3002 }
3003 return resultobj;
3004 fail:
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_PropX_CanSet(PyObject *, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 wxPropX *arg1 = (wxPropX *) 0 ;
3012 bool result;
3013 PyObject * obj0 = 0 ;
3014 char *kwnames[] = {
3015 (char *) "self", NULL
3016 };
3017
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanSet",kwnames,&obj0)) goto fail;
3019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0);
3020 if (SWIG_arg_fail(1)) SWIG_fail;
3021 {
3022 PyThreadState* __tstate = wxPyBeginAllowThreads();
3023 result = (bool)((wxPropX const *)arg1)->CanSet();
3024
3025 wxPyEndAllowThreads(__tstate);
3026 if (PyErr_Occurred()) SWIG_fail;
3027 }
3028 {
3029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3030 }
3031 return resultobj;
3032 fail:
3033 return NULL;
3034 }
3035
3036
3037 static PyObject * PropX_swigregister(PyObject *, PyObject *args) {
3038 PyObject *obj;
3039 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3040 SWIG_TypeClientData(SWIGTYPE_p_wxPropX, obj);
3041 Py_INCREF(obj);
3042 return Py_BuildValue((char *)"");
3043 }
3044 static PyObject *_wrap_ParamXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3045 PyObject *resultobj;
3046 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3047 bool result;
3048 PyObject * obj0 = 0 ;
3049 char *kwnames[] = {
3050 (char *) "self", NULL
3051 };
3052
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___nonzero__",kwnames,&obj0)) goto fail;
3054 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3055 if (SWIG_arg_fail(1)) SWIG_fail;
3056 {
3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
3058 result = (bool)wxParamXArray___nonzero__(arg1);
3059
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 {
3064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3065 }
3066 return resultobj;
3067 fail:
3068 return NULL;
3069 }
3070
3071
3072 static PyObject *_wrap_ParamXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3073 PyObject *resultobj;
3074 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3075 int result;
3076 PyObject * obj0 = 0 ;
3077 char *kwnames[] = {
3078 (char *) "self", NULL
3079 };
3080
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___len__",kwnames,&obj0)) goto fail;
3082 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3083 if (SWIG_arg_fail(1)) SWIG_fail;
3084 {
3085 PyThreadState* __tstate = wxPyBeginAllowThreads();
3086 result = (int)wxParamXArray___len__(arg1);
3087
3088 wxPyEndAllowThreads(__tstate);
3089 if (PyErr_Occurred()) SWIG_fail;
3090 }
3091 {
3092 resultobj = SWIG_From_int((int)(result));
3093 }
3094 return resultobj;
3095 fail:
3096 return NULL;
3097 }
3098
3099
3100 static PyObject *_wrap_ParamXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3101 PyObject *resultobj;
3102 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
3103 int arg2 ;
3104 wxParamX *result;
3105 PyObject * obj0 = 0 ;
3106 PyObject * obj1 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "self",(char *) "idx", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ParamXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0);
3113 if (SWIG_arg_fail(1)) SWIG_fail;
3114 {
3115 arg2 = (int)(SWIG_As_int(obj1));
3116 if (SWIG_arg_fail(2)) SWIG_fail;
3117 }
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 {
3121 wxParamX const &_result_ref = wxParamXArray___getitem__(arg1,arg2);
3122 result = (wxParamX *) &_result_ref;
3123 }
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject * ParamXArray_swigregister(PyObject *, PyObject *args) {
3136 PyObject *obj;
3137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3138 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray, obj);
3139 Py_INCREF(obj);
3140 return Py_BuildValue((char *)"");
3141 }
3142 static PyObject *_wrap_FuncXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3145 bool result;
3146 PyObject * obj0 = 0 ;
3147 char *kwnames[] = {
3148 (char *) "self", NULL
3149 };
3150
3151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___nonzero__",kwnames,&obj0)) goto fail;
3152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3153 if (SWIG_arg_fail(1)) SWIG_fail;
3154 {
3155 PyThreadState* __tstate = wxPyBeginAllowThreads();
3156 result = (bool)wxFuncXArray___nonzero__(arg1);
3157
3158 wxPyEndAllowThreads(__tstate);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 {
3162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3163 }
3164 return resultobj;
3165 fail:
3166 return NULL;
3167 }
3168
3169
3170 static PyObject *_wrap_FuncXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3171 PyObject *resultobj;
3172 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3173 int result;
3174 PyObject * obj0 = 0 ;
3175 char *kwnames[] = {
3176 (char *) "self", NULL
3177 };
3178
3179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___len__",kwnames,&obj0)) goto fail;
3180 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3181 if (SWIG_arg_fail(1)) SWIG_fail;
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 result = (int)wxFuncXArray___len__(arg1);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 {
3190 resultobj = SWIG_From_int((int)(result));
3191 }
3192 return resultobj;
3193 fail:
3194 return NULL;
3195 }
3196
3197
3198 static PyObject *_wrap_FuncXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3199 PyObject *resultobj;
3200 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
3201 int arg2 ;
3202 wxFuncX *result;
3203 PyObject * obj0 = 0 ;
3204 PyObject * obj1 = 0 ;
3205 char *kwnames[] = {
3206 (char *) "self",(char *) "idx", NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FuncXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0);
3211 if (SWIG_arg_fail(1)) SWIG_fail;
3212 {
3213 arg2 = (int)(SWIG_As_int(obj1));
3214 if (SWIG_arg_fail(2)) SWIG_fail;
3215 }
3216 {
3217 PyThreadState* __tstate = wxPyBeginAllowThreads();
3218 {
3219 wxFuncX const &_result_ref = wxFuncXArray___getitem__(arg1,arg2);
3220 result = (wxFuncX *) &_result_ref;
3221 }
3222
3223 wxPyEndAllowThreads(__tstate);
3224 if (PyErr_Occurred()) SWIG_fail;
3225 }
3226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3227 return resultobj;
3228 fail:
3229 return NULL;
3230 }
3231
3232
3233 static PyObject * FuncXArray_swigregister(PyObject *, PyObject *args) {
3234 PyObject *obj;
3235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3236 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray, obj);
3237 Py_INCREF(obj);
3238 return Py_BuildValue((char *)"");
3239 }
3240 static PyObject *_wrap_PropXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
3241 PyObject *resultobj;
3242 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3243 bool result;
3244 PyObject * obj0 = 0 ;
3245 char *kwnames[] = {
3246 (char *) "self", NULL
3247 };
3248
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___nonzero__",kwnames,&obj0)) goto fail;
3250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3251 if (SWIG_arg_fail(1)) SWIG_fail;
3252 {
3253 PyThreadState* __tstate = wxPyBeginAllowThreads();
3254 result = (bool)wxPropXArray___nonzero__(arg1);
3255
3256 wxPyEndAllowThreads(__tstate);
3257 if (PyErr_Occurred()) SWIG_fail;
3258 }
3259 {
3260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3261 }
3262 return resultobj;
3263 fail:
3264 return NULL;
3265 }
3266
3267
3268 static PyObject *_wrap_PropXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
3269 PyObject *resultobj;
3270 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3271 int result;
3272 PyObject * obj0 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "self", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___len__",kwnames,&obj0)) goto fail;
3278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3279 if (SWIG_arg_fail(1)) SWIG_fail;
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 result = (int)wxPropXArray___len__(arg1);
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 {
3288 resultobj = SWIG_From_int((int)(result));
3289 }
3290 return resultobj;
3291 fail:
3292 return NULL;
3293 }
3294
3295
3296 static PyObject *_wrap_PropXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
3297 PyObject *resultobj;
3298 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
3299 int arg2 ;
3300 wxPropX *result;
3301 PyObject * obj0 = 0 ;
3302 PyObject * obj1 = 0 ;
3303 char *kwnames[] = {
3304 (char *) "self",(char *) "idx", NULL
3305 };
3306
3307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PropXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
3308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0);
3309 if (SWIG_arg_fail(1)) SWIG_fail;
3310 {
3311 arg2 = (int)(SWIG_As_int(obj1));
3312 if (SWIG_arg_fail(2)) SWIG_fail;
3313 }
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 {
3317 wxPropX const &_result_ref = wxPropXArray___getitem__(arg1,arg2);
3318 result = (wxPropX *) &_result_ref;
3319 }
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3325 return resultobj;
3326 fail:
3327 return NULL;
3328 }
3329
3330
3331 static PyObject * PropXArray_swigregister(PyObject *, PyObject *args) {
3332 PyObject *obj;
3333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3334 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray, obj);
3335 Py_INCREF(obj);
3336 return Py_BuildValue((char *)"");
3337 }
3338 static PyObject *_wrap_new_ActiveXWindow(PyObject *, PyObject *args, PyObject *kwargs) {
3339 PyObject *resultobj;
3340 wxWindow *arg1 = (wxWindow *) 0 ;
3341 CLSID *arg2 = 0 ;
3342 int arg3 = (int) -1 ;
3343 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3344 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3345 wxSize const &arg5_defvalue = wxDefaultSize ;
3346 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3347 long arg6 = (long) 0 ;
3348 wxString const &arg7_defvalue = wxPyPanelNameStr ;
3349 wxString *arg7 = (wxString *) &arg7_defvalue ;
3350 wxActiveXWindow *result;
3351 wxPoint temp4 ;
3352 wxSize temp5 ;
3353 bool temp7 = false ;
3354 PyObject * obj0 = 0 ;
3355 PyObject * obj1 = 0 ;
3356 PyObject * obj2 = 0 ;
3357 PyObject * obj3 = 0 ;
3358 PyObject * obj4 = 0 ;
3359 PyObject * obj5 = 0 ;
3360 PyObject * obj6 = 0 ;
3361 char *kwnames[] = {
3362 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3363 };
3364
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3366 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
3367 if (SWIG_arg_fail(1)) SWIG_fail;
3368 {
3369 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
3370 if (SWIG_arg_fail(2)) SWIG_fail;
3371 if (arg2 == NULL) {
3372 SWIG_null_ref("CLSID");
3373 }
3374 if (SWIG_arg_fail(2)) SWIG_fail;
3375 }
3376 if (obj2) {
3377 {
3378 arg3 = (int)(SWIG_As_int(obj2));
3379 if (SWIG_arg_fail(3)) SWIG_fail;
3380 }
3381 }
3382 if (obj3) {
3383 {
3384 arg4 = &temp4;
3385 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3386 }
3387 }
3388 if (obj4) {
3389 {
3390 arg5 = &temp5;
3391 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3392 }
3393 }
3394 if (obj5) {
3395 {
3396 arg6 = (long)(SWIG_As_long(obj5));
3397 if (SWIG_arg_fail(6)) SWIG_fail;
3398 }
3399 }
3400 if (obj6) {
3401 {
3402 arg7 = wxString_in_helper(obj6);
3403 if (arg7 == NULL) SWIG_fail;
3404 temp7 = true;
3405 }
3406 }
3407 {
3408 if (!wxPyCheckForApp()) SWIG_fail;
3409 PyThreadState* __tstate = wxPyBeginAllowThreads();
3410 result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
3411
3412 wxPyEndAllowThreads(__tstate);
3413 if (PyErr_Occurred()) SWIG_fail;
3414 }
3415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActiveXWindow, 1);
3416 {
3417 if (temp7)
3418 delete arg7;
3419 }
3420 return resultobj;
3421 fail:
3422 {
3423 if (temp7)
3424 delete arg7;
3425 }
3426 return NULL;
3427 }
3428
3429
3430 static PyObject *_wrap_ActiveXWindow_GetCLSID(PyObject *, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3433 CLSID *result;
3434 PyObject * obj0 = 0 ;
3435 char *kwnames[] = {
3436 (char *) "self", NULL
3437 };
3438
3439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetCLSID",kwnames,&obj0)) goto fail;
3440 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3441 if (SWIG_arg_fail(1)) SWIG_fail;
3442 {
3443 PyThreadState* __tstate = wxPyBeginAllowThreads();
3444 {
3445 CLSID const &_result_ref = ((wxActiveXWindow const *)arg1)->GetCLSID();
3446 result = (CLSID *) &_result_ref;
3447 }
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 0);
3453 return resultobj;
3454 fail:
3455 return NULL;
3456 }
3457
3458
3459 static PyObject *_wrap_ActiveXWindow_GetAXEventCount(PyObject *, PyObject *args, PyObject *kwargs) {
3460 PyObject *resultobj;
3461 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3462 int result;
3463 PyObject * obj0 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames,&obj0)) goto fail;
3469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3470 if (SWIG_arg_fail(1)) SWIG_fail;
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 result = (int)((wxActiveXWindow const *)arg1)->GetAXEventCount();
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 {
3479 resultobj = SWIG_From_int((int)(result));
3480 }
3481 return resultobj;
3482 fail:
3483 return NULL;
3484 }
3485
3486
3487 static PyObject *_wrap_ActiveXWindow_GetAXEventDesc(PyObject *, PyObject *args, PyObject *kwargs) {
3488 PyObject *resultobj;
3489 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3490 int arg2 ;
3491 wxFuncX *result;
3492 PyObject * obj0 = 0 ;
3493 PyObject * obj1 = 0 ;
3494 char *kwnames[] = {
3495 (char *) "self",(char *) "idx", NULL
3496 };
3497
3498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames,&obj0,&obj1)) goto fail;
3499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3500 if (SWIG_arg_fail(1)) SWIG_fail;
3501 {
3502 arg2 = (int)(SWIG_As_int(obj1));
3503 if (SWIG_arg_fail(2)) SWIG_fail;
3504 }
3505 {
3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
3507 {
3508 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXEventDesc(arg2);
3509 result = (wxFuncX *) &_result_ref;
3510 }
3511
3512 wxPyEndAllowThreads(__tstate);
3513 if (PyErr_Occurred()) SWIG_fail;
3514 }
3515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3516 return resultobj;
3517 fail:
3518 return NULL;
3519 }
3520
3521
3522 static PyObject *_wrap_ActiveXWindow_GetAXPropCount(PyObject *, PyObject *args, PyObject *kwargs) {
3523 PyObject *resultobj;
3524 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3525 int result;
3526 PyObject * obj0 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames,&obj0)) goto fail;
3532 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3533 if (SWIG_arg_fail(1)) SWIG_fail;
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = (int)((wxActiveXWindow const *)arg1)->GetAXPropCount();
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 {
3542 resultobj = SWIG_From_int((int)(result));
3543 }
3544 return resultobj;
3545 fail:
3546 return NULL;
3547 }
3548
3549
3550 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject *, PyObject *args) {
3551 PyObject *resultobj;
3552 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3553 int arg2 ;
3554 wxPropX *result;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557
3558 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
3559 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3560 if (SWIG_arg_fail(1)) SWIG_fail;
3561 {
3562 arg2 = (int)(SWIG_As_int(obj1));
3563 if (SWIG_arg_fail(2)) SWIG_fail;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 {
3568 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc(arg2);
3569 result = (wxPropX *) &_result_ref;
3570 }
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3576 return resultobj;
3577 fail:
3578 return NULL;
3579 }
3580
3581
3582 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject *, PyObject *args) {
3583 PyObject *resultobj;
3584 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3585 wxString *arg2 = 0 ;
3586 wxPropX *result;
3587 bool temp2 = false ;
3588 PyObject * obj0 = 0 ;
3589 PyObject * obj1 = 0 ;
3590
3591 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
3592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3593 if (SWIG_arg_fail(1)) SWIG_fail;
3594 {
3595 arg2 = wxString_in_helper(obj1);
3596 if (arg2 == NULL) SWIG_fail;
3597 temp2 = true;
3598 }
3599 {
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 {
3602 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc((wxString const &)*arg2);
3603 result = (wxPropX *) &_result_ref;
3604 }
3605
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) SWIG_fail;
3608 }
3609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
3610 {
3611 if (temp2)
3612 delete arg2;
3613 }
3614 return resultobj;
3615 fail:
3616 {
3617 if (temp2)
3618 delete arg2;
3619 }
3620 return NULL;
3621 }
3622
3623
3624 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc(PyObject *self, PyObject *args) {
3625 int argc;
3626 PyObject *argv[3];
3627 int ii;
3628
3629 argc = PyObject_Length(args);
3630 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3631 argv[ii] = PyTuple_GetItem(args,ii);
3632 }
3633 if (argc == 2) {
3634 int _v;
3635 {
3636 void *ptr;
3637 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3638 _v = 0;
3639 PyErr_Clear();
3640 } else {
3641 _v = 1;
3642 }
3643 }
3644 if (_v) {
3645 {
3646 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
3647 }
3648 if (_v) {
3649 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self,args);
3650 }
3651 }
3652 }
3653 if (argc == 2) {
3654 int _v;
3655 {
3656 void *ptr;
3657 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3658 _v = 0;
3659 PyErr_Clear();
3660 } else {
3661 _v = 1;
3662 }
3663 }
3664 if (_v) {
3665 _v = SWIG_Check_int(argv[1]);
3666 if (_v) {
3667 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self,args);
3668 }
3669 }
3670 }
3671
3672 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
3673 return NULL;
3674 }
3675
3676
3677 static PyObject *_wrap_ActiveXWindow_GetAXMethodCount(PyObject *, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3680 int result;
3681 PyObject * obj0 = 0 ;
3682 char *kwnames[] = {
3683 (char *) "self", NULL
3684 };
3685
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames,&obj0)) goto fail;
3687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3688 if (SWIG_arg_fail(1)) SWIG_fail;
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 result = (int)((wxActiveXWindow const *)arg1)->GetAXMethodCount();
3692
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 {
3697 resultobj = SWIG_From_int((int)(result));
3698 }
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject *, PyObject *args) {
3706 PyObject *resultobj;
3707 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3708 int arg2 ;
3709 wxFuncX *result;
3710 PyObject * obj0 = 0 ;
3711 PyObject * obj1 = 0 ;
3712
3713 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
3714 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3715 if (SWIG_arg_fail(1)) SWIG_fail;
3716 {
3717 arg2 = (int)(SWIG_As_int(obj1));
3718 if (SWIG_arg_fail(2)) SWIG_fail;
3719 }
3720 {
3721 PyThreadState* __tstate = wxPyBeginAllowThreads();
3722 {
3723 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc(arg2);
3724 result = (wxFuncX *) &_result_ref;
3725 }
3726
3727 wxPyEndAllowThreads(__tstate);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3731 return resultobj;
3732 fail:
3733 return NULL;
3734 }
3735
3736
3737 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject *, PyObject *args) {
3738 PyObject *resultobj;
3739 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3740 wxString *arg2 = 0 ;
3741 wxFuncX *result;
3742 bool temp2 = false ;
3743 PyObject * obj0 = 0 ;
3744 PyObject * obj1 = 0 ;
3745
3746 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
3747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3748 if (SWIG_arg_fail(1)) SWIG_fail;
3749 {
3750 arg2 = wxString_in_helper(obj1);
3751 if (arg2 == NULL) SWIG_fail;
3752 temp2 = true;
3753 }
3754 {
3755 PyThreadState* __tstate = wxPyBeginAllowThreads();
3756 {
3757 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc((wxString const &)*arg2);
3758 result = (wxFuncX *) &_result_ref;
3759 }
3760
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
3765 {
3766 if (temp2)
3767 delete arg2;
3768 }
3769 return resultobj;
3770 fail:
3771 {
3772 if (temp2)
3773 delete arg2;
3774 }
3775 return NULL;
3776 }
3777
3778
3779 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc(PyObject *self, PyObject *args) {
3780 int argc;
3781 PyObject *argv[3];
3782 int ii;
3783
3784 argc = PyObject_Length(args);
3785 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3786 argv[ii] = PyTuple_GetItem(args,ii);
3787 }
3788 if (argc == 2) {
3789 int _v;
3790 {
3791 void *ptr;
3792 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3793 _v = 0;
3794 PyErr_Clear();
3795 } else {
3796 _v = 1;
3797 }
3798 }
3799 if (_v) {
3800 {
3801 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
3802 }
3803 if (_v) {
3804 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self,args);
3805 }
3806 }
3807 }
3808 if (argc == 2) {
3809 int _v;
3810 {
3811 void *ptr;
3812 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
3813 _v = 0;
3814 PyErr_Clear();
3815 } else {
3816 _v = 1;
3817 }
3818 }
3819 if (_v) {
3820 _v = SWIG_Check_int(argv[1]);
3821 if (_v) {
3822 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self,args);
3823 }
3824 }
3825 }
3826
3827 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
3828 return NULL;
3829 }
3830
3831
3832 static PyObject *_wrap_ActiveXWindow_GetAXEvents(PyObject *, PyObject *args, PyObject *kwargs) {
3833 PyObject *resultobj;
3834 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3835 wxFuncXArray *result;
3836 PyObject * obj0 = 0 ;
3837 char *kwnames[] = {
3838 (char *) "self", NULL
3839 };
3840
3841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEvents",kwnames,&obj0)) goto fail;
3842 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3843 if (SWIG_arg_fail(1)) SWIG_fail;
3844 {
3845 PyThreadState* __tstate = wxPyBeginAllowThreads();
3846 {
3847 wxFuncXArray const &_result_ref = (arg1)->GetAXEvents();
3848 result = (wxFuncXArray *) &_result_ref;
3849 }
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_ActiveXWindow_GetAXMethods(PyObject *, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3864 wxFuncXArray *result;
3865 PyObject * obj0 = 0 ;
3866 char *kwnames[] = {
3867 (char *) "self", NULL
3868 };
3869
3870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethods",kwnames,&obj0)) goto fail;
3871 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3872 if (SWIG_arg_fail(1)) SWIG_fail;
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 {
3876 wxFuncXArray const &_result_ref = (arg1)->GetAXMethods();
3877 result = (wxFuncXArray *) &_result_ref;
3878 }
3879
3880 wxPyEndAllowThreads(__tstate);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 }
3883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
3884 return resultobj;
3885 fail:
3886 return NULL;
3887 }
3888
3889
3890 static PyObject *_wrap_ActiveXWindow_GetAXProperties(PyObject *, PyObject *args, PyObject *kwargs) {
3891 PyObject *resultobj;
3892 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3893 wxPropXArray *result;
3894 PyObject * obj0 = 0 ;
3895 char *kwnames[] = {
3896 (char *) "self", NULL
3897 };
3898
3899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXProperties",kwnames,&obj0)) goto fail;
3900 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3901 if (SWIG_arg_fail(1)) SWIG_fail;
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 {
3905 wxPropXArray const &_result_ref = (arg1)->GetAXProperties();
3906 result = (wxPropXArray *) &_result_ref;
3907 }
3908
3909 wxPyEndAllowThreads(__tstate);
3910 if (PyErr_Occurred()) SWIG_fail;
3911 }
3912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropXArray, 0);
3913 return resultobj;
3914 fail:
3915 return NULL;
3916 }
3917
3918
3919 static PyObject *_wrap_ActiveXWindow_SetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj;
3921 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3922 wxString *arg2 = 0 ;
3923 PyObject *arg3 = (PyObject *) 0 ;
3924 bool temp2 = false ;
3925 PyObject * obj0 = 0 ;
3926 PyObject * obj1 = 0 ;
3927 PyObject * obj2 = 0 ;
3928 char *kwnames[] = {
3929 (char *) "self",(char *) "name",(char *) "value", NULL
3930 };
3931
3932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames,&obj0,&obj1,&obj2)) goto fail;
3933 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3934 if (SWIG_arg_fail(1)) SWIG_fail;
3935 {
3936 arg2 = wxString_in_helper(obj1);
3937 if (arg2 == NULL) SWIG_fail;
3938 temp2 = true;
3939 }
3940 arg3 = obj2;
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 (arg1)->SetAXProp((wxString const &)*arg2,arg3);
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 Py_INCREF(Py_None); resultobj = Py_None;
3949 {
3950 if (temp2)
3951 delete arg2;
3952 }
3953 return resultobj;
3954 fail:
3955 {
3956 if (temp2)
3957 delete arg2;
3958 }
3959 return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_ActiveXWindow_GetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj;
3965 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
3966 wxString *arg2 = 0 ;
3967 PyObject *result;
3968 bool temp2 = false ;
3969 PyObject * obj0 = 0 ;
3970 PyObject * obj1 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "self",(char *) "name", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXProp",kwnames,&obj0,&obj1)) goto fail;
3976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
3977 if (SWIG_arg_fail(1)) SWIG_fail;
3978 {
3979 arg2 = wxString_in_helper(obj1);
3980 if (arg2 == NULL) SWIG_fail;
3981 temp2 = true;
3982 }
3983 {
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 result = (PyObject *)(arg1)->GetAXProp((wxString const &)*arg2);
3986
3987 wxPyEndAllowThreads(__tstate);
3988 if (PyErr_Occurred()) SWIG_fail;
3989 }
3990 resultobj = result;
3991 {
3992 if (temp2)
3993 delete arg2;
3994 }
3995 return resultobj;
3996 fail:
3997 {
3998 if (temp2)
3999 delete arg2;
4000 }
4001 return NULL;
4002 }
4003
4004
4005 static PyObject *_wrap_ActiveXWindow__CallAXMethod(PyObject *, PyObject *args) {
4006 PyObject *resultobj;
4007 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
4008 wxString *arg2 = 0 ;
4009 PyObject *arg3 = (PyObject *) 0 ;
4010 PyObject *result;
4011 bool temp2 = false ;
4012 PyObject * obj0 = 0 ;
4013 PyObject * obj1 = 0 ;
4014 PyObject * obj2 = 0 ;
4015
4016 if(!PyArg_ParseTuple(args,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0,&obj1,&obj2)) goto fail;
4017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0);
4018 if (SWIG_arg_fail(1)) SWIG_fail;
4019 {
4020 arg2 = wxString_in_helper(obj1);
4021 if (arg2 == NULL) SWIG_fail;
4022 temp2 = true;
4023 }
4024 arg3 = obj2;
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (PyObject *)(arg1)->_CallAXMethod((wxString const &)*arg2,arg3);
4028
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = result;
4033 {
4034 if (temp2)
4035 delete arg2;
4036 }
4037 return resultobj;
4038 fail:
4039 {
4040 if (temp2)
4041 delete arg2;
4042 }
4043 return NULL;
4044 }
4045
4046
4047 static PyObject * ActiveXWindow_swigregister(PyObject *, PyObject *args) {
4048 PyObject *obj;
4049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4050 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow, obj);
4051 Py_INCREF(obj);
4052 return Py_BuildValue((char *)"");
4053 }
4054 static PyObject *_wrap_RegisterActiveXEvent(PyObject *, PyObject *args, PyObject *kwargs) {
4055 PyObject *resultobj;
4056 wxString *arg1 = 0 ;
4057 wxEventType result;
4058 bool temp1 = false ;
4059 PyObject * obj0 = 0 ;
4060 char *kwnames[] = {
4061 (char *) "eventName", NULL
4062 };
4063
4064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterActiveXEvent",kwnames,&obj0)) goto fail;
4065 {
4066 arg1 = wxString_in_helper(obj0);
4067 if (arg1 == NULL) SWIG_fail;
4068 temp1 = true;
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 result = (wxEventType)RegisterActiveXEvent((wxString const &)*arg1);
4073
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 {
4078 resultobj = SWIG_From_int((int)(result));
4079 }
4080 {
4081 if (temp1)
4082 delete arg1;
4083 }
4084 return resultobj;
4085 fail:
4086 {
4087 if (temp1)
4088 delete arg1;
4089 }
4090 return NULL;
4091 }
4092
4093
4094 static PyObject *_wrap_ActiveXEvent_EventName(PyObject *, PyObject *args, PyObject *kwargs) {
4095 PyObject *resultobj;
4096 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4097 wxString result;
4098 PyObject * obj0 = 0 ;
4099 char *kwnames[] = {
4100 (char *) "self", NULL
4101 };
4102
4103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXEvent_EventName",kwnames,&obj0)) goto fail;
4104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4105 if (SWIG_arg_fail(1)) SWIG_fail;
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (arg1)->EventName();
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 {
4114 #if wxUSE_UNICODE
4115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4116 #else
4117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4118 #endif
4119 }
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 static PyObject *_wrap_ActiveXEvent__preCallInit(PyObject *, PyObject *args, PyObject *kwargs) {
4127 PyObject *resultobj;
4128 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4129 PyObject *arg2 = (PyObject *) 0 ;
4130 PyObject * obj0 = 0 ;
4131 PyObject * obj1 = 0 ;
4132 char *kwnames[] = {
4133 (char *) "self",(char *) "pyself", NULL
4134 };
4135
4136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__preCallInit",kwnames,&obj0,&obj1)) goto fail;
4137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4138 if (SWIG_arg_fail(1)) SWIG_fail;
4139 arg2 = obj1;
4140 {
4141 PyThreadState* __tstate = wxPyBeginAllowThreads();
4142 wxActiveXEvent__preCallInit(arg1,arg2);
4143
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 Py_INCREF(Py_None); resultobj = Py_None;
4148 return resultobj;
4149 fail:
4150 return NULL;
4151 }
4152
4153
4154 static PyObject *_wrap_ActiveXEvent__postCallCleanup(PyObject *, PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj;
4156 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
4157 PyObject *arg2 = (PyObject *) 0 ;
4158 PyObject * obj0 = 0 ;
4159 PyObject * obj1 = 0 ;
4160 char *kwnames[] = {
4161 (char *) "self",(char *) "pyself", NULL
4162 };
4163
4164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames,&obj0,&obj1)) goto fail;
4165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0);
4166 if (SWIG_arg_fail(1)) SWIG_fail;
4167 arg2 = obj1;
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 wxActiveXEvent__postCallCleanup(arg1,arg2);
4171
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 Py_INCREF(Py_None); resultobj = Py_None;
4176 return resultobj;
4177 fail:
4178 return NULL;
4179 }
4180
4181
4182 static PyObject * ActiveXEvent_swigregister(PyObject *, PyObject *args) {
4183 PyObject *obj;
4184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4185 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent, obj);
4186 Py_INCREF(obj);
4187 return Py_BuildValue((char *)"");
4188 }
4189 static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxWindow *arg1 = (wxWindow *) 0 ;
4192 CLSID *arg2 = 0 ;
4193 int arg3 = (int) -1 ;
4194 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4195 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4196 wxSize const &arg5_defvalue = wxDefaultSize ;
4197 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4198 long arg6 = (long) 0 ;
4199 wxString const &arg7_defvalue = wxPyPanelNameStr ;
4200 wxString *arg7 = (wxString *) &arg7_defvalue ;
4201 wxIEHtmlWindowBase *result;
4202 wxPoint temp4 ;
4203 wxSize temp5 ;
4204 bool temp7 = false ;
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 PyObject * obj2 = 0 ;
4208 PyObject * obj3 = 0 ;
4209 PyObject * obj4 = 0 ;
4210 PyObject * obj5 = 0 ;
4211 PyObject * obj6 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
4218 if (SWIG_arg_fail(1)) SWIG_fail;
4219 {
4220 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0);
4221 if (SWIG_arg_fail(2)) SWIG_fail;
4222 if (arg2 == NULL) {
4223 SWIG_null_ref("CLSID");
4224 }
4225 if (SWIG_arg_fail(2)) SWIG_fail;
4226 }
4227 if (obj2) {
4228 {
4229 arg3 = (int)(SWIG_As_int(obj2));
4230 if (SWIG_arg_fail(3)) SWIG_fail;
4231 }
4232 }
4233 if (obj3) {
4234 {
4235 arg4 = &temp4;
4236 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4237 }
4238 }
4239 if (obj4) {
4240 {
4241 arg5 = &temp5;
4242 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4243 }
4244 }
4245 if (obj5) {
4246 {
4247 arg6 = (long)(SWIG_As_long(obj5));
4248 if (SWIG_arg_fail(6)) SWIG_fail;
4249 }
4250 }
4251 if (obj6) {
4252 {
4253 arg7 = wxString_in_helper(obj6);
4254 if (arg7 == NULL) SWIG_fail;
4255 temp7 = true;
4256 }
4257 }
4258 {
4259 if (!wxPyCheckForApp()) SWIG_fail;
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4262
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIEHtmlWindowBase, 1);
4267 {
4268 if (temp7)
4269 delete arg7;
4270 }
4271 return resultobj;
4272 fail:
4273 {
4274 if (temp7)
4275 delete arg7;
4276 }
4277 return NULL;
4278 }
4279
4280
4281 static PyObject *_wrap_IEHtmlWindowBase_SetCharset(PyObject *, PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj;
4283 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4284 wxString *arg2 = 0 ;
4285 bool temp2 = false ;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 char *kwnames[] = {
4289 (char *) "self",(char *) "charset", NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames,&obj0,&obj1)) goto fail;
4293 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4294 if (SWIG_arg_fail(1)) SWIG_fail;
4295 {
4296 arg2 = wxString_in_helper(obj1);
4297 if (arg2 == NULL) SWIG_fail;
4298 temp2 = true;
4299 }
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetCharset((wxString const &)*arg2);
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 Py_INCREF(Py_None); resultobj = Py_None;
4308 {
4309 if (temp2)
4310 delete arg2;
4311 }
4312 return resultobj;
4313 fail:
4314 {
4315 if (temp2)
4316 delete arg2;
4317 }
4318 return NULL;
4319 }
4320
4321
4322 static PyObject *_wrap_IEHtmlWindowBase_LoadString(PyObject *, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4325 wxString *arg2 = 0 ;
4326 bool result;
4327 bool temp2 = false ;
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char *kwnames[] = {
4331 (char *) "self",(char *) "html", NULL
4332 };
4333
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames,&obj0,&obj1)) goto fail;
4335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4336 if (SWIG_arg_fail(1)) SWIG_fail;
4337 {
4338 arg2 = wxString_in_helper(obj1);
4339 if (arg2 == NULL) SWIG_fail;
4340 temp2 = true;
4341 }
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (bool)(arg1)->LoadString((wxString const &)*arg2);
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 {
4350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4351 }
4352 {
4353 if (temp2)
4354 delete arg2;
4355 }
4356 return resultobj;
4357 fail:
4358 {
4359 if (temp2)
4360 delete arg2;
4361 }
4362 return NULL;
4363 }
4364
4365
4366 static PyObject *_wrap_IEHtmlWindowBase_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
4367 PyObject *resultobj;
4368 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
4369 wxInputStream *arg2 = (wxInputStream *) 0 ;
4370 bool result;
4371 wxPyInputStream *temp2 ;
4372 PyObject * obj0 = 0 ;
4373 PyObject * obj1 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "self",(char *) "is", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames,&obj0,&obj1)) goto fail;
4379 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0);
4380 if (SWIG_arg_fail(1)) SWIG_fail;
4381 {
4382 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
4383 arg2 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp2->m_wxis);
4384 } else {
4385 PyErr_Clear(); // clear the failure of the wxPyConvert above
4386 arg2 = wxPyCBInputStream_create(obj1, true);
4387 if (arg2 == NULL) {
4388 PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
4389 SWIG_fail;
4390 }
4391 }
4392 }
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 result = (bool)(arg1)->LoadStream(arg2);
4396
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 {
4401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4402 }
4403 return resultobj;
4404 fail:
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_wxDateEventTo_p_wxEvent(void *x) {
4641 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
4642 }
4643 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
4644 return (void *)((wxEvent *) ((wxPaintEvent *) x));
4645 }
4646 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
4647 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
4648 }
4649 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
4650 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
4651 }
4652 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
4653 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
4654 }
4655 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
4656 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
4657 }
4658 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
4659 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4660 }
4661 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
4662 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
4663 }
4664 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
4665 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
4666 }
4667 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
4668 return (void *)((wxEvent *) ((wxFocusEvent *) x));
4669 }
4670 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
4671 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
4672 }
4673 static void *_p_wxActiveXEventTo_p_wxEvent(void *x) {
4674 return (void *)((wxEvent *) (wxCommandEvent *) ((wxActiveXEvent *) x));
4675 }
4676 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
4677 return (void *)((wxEvent *) ((wxShowEvent *) x));
4678 }
4679 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
4680 return (void *)((wxEvent *) ((wxCommandEvent *) x));
4681 }
4682 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
4683 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
4684 }
4685 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
4686 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4687 }
4688 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
4689 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
4690 }
4691 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
4692 return (void *)((wxEvent *) ((wxKeyEvent *) x));
4693 }
4694 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
4695 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
4696 }
4697 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
4698 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
4699 }
4700 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
4701 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
4702 }
4703 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
4704 return (void *)((wxObject *) ((wxSizerItem *) x));
4705 }
4706 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
4707 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
4708 }
4709 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
4710 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
4711 }
4712 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
4713 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
4714 }
4715 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
4716 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
4717 }
4718 static void *_p_wxSizerTo_p_wxObject(void *x) {
4719 return (void *)((wxObject *) ((wxSizer *) x));
4720 }
4721 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
4722 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
4723 }
4724 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
4725 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
4726 }
4727 static void *_p_wxEventTo_p_wxObject(void *x) {
4728 return (void *)((wxObject *) ((wxEvent *) x));
4729 }
4730 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
4731 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
4732 }
4733 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
4734 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
4735 }
4736 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
4737 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
4738 }
4739 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
4740 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
4741 }
4742 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
4743 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
4744 }
4745 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
4746 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
4747 }
4748 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
4749 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
4750 }
4751 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
4752 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4753 }
4754 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
4755 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
4756 }
4757 static void *_p_wxControlTo_p_wxObject(void *x) {
4758 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
4759 }
4760 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
4761 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
4762 }
4763 static void *_p_wxFSFileTo_p_wxObject(void *x) {
4764 return (void *)((wxObject *) ((wxFSFile *) x));
4765 }
4766 static void *_p_wxPySizerTo_p_wxObject(void *x) {
4767 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
4768 }
4769 static void *_p_wxPyEventTo_p_wxObject(void *x) {
4770 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
4771 }
4772 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
4773 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
4774 }
4775 static void *_p_wxShowEventTo_p_wxObject(void *x) {
4776 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
4777 }
4778 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
4779 return (void *)((wxObject *) ((wxMenuItem *) x));
4780 }
4781 static void *_p_wxDateEventTo_p_wxObject(void *x) {
4782 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
4783 }
4784 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
4785 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
4786 }
4787 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
4788 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
4789 }
4790 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
4791 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
4792 }
4793 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
4794 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
4795 }
4796 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
4797 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
4798 }
4799 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
4800 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
4801 }
4802 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
4803 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
4804 }
4805 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
4806 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
4807 }
4808 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
4809 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
4810 }
4811 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
4812 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
4813 }
4814 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
4815 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
4816 }
4817 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
4818 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
4819 }
4820 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
4821 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
4822 }
4823 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
4824 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
4825 }
4826 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
4827 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
4828 }
4829 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
4830 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
4831 }
4832 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
4833 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
4834 }
4835 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
4836 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
4837 }
4838 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
4839 return (void *)((wxObject *) ((wxImageHandler *) x));
4840 }
4841 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
4842 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
4843 }
4844 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
4845 return (void *)((wxObject *) ((wxEvtHandler *) x));
4846 }
4847 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
4848 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
4849 }
4850 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
4851 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
4852 }
4853 static void *_p_wxImageTo_p_wxObject(void *x) {
4854 return (void *)((wxObject *) ((wxImage *) x));
4855 }
4856 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
4857 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
4858 }
4859 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
4860 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4861 }
4862 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
4863 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
4864 }
4865 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
4866 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
4867 }
4868 static void *_p_wxWindowTo_p_wxObject(void *x) {
4869 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
4870 }
4871 static void *_p_wxMenuTo_p_wxObject(void *x) {
4872 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
4873 }
4874 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
4875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
4876 }
4877 static void *_p_wxActiveXWindowTo_p_wxObject(void *x) {
4878 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxActiveXWindow *) x));
4879 }
4880 static void *_p_wxActiveXEventTo_p_wxObject(void *x) {
4881 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxActiveXEvent *) x));
4882 }
4883 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
4884 return (void *)((wxObject *) ((wxFileSystem *) x));
4885 }
4886 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
4887 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
4888 }
4889 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
4890 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
4891 }
4892 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x) {
4893 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4894 }
4895 static void *_p_wxPyAppTo_p_wxObject(void *x) {
4896 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
4897 }
4898 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
4899 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
4900 }
4901 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
4902 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
4903 }
4904 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
4905 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
4906 }
4907 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
4908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
4909 }
4910 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
4911 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
4912 }
4913 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
4914 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
4915 }
4916 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
4917 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
4918 }
4919 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
4920 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
4921 }
4922 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
4923 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4924 }
4925 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
4926 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
4927 }
4928 static void *_p_wxValidatorTo_p_wxObject(void *x) {
4929 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
4930 }
4931 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
4932 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
4933 }
4934 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
4935 return (void *)((wxEvtHandler *) ((wxWindow *) x));
4936 }
4937 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
4938 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4939 }
4940 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x) {
4941 return (void *)((wxEvtHandler *) (wxWindow *) ((wxActiveXWindow *) x));
4942 }
4943 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
4944 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
4945 }
4946 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
4947 return (void *)((wxEvtHandler *) ((wxValidator *) x));
4948 }
4949 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
4950 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
4951 }
4952 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
4953 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
4954 }
4955 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
4956 return (void *)((wxEvtHandler *) ((wxMenu *) x));
4957 }
4958 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x) {
4959 return (void *)((wxEvtHandler *) (wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
4960 }
4961 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
4962 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
4963 }
4964 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
4965 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
4966 }
4967 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
4968 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
4969 }
4970 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
4971 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
4972 }
4973 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
4974 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
4975 }
4976 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x) {
4977 return (void *)((wxCommandEvent *) ((wxActiveXEvent *) x));
4978 }
4979 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
4980 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4981 }
4982 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
4983 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
4984 }
4985 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
4986 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
4987 }
4988 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
4989 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
4990 }
4991 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4992 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}};
4993 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}};
4994 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}};
4995 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}};
4996 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4997 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}};
4998 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}};
4999 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}};
5000 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}};
5001 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}};
5002 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}};
5003 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}};
5004 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}};
5005 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}};
5006 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}};
5007 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}};
5008 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}};
5009 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}};
5010 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}};
5011 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}};
5012 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}};
5013 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}};
5014 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}};
5015 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5016 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}};
5017 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}};
5018 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}};
5019 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
5020
5021 static swig_type_info *swig_types_initial[] = {
5022 _swigt__p_wxObject,
5023 _swigt__p_unsigned_char,
5024 _swigt__p_wxFuncX,
5025 _swigt__p_wxActiveXWindow,
5026 _swigt__p_wxWindow,
5027 _swigt__p_wxCommandEvent,
5028 _swigt__p_unsigned_long,
5029 _swigt__p_unsigned_int,
5030 _swigt__unsigned_int,
5031 _swigt__p_form_ops_t,
5032 _swigt__p_wxDuplexMode,
5033 _swigt__p_char,
5034 _swigt__p_unsigned_short,
5035 _swigt__p_wxInputStream,
5036 _swigt__p_wxEvtHandler,
5037 _swigt__p_wxPropX,
5038 _swigt__p_wxParamXArray,
5039 _swigt__p_wxFuncXArray,
5040 _swigt__p_wxActiveXEvent,
5041 _swigt__std__ptrdiff_t,
5042 _swigt__ptrdiff_t,
5043 _swigt__p_long,
5044 _swigt__p_wxParamX,
5045 _swigt__p_wxIEHtmlWindowBase,
5046 _swigt__p_wxEvent,
5047 _swigt__p_wxPaperSize,
5048 _swigt__p_CLSID,
5049 _swigt__p_wxPropXArray,
5050 _swigt__p_int,
5051 0
5052 };
5053
5054
5055 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5056
5057 static swig_const_info swig_const_table[] = {
5058 {0, 0, 0, 0.0, 0, 0}};
5059
5060 #ifdef __cplusplus
5061 }
5062 #endif
5063
5064
5065 #ifdef __cplusplus
5066 extern "C" {
5067 #endif
5068
5069 /* Python-specific SWIG API */
5070 #define SWIG_newvarlink() SWIG_Python_newvarlink()
5071 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5072 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5073
5074 /* -----------------------------------------------------------------------------
5075 * global variable support code.
5076 * ----------------------------------------------------------------------------- */
5077
5078 typedef struct swig_globalvar {
5079 char *name; /* Name of global variable */
5080 PyObject *(*get_attr)(); /* Return the current value */
5081 int (*set_attr)(PyObject *); /* Set the value */
5082 struct swig_globalvar *next;
5083 } swig_globalvar;
5084
5085 typedef struct swig_varlinkobject {
5086 PyObject_HEAD
5087 swig_globalvar *vars;
5088 } swig_varlinkobject;
5089
5090 static PyObject *
5091 swig_varlink_repr(swig_varlinkobject *v) {
5092 v = v;
5093 return PyString_FromString("<Swig global variables>");
5094 }
5095
5096 static int
5097 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
5098 swig_globalvar *var;
5099 flags = flags;
5100 fprintf(fp,"Swig global variables { ");
5101 for (var = v->vars; var; var=var->next) {
5102 fprintf(fp,"%s", var->name);
5103 if (var->next) fprintf(fp,", ");
5104 }
5105 fprintf(fp," }\n");
5106 return 0;
5107 }
5108
5109 static PyObject *
5110 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
5111 swig_globalvar *var = v->vars;
5112 while (var) {
5113 if (strcmp(var->name,n) == 0) {
5114 return (*var->get_attr)();
5115 }
5116 var = var->next;
5117 }
5118 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5119 return NULL;
5120 }
5121
5122 static int
5123 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
5124 swig_globalvar *var = v->vars;
5125 while (var) {
5126 if (strcmp(var->name,n) == 0) {
5127 return (*var->set_attr)(p);
5128 }
5129 var = var->next;
5130 }
5131 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5132 return 1;
5133 }
5134
5135 static PyTypeObject varlinktype = {
5136 PyObject_HEAD_INIT(0)
5137 0, /* Number of items in variable part (ob_size) */
5138 (char *)"swigvarlink", /* Type name (tp_name) */
5139 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
5140 0, /* Itemsize (tp_itemsize) */
5141 0, /* Deallocator (tp_dealloc) */
5142 (printfunc) swig_varlink_print, /* Print (tp_print) */
5143 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
5144 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
5145 0, /* tp_compare */
5146 (reprfunc) swig_varlink_repr, /* tp_repr */
5147 0, /* tp_as_number */
5148 0, /* tp_as_sequence */
5149 0, /* tp_as_mapping */
5150 0, /* tp_hash */
5151 0, /* tp_call */
5152 0, /* tp_str */
5153 0, /* tp_getattro */
5154 0, /* tp_setattro */
5155 0, /* tp_as_buffer */
5156 0, /* tp_flags */
5157 0, /* tp_doc */
5158 #if PY_VERSION_HEX >= 0x02000000
5159 0, /* tp_traverse */
5160 0, /* tp_clear */
5161 #endif
5162 #if PY_VERSION_HEX >= 0x02010000
5163 0, /* tp_richcompare */
5164 0, /* tp_weaklistoffset */
5165 #endif
5166 #if PY_VERSION_HEX >= 0x02020000
5167 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5168 #endif
5169 #if PY_VERSION_HEX >= 0x02030000
5170 0, /* tp_del */
5171 #endif
5172 #ifdef COUNT_ALLOCS
5173 0,0,0,0 /* tp_alloc -> tp_next */
5174 #endif
5175 };
5176
5177 /* Create a variable linking object for use later */
5178 static PyObject *
5179 SWIG_Python_newvarlink(void) {
5180 swig_varlinkobject *result = 0;
5181 result = PyMem_NEW(swig_varlinkobject,1);
5182 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
5183 result->ob_type = &varlinktype;
5184 result->vars = 0;
5185 result->ob_refcnt = 0;
5186 Py_XINCREF((PyObject *) result);
5187 return ((PyObject*) result);
5188 }
5189
5190 static void
5191 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
5192 swig_varlinkobject *v;
5193 swig_globalvar *gv;
5194 v= (swig_varlinkobject *) p;
5195 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
5196 gv->name = (char *) malloc(strlen(name)+1);
5197 strcpy(gv->name,name);
5198 gv->get_attr = get_attr;
5199 gv->set_attr = set_attr;
5200 gv->next = v->vars;
5201 v->vars = gv;
5202 }
5203
5204 /* -----------------------------------------------------------------------------
5205 * constants/methods manipulation
5206 * ----------------------------------------------------------------------------- */
5207
5208 /* Install Constants */
5209 static void
5210 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
5211 PyObject *obj = 0;
5212 size_t i;
5213 for (i = 0; constants[i].type; i++) {
5214 switch(constants[i].type) {
5215 case SWIG_PY_INT:
5216 obj = PyInt_FromLong(constants[i].lvalue);
5217 break;
5218 case SWIG_PY_FLOAT:
5219 obj = PyFloat_FromDouble(constants[i].dvalue);
5220 break;
5221 case SWIG_PY_STRING:
5222 if (constants[i].pvalue) {
5223 obj = PyString_FromString((char *) constants[i].pvalue);
5224 } else {
5225 Py_INCREF(Py_None);
5226 obj = Py_None;
5227 }
5228 break;
5229 case SWIG_PY_POINTER:
5230 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
5231 break;
5232 case SWIG_PY_BINARY:
5233 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
5234 break;
5235 default:
5236 obj = 0;
5237 break;
5238 }
5239 if (obj) {
5240 PyDict_SetItemString(d,constants[i].name,obj);
5241 Py_DECREF(obj);
5242 }
5243 }
5244 }
5245
5246 /* -----------------------------------------------------------------------------*/
5247 /* Fix SwigMethods to carry the callback ptrs when needed */
5248 /* -----------------------------------------------------------------------------*/
5249
5250 static void
5251 SWIG_Python_FixMethods(PyMethodDef *methods,
5252 swig_const_info *const_table,
5253 swig_type_info **types,
5254 swig_type_info **types_initial) {
5255 size_t i;
5256 for (i = 0; methods[i].ml_name; ++i) {
5257 char *c = methods[i].ml_doc;
5258 if (c && (c = strstr(c, "swig_ptr: "))) {
5259 int j;
5260 swig_const_info *ci = 0;
5261 char *name = c + 10;
5262 for (j = 0; const_table[j].type; j++) {
5263 if (strncmp(const_table[j].name, name,
5264 strlen(const_table[j].name)) == 0) {
5265 ci = &(const_table[j]);
5266 break;
5267 }
5268 }
5269 if (ci) {
5270 size_t shift = (ci->ptype) - types;
5271 swig_type_info *ty = types_initial[shift];
5272 size_t ldoc = (c - methods[i].ml_doc);
5273 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5274 char *ndoc = (char*)malloc(ldoc + lptr + 10);
5275 char *buff = ndoc;
5276 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
5277 strncpy(buff, methods[i].ml_doc, ldoc);
5278 buff += ldoc;
5279 strncpy(buff, "swig_ptr: ", 10);
5280 buff += 10;
5281 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5282 methods[i].ml_doc = ndoc;
5283 }
5284 }
5285 }
5286 }
5287
5288 /* -----------------------------------------------------------------------------*
5289 * Initialize type list
5290 * -----------------------------------------------------------------------------*/
5291
5292 #if PY_MAJOR_VERSION < 2
5293 /* PyModule_AddObject function was introduced in Python 2.0. The following function
5294 is copied out of Python/modsupport.c in python version 2.3.4 */
5295 static int
5296 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
5297 {
5298 PyObject *dict;
5299 if (!PyModule_Check(m)) {
5300 PyErr_SetString(PyExc_TypeError,
5301 "PyModule_AddObject() needs module as first arg");
5302 return -1;
5303 }
5304 if (!o) {
5305 PyErr_SetString(PyExc_TypeError,
5306 "PyModule_AddObject() needs non-NULL value");
5307 return -1;
5308 }
5309
5310 dict = PyModule_GetDict(m);
5311 if (dict == NULL) {
5312 /* Internal error -- modules must have a dict! */
5313 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
5314 PyModule_GetName(m));
5315 return -1;
5316 }
5317 if (PyDict_SetItemString(dict, name, o))
5318 return -1;
5319 Py_DECREF(o);
5320 return 0;
5321 }
5322 #endif
5323
5324 static swig_type_info **
5325 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
5326 static PyMethodDef swig_empty_runtime_method_table[] = {
5327 {
5328 NULL, NULL, 0, NULL
5329 }
5330 };/* Sentinel */
5331
5332 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
5333 swig_empty_runtime_method_table);
5334 PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL);
5335 if (pointer && module) {
5336 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
5337 }
5338 return type_list_handle;
5339 }
5340
5341 static swig_type_info **
5342 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
5343 swig_type_info **type_pointer;
5344
5345 /* first check if module already created */
5346 type_pointer = SWIG_Python_GetTypeListHandle();
5347 if (type_pointer) {
5348 return type_pointer;
5349 } else {
5350 /* create a new module and variable */
5351 return SWIG_Python_SetTypeListHandle(type_list_handle);
5352 }
5353 }
5354
5355 #ifdef __cplusplus
5356 }
5357 #endif
5358
5359 /* -----------------------------------------------------------------------------*
5360 * Partial Init method
5361 * -----------------------------------------------------------------------------*/
5362
5363 #ifdef SWIG_LINK_RUNTIME
5364 #ifdef __cplusplus
5365 extern "C"
5366 #endif
5367 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
5368 #endif
5369
5370 #ifdef __cplusplus
5371 extern "C"
5372 #endif
5373 SWIGEXPORT(void) SWIG_init(void) {
5374 static PyObject *SWIG_globals = 0;
5375 static int typeinit = 0;
5376 PyObject *m, *d;
5377 int i;
5378 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
5379
5380 /* Fix SwigMethods to carry the callback ptrs when needed */
5381 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
5382
5383 m = Py_InitModule((char *) SWIG_name, SwigMethods);
5384 d = PyModule_GetDict(m);
5385
5386 if (!typeinit) {
5387 #ifdef SWIG_LINK_RUNTIME
5388 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
5389 #else
5390 # ifndef SWIG_STATIC_RUNTIME
5391 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
5392 # endif
5393 #endif
5394 for (i = 0; swig_types_initial[i]; i++) {
5395 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
5396 }
5397 typeinit = 1;
5398 }
5399 SWIG_InstallConstants(d,swig_const_table);
5400
5401 }
5402