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