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