]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/activex/activex_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / contrib / activex / activex_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxObject swig_types[0]
212 #define SWIGTYPE_p_wxFuncX swig_types[1]
213 #define SWIGTYPE_p_wxActiveXWindow swig_types[2]
214 #define SWIGTYPE_p_wxWindow swig_types[3]
215 #define SWIGTYPE_p_wxCommandEvent swig_types[4]
216 #define SWIGTYPE_p_char swig_types[5]
217 #define SWIGTYPE_p_wxInputStream swig_types[6]
218 #define SWIGTYPE_p_wxEvtHandler swig_types[7]
219 #define SWIGTYPE_p_wxPropX swig_types[8]
220 #define SWIGTYPE_p_wxFuncXArray swig_types[9]
221 #define SWIGTYPE_p_wxParamXArray swig_types[10]
222 #define SWIGTYPE_p_wxActiveXEvent swig_types[11]
223 #define SWIGTYPE_p_wxParamX swig_types[12]
224 #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[13]
225 #define SWIGTYPE_p_wxPropXArray swig_types[14]
226 #define SWIGTYPE_p_wxEvent swig_types[15]
227 #define SWIGTYPE_p_CLSID swig_types[16]
228 static swig_type_info *swig_types[18];
229
230 /* -------- TYPES TABLE (END) -------- */
231
232
233 /*-----------------------------------------------
234 @(target):= _activex.so
235 ------------------------------------------------*/
236 #define SWIG_init init_activex
237
238 #define SWIG_name "_activex"
239
240 /* Auxiliar swig macros that appear in the header */
241
242 #define SWIG_OLDOBJ 1
243 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
244 #define SWIG_PYSTR SWIG_NEWOBJ + 1
245
246 #ifdef __cplusplus
247 #define SWIGSTATICINLINE(a) static inline a
248 #define SWIGSTATIC(a) static a
249 #define swig_new_array(size,Type) (new Type[(size)])
250 #define swig_delete(cptr) delete cptr
251 #define swig_delete_array(cptr) delete[] cptr
252 #define swig_const_cast(a,Type) const_cast<Type >(a)
253 #define swig_static_cast(a,Type) static_cast<Type >(a)
254 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
255 #define swig_new_copy(ptr,Type) (new Type(*ptr))
256 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
257
258 #else /* C case */
259
260 #define SWIGSTATICINLINE(a) static a
261 #define SWIGSTATIC(a) static a
262 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
263 #define swig_delete(cptr) free((char*)cptr)
264 #define swig_delete_array(cptr) free((char*)cptr)
265 #define swig_const_cast(a,Type) (Type)(a)
266 #define swig_static_cast(a,Type) (Type)(a)
267 #define swig_reinterpret_cast(a,Type) (Type)(a)
268 #define swig_numeric_cast(a,Type) (Type)(a)
269 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
270
271 #endif /* __cplusplus */
272
273
274 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
275 #define SWIG_From_signed_SS_char PyInt_FromLong
276 /*@@*/
277 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
278 #define SWIG_From_unsigned_SS_char PyInt_FromLong
279 /*@@*/
280 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
281 #define SWIG_From_short PyInt_FromLong
282 /*@@*/
283 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
284 #define SWIG_From_unsigned_SS_short PyInt_FromLong
285 /*@@*/
286 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
287 #define SWIG_From_int PyInt_FromLong
288 /*@@*/
289 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
290 #define SWIG_From_long PyInt_FromLong
291 /*@@*/
292 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
293 #define SWIG_From_float PyFloat_FromDouble
294 /*@@*/
295 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
296 #define SWIG_From_double PyFloat_FromDouble
297 /*@@*/
298
299
300 #include "wx/wxPython/wxPython.h"
301 #include "wx/wxPython/pyclasses.h"
302 #include "wx/wxPython/pyistream.h"
303
304 #include "wxactivex.h"
305
306 static const wxString wxPyPanelNameStr(wxPanelNameStr);
307
308 // Since SWIG doesn't support nested classes, we need to fool it a bit
309 // and make them look like global classes. These defines make the C++ code
310 // know what we are doing.
311 #define wxParamX wxActiveX::ParamX
312 #define wxFuncX wxActiveX::FuncX
313 #define wxPropX wxActiveX::PropX
314 #define wxParamXArray wxActiveX::ParamXArray
315 #define wxFuncXArray wxActiveX::FuncXArray
316 #define wxPropXArray wxActiveX::PropXArray
317
318
319 // Some conversion helpers
320 static wxVariant _PyObj2Variant(PyObject* value);
321 static bool _PyObj2Variant(PyObject* value, wxVariant& wv);
322 static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false);
323 static wxString _VARTYPEname(VARTYPE vt);
324
325 // Check if an exception has been raised (blocking threads)
326 inline bool wxPyErr_Occurred()
327 {
328 bool rval;
329 bool blocked = wxPyBeginBlockThreads();
330 rval = PyErr_Occurred() != NULL;
331 wxPyEndBlockThreads(blocked);
332 return rval;
333 }
334
335
336 CLSID *new_CLSID(wxString const &id){
337 int result;
338 CLSID* self = new CLSID;
339 memset(self, 0, sizeof(CLSID));
340
341 if (id[0] == _T('{')) {
342 // Looks like a classID string
343 result =
344 CLSIDFromString(
345 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
346 self);
347 } else {
348 // Try a progID
349 result =
350 CLSIDFromProgID(
351 (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8),
352 self);
353 }
354 if (result != NOERROR) {
355 wxPyErr_SetString(PyExc_ValueError, "Not a recognized classID or progID");
356 delete self;
357 return NULL;
358 }
359 return self;
360 }
361 void delete_CLSID(CLSID *self){ delete self; }
362 wxString CLSID_GetCLSIDString(CLSID *self){
363 LPOLESTR s;
364 wxString str;
365 if (StringFromCLSID(*self, &s) == S_OK) {
366 str = s;
367 CoTaskMemFree(s);
368 }
369 else {
370 str = _T("Error!"); // TODO: raise exception?
371 }
372 return str;
373 }
374 wxString CLSID_GetProgIDString(CLSID *self){
375 LPOLESTR s;
376 wxString str;
377 if (ProgIDFromCLSID(*self, &s) == S_OK) {
378 str = s;
379 CoTaskMemFree(s);
380 }
381 else {
382 str = _T("Error!"); // TODO: raise exception?
383 }
384 return str;
385 }
386 wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); }
387 bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; }
388 int wxParamXArray___len__(wxParamXArray *self){ return self->size(); }
389
390 #include <limits.h>
391
392
393 SWIGSTATICINLINE(int)
394 SWIG_CheckLongInRange(long value, long min_value, long max_value,
395 const char *errmsg)
396 {
397 if (value < min_value) {
398 if (errmsg) {
399 PyErr_Format(PyExc_OverflowError,
400 "value %ld is less than '%s' minimum %ld",
401 value, errmsg, min_value);
402 }
403 return 0;
404 } else if (value > max_value) {
405 if (errmsg) {
406 PyErr_Format(PyExc_OverflowError,
407 "value %ld is greater than '%s' maximum %ld",
408 value, errmsg, max_value);
409 }
410 return 0;
411 }
412 return 1;
413 }
414
415
416 // See my_fragments.i
417 SWIGSTATICINLINE(int)
418 SWIG_AsVal_long(PyObject* obj, long* val)
419 {
420 if (PyNumber_Check(obj)) {
421 if (val) *val = PyInt_AsLong(obj);
422 return 1;
423 }
424 else {
425 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
426 obj->ob_type->tp_name);
427 PyErr_SetObject(PyExc_TypeError, errmsg);
428 Py_DECREF(errmsg);
429 }
430 return 0;
431 }
432
433
434 #if INT_MAX != LONG_MAX
435 SWIGSTATICINLINE(int)
436 SWIG_AsVal_int(PyObject *obj, int *val)
437 {
438 const char* errmsg = val ? "int" : 0;
439 long v;
440 if (SWIG_AsVal_long(obj, &v)) {
441 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
442 if (val) *val = swig_numeric_cast(v, int);
443 return 1;
444 } else {
445 return 0;
446 }
447 } else {
448 PyErr_Clear();
449 }
450 if (val) {
451 PyErr_SetString(PyExc_TypeError, "an int is expected");
452 }
453 return 0;
454 }
455 #else
456 SWIGSTATICINLINE(int)
457 SWIG_AsVal_int(PyObject *obj, int *val)
458 {
459 return SWIG_AsVal_long(obj,(long*)val);
460 }
461 #endif
462
463
464 SWIGSTATICINLINE(int)
465 SWIG_As_int(PyObject* obj)
466 {
467 int v;
468 if (!SWIG_AsVal_int(obj, &v)) {
469 /*
470 this is needed to make valgrind/purify happier. the other
471 solution is throw an exception, but since this code should work
472 with plain C ....
473 */
474 memset((void*)&v, 0, sizeof(int));
475 }
476 return v;
477 }
478
479
480 SWIGSTATICINLINE(int)
481 SWIG_Check_int(PyObject* obj)
482 {
483 return SWIG_AsVal_int(obj, (int*)0);
484 }
485
486 wxParamX const &wxParamXArray___getitem__(wxParamXArray *self,int idx){
487 if ( idx >= 0 && idx < self->size() )
488 return (*self)[idx];
489 else {
490 static wxParamX BadVal;
491 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
492 return BadVal;
493 }
494 }
495 bool wxFuncXArray___nonzero__(wxFuncXArray *self){ return self->size() > 0; }
496 int wxFuncXArray___len__(wxFuncXArray *self){ return self->size(); }
497 wxFuncX const &wxFuncXArray___getitem__(wxFuncXArray *self,int idx){
498 if ( idx >= 0 && idx < self->size() )
499 return (*self)[idx];
500 else {
501 static wxFuncX BadVal;
502 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
503 return BadVal;
504 }
505 }
506 bool wxPropXArray___nonzero__(wxPropXArray *self){ return self->size() > 0; }
507 int wxPropXArray___len__(wxPropXArray *self){ return self->size(); }
508 wxPropX const &wxPropXArray___getitem__(wxPropXArray *self,int idx){
509 if ( idx >= 0 && idx < self->size() )
510 return (*self)[idx];
511 else {
512 static wxPropX BadVal;
513 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
514 return BadVal;
515 }
516 }
517
518 // C++ version of a Python-aware wxActiveX
519 class wxActiveXWindow : public wxActiveX
520 {
521 private:
522 CLSID m_CLSID;
523 public:
524 wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
525 const wxPoint& pos = wxDefaultPosition,
526 const wxSize& size = wxDefaultSize,
527 long style = 0,
528 const wxString& name = wxPyPanelNameStr)
529 : wxActiveX(parent, clsId, id, pos, size, style, name)
530 {
531 m_CLSID = clsId;
532 }
533
534 const CLSID& GetCLSID() const { return m_CLSID; }
535
536
537 // Renamed versions of some base class methods that delegate
538 // to the base where appropriate, and raise Python exceptions
539 // when needed.
540 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
541 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
542 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
543
544 const wxFuncX& GetAXEventDesc(int idx) const
545 {
546 static wxFuncX BadVal;
547 if (idx < 0 || idx >= GetAXEventCount()) {
548 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
549 return BadVal;
550 }
551 return m_events[idx];
552 }
553 const wxFuncX& GetAXMethodDesc(int idx) const
554 {
555 static wxFuncX BadVal;
556 if (idx < 0 || idx >= GetAXMethodCount()) {
557 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
558 return BadVal;
559 }
560 return m_methods[idx];
561 }
562 const wxPropX& GetAXPropDesc(int idx) const
563 {
564 static wxPropX BadVal;
565 if (idx < 0 || idx >= GetAXPropCount()) {
566 wxPyErr_SetString(PyExc_IndexError, "Index out of range");
567 return BadVal;
568 }
569 return m_props[idx];
570 }
571
572 const wxFuncX& GetAXMethodDesc(const wxString& name) const
573 {
574 NameMap::const_iterator it = m_methodNames.find(name);
575 if (it == m_methodNames.end()) {
576 wxString msg;
577 msg << _T("method <") << name << _T("> not found");
578 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
579 static wxFuncX BadVal;
580 return BadVal;
581 };
582 return GetAXMethodDesc(it->second);
583 }
584 const wxPropX& GetAXPropDesc(const wxString& name) const
585 {
586 NameMap::const_iterator it = m_propNames.find(name);
587 if (it == m_propNames.end()) {
588 wxString msg;
589 msg << _T("property <") << name << _T("> not found");
590 wxPyErr_SetString(PyExc_KeyError, msg.mb_str());
591 static wxPropX BadVal;
592 return BadVal;
593 };
594 return GetAXPropDesc(it->second);
595 }
596
597 // Accessors for the internal vectors of events, methods and
598 // proprties. Can be used as sequence like objects from
599 // Python.
600 const wxFuncXArray& GetAXEvents() { return m_events; }
601 const wxFuncXArray& GetAXMethods() { return m_methods; }
602 const wxPropXArray& GetAXProperties() { return m_props; }
603
604
605 // Set a property from a Python object
606 void SetAXProp(const wxString& name, PyObject* value)
607 {
608 const wxPropX& prop = GetAXPropDesc(name);
609 bool blocked = wxPyBeginBlockThreads();
610 if (! PyErr_Occurred() ) {
611 if (! prop.CanSet()) {
612 wxString msg;
613 msg << _T("property <") << name << _T("> is readonly");
614 PyErr_SetString(PyExc_TypeError, msg.mb_str());
615 goto done;
616 } else {
617 wxVariant wxV = _PyObj2Variant(value);
618 if (PyErr_Occurred())
619 goto done;
620 VARIANT v = {prop.arg.vt};
621 if (!VariantToMSWVariant(wxV, v) || PyErr_Occurred()) {
622 wxString msg;
623 msg << _T("Unable to convert value to expected type: (")
624 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
625 << name << _T(">");
626 PyErr_SetString(PyExc_TypeError, msg.mb_str());
627 goto done;
628 }
629 PyThreadState* tstate = wxPyBeginAllowThreads();
630 SetProp(prop.memid, v);
631 VariantClear(&v);
632 wxPyEndAllowThreads(tstate);
633 }
634 }
635 done:
636 wxPyEndBlockThreads(blocked);
637 }
638
639
640 // Get a property and convert it to a Python object
641 PyObject* GetAXProp(const wxString& name)
642 {
643 PyObject* rval = NULL;
644 const wxPropX& prop = GetAXPropDesc(name);
645 bool blocked = wxPyBeginBlockThreads();
646 if (! PyErr_Occurred() ) {
647 if (! prop.CanGet()) {
648 wxString msg;
649 msg << _T("property <") << name << _T("> is writeonly");
650 PyErr_SetString(PyExc_TypeError, msg.mb_str());
651 goto done;
652 } else {
653 PyThreadState* tstate = wxPyBeginAllowThreads();
654 VARIANT v = GetPropAsVariant(prop.memid);
655 wxPyEndAllowThreads(tstate);
656 wxVariant wv;
657 if (!MSWVariantToVariant(v, wv) || PyErr_Occurred()) {
658 wxString msg;
659 msg << _T("Unable to convert value to expected type: (")
660 << _VARTYPEname(prop.arg.vt) << _T(") for property <")
661 << name << _T(">");
662 PyErr_SetString(PyExc_TypeError, msg.mb_str());
663 goto done;
664 }
665 rval = _Variant2PyObj(wv);
666 VariantClear(&v);
667 }
668 }
669 done:
670 wxPyEndBlockThreads(blocked);
671 return rval;
672 }
673
674
675 // If both IsIn and isOut are false, assume it is actually an
676 // input param
677 bool paramIsIn(const wxParamX& p)
678 {
679 return p.IsIn() || (!p.IsIn() && !p.IsOut());
680 }
681
682
683 // Call a method of the ActiveX object
684 PyObject* _CallAXMethod(const wxString& name, PyObject* args)
685 {
686 VARIANTARG *vargs = NULL;
687 int nargs = 0;
688 PyObject* rval = NULL;
689 const wxFuncX& func = GetAXMethodDesc(name);
690
691 bool blocked = wxPyBeginBlockThreads();
692 if (! PyErr_Occurred() ) {
693 nargs = func.params.size();
694 if (nargs > 0)
695 vargs = new VARIANTARG[nargs];
696
697 if (vargs) {
698 // init type of vargs, in reverse order
699 int i;
700 for (i = 0; i < nargs; i++)
701 vargs[nargs - i - 1].vt = func.params[i].vt;
702
703 // Map the args coming from Python to the input parameters in vargs
704 int pi = 0;
705 i = 0;
706 while ( i<nargs && pi<PyTuple_Size(args) ) {
707 // Move to the next input param.
708 if (! paramIsIn(func.params[i])) {
709 i += 1;
710 continue;
711 }
712 // convert the python object
713 PyObject* obj = PyTuple_GetItem(args, pi);
714 if (obj == Py_None) // special-case None?
715 vargs[nargs - i - 1].vt = VT_EMPTY;
716 else {
717 wxVariant wxV = _PyObj2Variant(obj);
718 if (PyErr_Occurred())
719 goto done;
720 if (!VariantToMSWVariant(wxV, vargs[nargs - i - 1]) || PyErr_Occurred()) {
721 wxString msg;
722 msg << _T("Unable to convert value to expected type: (")
723 << _VARTYPEname(vargs[nargs - i - 1].vt)
724 << _T(") for parameter ") << i;
725 PyErr_SetString(PyExc_TypeError, msg.mb_str());
726 goto done;
727 }
728 }
729 i += 1;
730 pi += 1;
731 }
732 }
733
734 // call the method
735 PyThreadState* tstate = wxPyBeginAllowThreads();
736 VARIANT rv = CallMethod(func.memid, vargs, nargs);
737 wxPyEndAllowThreads(tstate);
738
739 // Convert the return value and any out-params, ignoring
740 // conversion errors for now
741 wxVariant wv;
742 MSWVariantToVariant(rv, wv);
743 rval = _Variant2PyObj(wv, true);
744 VariantClear(&rv);
745
746 if (func.hasOut) {
747 // make a list and put the rval in it if it is not None
748 PyObject* lst = PyList_New(0);
749 if (rval != Py_None)
750 PyList_Append(lst, rval);
751 else
752 Py_DECREF(rval);
753
754 // find the out params and convert them
755 for (int i = 0; i < nargs; i++) {
756 VARIANTARG& va = vargs[nargs - i - 1];
757 const wxParamX &px = func.params[i];
758 if (px.IsOut()) {
759 MSWVariantToVariant(va, wv);
760 PyObject* obj = _Variant2PyObj(wv, true);
761 PyList_Append(lst, obj);
762 }
763 }
764 rval = PyList_AsTuple(lst);
765 Py_DECREF(lst);
766 }
767 if (PyErr_Occurred())
768 PyErr_Clear();
769 }
770 done:
771 wxPyEndBlockThreads(blocked);
772 if (vargs) {
773 for (int i = 0; i < nargs; i++)
774 VariantClear(&vargs[i]);
775 delete [] vargs;
776 }
777 return rval;
778 }
779 };
780
781
782 SWIGSTATICINLINE(long)
783 SWIG_As_long(PyObject* obj)
784 {
785 long v;
786 if (!SWIG_AsVal_long(obj, &v)) {
787 /*
788 this is needed to make valgrind/purify happier. the other
789 solution is throw an exception, but since this code should work
790 with plain C ....
791 */
792 memset((void*)&v, 0, sizeof(long));
793 }
794 return v;
795 }
796
797
798 SWIGSTATICINLINE(int)
799 SWIG_Check_long(PyObject* obj)
800 {
801 return SWIG_AsVal_long(obj, (long*)0);
802 }
803
804 void wxActiveXEvent__preCallInit(wxActiveXEvent *self,PyObject *pyself){
805 bool blocked = wxPyBeginBlockThreads();
806 PyObject* pList = PyList_New(0);
807 PyObject_SetAttrString(pyself, "paramList", pList);
808 Py_DECREF(pList);
809 for (int i=0; i<self->ParamCount(); i+=1) {
810 PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str());
811 PyObject* val = _Variant2PyObj((*self)[i], true);
812 PyObject_SetAttr(pyself, name, val);
813 PyList_Append(pList, name);
814 Py_DECREF(val);
815 Py_DECREF(name);
816 }
817 wxPyEndBlockThreads(blocked);
818 }
819 void wxActiveXEvent__postCallCleanup(wxActiveXEvent *self,PyObject *pyself){
820 bool blocked = wxPyBeginBlockThreads();
821 for (int i=0; i<self->ParamCount(); i+=1) {
822 PyObject* val = PyObject_GetAttrString(
823 pyself, (char*)(const char*)self->ParamName(i).mb_str());
824 _PyObj2Variant(val, (*self)[i]);
825 Py_DECREF(val);
826 }
827 wxPyEndBlockThreads(blocked);
828 }
829
830
831 // Caller should already have the GIL!
832 wxVariant _PyObj2Variant(PyObject* value)
833 {
834 wxVariant rval;
835
836 if (value == Py_None)
837 return rval;
838
839 #if PYTHON_API_VERSION >= 1012 // Python 2.3+
840 else if (PyBool_Check(value))
841 rval = (value == Py_True) ? true : false;
842 #endif
843
844 else if (PyInt_Check(value))
845 rval = PyInt_AS_LONG(value);
846
847 else if (PyFloat_Check(value))
848 rval = PyFloat_AS_DOUBLE(value);
849
850 else if (PyString_Check(value) || PyUnicode_Check(value))
851 rval = Py2wxString(value);
852
853 // TODO: PyList of strings --> wxArrayString
854 // wxDateTime
855 // list of objects
856 // etc.
857
858 else {
859 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _PyObj2Variant");
860 rval = (long)0;
861 }
862
863 return rval;
864 }
865
866 // This one uses the type of the variant to try and force the conversion
867 bool _PyObj2Variant(PyObject* value, wxVariant& wv)
868 {
869 wxString type = wv.GetType();
870
871 if ( type == _T("long") || type == _T("bool") || type == _T("char") )
872 wv = PyInt_AsLong(value);
873
874 else if ( type == _T("string") )
875 wv = Py2wxString(value);
876
877 else if ( type == _T("double") )
878 wv = PyFloat_AsDouble(value);
879
880 else {
881 // it's some other type that we dont' handle yet. Log it?
882 return false;
883 }
884 return true;
885 }
886
887 // Caller should already have the GIL!
888 PyObject* _Variant2PyObj(wxVariant& value, bool useNone)
889 {
890 PyObject* rval = NULL;
891
892 if (value.IsNull()) {
893 rval = Py_None;
894 Py_INCREF(rval);
895 }
896
897 // should "char" be treated as an int or as a string?
898 else if (value.IsType(_T("char")) || value.IsType(_T("long")))
899 rval = PyInt_FromLong(value);
900
901 else if (value.IsType(_T("double")))
902 rval = PyFloat_FromDouble(value);
903
904 else if (value.IsType(_T("bool"))) {
905 rval = (bool)value ? Py_True : Py_False;
906 Py_INCREF(rval);
907 }
908
909 else if (value.IsType(_T("string")))
910 rval = wx2PyString(value);
911
912 else {
913 if (useNone) {
914 rval = Py_None;
915 Py_INCREF(rval);
916 }
917 else {
918 PyErr_SetString(PyExc_TypeError, "Unsupported object type in _Variant2PyObj");
919 }
920 }
921 return rval;
922 }
923
924
925 wxString _VARTYPEname(VARTYPE vt)
926 {
927 if (vt & VT_BYREF)
928 vt &= ~(VT_BYREF);
929
930 switch(vt) {
931 case VT_VARIANT:
932 return _T("VT_VARIANT");
933
934 // 1 byte chars
935 case VT_I1:
936 case VT_UI1:
937 // 2 byte shorts
938 case VT_I2:
939 case VT_UI2:
940 // 4 bytes longs
941 case VT_I4:
942 case VT_UI4:
943 case VT_INT:
944 case VT_UINT:
945 case VT_ERROR:
946 return _T("int");
947
948 // 4 byte floats
949 case VT_R4:
950 // 8 byte doubles
951 case VT_R8:
952 // decimals are converted from doubles too
953 case VT_DECIMAL:
954 return _T("double");
955
956 case VT_BOOL:
957 return _T("bool");
958
959 case VT_DATE:
960 return _T("wx.DateTime");
961
962 case VT_BSTR:
963 return _T("string");
964
965 case VT_UNKNOWN:
966 return _T("VT_UNKNOWN");
967
968 case VT_DISPATCH:
969 return _T("VT_DISPATCH");
970
971 case VT_EMPTY:
972 return _T("VT_EMPTY");
973
974 case VT_NULL:
975 return _T("VT_NULL");
976
977 case VT_VOID:
978 return _T("VT_VOID");
979
980 default:
981 wxString msg;
982 msg << _T("unsupported type ") << vt;
983 return msg;
984 }
985 }
986
987
988
989 // A class derived from out wxActiveXWindow for the IE WebBrowser
990 // control that will serve as a base class for a Python
991 // implementation. This is done so we can "eat our own dog food"
992 // and use a class at least mostly generated by genaxmodule, but
993 // also get some of the extra stuff like loading a document from
994 // a string or a stream, getting text contents, etc. that
995 // Lindsay's version gives us.
996 //
997
998 #include <wx/mstream.h>
999 #include <oleidl.h>
1000 #include <winerror.h>
1001 #include <exdispid.h>
1002 #include <exdisp.h>
1003 #include <olectl.h>
1004 #include <Mshtml.h>
1005 #include <sstream>
1006
1007 #include "IEHtmlStream.h"
1008
1009 class wxIEHtmlWindowBase : public wxActiveXWindow {
1010 private:
1011 wxAutoOleInterface<IWebBrowser2> m_webBrowser;
1012
1013 public:
1014
1015 wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1,
1016 const wxPoint& pos = wxDefaultPosition,
1017 const wxSize& size = wxDefaultSize,
1018 long style = 0,
1019 const wxString& name = wxPyPanelNameStr)
1020 : wxActiveXWindow(parent, clsId, id, pos, size, style, name)
1021 {
1022 HRESULT hret;
1023
1024 // Get IWebBrowser2 Interface
1025 hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX);
1026 wxASSERT(SUCCEEDED(hret));
1027
1028 // web browser setup
1029 m_webBrowser->put_MenuBar(VARIANT_FALSE);
1030 m_webBrowser->put_AddressBar(VARIANT_FALSE);
1031 m_webBrowser->put_StatusBar(VARIANT_FALSE);
1032 m_webBrowser->put_ToolBar(VARIANT_FALSE);
1033
1034 m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE);
1035 m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE);
1036
1037 m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL );
1038 }
1039
1040
1041 void SetCharset(const wxString& charset)
1042 {
1043 HRESULT hret;
1044
1045 // HTML Document ?
1046 IDispatch *pDisp = NULL;
1047 hret = m_webBrowser->get_Document(&pDisp);
1048 wxAutoOleInterface<IDispatch> disp(pDisp);
1049
1050 if (disp.Ok())
1051 {
1052 wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp);
1053 if (doc.Ok())
1054 doc->put_charset((BSTR) (const wchar_t *) charset.wc_str(wxConvUTF8));
1055 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
1056 }
1057 }
1058
1059
1060 bool LoadString(const wxString& html)
1061 {
1062 char *data = NULL;
1063 size_t len = html.length();
1064 len *= sizeof(wxChar);
1065 data = (char *) malloc(len);
1066 memcpy(data, html.c_str(), len);
1067 return LoadStream(new wxOwnedMemInputStream(data, len));
1068 }
1069
1070
1071 bool LoadStream(IStreamAdaptorBase *pstrm)
1072 {
1073 // need to prepend this as poxy MSHTML will not recognise a HTML comment
1074 // as starting a html document and treats it as plain text
1075 // Does nayone know how to force it to html mode ?
1076 #if wxUSE_UNICODE
1077 // TODO: What to do in this case???
1078 #else
1079 pstrm->prepend = _T("<html>");
1080 #endif
1081
1082 // strip leading whitespace as it can confuse MSHTML
1083 wxAutoOleInterface<IStream> strm(pstrm);
1084
1085 // Document Interface
1086 IDispatch *pDisp = NULL;
1087 HRESULT hret = m_webBrowser->get_Document(&pDisp);
1088 if (! pDisp)
1089 return false;
1090 wxAutoOleInterface<IDispatch> disp(pDisp);
1091
1092
1093 // get IPersistStreamInit
1094 wxAutoOleInterface<IPersistStreamInit>
1095 pPersistStreamInit(IID_IPersistStreamInit, disp);
1096
1097 if (pPersistStreamInit.Ok())
1098 {
1099 HRESULT hr = pPersistStreamInit->InitNew();
1100 if (SUCCEEDED(hr))
1101 hr = pPersistStreamInit->Load(strm);
1102
1103 return SUCCEEDED(hr);
1104 }
1105 else
1106 return false;
1107 }
1108
1109 bool LoadStream(wxInputStream *is)
1110 {
1111 // wrap reference around stream
1112 IwxStreamAdaptor *pstrm = new IwxStreamAdaptor(is);
1113 pstrm->AddRef();
1114
1115 return LoadStream(pstrm);
1116 }
1117
1118
1119 wxString GetStringSelection(bool asHTML)
1120 {
1121 wxAutoOleInterface<IHTMLTxtRange> tr(wxieGetSelRange(m_oleObject));
1122 if (! tr)
1123 return wxEmptyString;
1124
1125 BSTR text = NULL;
1126 HRESULT hr = E_FAIL;
1127
1128 if (asHTML)
1129 hr = tr->get_htmlText(&text);
1130 else
1131 hr = tr->get_text(&text);
1132 if (hr != S_OK)
1133 return wxEmptyString;
1134
1135 wxString s = text;
1136 SysFreeString(text);
1137
1138 return s;
1139 };
1140
1141 wxString GetText(bool asHTML)
1142 {
1143 if (! m_webBrowser.Ok())
1144 return wxEmptyString;
1145
1146 // get document dispatch interface
1147 IDispatch *iDisp = NULL;
1148 HRESULT hr = m_webBrowser->get_Document(&iDisp);
1149 if (hr != S_OK)
1150 return wxEmptyString;
1151
1152 // Query for Document Interface
1153 wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp);
1154 iDisp->Release();
1155
1156 if (! hd.Ok())
1157 return wxEmptyString;
1158
1159 // get body element
1160 IHTMLElement *_body = NULL;
1161 hd->get_body(&_body);
1162 if (! _body)
1163 return wxEmptyString;
1164 wxAutoOleInterface<IHTMLElement> body(_body);
1165
1166 // get inner text
1167 BSTR text = NULL;
1168 hr = E_FAIL;
1169
1170 if (asHTML)
1171 hr = body->get_innerHTML(&text);
1172 else
1173 hr = body->get_innerText(&text);
1174 if (hr != S_OK)
1175 return wxEmptyString;
1176
1177 wxString s = text;
1178 SysFreeString(text);
1179
1180 return s;
1181 }
1182
1183
1184 // void wxIEHtmlWin::SetEditMode(bool seton)
1185 // {
1186 // m_bAmbientUserMode = ! seton;
1187 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
1188 // };
1189
1190 // bool wxIEHtmlWin::GetEditMode()
1191 // {
1192 // return ! m_bAmbientUserMode;
1193 // };
1194 };
1195
1196
1197 SWIGSTATICINLINE(int)
1198 SWIG_AsVal_bool(PyObject *obj, bool *val)
1199 {
1200 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
1201 if (obj == Py_True) {
1202 if (val) *val = true;
1203 return 1;
1204 }
1205 if (obj == Py_False) {
1206 if (val) *val = false;
1207 return 1;
1208 }
1209 int res = 0;
1210 if (SWIG_AsVal_int(obj, &res)) {
1211 if (val) *val = (bool)res;
1212 return 1;
1213 }
1214 if (val) {
1215 PyErr_SetString(PyExc_TypeError, "a bool is expected");
1216 }
1217 return 0;
1218 }
1219
1220
1221 SWIGSTATICINLINE(bool)
1222 SWIG_As_bool(PyObject* obj)
1223 {
1224 bool v;
1225 if (!SWIG_AsVal_bool(obj, &v)) {
1226 /*
1227 this is needed to make valgrind/purify happier. the other
1228 solution is throw an exception, but since this code should work
1229 with plain C ....
1230 */
1231 memset((void*)&v, 0, sizeof(bool));
1232 }
1233 return v;
1234 }
1235
1236
1237 SWIGSTATICINLINE(int)
1238 SWIG_Check_bool(PyObject* obj)
1239 {
1240 return SWIG_AsVal_bool(obj, (bool*)0);
1241 }
1242
1243 #ifdef __cplusplus
1244 extern "C" {
1245 #endif
1246 static PyObject *_wrap_new_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
1247 PyObject *resultobj;
1248 wxString *arg1 = 0 ;
1249 CLSID *result;
1250 bool temp1 = false ;
1251 PyObject * obj0 = 0 ;
1252 char *kwnames[] = {
1253 (char *) "id", NULL
1254 };
1255
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CLSID",kwnames,&obj0)) goto fail;
1257 {
1258 arg1 = wxString_in_helper(obj0);
1259 if (arg1 == NULL) SWIG_fail;
1260 temp1 = true;
1261 }
1262 {
1263 PyThreadState* __tstate = wxPyBeginAllowThreads();
1264 result = (CLSID *)new_CLSID((wxString const &)*arg1);
1265
1266 wxPyEndAllowThreads(__tstate);
1267 if (PyErr_Occurred()) SWIG_fail;
1268 }
1269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 1);
1270 {
1271 if (temp1)
1272 delete arg1;
1273 }
1274 return resultobj;
1275 fail:
1276 {
1277 if (temp1)
1278 delete arg1;
1279 }
1280 return NULL;
1281 }
1282
1283
1284 static PyObject *_wrap_delete_CLSID(PyObject *, PyObject *args, PyObject *kwargs) {
1285 PyObject *resultobj;
1286 CLSID *arg1 = (CLSID *) 0 ;
1287 PyObject * obj0 = 0 ;
1288 char *kwnames[] = {
1289 (char *) "self", NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_CLSID",kwnames,&obj0)) goto fail;
1293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_CLSID,
1294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1295 {
1296 PyThreadState* __tstate = wxPyBeginAllowThreads();
1297 delete_CLSID(arg1);
1298
1299 wxPyEndAllowThreads(__tstate);
1300 if (PyErr_Occurred()) SWIG_fail;
1301 }
1302 Py_INCREF(Py_None); resultobj = Py_None;
1303 return resultobj;
1304 fail:
1305 return NULL;
1306 }
1307
1308
1309 static PyObject *_wrap_CLSID_GetCLSIDString(PyObject *, PyObject *args, PyObject *kwargs) {
1310 PyObject *resultobj;
1311 CLSID *arg1 = (CLSID *) 0 ;
1312 wxString result;
1313 PyObject * obj0 = 0 ;
1314 char *kwnames[] = {
1315 (char *) "self", NULL
1316 };
1317
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetCLSIDString",kwnames,&obj0)) goto fail;
1319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_CLSID,
1320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1321 {
1322 PyThreadState* __tstate = wxPyBeginAllowThreads();
1323 result = CLSID_GetCLSIDString(arg1);
1324
1325 wxPyEndAllowThreads(__tstate);
1326 if (PyErr_Occurred()) SWIG_fail;
1327 }
1328 {
1329 #if wxUSE_UNICODE
1330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1331 #else
1332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1333 #endif
1334 }
1335 return resultobj;
1336 fail:
1337 return NULL;
1338 }
1339
1340
1341 static PyObject *_wrap_CLSID_GetProgIDString(PyObject *, PyObject *args, PyObject *kwargs) {
1342 PyObject *resultobj;
1343 CLSID *arg1 = (CLSID *) 0 ;
1344 wxString result;
1345 PyObject * obj0 = 0 ;
1346 char *kwnames[] = {
1347 (char *) "self", NULL
1348 };
1349
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetProgIDString",kwnames,&obj0)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_CLSID,
1352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1353 {
1354 PyThreadState* __tstate = wxPyBeginAllowThreads();
1355 result = CLSID_GetProgIDString(arg1);
1356
1357 wxPyEndAllowThreads(__tstate);
1358 if (PyErr_Occurred()) SWIG_fail;
1359 }
1360 {
1361 #if wxUSE_UNICODE
1362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1363 #else
1364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1365 #endif
1366 }
1367 return resultobj;
1368 fail:
1369 return NULL;
1370 }
1371
1372
1373 static PyObject * CLSID_swigregister(PyObject *, PyObject *args) {
1374 PyObject *obj;
1375 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1376 SWIG_TypeClientData(SWIGTYPE_p_CLSID, obj);
1377 Py_INCREF(obj);
1378 return Py_BuildValue((char *)"");
1379 }
1380 static PyObject *_wrap_ParamX_flags_get(PyObject *, PyObject *args, PyObject *kwargs) {
1381 PyObject *resultobj;
1382 wxParamX *arg1 = (wxParamX *) 0 ;
1383 USHORT result;
1384 PyObject * obj0 = 0 ;
1385 char *kwnames[] = {
1386 (char *) "self", NULL
1387 };
1388
1389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_flags_get",kwnames,&obj0)) goto fail;
1390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1392 result = (USHORT) ((arg1)->flags);
1393
1394 resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
1395 return resultobj;
1396 fail:
1397 return NULL;
1398 }
1399
1400
1401 static PyObject *_wrap_ParamX_isPtr_get(PyObject *, PyObject *args, PyObject *kwargs) {
1402 PyObject *resultobj;
1403 wxParamX *arg1 = (wxParamX *) 0 ;
1404 bool result;
1405 PyObject * obj0 = 0 ;
1406 char *kwnames[] = {
1407 (char *) "self", NULL
1408 };
1409
1410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isPtr_get",kwnames,&obj0)) goto fail;
1411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1413 result = (bool) ((arg1)->isPtr);
1414
1415 {
1416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1417 }
1418 return resultobj;
1419 fail:
1420 return NULL;
1421 }
1422
1423
1424 static PyObject *_wrap_ParamX_isSafeArray_get(PyObject *, PyObject *args, PyObject *kwargs) {
1425 PyObject *resultobj;
1426 wxParamX *arg1 = (wxParamX *) 0 ;
1427 bool result;
1428 PyObject * obj0 = 0 ;
1429 char *kwnames[] = {
1430 (char *) "self", NULL
1431 };
1432
1433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isSafeArray_get",kwnames,&obj0)) goto fail;
1434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1436 result = (bool) ((arg1)->isSafeArray);
1437
1438 {
1439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1440 }
1441 return resultobj;
1442 fail:
1443 return NULL;
1444 }
1445
1446
1447 static PyObject *_wrap_ParamX_isOptional_get(PyObject *, PyObject *args, PyObject *kwargs) {
1448 PyObject *resultobj;
1449 wxParamX *arg1 = (wxParamX *) 0 ;
1450 bool result;
1451 PyObject * obj0 = 0 ;
1452 char *kwnames[] = {
1453 (char *) "self", NULL
1454 };
1455
1456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isOptional_get",kwnames,&obj0)) goto fail;
1457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1459 result = (bool) ((arg1)->isOptional);
1460
1461 {
1462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1463 }
1464 return resultobj;
1465 fail:
1466 return NULL;
1467 }
1468
1469
1470 static PyObject *_wrap_ParamX_vt_get(PyObject *, PyObject *args, PyObject *kwargs) {
1471 PyObject *resultobj;
1472 wxParamX *arg1 = (wxParamX *) 0 ;
1473 VARTYPE result;
1474 PyObject * obj0 = 0 ;
1475 char *kwnames[] = {
1476 (char *) "self", NULL
1477 };
1478
1479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_get",kwnames,&obj0)) goto fail;
1480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1482 result = (VARTYPE) ((arg1)->vt);
1483
1484 resultobj = SWIG_From_unsigned_SS_short((unsigned short)result);
1485 return resultobj;
1486 fail:
1487 return NULL;
1488 }
1489
1490
1491 static PyObject *_wrap_ParamX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
1492 PyObject *resultobj;
1493 wxParamX *arg1 = (wxParamX *) 0 ;
1494 wxString *result;
1495 PyObject * obj0 = 0 ;
1496 char *kwnames[] = {
1497 (char *) "self", NULL
1498 };
1499
1500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_name_get",kwnames,&obj0)) goto fail;
1501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1503 result = (wxString *)& ((arg1)->name);
1504
1505 {
1506 #if wxUSE_UNICODE
1507 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
1508 #else
1509 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
1510 #endif
1511 }
1512 return resultobj;
1513 fail:
1514 return NULL;
1515 }
1516
1517
1518 static PyObject *_wrap_ParamX_vt_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxParamX *arg1 = (wxParamX *) 0 ;
1521 wxString result;
1522 PyObject * obj0 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "self", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_type_get",kwnames,&obj0)) goto fail;
1528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 result = wxParamX_vt_type_get(arg1);
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 {
1538 #if wxUSE_UNICODE
1539 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1540 #else
1541 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1542 #endif
1543 }
1544 return resultobj;
1545 fail:
1546 return NULL;
1547 }
1548
1549
1550 static PyObject *_wrap_ParamX_IsIn(PyObject *, PyObject *args, PyObject *kwargs) {
1551 PyObject *resultobj;
1552 wxParamX *arg1 = (wxParamX *) 0 ;
1553 bool result;
1554 PyObject * obj0 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsIn",kwnames,&obj0)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 {
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 result = (bool)((wxParamX const *)arg1)->IsIn();
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 {
1570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1571 }
1572 return resultobj;
1573 fail:
1574 return NULL;
1575 }
1576
1577
1578 static PyObject *_wrap_ParamX_IsOut(PyObject *, PyObject *args, PyObject *kwargs) {
1579 PyObject *resultobj;
1580 wxParamX *arg1 = (wxParamX *) 0 ;
1581 bool result;
1582 PyObject * obj0 = 0 ;
1583 char *kwnames[] = {
1584 (char *) "self", NULL
1585 };
1586
1587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsOut",kwnames,&obj0)) goto fail;
1588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1590 {
1591 PyThreadState* __tstate = wxPyBeginAllowThreads();
1592 result = (bool)((wxParamX const *)arg1)->IsOut();
1593
1594 wxPyEndAllowThreads(__tstate);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 }
1597 {
1598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1599 }
1600 return resultobj;
1601 fail:
1602 return NULL;
1603 }
1604
1605
1606 static PyObject *_wrap_ParamX_IsRetVal(PyObject *, PyObject *args, PyObject *kwargs) {
1607 PyObject *resultobj;
1608 wxParamX *arg1 = (wxParamX *) 0 ;
1609 bool result;
1610 PyObject * obj0 = 0 ;
1611 char *kwnames[] = {
1612 (char *) "self", NULL
1613 };
1614
1615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsRetVal",kwnames,&obj0)) goto fail;
1616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamX,
1617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1618 {
1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
1620 result = (bool)((wxParamX const *)arg1)->IsRetVal();
1621
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 }
1625 {
1626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1627 }
1628 return resultobj;
1629 fail:
1630 return NULL;
1631 }
1632
1633
1634 static PyObject * ParamX_swigregister(PyObject *, PyObject *args) {
1635 PyObject *obj;
1636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1637 SWIG_TypeClientData(SWIGTYPE_p_wxParamX, obj);
1638 Py_INCREF(obj);
1639 return Py_BuildValue((char *)"");
1640 }
1641 static PyObject *_wrap_FuncX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
1642 PyObject *resultobj;
1643 wxFuncX *arg1 = (wxFuncX *) 0 ;
1644 wxString *result;
1645 PyObject * obj0 = 0 ;
1646 char *kwnames[] = {
1647 (char *) "self", NULL
1648 };
1649
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_name_get",kwnames,&obj0)) goto fail;
1651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncX,
1652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1653 result = (wxString *)& ((arg1)->name);
1654
1655 {
1656 #if wxUSE_UNICODE
1657 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
1658 #else
1659 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
1660 #endif
1661 }
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_FuncX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxFuncX *arg1 = (wxFuncX *) 0 ;
1671 MEMBERID result;
1672 PyObject * obj0 = 0 ;
1673 char *kwnames[] = {
1674 (char *) "self", NULL
1675 };
1676
1677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_memid_get",kwnames,&obj0)) goto fail;
1678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncX,
1679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1680 result = (MEMBERID) ((arg1)->memid);
1681
1682 resultobj = SWIG_From_long((long)result);
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_FuncX_hasOut_get(PyObject *, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxFuncX *arg1 = (wxFuncX *) 0 ;
1692 bool result;
1693 PyObject * obj0 = 0 ;
1694 char *kwnames[] = {
1695 (char *) "self", NULL
1696 };
1697
1698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_hasOut_get",kwnames,&obj0)) goto fail;
1699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncX,
1700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1701 result = (bool) ((arg1)->hasOut);
1702
1703 {
1704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1705 }
1706 return resultobj;
1707 fail:
1708 return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_FuncX_retType_get(PyObject *, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 wxFuncX *arg1 = (wxFuncX *) 0 ;
1715 wxParamX *result;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "self", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_retType_get",kwnames,&obj0)) goto fail;
1722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncX,
1723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1724 result = (wxParamX *)& ((arg1)->retType);
1725
1726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
1727 return resultobj;
1728 fail:
1729 return NULL;
1730 }
1731
1732
1733 static PyObject *_wrap_FuncX_params_get(PyObject *, PyObject *args, PyObject *kwargs) {
1734 PyObject *resultobj;
1735 wxFuncX *arg1 = (wxFuncX *) 0 ;
1736 wxParamXArray *result;
1737 PyObject * obj0 = 0 ;
1738 char *kwnames[] = {
1739 (char *) "self", NULL
1740 };
1741
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_params_get",kwnames,&obj0)) goto fail;
1743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncX,
1744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1745 result = (wxParamXArray *)& ((arg1)->params);
1746
1747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamXArray, 0);
1748 return resultobj;
1749 fail:
1750 return NULL;
1751 }
1752
1753
1754 static PyObject * FuncX_swigregister(PyObject *, PyObject *args) {
1755 PyObject *obj;
1756 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1757 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX, obj);
1758 Py_INCREF(obj);
1759 return Py_BuildValue((char *)"");
1760 }
1761 static PyObject *_wrap_PropX_name_get(PyObject *, PyObject *args, PyObject *kwargs) {
1762 PyObject *resultobj;
1763 wxPropX *arg1 = (wxPropX *) 0 ;
1764 wxString *result;
1765 PyObject * obj0 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "self", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_name_get",kwnames,&obj0)) goto fail;
1771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1773 result = (wxString *)& ((arg1)->name);
1774
1775 {
1776 #if wxUSE_UNICODE
1777 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
1778 #else
1779 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
1780 #endif
1781 }
1782 return resultobj;
1783 fail:
1784 return NULL;
1785 }
1786
1787
1788 static PyObject *_wrap_PropX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) {
1789 PyObject *resultobj;
1790 wxPropX *arg1 = (wxPropX *) 0 ;
1791 MEMBERID result;
1792 PyObject * obj0 = 0 ;
1793 char *kwnames[] = {
1794 (char *) "self", NULL
1795 };
1796
1797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_memid_get",kwnames,&obj0)) goto fail;
1798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1800 result = (MEMBERID) ((arg1)->memid);
1801
1802 resultobj = SWIG_From_long((long)result);
1803 return resultobj;
1804 fail:
1805 return NULL;
1806 }
1807
1808
1809 static PyObject *_wrap_PropX_type_get(PyObject *, PyObject *args, PyObject *kwargs) {
1810 PyObject *resultobj;
1811 wxPropX *arg1 = (wxPropX *) 0 ;
1812 wxParamX *result;
1813 PyObject * obj0 = 0 ;
1814 char *kwnames[] = {
1815 (char *) "self", NULL
1816 };
1817
1818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_type_get",kwnames,&obj0)) goto fail;
1819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1821 result = (wxParamX *)& ((arg1)->type);
1822
1823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
1824 return resultobj;
1825 fail:
1826 return NULL;
1827 }
1828
1829
1830 static PyObject *_wrap_PropX_arg_get(PyObject *, PyObject *args, PyObject *kwargs) {
1831 PyObject *resultobj;
1832 wxPropX *arg1 = (wxPropX *) 0 ;
1833 wxParamX *result;
1834 PyObject * obj0 = 0 ;
1835 char *kwnames[] = {
1836 (char *) "self", NULL
1837 };
1838
1839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_arg_get",kwnames,&obj0)) goto fail;
1840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1842 result = (wxParamX *)& ((arg1)->arg);
1843
1844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
1845 return resultobj;
1846 fail:
1847 return NULL;
1848 }
1849
1850
1851 static PyObject *_wrap_PropX_putByRef_get(PyObject *, PyObject *args, PyObject *kwargs) {
1852 PyObject *resultobj;
1853 wxPropX *arg1 = (wxPropX *) 0 ;
1854 bool result;
1855 PyObject * obj0 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_putByRef_get",kwnames,&obj0)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 result = (bool) ((arg1)->putByRef);
1864
1865 {
1866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1867 }
1868 return resultobj;
1869 fail:
1870 return NULL;
1871 }
1872
1873
1874 static PyObject *_wrap_PropX_CanGet(PyObject *, PyObject *args, PyObject *kwargs) {
1875 PyObject *resultobj;
1876 wxPropX *arg1 = (wxPropX *) 0 ;
1877 bool result;
1878 PyObject * obj0 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "self", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanGet",kwnames,&obj0)) goto fail;
1884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1886 {
1887 PyThreadState* __tstate = wxPyBeginAllowThreads();
1888 result = (bool)((wxPropX const *)arg1)->CanGet();
1889
1890 wxPyEndAllowThreads(__tstate);
1891 if (PyErr_Occurred()) SWIG_fail;
1892 }
1893 {
1894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1895 }
1896 return resultobj;
1897 fail:
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_PropX_CanSet(PyObject *, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPropX *arg1 = (wxPropX *) 0 ;
1905 bool result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanSet",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropX,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 {
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 result = (bool)((wxPropX const *)arg1)->CanSet();
1917
1918 wxPyEndAllowThreads(__tstate);
1919 if (PyErr_Occurred()) SWIG_fail;
1920 }
1921 {
1922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1923 }
1924 return resultobj;
1925 fail:
1926 return NULL;
1927 }
1928
1929
1930 static PyObject * PropX_swigregister(PyObject *, PyObject *args) {
1931 PyObject *obj;
1932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1933 SWIG_TypeClientData(SWIGTYPE_p_wxPropX, obj);
1934 Py_INCREF(obj);
1935 return Py_BuildValue((char *)"");
1936 }
1937 static PyObject *_wrap_ParamXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
1938 PyObject *resultobj;
1939 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
1940 bool result;
1941 PyObject * obj0 = 0 ;
1942 char *kwnames[] = {
1943 (char *) "self", NULL
1944 };
1945
1946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___nonzero__",kwnames,&obj0)) goto fail;
1947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamXArray,
1948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1949 {
1950 PyThreadState* __tstate = wxPyBeginAllowThreads();
1951 result = (bool)wxParamXArray___nonzero__(arg1);
1952
1953 wxPyEndAllowThreads(__tstate);
1954 if (PyErr_Occurred()) SWIG_fail;
1955 }
1956 {
1957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1958 }
1959 return resultobj;
1960 fail:
1961 return NULL;
1962 }
1963
1964
1965 static PyObject *_wrap_ParamXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
1966 PyObject *resultobj;
1967 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
1968 int result;
1969 PyObject * obj0 = 0 ;
1970 char *kwnames[] = {
1971 (char *) "self", NULL
1972 };
1973
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___len__",kwnames,&obj0)) goto fail;
1975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamXArray,
1976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1977 {
1978 PyThreadState* __tstate = wxPyBeginAllowThreads();
1979 result = (int)wxParamXArray___len__(arg1);
1980
1981 wxPyEndAllowThreads(__tstate);
1982 if (PyErr_Occurred()) SWIG_fail;
1983 }
1984 resultobj = SWIG_From_int((int)result);
1985 return resultobj;
1986 fail:
1987 return NULL;
1988 }
1989
1990
1991 static PyObject *_wrap_ParamXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
1992 PyObject *resultobj;
1993 wxParamXArray *arg1 = (wxParamXArray *) 0 ;
1994 int arg2 ;
1995 wxParamX *result;
1996 PyObject * obj0 = 0 ;
1997 PyObject * obj1 = 0 ;
1998 char *kwnames[] = {
1999 (char *) "self",(char *) "idx", NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ParamXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
2003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxParamXArray,
2004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2005 arg2 = (int)SWIG_As_int(obj1);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 {
2010 wxParamX const &_result_ref = wxParamXArray___getitem__(arg1,arg2);
2011 result = (wxParamX *) &_result_ref;
2012 }
2013
2014 wxPyEndAllowThreads(__tstate);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0);
2018 return resultobj;
2019 fail:
2020 return NULL;
2021 }
2022
2023
2024 static PyObject * ParamXArray_swigregister(PyObject *, PyObject *args) {
2025 PyObject *obj;
2026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2027 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray, obj);
2028 Py_INCREF(obj);
2029 return Py_BuildValue((char *)"");
2030 }
2031 static PyObject *_wrap_FuncXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
2032 PyObject *resultobj;
2033 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
2034 bool result;
2035 PyObject * obj0 = 0 ;
2036 char *kwnames[] = {
2037 (char *) "self", NULL
2038 };
2039
2040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___nonzero__",kwnames,&obj0)) goto fail;
2041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncXArray,
2042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2043 {
2044 PyThreadState* __tstate = wxPyBeginAllowThreads();
2045 result = (bool)wxFuncXArray___nonzero__(arg1);
2046
2047 wxPyEndAllowThreads(__tstate);
2048 if (PyErr_Occurred()) SWIG_fail;
2049 }
2050 {
2051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2052 }
2053 return resultobj;
2054 fail:
2055 return NULL;
2056 }
2057
2058
2059 static PyObject *_wrap_FuncXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
2060 PyObject *resultobj;
2061 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
2062 int result;
2063 PyObject * obj0 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___len__",kwnames,&obj0)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncXArray,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (int)wxFuncXArray___len__(arg1);
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_From_int((int)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject *_wrap_FuncXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxFuncXArray *arg1 = (wxFuncXArray *) 0 ;
2088 int arg2 ;
2089 wxFuncX *result;
2090 PyObject * obj0 = 0 ;
2091 PyObject * obj1 = 0 ;
2092 char *kwnames[] = {
2093 (char *) "self",(char *) "idx", NULL
2094 };
2095
2096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FuncXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
2097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFuncXArray,
2098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2099 arg2 = (int)SWIG_As_int(obj1);
2100 if (PyErr_Occurred()) SWIG_fail;
2101 {
2102 PyThreadState* __tstate = wxPyBeginAllowThreads();
2103 {
2104 wxFuncX const &_result_ref = wxFuncXArray___getitem__(arg1,arg2);
2105 result = (wxFuncX *) &_result_ref;
2106 }
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject * FuncXArray_swigregister(PyObject *, PyObject *args) {
2119 PyObject *obj;
2120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2121 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray, obj);
2122 Py_INCREF(obj);
2123 return Py_BuildValue((char *)"");
2124 }
2125 static PyObject *_wrap_PropXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
2128 bool result;
2129 PyObject * obj0 = 0 ;
2130 char *kwnames[] = {
2131 (char *) "self", NULL
2132 };
2133
2134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___nonzero__",kwnames,&obj0)) goto fail;
2135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropXArray,
2136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 result = (bool)wxPropXArray___nonzero__(arg1);
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) SWIG_fail;
2143 }
2144 {
2145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2146 }
2147 return resultobj;
2148 fail:
2149 return NULL;
2150 }
2151
2152
2153 static PyObject *_wrap_PropXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) {
2154 PyObject *resultobj;
2155 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
2156 int result;
2157 PyObject * obj0 = 0 ;
2158 char *kwnames[] = {
2159 (char *) "self", NULL
2160 };
2161
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___len__",kwnames,&obj0)) goto fail;
2163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropXArray,
2164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 result = (int)wxPropXArray___len__(arg1);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 resultobj = SWIG_From_int((int)result);
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_PropXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxPropXArray *arg1 = (wxPropXArray *) 0 ;
2182 int arg2 ;
2183 wxPropX *result;
2184 PyObject * obj0 = 0 ;
2185 PyObject * obj1 = 0 ;
2186 char *kwnames[] = {
2187 (char *) "self",(char *) "idx", NULL
2188 };
2189
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PropXArray___getitem__",kwnames,&obj0,&obj1)) goto fail;
2191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropXArray,
2192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2193 arg2 = (int)SWIG_As_int(obj1);
2194 if (PyErr_Occurred()) SWIG_fail;
2195 {
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 {
2198 wxPropX const &_result_ref = wxPropXArray___getitem__(arg1,arg2);
2199 result = (wxPropX *) &_result_ref;
2200 }
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
2206 return resultobj;
2207 fail:
2208 return NULL;
2209 }
2210
2211
2212 static PyObject * PropXArray_swigregister(PyObject *, PyObject *args) {
2213 PyObject *obj;
2214 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2215 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray, obj);
2216 Py_INCREF(obj);
2217 return Py_BuildValue((char *)"");
2218 }
2219 static PyObject *_wrap_new_ActiveXWindow(PyObject *, PyObject *args, PyObject *kwargs) {
2220 PyObject *resultobj;
2221 wxWindow *arg1 = (wxWindow *) 0 ;
2222 CLSID *arg2 = 0 ;
2223 int arg3 = (int) -1 ;
2224 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2225 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2226 wxSize const &arg5_defvalue = wxDefaultSize ;
2227 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2228 long arg6 = (long) 0 ;
2229 wxString const &arg7_defvalue = wxPyPanelNameStr ;
2230 wxString *arg7 = (wxString *) &arg7_defvalue ;
2231 wxActiveXWindow *result;
2232 wxPoint temp4 ;
2233 wxSize temp5 ;
2234 bool temp7 = false ;
2235 PyObject * obj0 = 0 ;
2236 PyObject * obj1 = 0 ;
2237 PyObject * obj2 = 0 ;
2238 PyObject * obj3 = 0 ;
2239 PyObject * obj4 = 0 ;
2240 PyObject * obj5 = 0 ;
2241 PyObject * obj6 = 0 ;
2242 char *kwnames[] = {
2243 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
2244 };
2245
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_CLSID,
2250 SWIG_POINTER_EXCEPTION | 0)) == -1)
2251 SWIG_fail;
2252 if (arg2 == NULL) {
2253 PyErr_SetString(PyExc_TypeError,"null reference");
2254 SWIG_fail;
2255 }
2256 if (obj2) {
2257 arg3 = (int)SWIG_As_int(obj2);
2258 if (PyErr_Occurred()) SWIG_fail;
2259 }
2260 if (obj3) {
2261 {
2262 arg4 = &temp4;
2263 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2264 }
2265 }
2266 if (obj4) {
2267 {
2268 arg5 = &temp5;
2269 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2270 }
2271 }
2272 if (obj5) {
2273 arg6 = (long)SWIG_As_long(obj5);
2274 if (PyErr_Occurred()) SWIG_fail;
2275 }
2276 if (obj6) {
2277 {
2278 arg7 = wxString_in_helper(obj6);
2279 if (arg7 == NULL) SWIG_fail;
2280 temp7 = true;
2281 }
2282 }
2283 {
2284 if (!wxPyCheckForApp()) SWIG_fail;
2285 PyThreadState* __tstate = wxPyBeginAllowThreads();
2286 result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
2287
2288 wxPyEndAllowThreads(__tstate);
2289 if (PyErr_Occurred()) SWIG_fail;
2290 }
2291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActiveXWindow, 1);
2292 {
2293 if (temp7)
2294 delete arg7;
2295 }
2296 return resultobj;
2297 fail:
2298 {
2299 if (temp7)
2300 delete arg7;
2301 }
2302 return NULL;
2303 }
2304
2305
2306 static PyObject *_wrap_ActiveXWindow_GetCLSID(PyObject *, PyObject *args, PyObject *kwargs) {
2307 PyObject *resultobj;
2308 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2309 CLSID *result;
2310 PyObject * obj0 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetCLSID",kwnames,&obj0)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 {
2321 CLSID const &_result_ref = ((wxActiveXWindow const *)arg1)->GetCLSID();
2322 result = (CLSID *) &_result_ref;
2323 }
2324
2325 wxPyEndAllowThreads(__tstate);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 }
2328 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 0);
2329 return resultobj;
2330 fail:
2331 return NULL;
2332 }
2333
2334
2335 static PyObject *_wrap_ActiveXWindow_GetAXEventCount(PyObject *, PyObject *args, PyObject *kwargs) {
2336 PyObject *resultobj;
2337 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2338 int result;
2339 PyObject * obj0 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "self", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames,&obj0)) goto fail;
2345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2347 {
2348 PyThreadState* __tstate = wxPyBeginAllowThreads();
2349 result = (int)((wxActiveXWindow const *)arg1)->GetAXEventCount();
2350
2351 wxPyEndAllowThreads(__tstate);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 resultobj = SWIG_From_int((int)result);
2355 return resultobj;
2356 fail:
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_ActiveXWindow_GetAXEventDesc(PyObject *, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2364 int arg2 ;
2365 wxFuncX *result;
2366 PyObject * obj0 = 0 ;
2367 PyObject * obj1 = 0 ;
2368 char *kwnames[] = {
2369 (char *) "self",(char *) "idx", NULL
2370 };
2371
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames,&obj0,&obj1)) goto fail;
2373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2375 arg2 = (int)SWIG_As_int(obj1);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 {
2378 PyThreadState* __tstate = wxPyBeginAllowThreads();
2379 {
2380 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXEventDesc(arg2);
2381 result = (wxFuncX *) &_result_ref;
2382 }
2383
2384 wxPyEndAllowThreads(__tstate);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 }
2387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
2388 return resultobj;
2389 fail:
2390 return NULL;
2391 }
2392
2393
2394 static PyObject *_wrap_ActiveXWindow_GetAXPropCount(PyObject *, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2397 int result;
2398 PyObject * obj0 = 0 ;
2399 char *kwnames[] = {
2400 (char *) "self", NULL
2401 };
2402
2403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames,&obj0)) goto fail;
2404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2406 {
2407 PyThreadState* __tstate = wxPyBeginAllowThreads();
2408 result = (int)((wxActiveXWindow const *)arg1)->GetAXPropCount();
2409
2410 wxPyEndAllowThreads(__tstate);
2411 if (PyErr_Occurred()) SWIG_fail;
2412 }
2413 resultobj = SWIG_From_int((int)result);
2414 return resultobj;
2415 fail:
2416 return NULL;
2417 }
2418
2419
2420 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject *, PyObject *args) {
2421 PyObject *resultobj;
2422 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2423 int arg2 ;
2424 wxPropX *result;
2425 PyObject * obj0 = 0 ;
2426 PyObject * obj1 = 0 ;
2427
2428 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
2429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2431 arg2 = (int)SWIG_As_int(obj1);
2432 if (PyErr_Occurred()) SWIG_fail;
2433 {
2434 PyThreadState* __tstate = wxPyBeginAllowThreads();
2435 {
2436 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc(arg2);
2437 result = (wxPropX *) &_result_ref;
2438 }
2439
2440 wxPyEndAllowThreads(__tstate);
2441 if (PyErr_Occurred()) SWIG_fail;
2442 }
2443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
2444 return resultobj;
2445 fail:
2446 return NULL;
2447 }
2448
2449
2450 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject *, PyObject *args) {
2451 PyObject *resultobj;
2452 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2453 wxString *arg2 = 0 ;
2454 wxPropX *result;
2455 bool temp2 = false ;
2456 PyObject * obj0 = 0 ;
2457 PyObject * obj1 = 0 ;
2458
2459 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail;
2460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2462 {
2463 arg2 = wxString_in_helper(obj1);
2464 if (arg2 == NULL) SWIG_fail;
2465 temp2 = true;
2466 }
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 {
2470 wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc((wxString const &)*arg2);
2471 result = (wxPropX *) &_result_ref;
2472 }
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0);
2478 {
2479 if (temp2)
2480 delete arg2;
2481 }
2482 return resultobj;
2483 fail:
2484 {
2485 if (temp2)
2486 delete arg2;
2487 }
2488 return NULL;
2489 }
2490
2491
2492 static PyObject *_wrap_ActiveXWindow_GetAXPropDesc(PyObject *self, PyObject *args) {
2493 int argc;
2494 PyObject *argv[3];
2495 int ii;
2496
2497 argc = PyObject_Length(args);
2498 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
2499 argv[ii] = PyTuple_GetItem(args,ii);
2500 }
2501 if (argc == 2) {
2502 int _v;
2503 {
2504 void *ptr;
2505 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
2506 _v = 0;
2507 PyErr_Clear();
2508 } else {
2509 _v = 1;
2510 }
2511 }
2512 if (_v) {
2513 {
2514 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
2515 }
2516 if (_v) {
2517 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self,args);
2518 }
2519 }
2520 }
2521 if (argc == 2) {
2522 int _v;
2523 {
2524 void *ptr;
2525 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
2526 _v = 0;
2527 PyErr_Clear();
2528 } else {
2529 _v = 1;
2530 }
2531 }
2532 if (_v) {
2533 _v = SWIG_Check_int(argv[1]);
2534 if (_v) {
2535 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self,args);
2536 }
2537 }
2538 }
2539
2540 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
2541 return NULL;
2542 }
2543
2544
2545 static PyObject *_wrap_ActiveXWindow_GetAXMethodCount(PyObject *, PyObject *args, PyObject *kwargs) {
2546 PyObject *resultobj;
2547 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2548 int result;
2549 PyObject * obj0 = 0 ;
2550 char *kwnames[] = {
2551 (char *) "self", NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames,&obj0)) goto fail;
2555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 result = (int)((wxActiveXWindow const *)arg1)->GetAXMethodCount();
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 }
2564 resultobj = SWIG_From_int((int)result);
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject *, PyObject *args) {
2572 PyObject *resultobj;
2573 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2574 int arg2 ;
2575 wxFuncX *result;
2576 PyObject * obj0 = 0 ;
2577 PyObject * obj1 = 0 ;
2578
2579 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
2580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2582 arg2 = (int)SWIG_As_int(obj1);
2583 if (PyErr_Occurred()) SWIG_fail;
2584 {
2585 PyThreadState* __tstate = wxPyBeginAllowThreads();
2586 {
2587 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc(arg2);
2588 result = (wxFuncX *) &_result_ref;
2589 }
2590
2591 wxPyEndAllowThreads(__tstate);
2592 if (PyErr_Occurred()) SWIG_fail;
2593 }
2594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
2595 return resultobj;
2596 fail:
2597 return NULL;
2598 }
2599
2600
2601 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject *, PyObject *args) {
2602 PyObject *resultobj;
2603 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2604 wxString *arg2 = 0 ;
2605 wxFuncX *result;
2606 bool temp2 = false ;
2607 PyObject * obj0 = 0 ;
2608 PyObject * obj1 = 0 ;
2609
2610 if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail;
2611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2613 {
2614 arg2 = wxString_in_helper(obj1);
2615 if (arg2 == NULL) SWIG_fail;
2616 temp2 = true;
2617 }
2618 {
2619 PyThreadState* __tstate = wxPyBeginAllowThreads();
2620 {
2621 wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc((wxString const &)*arg2);
2622 result = (wxFuncX *) &_result_ref;
2623 }
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0);
2629 {
2630 if (temp2)
2631 delete arg2;
2632 }
2633 return resultobj;
2634 fail:
2635 {
2636 if (temp2)
2637 delete arg2;
2638 }
2639 return NULL;
2640 }
2641
2642
2643 static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc(PyObject *self, PyObject *args) {
2644 int argc;
2645 PyObject *argv[3];
2646 int ii;
2647
2648 argc = PyObject_Length(args);
2649 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
2650 argv[ii] = PyTuple_GetItem(args,ii);
2651 }
2652 if (argc == 2) {
2653 int _v;
2654 {
2655 void *ptr;
2656 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
2657 _v = 0;
2658 PyErr_Clear();
2659 } else {
2660 _v = 1;
2661 }
2662 }
2663 if (_v) {
2664 {
2665 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
2666 }
2667 if (_v) {
2668 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self,args);
2669 }
2670 }
2671 }
2672 if (argc == 2) {
2673 int _v;
2674 {
2675 void *ptr;
2676 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) {
2677 _v = 0;
2678 PyErr_Clear();
2679 } else {
2680 _v = 1;
2681 }
2682 }
2683 if (_v) {
2684 _v = SWIG_Check_int(argv[1]);
2685 if (_v) {
2686 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self,args);
2687 }
2688 }
2689 }
2690
2691 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
2692 return NULL;
2693 }
2694
2695
2696 static PyObject *_wrap_ActiveXWindow_GetAXEvents(PyObject *, PyObject *args, PyObject *kwargs) {
2697 PyObject *resultobj;
2698 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2699 wxFuncXArray *result;
2700 PyObject * obj0 = 0 ;
2701 char *kwnames[] = {
2702 (char *) "self", NULL
2703 };
2704
2705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEvents",kwnames,&obj0)) goto fail;
2706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2708 {
2709 PyThreadState* __tstate = wxPyBeginAllowThreads();
2710 {
2711 wxFuncXArray const &_result_ref = (arg1)->GetAXEvents();
2712 result = (wxFuncXArray *) &_result_ref;
2713 }
2714
2715 wxPyEndAllowThreads(__tstate);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
2719 return resultobj;
2720 fail:
2721 return NULL;
2722 }
2723
2724
2725 static PyObject *_wrap_ActiveXWindow_GetAXMethods(PyObject *, PyObject *args, PyObject *kwargs) {
2726 PyObject *resultobj;
2727 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2728 wxFuncXArray *result;
2729 PyObject * obj0 = 0 ;
2730 char *kwnames[] = {
2731 (char *) "self", NULL
2732 };
2733
2734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethods",kwnames,&obj0)) goto fail;
2735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2737 {
2738 PyThreadState* __tstate = wxPyBeginAllowThreads();
2739 {
2740 wxFuncXArray const &_result_ref = (arg1)->GetAXMethods();
2741 result = (wxFuncXArray *) &_result_ref;
2742 }
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 }
2747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0);
2748 return resultobj;
2749 fail:
2750 return NULL;
2751 }
2752
2753
2754 static PyObject *_wrap_ActiveXWindow_GetAXProperties(PyObject *, PyObject *args, PyObject *kwargs) {
2755 PyObject *resultobj;
2756 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2757 wxPropXArray *result;
2758 PyObject * obj0 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self", NULL
2761 };
2762
2763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXProperties",kwnames,&obj0)) goto fail;
2764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2766 {
2767 PyThreadState* __tstate = wxPyBeginAllowThreads();
2768 {
2769 wxPropXArray const &_result_ref = (arg1)->GetAXProperties();
2770 result = (wxPropXArray *) &_result_ref;
2771 }
2772
2773 wxPyEndAllowThreads(__tstate);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropXArray, 0);
2777 return resultobj;
2778 fail:
2779 return NULL;
2780 }
2781
2782
2783 static PyObject *_wrap_ActiveXWindow_SetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2786 wxString *arg2 = 0 ;
2787 PyObject *arg3 = (PyObject *) 0 ;
2788 bool temp2 = false ;
2789 PyObject * obj0 = 0 ;
2790 PyObject * obj1 = 0 ;
2791 PyObject * obj2 = 0 ;
2792 char *kwnames[] = {
2793 (char *) "self",(char *) "name",(char *) "value", NULL
2794 };
2795
2796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames,&obj0,&obj1,&obj2)) goto fail;
2797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2799 {
2800 arg2 = wxString_in_helper(obj1);
2801 if (arg2 == NULL) SWIG_fail;
2802 temp2 = true;
2803 }
2804 arg3 = obj2;
2805 {
2806 PyThreadState* __tstate = wxPyBeginAllowThreads();
2807 (arg1)->SetAXProp((wxString const &)*arg2,arg3);
2808
2809 wxPyEndAllowThreads(__tstate);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2812 Py_INCREF(Py_None); resultobj = Py_None;
2813 {
2814 if (temp2)
2815 delete arg2;
2816 }
2817 return resultobj;
2818 fail:
2819 {
2820 if (temp2)
2821 delete arg2;
2822 }
2823 return NULL;
2824 }
2825
2826
2827 static PyObject *_wrap_ActiveXWindow_GetAXProp(PyObject *, PyObject *args, PyObject *kwargs) {
2828 PyObject *resultobj;
2829 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2830 wxString *arg2 = 0 ;
2831 PyObject *result;
2832 bool temp2 = false ;
2833 PyObject * obj0 = 0 ;
2834 PyObject * obj1 = 0 ;
2835 char *kwnames[] = {
2836 (char *) "self",(char *) "name", NULL
2837 };
2838
2839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXProp",kwnames,&obj0,&obj1)) goto fail;
2840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2842 {
2843 arg2 = wxString_in_helper(obj1);
2844 if (arg2 == NULL) SWIG_fail;
2845 temp2 = true;
2846 }
2847 {
2848 PyThreadState* __tstate = wxPyBeginAllowThreads();
2849 result = (PyObject *)(arg1)->GetAXProp((wxString const &)*arg2);
2850
2851 wxPyEndAllowThreads(__tstate);
2852 if (PyErr_Occurred()) SWIG_fail;
2853 }
2854 resultobj = result;
2855 {
2856 if (temp2)
2857 delete arg2;
2858 }
2859 return resultobj;
2860 fail:
2861 {
2862 if (temp2)
2863 delete arg2;
2864 }
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_ActiveXWindow__CallAXMethod(PyObject *, PyObject *args) {
2870 PyObject *resultobj;
2871 wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ;
2872 wxString *arg2 = 0 ;
2873 PyObject *arg3 = (PyObject *) 0 ;
2874 PyObject *result;
2875 bool temp2 = false ;
2876 PyObject * obj0 = 0 ;
2877 PyObject * obj1 = 0 ;
2878 PyObject * obj2 = 0 ;
2879
2880 if(!PyArg_ParseTuple(args,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0,&obj1,&obj2)) goto fail;
2881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXWindow,
2882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2883 {
2884 arg2 = wxString_in_helper(obj1);
2885 if (arg2 == NULL) SWIG_fail;
2886 temp2 = true;
2887 }
2888 arg3 = obj2;
2889 {
2890 PyThreadState* __tstate = wxPyBeginAllowThreads();
2891 result = (PyObject *)(arg1)->_CallAXMethod((wxString const &)*arg2,arg3);
2892
2893 wxPyEndAllowThreads(__tstate);
2894 if (PyErr_Occurred()) SWIG_fail;
2895 }
2896 resultobj = result;
2897 {
2898 if (temp2)
2899 delete arg2;
2900 }
2901 return resultobj;
2902 fail:
2903 {
2904 if (temp2)
2905 delete arg2;
2906 }
2907 return NULL;
2908 }
2909
2910
2911 static PyObject * ActiveXWindow_swigregister(PyObject *, PyObject *args) {
2912 PyObject *obj;
2913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2914 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow, obj);
2915 Py_INCREF(obj);
2916 return Py_BuildValue((char *)"");
2917 }
2918 static PyObject *_wrap_RegisterActiveXEvent(PyObject *, PyObject *args, PyObject *kwargs) {
2919 PyObject *resultobj;
2920 wxString *arg1 = 0 ;
2921 wxEventType result;
2922 bool temp1 = false ;
2923 PyObject * obj0 = 0 ;
2924 char *kwnames[] = {
2925 (char *) "eventName", NULL
2926 };
2927
2928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterActiveXEvent",kwnames,&obj0)) goto fail;
2929 {
2930 arg1 = wxString_in_helper(obj0);
2931 if (arg1 == NULL) SWIG_fail;
2932 temp1 = true;
2933 }
2934 {
2935 PyThreadState* __tstate = wxPyBeginAllowThreads();
2936 result = (wxEventType)RegisterActiveXEvent((wxString const &)*arg1);
2937
2938 wxPyEndAllowThreads(__tstate);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 resultobj = SWIG_From_int((int)result);
2942 {
2943 if (temp1)
2944 delete arg1;
2945 }
2946 return resultobj;
2947 fail:
2948 {
2949 if (temp1)
2950 delete arg1;
2951 }
2952 return NULL;
2953 }
2954
2955
2956 static PyObject *_wrap_ActiveXEvent_EventName(PyObject *, PyObject *args, PyObject *kwargs) {
2957 PyObject *resultobj;
2958 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
2959 wxString result;
2960 PyObject * obj0 = 0 ;
2961 char *kwnames[] = {
2962 (char *) "self", NULL
2963 };
2964
2965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXEvent_EventName",kwnames,&obj0)) goto fail;
2966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXEvent,
2967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2968 {
2969 PyThreadState* __tstate = wxPyBeginAllowThreads();
2970 result = (arg1)->EventName();
2971
2972 wxPyEndAllowThreads(__tstate);
2973 if (PyErr_Occurred()) SWIG_fail;
2974 }
2975 {
2976 #if wxUSE_UNICODE
2977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2978 #else
2979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2980 #endif
2981 }
2982 return resultobj;
2983 fail:
2984 return NULL;
2985 }
2986
2987
2988 static PyObject *_wrap_ActiveXEvent__preCallInit(PyObject *, PyObject *args, PyObject *kwargs) {
2989 PyObject *resultobj;
2990 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
2991 PyObject *arg2 = (PyObject *) 0 ;
2992 PyObject * obj0 = 0 ;
2993 PyObject * obj1 = 0 ;
2994 char *kwnames[] = {
2995 (char *) "self",(char *) "pyself", NULL
2996 };
2997
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__preCallInit",kwnames,&obj0,&obj1)) goto fail;
2999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXEvent,
3000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3001 arg2 = obj1;
3002 {
3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
3004 wxActiveXEvent__preCallInit(arg1,arg2);
3005
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) SWIG_fail;
3008 }
3009 Py_INCREF(Py_None); resultobj = Py_None;
3010 return resultobj;
3011 fail:
3012 return NULL;
3013 }
3014
3015
3016 static PyObject *_wrap_ActiveXEvent__postCallCleanup(PyObject *, PyObject *args, PyObject *kwargs) {
3017 PyObject *resultobj;
3018 wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ;
3019 PyObject *arg2 = (PyObject *) 0 ;
3020 PyObject * obj0 = 0 ;
3021 PyObject * obj1 = 0 ;
3022 char *kwnames[] = {
3023 (char *) "self",(char *) "pyself", NULL
3024 };
3025
3026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames,&obj0,&obj1)) goto fail;
3027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActiveXEvent,
3028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3029 arg2 = obj1;
3030 {
3031 PyThreadState* __tstate = wxPyBeginAllowThreads();
3032 wxActiveXEvent__postCallCleanup(arg1,arg2);
3033
3034 wxPyEndAllowThreads(__tstate);
3035 if (PyErr_Occurred()) SWIG_fail;
3036 }
3037 Py_INCREF(Py_None); resultobj = Py_None;
3038 return resultobj;
3039 fail:
3040 return NULL;
3041 }
3042
3043
3044 static PyObject * ActiveXEvent_swigregister(PyObject *, PyObject *args) {
3045 PyObject *obj;
3046 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3047 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent, obj);
3048 Py_INCREF(obj);
3049 return Py_BuildValue((char *)"");
3050 }
3051 static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *, PyObject *args, PyObject *kwargs) {
3052 PyObject *resultobj;
3053 wxWindow *arg1 = (wxWindow *) 0 ;
3054 CLSID *arg2 = 0 ;
3055 int arg3 = (int) -1 ;
3056 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3057 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3058 wxSize const &arg5_defvalue = wxDefaultSize ;
3059 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3060 long arg6 = (long) 0 ;
3061 wxString const &arg7_defvalue = wxPyPanelNameStr ;
3062 wxString *arg7 = (wxString *) &arg7_defvalue ;
3063 wxIEHtmlWindowBase *result;
3064 wxPoint temp4 ;
3065 wxSize temp5 ;
3066 bool temp7 = false ;
3067 PyObject * obj0 = 0 ;
3068 PyObject * obj1 = 0 ;
3069 PyObject * obj2 = 0 ;
3070 PyObject * obj3 = 0 ;
3071 PyObject * obj4 = 0 ;
3072 PyObject * obj5 = 0 ;
3073 PyObject * obj6 = 0 ;
3074 char *kwnames[] = {
3075 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3076 };
3077
3078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_CLSID,
3082 SWIG_POINTER_EXCEPTION | 0)) == -1)
3083 SWIG_fail;
3084 if (arg2 == NULL) {
3085 PyErr_SetString(PyExc_TypeError,"null reference");
3086 SWIG_fail;
3087 }
3088 if (obj2) {
3089 arg3 = (int)SWIG_As_int(obj2);
3090 if (PyErr_Occurred()) SWIG_fail;
3091 }
3092 if (obj3) {
3093 {
3094 arg4 = &temp4;
3095 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3096 }
3097 }
3098 if (obj4) {
3099 {
3100 arg5 = &temp5;
3101 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3102 }
3103 }
3104 if (obj5) {
3105 arg6 = (long)SWIG_As_long(obj5);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 if (obj6) {
3109 {
3110 arg7 = wxString_in_helper(obj6);
3111 if (arg7 == NULL) SWIG_fail;
3112 temp7 = true;
3113 }
3114 }
3115 {
3116 if (!wxPyCheckForApp()) SWIG_fail;
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIEHtmlWindowBase, 1);
3124 {
3125 if (temp7)
3126 delete arg7;
3127 }
3128 return resultobj;
3129 fail:
3130 {
3131 if (temp7)
3132 delete arg7;
3133 }
3134 return NULL;
3135 }
3136
3137
3138 static PyObject *_wrap_IEHtmlWindowBase_SetCharset(PyObject *, PyObject *args, PyObject *kwargs) {
3139 PyObject *resultobj;
3140 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
3141 wxString *arg2 = 0 ;
3142 bool temp2 = false ;
3143 PyObject * obj0 = 0 ;
3144 PyObject * obj1 = 0 ;
3145 char *kwnames[] = {
3146 (char *) "self",(char *) "charset", NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames,&obj0,&obj1)) goto fail;
3150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIEHtmlWindowBase,
3151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3152 {
3153 arg2 = wxString_in_helper(obj1);
3154 if (arg2 == NULL) SWIG_fail;
3155 temp2 = true;
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 (arg1)->SetCharset((wxString const &)*arg2);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 Py_INCREF(Py_None); resultobj = Py_None;
3165 {
3166 if (temp2)
3167 delete arg2;
3168 }
3169 return resultobj;
3170 fail:
3171 {
3172 if (temp2)
3173 delete arg2;
3174 }
3175 return NULL;
3176 }
3177
3178
3179 static PyObject *_wrap_IEHtmlWindowBase_LoadString(PyObject *, PyObject *args, PyObject *kwargs) {
3180 PyObject *resultobj;
3181 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
3182 wxString *arg2 = 0 ;
3183 bool result;
3184 bool temp2 = false ;
3185 PyObject * obj0 = 0 ;
3186 PyObject * obj1 = 0 ;
3187 char *kwnames[] = {
3188 (char *) "self",(char *) "html", NULL
3189 };
3190
3191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames,&obj0,&obj1)) goto fail;
3192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIEHtmlWindowBase,
3193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3194 {
3195 arg2 = wxString_in_helper(obj1);
3196 if (arg2 == NULL) SWIG_fail;
3197 temp2 = true;
3198 }
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 result = (bool)(arg1)->LoadString((wxString const &)*arg2);
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 {
3207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3208 }
3209 {
3210 if (temp2)
3211 delete arg2;
3212 }
3213 return resultobj;
3214 fail:
3215 {
3216 if (temp2)
3217 delete arg2;
3218 }
3219 return NULL;
3220 }
3221
3222
3223 static PyObject *_wrap_IEHtmlWindowBase_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj;
3225 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
3226 wxInputStream *arg2 = (wxInputStream *) 0 ;
3227 bool result;
3228 wxPyInputStream *temp2 ;
3229 bool created2 ;
3230 PyObject * obj0 = 0 ;
3231 PyObject * obj1 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "self",(char *) "is", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames,&obj0,&obj1)) goto fail;
3237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIEHtmlWindowBase,
3238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3239 {
3240 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
3241 arg2 = temp2->m_wxis;
3242 created2 = false;
3243 } else {
3244 PyErr_Clear(); // clear the failure of the wxPyConvert above
3245 arg2 = wxPyCBInputStream_create(obj1, false);
3246 if (arg2 == NULL) {
3247 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
3248 SWIG_fail;
3249 }
3250 created2 = true;
3251 }
3252 }
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = (bool)(arg1)->LoadStream(arg2);
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 {
3261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3262 }
3263 {
3264 if (created2)
3265 delete arg2;
3266 }
3267 return resultobj;
3268 fail:
3269 {
3270 if (created2)
3271 delete arg2;
3272 }
3273 return NULL;
3274 }
3275
3276
3277 static PyObject *_wrap_IEHtmlWindowBase_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3278 PyObject *resultobj;
3279 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
3280 bool arg2 ;
3281 wxString result;
3282 PyObject * obj0 = 0 ;
3283 PyObject * obj1 = 0 ;
3284 char *kwnames[] = {
3285 (char *) "self",(char *) "asHTML", NULL
3286 };
3287
3288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIEHtmlWindowBase,
3290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3291 arg2 = (bool)SWIG_As_bool(obj1);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 result = (arg1)->GetStringSelection(arg2);
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 {
3301 #if wxUSE_UNICODE
3302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3303 #else
3304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3305 #endif
3306 }
3307 return resultobj;
3308 fail:
3309 return NULL;
3310 }
3311
3312
3313 static PyObject *_wrap_IEHtmlWindowBase_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
3314 PyObject *resultobj;
3315 wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ;
3316 bool arg2 ;
3317 wxString result;
3318 PyObject * obj0 = 0 ;
3319 PyObject * obj1 = 0 ;
3320 char *kwnames[] = {
3321 (char *) "self",(char *) "asHTML", NULL
3322 };
3323
3324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetText",kwnames,&obj0,&obj1)) goto fail;
3325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIEHtmlWindowBase,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3327 arg2 = (bool)SWIG_As_bool(obj1);
3328 if (PyErr_Occurred()) SWIG_fail;
3329 {
3330 PyThreadState* __tstate = wxPyBeginAllowThreads();
3331 result = (arg1)->GetText(arg2);
3332
3333 wxPyEndAllowThreads(__tstate);
3334 if (PyErr_Occurred()) SWIG_fail;
3335 }
3336 {
3337 #if wxUSE_UNICODE
3338 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3339 #else
3340 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3341 #endif
3342 }
3343 return resultobj;
3344 fail:
3345 return NULL;
3346 }
3347
3348
3349 static PyObject * IEHtmlWindowBase_swigregister(PyObject *, PyObject *args) {
3350 PyObject *obj;
3351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3352 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase, obj);
3353 Py_INCREF(obj);
3354 return Py_BuildValue((char *)"");
3355 }
3356 static PyMethodDef SwigMethods[] = {
3357 { (char *)"new_CLSID", (PyCFunction) _wrap_new_CLSID, METH_VARARGS | METH_KEYWORDS, NULL },
3358 { (char *)"delete_CLSID", (PyCFunction) _wrap_delete_CLSID, METH_VARARGS | METH_KEYWORDS, NULL },
3359 { (char *)"CLSID_GetCLSIDString", (PyCFunction) _wrap_CLSID_GetCLSIDString, METH_VARARGS | METH_KEYWORDS, NULL },
3360 { (char *)"CLSID_GetProgIDString", (PyCFunction) _wrap_CLSID_GetProgIDString, METH_VARARGS | METH_KEYWORDS, NULL },
3361 { (char *)"CLSID_swigregister", CLSID_swigregister, METH_VARARGS, NULL },
3362 { (char *)"ParamX_flags_get", (PyCFunction) _wrap_ParamX_flags_get, METH_VARARGS | METH_KEYWORDS, NULL },
3363 { (char *)"ParamX_isPtr_get", (PyCFunction) _wrap_ParamX_isPtr_get, METH_VARARGS | METH_KEYWORDS, NULL },
3364 { (char *)"ParamX_isSafeArray_get", (PyCFunction) _wrap_ParamX_isSafeArray_get, METH_VARARGS | METH_KEYWORDS, NULL },
3365 { (char *)"ParamX_isOptional_get", (PyCFunction) _wrap_ParamX_isOptional_get, METH_VARARGS | METH_KEYWORDS, NULL },
3366 { (char *)"ParamX_vt_get", (PyCFunction) _wrap_ParamX_vt_get, METH_VARARGS | METH_KEYWORDS, NULL },
3367 { (char *)"ParamX_name_get", (PyCFunction) _wrap_ParamX_name_get, METH_VARARGS | METH_KEYWORDS, NULL },
3368 { (char *)"ParamX_vt_type_get", (PyCFunction) _wrap_ParamX_vt_type_get, METH_VARARGS | METH_KEYWORDS, NULL },
3369 { (char *)"ParamX_IsIn", (PyCFunction) _wrap_ParamX_IsIn, METH_VARARGS | METH_KEYWORDS, NULL },
3370 { (char *)"ParamX_IsOut", (PyCFunction) _wrap_ParamX_IsOut, METH_VARARGS | METH_KEYWORDS, NULL },
3371 { (char *)"ParamX_IsRetVal", (PyCFunction) _wrap_ParamX_IsRetVal, METH_VARARGS | METH_KEYWORDS, NULL },
3372 { (char *)"ParamX_swigregister", ParamX_swigregister, METH_VARARGS, NULL },
3373 { (char *)"FuncX_name_get", (PyCFunction) _wrap_FuncX_name_get, METH_VARARGS | METH_KEYWORDS, NULL },
3374 { (char *)"FuncX_memid_get", (PyCFunction) _wrap_FuncX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL },
3375 { (char *)"FuncX_hasOut_get", (PyCFunction) _wrap_FuncX_hasOut_get, METH_VARARGS | METH_KEYWORDS, NULL },
3376 { (char *)"FuncX_retType_get", (PyCFunction) _wrap_FuncX_retType_get, METH_VARARGS | METH_KEYWORDS, NULL },
3377 { (char *)"FuncX_params_get", (PyCFunction) _wrap_FuncX_params_get, METH_VARARGS | METH_KEYWORDS, NULL },
3378 { (char *)"FuncX_swigregister", FuncX_swigregister, METH_VARARGS, NULL },
3379 { (char *)"PropX_name_get", (PyCFunction) _wrap_PropX_name_get, METH_VARARGS | METH_KEYWORDS, NULL },
3380 { (char *)"PropX_memid_get", (PyCFunction) _wrap_PropX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL },
3381 { (char *)"PropX_type_get", (PyCFunction) _wrap_PropX_type_get, METH_VARARGS | METH_KEYWORDS, NULL },
3382 { (char *)"PropX_arg_get", (PyCFunction) _wrap_PropX_arg_get, METH_VARARGS | METH_KEYWORDS, NULL },
3383 { (char *)"PropX_putByRef_get", (PyCFunction) _wrap_PropX_putByRef_get, METH_VARARGS | METH_KEYWORDS, NULL },
3384 { (char *)"PropX_CanGet", (PyCFunction) _wrap_PropX_CanGet, METH_VARARGS | METH_KEYWORDS, NULL },
3385 { (char *)"PropX_CanSet", (PyCFunction) _wrap_PropX_CanSet, METH_VARARGS | METH_KEYWORDS, NULL },
3386 { (char *)"PropX_swigregister", PropX_swigregister, METH_VARARGS, NULL },
3387 { (char *)"ParamXArray___nonzero__", (PyCFunction) _wrap_ParamXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
3388 { (char *)"ParamXArray___len__", (PyCFunction) _wrap_ParamXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL },
3389 { (char *)"ParamXArray___getitem__", (PyCFunction) _wrap_ParamXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL },
3390 { (char *)"ParamXArray_swigregister", ParamXArray_swigregister, METH_VARARGS, NULL },
3391 { (char *)"FuncXArray___nonzero__", (PyCFunction) _wrap_FuncXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
3392 { (char *)"FuncXArray___len__", (PyCFunction) _wrap_FuncXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL },
3393 { (char *)"FuncXArray___getitem__", (PyCFunction) _wrap_FuncXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL },
3394 { (char *)"FuncXArray_swigregister", FuncXArray_swigregister, METH_VARARGS, NULL },
3395 { (char *)"PropXArray___nonzero__", (PyCFunction) _wrap_PropXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
3396 { (char *)"PropXArray___len__", (PyCFunction) _wrap_PropXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL },
3397 { (char *)"PropXArray___getitem__", (PyCFunction) _wrap_PropXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL },
3398 { (char *)"PropXArray_swigregister", PropXArray_swigregister, METH_VARARGS, NULL },
3399 { (char *)"new_ActiveXWindow", (PyCFunction) _wrap_new_ActiveXWindow, METH_VARARGS | METH_KEYWORDS, NULL },
3400 { (char *)"ActiveXWindow_GetCLSID", (PyCFunction) _wrap_ActiveXWindow_GetCLSID, METH_VARARGS | METH_KEYWORDS, NULL },
3401 { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction) _wrap_ActiveXWindow_GetAXEventCount, METH_VARARGS | METH_KEYWORDS, NULL },
3402 { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction) _wrap_ActiveXWindow_GetAXEventDesc, METH_VARARGS | METH_KEYWORDS, NULL },
3403 { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction) _wrap_ActiveXWindow_GetAXPropCount, METH_VARARGS | METH_KEYWORDS, NULL },
3404 { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc, METH_VARARGS, NULL },
3405 { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction) _wrap_ActiveXWindow_GetAXMethodCount, METH_VARARGS | METH_KEYWORDS, NULL },
3406 { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc, METH_VARARGS, NULL },
3407 { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction) _wrap_ActiveXWindow_GetAXEvents, METH_VARARGS | METH_KEYWORDS, NULL },
3408 { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction) _wrap_ActiveXWindow_GetAXMethods, METH_VARARGS | METH_KEYWORDS, NULL },
3409 { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction) _wrap_ActiveXWindow_GetAXProperties, METH_VARARGS | METH_KEYWORDS, NULL },
3410 { (char *)"ActiveXWindow_SetAXProp", (PyCFunction) _wrap_ActiveXWindow_SetAXProp, METH_VARARGS | METH_KEYWORDS, NULL },
3411 { (char *)"ActiveXWindow_GetAXProp", (PyCFunction) _wrap_ActiveXWindow_GetAXProp, METH_VARARGS | METH_KEYWORDS, NULL },
3412 { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod, METH_VARARGS, NULL },
3413 { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister, METH_VARARGS, NULL },
3414 { (char *)"RegisterActiveXEvent", (PyCFunction) _wrap_RegisterActiveXEvent, METH_VARARGS | METH_KEYWORDS, NULL },
3415 { (char *)"ActiveXEvent_EventName", (PyCFunction) _wrap_ActiveXEvent_EventName, METH_VARARGS | METH_KEYWORDS, NULL },
3416 { (char *)"ActiveXEvent__preCallInit", (PyCFunction) _wrap_ActiveXEvent__preCallInit, METH_VARARGS | METH_KEYWORDS, NULL },
3417 { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction) _wrap_ActiveXEvent__postCallCleanup, METH_VARARGS | METH_KEYWORDS, NULL },
3418 { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister, METH_VARARGS, NULL },
3419 { (char *)"new_IEHtmlWindowBase", (PyCFunction) _wrap_new_IEHtmlWindowBase, METH_VARARGS | METH_KEYWORDS, NULL },
3420 { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction) _wrap_IEHtmlWindowBase_SetCharset, METH_VARARGS | METH_KEYWORDS, NULL },
3421 { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction) _wrap_IEHtmlWindowBase_LoadString, METH_VARARGS | METH_KEYWORDS, NULL },
3422 { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction) _wrap_IEHtmlWindowBase_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL },
3423 { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction) _wrap_IEHtmlWindowBase_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
3424 { (char *)"IEHtmlWindowBase_GetText", (PyCFunction) _wrap_IEHtmlWindowBase_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
3425 { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister, METH_VARARGS, NULL },
3426 { NULL, NULL, 0, NULL }
3427 };
3428
3429
3430 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3431
3432 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
3433 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
3434 }
3435 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
3436 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
3437 }
3438 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
3439 return (void *)((wxObject *) ((wxSizerItem *) x));
3440 }
3441 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
3442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
3443 }
3444 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
3445 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
3446 }
3447 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
3448 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
3449 }
3450 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
3451 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
3452 }
3453 static void *_p_wxSizerTo_p_wxObject(void *x) {
3454 return (void *)((wxObject *) ((wxSizer *) x));
3455 }
3456 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
3457 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
3458 }
3459 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
3460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
3461 }
3462 static void *_p_wxEventTo_p_wxObject(void *x) {
3463 return (void *)((wxObject *) ((wxEvent *) x));
3464 }
3465 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
3466 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
3467 }
3468 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
3469 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
3470 }
3471 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
3472 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
3473 }
3474 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
3475 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
3476 }
3477 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
3478 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
3479 }
3480 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
3481 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
3482 }
3483 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
3484 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
3485 }
3486 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
3487 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
3488 }
3489 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
3490 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
3491 }
3492 static void *_p_wxControlTo_p_wxObject(void *x) {
3493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
3494 }
3495 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
3496 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
3497 }
3498 static void *_p_wxFSFileTo_p_wxObject(void *x) {
3499 return (void *)((wxObject *) ((wxFSFile *) x));
3500 }
3501 static void *_p_wxPySizerTo_p_wxObject(void *x) {
3502 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
3503 }
3504 static void *_p_wxPyEventTo_p_wxObject(void *x) {
3505 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
3506 }
3507 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
3508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
3509 }
3510 static void *_p_wxShowEventTo_p_wxObject(void *x) {
3511 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
3512 }
3513 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
3514 return (void *)((wxObject *) ((wxMenuItem *) x));
3515 }
3516 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
3517 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
3518 }
3519 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
3520 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
3521 }
3522 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
3523 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
3524 }
3525 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
3526 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
3527 }
3528 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
3529 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
3530 }
3531 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
3532 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
3533 }
3534 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
3535 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
3536 }
3537 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
3538 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
3539 }
3540 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
3541 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
3542 }
3543 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
3544 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
3545 }
3546 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
3547 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
3548 }
3549 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
3550 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
3551 }
3552 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
3553 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
3554 }
3555 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
3556 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
3557 }
3558 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
3559 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
3560 }
3561 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
3562 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
3563 }
3564 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
3565 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
3566 }
3567 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
3568 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
3569 }
3570 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
3571 return (void *)((wxObject *) ((wxImageHandler *) x));
3572 }
3573 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
3574 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
3575 }
3576 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
3577 return (void *)((wxObject *) ((wxEvtHandler *) x));
3578 }
3579 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
3580 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
3581 }
3582 static void *_p_wxImageTo_p_wxObject(void *x) {
3583 return (void *)((wxObject *) ((wxImage *) x));
3584 }
3585 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
3586 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
3587 }
3588 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
3589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3590 }
3591 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
3592 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
3593 }
3594 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
3595 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
3596 }
3597 static void *_p_wxActiveXWindowTo_p_wxObject(void *x) {
3598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxActiveXWindow *) x));
3599 }
3600 static void *_p_wxWindowTo_p_wxObject(void *x) {
3601 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
3602 }
3603 static void *_p_wxMenuTo_p_wxObject(void *x) {
3604 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
3605 }
3606 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
3607 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
3608 }
3609 static void *_p_wxActiveXEventTo_p_wxObject(void *x) {
3610 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxActiveXEvent *) x));
3611 }
3612 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
3613 return (void *)((wxObject *) ((wxFileSystem *) x));
3614 }
3615 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
3616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
3617 }
3618 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
3619 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
3620 }
3621 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x) {
3622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
3623 }
3624 static void *_p_wxPyAppTo_p_wxObject(void *x) {
3625 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
3626 }
3627 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
3628 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
3629 }
3630 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
3631 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
3632 }
3633 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
3634 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
3635 }
3636 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
3637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
3638 }
3639 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
3640 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
3641 }
3642 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
3643 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
3644 }
3645 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
3646 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
3647 }
3648 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
3649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
3650 }
3651 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
3652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
3653 }
3654 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
3655 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
3656 }
3657 static void *_p_wxValidatorTo_p_wxObject(void *x) {
3658 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
3659 }
3660 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x) {
3661 return (void *)((wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
3662 }
3663 static void *_p_wxControlTo_p_wxWindow(void *x) {
3664 return (void *)((wxWindow *) ((wxControl *) x));
3665 }
3666 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
3667 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
3668 }
3669 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x) {
3670 return (void *)((wxWindow *) ((wxActiveXWindow *) x));
3671 }
3672 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
3673 return (void *)((wxWindow *) ((wxMenuBar *) x));
3674 }
3675 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x) {
3676 return (void *)((wxWindow *) (wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
3677 }
3678 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
3679 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
3680 }
3681 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
3682 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
3683 }
3684 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
3685 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
3686 }
3687 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
3688 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
3689 }
3690 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x) {
3691 return (void *)((wxCommandEvent *) ((wxActiveXEvent *) x));
3692 }
3693 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
3694 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3695 }
3696 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
3697 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
3698 }
3699 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
3700 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
3701 }
3702 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
3703 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
3704 }
3705 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
3706 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
3707 }
3708 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
3709 return (void *)((wxEvtHandler *) ((wxWindow *) x));
3710 }
3711 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
3712 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
3713 }
3714 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x) {
3715 return (void *)((wxEvtHandler *) (wxWindow *) ((wxActiveXWindow *) x));
3716 }
3717 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
3718 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
3719 }
3720 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
3721 return (void *)((wxEvtHandler *) ((wxValidator *) x));
3722 }
3723 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
3724 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
3725 }
3726 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
3727 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
3728 }
3729 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
3730 return (void *)((wxEvtHandler *) ((wxMenu *) x));
3731 }
3732 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x) {
3733 return (void *)((wxEvtHandler *) (wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x));
3734 }
3735 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
3736 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
3737 }
3738 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
3739 return (void *)((wxEvent *) ((wxMenuEvent *) x));
3740 }
3741 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
3742 return (void *)((wxEvent *) ((wxCloseEvent *) x));
3743 }
3744 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
3745 return (void *)((wxEvent *) ((wxMouseEvent *) x));
3746 }
3747 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
3748 return (void *)((wxEvent *) ((wxEraseEvent *) x));
3749 }
3750 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
3751 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
3752 }
3753 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
3754 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
3755 }
3756 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
3757 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
3758 }
3759 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
3760 return (void *)((wxEvent *) ((wxPyEvent *) x));
3761 }
3762 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
3763 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
3764 }
3765 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
3766 return (void *)((wxEvent *) ((wxIdleEvent *) x));
3767 }
3768 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
3769 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
3770 }
3771 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
3772 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
3773 }
3774 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
3775 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
3776 }
3777 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
3778 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
3779 }
3780 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
3781 return (void *)((wxEvent *) ((wxActivateEvent *) x));
3782 }
3783 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
3784 return (void *)((wxEvent *) ((wxSizeEvent *) x));
3785 }
3786 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
3787 return (void *)((wxEvent *) ((wxMoveEvent *) x));
3788 }
3789 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
3790 return (void *)((wxEvent *) ((wxPaintEvent *) x));
3791 }
3792 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
3793 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
3794 }
3795 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
3796 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
3797 }
3798 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
3799 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
3800 }
3801 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
3802 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
3803 }
3804 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
3805 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
3806 }
3807 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
3808 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
3809 }
3810 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
3811 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
3812 }
3813 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
3814 return (void *)((wxEvent *) ((wxFocusEvent *) x));
3815 }
3816 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
3817 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
3818 }
3819 static void *_p_wxActiveXEventTo_p_wxEvent(void *x) {
3820 return (void *)((wxEvent *) (wxCommandEvent *) ((wxActiveXEvent *) x));
3821 }
3822 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
3823 return (void *)((wxEvent *) ((wxShowEvent *) x));
3824 }
3825 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
3826 return (void *)((wxEvent *) ((wxCommandEvent *) x));
3827 }
3828 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
3829 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
3830 }
3831 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
3832 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
3833 }
3834 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
3835 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
3836 }
3837 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
3838 return (void *)((wxEvent *) ((wxKeyEvent *) x));
3839 }
3840 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
3841 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
3842 }
3843 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3844 static swig_type_info _swigt__p_wxFuncX[] = {{"_p_wxFuncX", 0, "wxFuncX *", 0, 0, 0, 0},{"_p_wxFuncX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3845 static swig_type_info _swigt__p_wxActiveXWindow[] = {{"_p_wxActiveXWindow", 0, "wxActiveXWindow *", 0, 0, 0, 0},{"_p_wxActiveXWindow", 0, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3846 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3847 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3848 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3849 static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3850 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxActiveXWindow", _p_wxActiveXWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", _p_wxIEHtmlWindowBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3851 static swig_type_info _swigt__p_wxPropX[] = {{"_p_wxPropX", 0, "wxPropX *", 0, 0, 0, 0},{"_p_wxPropX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3852 static swig_type_info _swigt__p_wxFuncXArray[] = {{"_p_wxFuncXArray", 0, "wxFuncXArray *", 0, 0, 0, 0},{"_p_wxFuncXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3853 static swig_type_info _swigt__p_wxParamXArray[] = {{"_p_wxParamXArray", 0, "wxParamXArray *", 0, 0, 0, 0},{"_p_wxParamXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3854 static swig_type_info _swigt__p_wxActiveXEvent[] = {{"_p_wxActiveXEvent", 0, "wxActiveXEvent *", 0, 0, 0, 0},{"_p_wxActiveXEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3855 static swig_type_info _swigt__p_wxParamX[] = {{"_p_wxParamX", 0, "wxParamX *", 0, 0, 0, 0},{"_p_wxParamX", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3856 static swig_type_info _swigt__p_wxIEHtmlWindowBase[] = {{"_p_wxIEHtmlWindowBase", 0, "wxIEHtmlWindowBase *", 0, 0, 0, 0},{"_p_wxIEHtmlWindowBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3857 static swig_type_info _swigt__p_wxPropXArray[] = {{"_p_wxPropXArray", 0, "wxPropXArray *", 0, 0, 0, 0},{"_p_wxPropXArray", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3858 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActiveXEvent", _p_wxActiveXEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3859 static swig_type_info _swigt__p_CLSID[] = {{"_p_CLSID", 0, "CLSID *", 0, 0, 0, 0},{"_p_CLSID", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3860
3861 static swig_type_info *swig_types_initial[] = {
3862 _swigt__p_wxObject,
3863 _swigt__p_wxFuncX,
3864 _swigt__p_wxActiveXWindow,
3865 _swigt__p_wxWindow,
3866 _swigt__p_wxCommandEvent,
3867 _swigt__p_char,
3868 _swigt__p_wxInputStream,
3869 _swigt__p_wxEvtHandler,
3870 _swigt__p_wxPropX,
3871 _swigt__p_wxFuncXArray,
3872 _swigt__p_wxParamXArray,
3873 _swigt__p_wxActiveXEvent,
3874 _swigt__p_wxParamX,
3875 _swigt__p_wxIEHtmlWindowBase,
3876 _swigt__p_wxPropXArray,
3877 _swigt__p_wxEvent,
3878 _swigt__p_CLSID,
3879 0
3880 };
3881
3882
3883 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3884
3885 static swig_const_info swig_const_table[] = {
3886 {0, 0, 0, 0.0, 0, 0}};
3887
3888 #ifdef __cplusplus
3889 }
3890 #endif
3891
3892 #ifdef __cplusplus
3893 extern "C"
3894 #endif
3895 SWIGEXPORT(void) SWIG_init(void) {
3896 static PyObject *SWIG_globals = 0;
3897 static int typeinit = 0;
3898 PyObject *m, *d;
3899 int i;
3900 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3901 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3902 d = PyModule_GetDict(m);
3903
3904 if (!typeinit) {
3905 for (i = 0; swig_types_initial[i]; i++) {
3906 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3907 }
3908 typeinit = 1;
3909 }
3910 SWIG_InstallConstants(d,swig_const_table);
3911
3912 }
3913