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