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