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