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