1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
12 #define SWIG_NOINCLUDE
15 template<class T
> class SwigValueWrapper
{
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
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
39 ************************************************************************/
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
52 /***********************************************************************
53 * common.swg for wxPython
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
60 ************************************************************************/
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
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 # define SWIGRUNTIME(a) static a
97 typedef void *(*swig_converter_func
)(void *);
98 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
100 typedef struct swig_type_info
{
102 swig_converter_func converter
;
105 swig_dycast_func dcast
;
106 struct swig_type_info
*next
;
107 struct swig_type_info
*prev
;
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);
126 /***********************************************************************
127 * pyrun.swg for wxPython
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
134 ************************************************************************/
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
148 /* Flags for pointer conversion */
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
156 /* Constant information structure */
157 typedef struct swig_const_info
{
163 swig_type_info
**ptype
;
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)
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)
186 typedef double (*py_objasdbl_conv
)(PyObject
*obj
);
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
[]);
198 /* Contract support */
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
207 /* -------- TYPES TABLE (BEGIN) -------- */
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];
228 /* -------- TYPES TABLE (END) -------- */
231 /*-----------------------------------------------
232 @(target):= _activex.so
233 ------------------------------------------------*/
234 #define SWIG_init init_activex
236 #define SWIG_name "_activex"
238 /* Auxiliar swig macros */
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)
249 #ifdef HAVE_NUMERIC_CAST
250 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
252 #define swig_numeric_cast(type,a) static_cast<type>(a)
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)
266 #endif /* __cplusplus */
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
281 #include "wx/wxPython/wxPython.h"
282 #include "wx/wxPython/pyclasses.h"
283 #include "wx/wxPython/pyistream.h"
285 #include "wxactivex.h"
287 static const wxString
wxPyPanelNameStr(wxPanelNameStr
);
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
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
);
305 // Check if an exception has been raised (blocking threads)
306 inline bool wxPyErr_Occurred()
309 wxPyBeginBlockThreads();
310 rval
= PyErr_Occurred() != NULL
;
311 wxPyEndBlockThreads();
316 CLSID
*new_CLSID(wxString
const &id
){
318 CLSID
* self
= new CLSID
;
319 memset(self
, 0, sizeof(CLSID
));
321 if (id
[0] == _T('{')) {
322 // Looks like a classID string
325 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
331 (LPOLESTR
)(const wchar_t *)id
.wc_str(wxConvUTF8
),
334 if (result
!= NOERROR
) {
335 wxPyErr_SetString(PyExc_ValueError
, "Not a recognized classID or progID");
341 void delete_CLSID(CLSID
*self
){ delete self
; }
342 wxString
CLSID_GetCLSIDString(CLSID
*self
){
345 if (StringFromCLSID(*self
, &s
) == S_OK
) {
350 str
= _T("Error!"); // TODO: raise exception?
354 wxString
CLSID_GetProgIDString(CLSID
*self
){
357 if (ProgIDFromCLSID(*self
, &s
) == S_OK
) {
362 str
= _T("Error!"); // TODO: raise exception?
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(); }
373 SWIGSTATICINLINE(long)
374 SWIG_CheckLongInRange(long value
, const char* type
,
375 long min_value
, long max_value
)
377 if (!PyErr_Occurred()) {
378 if (value
< min_value
) {
380 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
381 value
, type
, min_value
);
383 PyErr_SetObject(PyExc_OverflowError
, err
);
385 } else if (value
> max_value
) {
387 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
388 value
, type
, max_value
);
389 PyErr_SetObject(PyExc_OverflowError
, err
);
397 SWIGSTATICINLINE(long)
398 SWIG_AsLong(PyObject
* obj
)
400 return PyInt_Check(obj
) ? PyInt_AsLong(obj
) : PyLong_AsLong(obj
);
404 #if INT_MAX != LONG_MAX
405 SWIGSTATICINLINE(int)
406 SWIG_AsInt(PyObject
*obj
)
408 return swig_numeric_cast(int,
409 SWIG_CheckLongInRange(SWIG_AsLong(obj
),
410 "int", INT_MIN
, INT_MAX
));
413 #define SWIG_AsInt SWIG_AsLong
417 SWIGSTATICINLINE(int)
418 SWIG_CheckInt(PyObject
* obj
)
421 if (PyErr_Occurred()) {
429 wxParamX
const &wxParamXArray___getitem__(wxParamXArray
*self
,int idx
){
430 if ( idx
>= 0 && idx
< self
->size() )
433 static wxParamX BadVal
;
434 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
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() )
444 static wxFuncX BadVal
;
445 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
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() )
455 static wxPropX BadVal
;
456 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
461 // C++ version of a Python-aware wxActiveX
462 class wxActiveXWindow
: public wxActiveX
467 wxActiveXWindow( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
468 const wxPoint
& pos
= wxDefaultPosition
,
469 const wxSize
& size
= wxDefaultSize
,
471 const wxString
& name
= wxPyPanelNameStr
)
472 : wxActiveX(parent
, clsId
, id
, pos
, size
, style
, name
)
477 const CLSID
& GetCLSID() const { return m_CLSID
; }
480 // Renamed versions of some base class methods that delegate
481 // to the base where appropriate, and raise Python exceptions
483 int GetAXEventCount() const { return wxActiveX::GetEventCount(); }
484 int GetAXPropCount() const { return wxActiveX::GetPropCount(); }
485 int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); }
487 const wxFuncX
& GetAXEventDesc(int idx
) const
489 static wxFuncX BadVal
;
490 if (idx
< 0 || idx
>= GetAXEventCount()) {
491 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
494 return m_events
[idx
];
496 const wxFuncX
& GetAXMethodDesc(int idx
) const
498 static wxFuncX BadVal
;
499 if (idx
< 0 || idx
>= GetAXMethodCount()) {
500 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
503 return m_methods
[idx
];
505 const wxPropX
& GetAXPropDesc(int idx
) const
507 static wxPropX BadVal
;
508 if (idx
< 0 || idx
>= GetAXPropCount()) {
509 wxPyErr_SetString(PyExc_IndexError
, "Index out of range");
515 const wxFuncX
& GetAXMethodDesc(const wxString
& name
) const
517 NameMap::const_iterator it
= m_methodNames
.find(name
);
518 if (it
== m_methodNames
.end()) {
520 msg
<< "method <" << name
<< "> not found";
521 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
522 static wxFuncX BadVal
;
525 return GetAXMethodDesc(it
->second
);
527 const wxPropX
& GetAXPropDesc(const wxString
& name
) const
529 NameMap::const_iterator it
= m_propNames
.find(name
);
530 if (it
== m_propNames
.end()) {
532 msg
<< "property <" << name
<< "> not found";
533 wxPyErr_SetString(PyExc_KeyError
, msg
.mb_str());
534 static wxPropX BadVal
;
537 return GetAXPropDesc(it
->second
);
540 // Accessors for the internal vectors of events, methods and
541 // proprties. Can be used as sequence like objects from
543 const wxFuncXArray
& GetAXEvents() { return m_events
; }
544 const wxFuncXArray
& GetAXMethods() { return m_methods
; }
545 const wxPropXArray
& GetAXProperties() { return m_props
; }
548 // Set a property from a Python object
549 void SetAXProp(const wxString
& name
, PyObject
* value
)
551 const wxPropX
& prop
= GetAXPropDesc(name
);
552 wxPyBeginBlockThreads();
553 if (! PyErr_Occurred() ) {
554 if (! prop
.CanSet()) {
556 msg
<< "property <" << name
<< "> is readonly";
557 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
560 wxVariant wxV
= _PyObj2Variant(value
);
561 if (PyErr_Occurred())
563 VARIANT v
= {prop
.arg
.vt
};
564 if (!VariantToMSWVariant(wxV
, v
) || PyErr_Occurred()) {
566 msg
<< "Unable to convert value to expected type: ("
567 << _VARTYPEname(prop
.arg
.vt
) << ") for property <"
569 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
572 PyThreadState
* tstate
= wxPyBeginAllowThreads();
573 SetProp(prop
.memid
, v
);
575 wxPyEndAllowThreads(tstate
);
579 wxPyEndBlockThreads();
583 // Get a property and convert it to a Python object
584 PyObject
* GetAXProp(const wxString
& name
)
586 PyObject
* rval
= NULL
;
587 const wxPropX
& prop
= GetAXPropDesc(name
);
588 wxPyBeginBlockThreads();
589 if (! PyErr_Occurred() ) {
590 if (! prop
.CanGet()) {
592 msg
<< "property <" << name
<< "> is writeonly";
593 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
596 PyThreadState
* tstate
= wxPyBeginAllowThreads();
597 VARIANT v
= GetPropAsVariant(prop
.memid
);
598 wxPyEndAllowThreads(tstate
);
600 if (!MSWVariantToVariant(v
, wv
) || PyErr_Occurred()) {
602 msg
<< "Unable to convert value to expected type: ("
603 << _VARTYPEname(prop
.arg
.vt
) << ") for property <"
605 PyErr_SetString(PyExc_TypeError
, msg
.mb_str());
608 rval
= _Variant2PyObj(wv
);
613 wxPyEndBlockThreads();
618 // If both IsIn and isOut are false, assume it is actually an
620 bool paramIsIn(const wxParamX
& p
)
622 return p
.IsIn() || (!p
.IsIn() && !p
.IsOut());
626 // Call a method of the ActiveX object
627 PyObject
* _CallAXMethod(const wxString
& name
, PyObject
* args
)
629 VARIANTARG
*vargs
= NULL
;
631 PyObject
* rval
= NULL
;
632 const wxFuncX
& func
= GetAXMethodDesc(name
);
634 wxPyBeginBlockThreads();
635 if (! PyErr_Occurred() ) {
636 nargs
= func
.params
.size();
638 vargs
= new VARIANTARG
[nargs
];
641 // init type of vargs, in reverse order
643 for (i
= 0; i
< nargs
; i
++)
644 vargs
[nargs
- i
- 1].vt
= func
.params
[i
].vt
;
646 // Map the args coming from Python to the input parameters in vargs
649 while ( i
<nargs
&& pi
<PyTuple_Size(args
) ) {
650 // Move to the next input param.
651 if (! paramIsIn(func
.params
[i
])) {
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
;
660 wxVariant wxV
= _PyObj2Variant(obj
);
661 if (PyErr_Occurred())
663 if (!VariantToMSWVariant(wxV
, vargs
[nargs
- i
- 1]) || PyErr_Occurred()) {
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());
678 PyThreadState
* tstate
= wxPyBeginAllowThreads();
679 VARIANT rv
= CallMethod(func
.memid
, vargs
, nargs
);
680 wxPyEndAllowThreads(tstate
);
682 // Convert the return value and any out-params, ignoring
683 // conversion errors for now
685 MSWVariantToVariant(rv
, wv
);
686 rval
= _Variant2PyObj(wv
, True
);
690 // make a list and put the rval in it if it is not None
691 PyObject
* lst
= PyList_New(0);
693 PyList_Append(lst
, rval
);
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
];
702 MSWVariantToVariant(va
, wv
);
703 PyObject
* obj
= _Variant2PyObj(wv
, True
);
704 PyList_Append(lst
, obj
);
707 rval
= PyList_AsTuple(lst
);
710 if (PyErr_Occurred())
714 wxPyEndBlockThreads();
716 for (int i
= 0; i
< nargs
; i
++)
717 VariantClear(&vargs
[i
]);
725 SWIGSTATICINLINE(int)
726 SWIG_CheckLong(PyObject
* obj
)
729 if (PyErr_Occurred()) {
737 void wxActiveXEvent__preInit(wxActiveXEvent
*self
,PyObject
*pyself
){
738 wxPyBeginBlockThreads();
739 PyObject
* pList
= PyList_New(0);
740 PyObject_SetAttrString(pyself
, "paramList", 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
);
750 wxPyEndBlockThreads();
754 // Caller should already have the GIL!
755 wxVariant
_PyObj2Variant(PyObject
* value
)
759 if (value
== Py_None
)
762 else if (PyBool_Check(value
))
763 rval
= (value
== Py_True
) ? true : false;
765 else if (PyInt_Check(value
))
766 rval
= PyInt_AS_LONG(value
);
768 else if (PyFloat_Check(value
))
769 rval
= PyFloat_AS_DOUBLE(value
);
771 else if (PyString_Check(value
) || PyUnicode_Check(value
))
772 rval
= Py2wxString(value
);
774 // TODO: PyList of strings --> wxArrayString
779 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _PyObj2Variant");
787 // Caller should already have the GIL!
788 PyObject
* _Variant2PyObj(wxVariant
& value
, bool useNone
)
790 PyObject
* rval
= NULL
;
792 if (value
.IsNull()) {
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
);
801 else if (value
.IsType(_T("double")))
802 rval
= PyFloat_FromDouble(value
);
804 else if (value
.IsType(_T("bool")))
805 rval
= PyBool_FromLong((bool)value
);
807 else if (value
.IsType(_T("string")))
808 rval
= wx2PyString(value
);
816 PyErr_SetString(PyExc_TypeError
, "Unsupported object type in _Variant2PyObj");
823 wxString
_VARTYPEname(VARTYPE vt
)
830 return _T("VT_VARIANT");
850 // decimals are converted from doubles too
858 return _T("wx.DateTime");
864 return _T("VT_UNKNOWN");
867 return _T("VT_DISPATCH");
870 return _T("VT_EMPTY");
873 return _T("VT_NULL");
876 return _T("VT_VOID");
880 msg
<< _T("unsupported type ") << vt
;
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.
896 #include <wx/mstream.h>
898 #include <winerror.h>
899 #include <exdispid.h>
905 #include "IEHtmlStream.h"
907 class wxIEHtmlWindowBase
: public wxActiveXWindow
{
909 wxAutoOleInterface
<IWebBrowser2
> m_webBrowser
;
913 wxIEHtmlWindowBase ( wxWindow
* parent
, const CLSID
& clsId
, wxWindowID id
= -1,
914 const wxPoint
& pos
= wxDefaultPosition
,
915 const wxSize
& size
= wxDefaultSize
,
917 const wxString
& name
= wxPyPanelNameStr
)
918 : wxActiveXWindow(parent
, clsId
, id
, pos
, size
, style
, name
)
922 // Get IWebBrowser2 Interface
923 hret
= m_webBrowser
.QueryInterface(IID_IWebBrowser2
, m_ActiveX
);
924 wxASSERT(SUCCEEDED(hret
));
928 void SetCharset(const wxString
& charset
)
933 IDispatch
*pDisp
= NULL
;
934 hret
= m_webBrowser
->get_Document(&pDisp
);
935 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
939 wxAutoOleInterface
<IHTMLDocument2
> doc(IID_IHTMLDocument2
, disp
);
941 doc
->put_charset((BSTR
) (const wchar_t *) charset
.wc_str(wxConvUTF8
));
942 //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data());
947 bool LoadString(const wxString
& html
)
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
));
958 bool LoadStream(IStreamAdaptorBase
*pstrm
)
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>";
965 // strip leading whitespace as it can confuse MSHTML
966 wxAutoOleInterface
<IStream
> strm(pstrm
);
968 // Document Interface
969 IDispatch
*pDisp
= NULL
;
970 HRESULT hret
= m_webBrowser
->get_Document(&pDisp
);
973 wxAutoOleInterface
<IDispatch
> disp(pDisp
);
976 // get IPersistStreamInit
977 wxAutoOleInterface
<IPersistStreamInit
>
978 pPersistStreamInit(IID_IPersistStreamInit
, disp
);
980 if (pPersistStreamInit
.Ok())
982 HRESULT hr
= pPersistStreamInit
->InitNew();
984 hr
= pPersistStreamInit
->Load(strm
);
986 return SUCCEEDED(hr
);
992 bool LoadStream(wxInputStream
*is
)
994 // wrap reference around stream
995 IwxStreamAdaptor
*pstrm
= new IwxStreamAdaptor(is
);
998 return LoadStream(pstrm
);
1002 wxString
GetStringSelection(bool asHTML
)
1004 wxAutoOleInterface
<IHTMLTxtRange
> tr(wxieGetSelRange(m_oleObject
));
1006 return wxEmptyString
;
1009 HRESULT hr
= E_FAIL
;
1012 hr
= tr
->get_htmlText(&text
);
1014 hr
= tr
->get_text(&text
);
1016 return wxEmptyString
;
1019 SysFreeString(text
);
1024 wxString
GetText(bool asHTML
)
1026 if (! m_webBrowser
.Ok())
1027 return wxEmptyString
;
1029 // get document dispatch interface
1030 IDispatch
*iDisp
= NULL
;
1031 HRESULT hr
= m_webBrowser
->get_Document(&iDisp
);
1033 return wxEmptyString
;
1035 // Query for Document Interface
1036 wxAutoOleInterface
<IHTMLDocument2
> hd(IID_IHTMLDocument2
, iDisp
);
1040 return wxEmptyString
;
1043 IHTMLElement
*_body
= NULL
;
1044 hd
->get_body(&_body
);
1046 return wxEmptyString
;
1047 wxAutoOleInterface
<IHTMLElement
> body(_body
);
1054 hr
= body
->get_innerHTML(&text
);
1056 hr
= body
->get_innerText(&text
);
1058 return wxEmptyString
;
1061 SysFreeString(text
);
1067 // void wxIEHtmlWin::SetEditMode(bool seton)
1069 // m_bAmbientUserMode = ! seton;
1070 // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE);
1073 // bool wxIEHtmlWin::GetEditMode()
1075 // return ! m_bAmbientUserMode;
1080 SWIGSTATICINLINE(bool)
1081 SWIG_AsBool(PyObject
*obj
)
1083 return PyObject_IsTrue(obj
) ? true : false;
1087 SWIGSTATICINLINE(int)
1088 SWIG_CheckBool(PyObject
* obj
)
1091 if (PyErr_Occurred()) {
1102 static PyObject
*_wrap_new_CLSID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1103 PyObject
*resultobj
;
1104 wxString
*arg1
= 0 ;
1106 bool temp1
= False
;
1107 PyObject
* obj0
= 0 ;
1112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:new_CLSID",kwnames
,&obj0
)) goto fail
;
1114 arg1
= wxString_in_helper(obj0
);
1115 if (arg1
== NULL
) SWIG_fail
;
1119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1120 result
= (CLSID
*)new_CLSID((wxString
const &)*arg1
);
1122 wxPyEndAllowThreads(__tstate
);
1123 if (PyErr_Occurred()) SWIG_fail
;
1125 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 1);
1140 static PyObject
*_wrap_delete_CLSID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1141 PyObject
*resultobj
;
1142 CLSID
*arg1
= (CLSID
*) 0 ;
1143 PyObject
* obj0
= 0 ;
1145 (char *) "self", NULL
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
;
1152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1155 wxPyEndAllowThreads(__tstate
);
1156 if (PyErr_Occurred()) SWIG_fail
;
1158 Py_INCREF(Py_None
); resultobj
= Py_None
;
1165 static PyObject
*_wrap_CLSID_GetCLSIDString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1166 PyObject
*resultobj
;
1167 CLSID
*arg1
= (CLSID
*) 0 ;
1169 PyObject
* obj0
= 0 ;
1171 (char *) "self", NULL
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
;
1178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1179 result
= CLSID_GetCLSIDString(arg1
);
1181 wxPyEndAllowThreads(__tstate
);
1182 if (PyErr_Occurred()) SWIG_fail
;
1186 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1188 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1197 static PyObject
*_wrap_CLSID_GetProgIDString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1198 PyObject
*resultobj
;
1199 CLSID
*arg1
= (CLSID
*) 0 ;
1201 PyObject
* obj0
= 0 ;
1203 (char *) "self", NULL
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
;
1210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1211 result
= CLSID_GetProgIDString(arg1
);
1213 wxPyEndAllowThreads(__tstate
);
1214 if (PyErr_Occurred()) SWIG_fail
;
1218 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1220 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1229 static PyObject
* CLSID_swigregister(PyObject
*self
, PyObject
*args
) {
1231 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1232 SWIG_TypeClientData(SWIGTYPE_p_CLSID
, obj
);
1234 return Py_BuildValue((char *)"");
1236 static PyObject
*_wrap_ParamX_flags_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1237 PyObject
*resultobj
;
1238 wxParamX
*arg1
= (wxParamX
*) 0 ;
1240 PyObject
* obj0
= 0 ;
1242 (char *) "self", NULL
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
);
1250 resultobj
= SWIG_FromUnsignedShort((unsigned short)result
);
1257 static PyObject
*_wrap_ParamX_isPtr_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1258 PyObject
*resultobj
;
1259 wxParamX
*arg1
= (wxParamX
*) 0 ;
1261 PyObject
* obj0
= 0 ;
1263 (char *) "self", NULL
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
);
1271 resultobj
= PyBool_FromLong((bool)result
);
1278 static PyObject
*_wrap_ParamX_isSafeArray_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1279 PyObject
*resultobj
;
1280 wxParamX
*arg1
= (wxParamX
*) 0 ;
1282 PyObject
* obj0
= 0 ;
1284 (char *) "self", NULL
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
);
1292 resultobj
= PyBool_FromLong((bool)result
);
1299 static PyObject
*_wrap_ParamX_isOptional_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
*resultobj
;
1301 wxParamX
*arg1
= (wxParamX
*) 0 ;
1303 PyObject
* obj0
= 0 ;
1305 (char *) "self", NULL
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
);
1313 resultobj
= PyBool_FromLong((bool)result
);
1320 static PyObject
*_wrap_ParamX_vt_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1321 PyObject
*resultobj
;
1322 wxParamX
*arg1
= (wxParamX
*) 0 ;
1324 PyObject
* obj0
= 0 ;
1326 (char *) "self", NULL
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
);
1334 resultobj
= SWIG_FromUnsignedShort((unsigned short)result
);
1341 static PyObject
*_wrap_ParamX_name_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1342 PyObject
*resultobj
;
1343 wxParamX
*arg1
= (wxParamX
*) 0 ;
1345 PyObject
* obj0
= 0 ;
1347 (char *) "self", NULL
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
);
1357 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
1359 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
1368 static PyObject
*_wrap_ParamX_vt_type_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1369 PyObject
*resultobj
;
1370 wxParamX
*arg1
= (wxParamX
*) 0 ;
1372 PyObject
* obj0
= 0 ;
1374 (char *) "self", NULL
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
;
1381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1382 result
= wxParamX_vt_type_get(arg1
);
1384 wxPyEndAllowThreads(__tstate
);
1385 if (PyErr_Occurred()) SWIG_fail
;
1389 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
1391 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
1400 static PyObject
*_wrap_ParamX_IsIn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1401 PyObject
*resultobj
;
1402 wxParamX
*arg1
= (wxParamX
*) 0 ;
1404 PyObject
* obj0
= 0 ;
1406 (char *) "self", NULL
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
;
1413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1414 result
= (bool)((wxParamX
const *)arg1
)->IsIn();
1416 wxPyEndAllowThreads(__tstate
);
1417 if (PyErr_Occurred()) SWIG_fail
;
1419 resultobj
= PyBool_FromLong((bool)result
);
1426 static PyObject
*_wrap_ParamX_IsOut(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1427 PyObject
*resultobj
;
1428 wxParamX
*arg1
= (wxParamX
*) 0 ;
1430 PyObject
* obj0
= 0 ;
1432 (char *) "self", NULL
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
;
1439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1440 result
= (bool)((wxParamX
const *)arg1
)->IsOut();
1442 wxPyEndAllowThreads(__tstate
);
1443 if (PyErr_Occurred()) SWIG_fail
;
1445 resultobj
= PyBool_FromLong((bool)result
);
1452 static PyObject
*_wrap_ParamX_IsRetVal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1453 PyObject
*resultobj
;
1454 wxParamX
*arg1
= (wxParamX
*) 0 ;
1456 PyObject
* obj0
= 0 ;
1458 (char *) "self", NULL
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
;
1465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1466 result
= (bool)((wxParamX
const *)arg1
)->IsRetVal();
1468 wxPyEndAllowThreads(__tstate
);
1469 if (PyErr_Occurred()) SWIG_fail
;
1471 resultobj
= PyBool_FromLong((bool)result
);
1478 static PyObject
* ParamX_swigregister(PyObject
*self
, PyObject
*args
) {
1480 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1481 SWIG_TypeClientData(SWIGTYPE_p_wxParamX
, obj
);
1483 return Py_BuildValue((char *)"");
1485 static PyObject
*_wrap_FuncX_name_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1486 PyObject
*resultobj
;
1487 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
1489 PyObject
* obj0
= 0 ;
1491 (char *) "self", NULL
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
);
1501 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
1503 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
1512 static PyObject
*_wrap_FuncX_memid_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1513 PyObject
*resultobj
;
1514 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
1516 PyObject
* obj0
= 0 ;
1518 (char *) "self", NULL
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
);
1526 resultobj
= SWIG_FromLong((long)result
);
1533 static PyObject
*_wrap_FuncX_hasOut_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
*resultobj
;
1535 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
1537 PyObject
* obj0
= 0 ;
1539 (char *) "self", NULL
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
);
1547 resultobj
= PyBool_FromLong((bool)result
);
1554 static PyObject
*_wrap_FuncX_retType_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1555 PyObject
*resultobj
;
1556 wxFuncX
*arg1
= (wxFuncX
*) 0 ;
1558 PyObject
* obj0
= 0 ;
1560 (char *) "self", NULL
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
);
1568 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
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 ;
1581 (char *) "self", NULL
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
);
1589 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamXArray
, 0);
1596 static PyObject
* FuncX_swigregister(PyObject
*self
, PyObject
*args
) {
1598 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1599 SWIG_TypeClientData(SWIGTYPE_p_wxFuncX
, obj
);
1601 return Py_BuildValue((char *)"");
1603 static PyObject
*_wrap_PropX_name_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1604 PyObject
*resultobj
;
1605 wxPropX
*arg1
= (wxPropX
*) 0 ;
1607 PyObject
* obj0
= 0 ;
1609 (char *) "self", NULL
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
);
1619 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
1621 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
1630 static PyObject
*_wrap_PropX_memid_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1631 PyObject
*resultobj
;
1632 wxPropX
*arg1
= (wxPropX
*) 0 ;
1634 PyObject
* obj0
= 0 ;
1636 (char *) "self", NULL
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
);
1644 resultobj
= SWIG_FromLong((long)result
);
1651 static PyObject
*_wrap_PropX_type_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1652 PyObject
*resultobj
;
1653 wxPropX
*arg1
= (wxPropX
*) 0 ;
1655 PyObject
* obj0
= 0 ;
1657 (char *) "self", NULL
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
);
1665 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
1672 static PyObject
*_wrap_PropX_arg_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
*resultobj
;
1674 wxPropX
*arg1
= (wxPropX
*) 0 ;
1676 PyObject
* obj0
= 0 ;
1678 (char *) "self", NULL
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
);
1686 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
1693 static PyObject
*_wrap_PropX_putByRef_get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1694 PyObject
*resultobj
;
1695 wxPropX
*arg1
= (wxPropX
*) 0 ;
1697 PyObject
* obj0
= 0 ;
1699 (char *) "self", NULL
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
);
1707 resultobj
= PyBool_FromLong((bool)result
);
1714 static PyObject
*_wrap_PropX_CanGet(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1715 PyObject
*resultobj
;
1716 wxPropX
*arg1
= (wxPropX
*) 0 ;
1718 PyObject
* obj0
= 0 ;
1720 (char *) "self", NULL
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
;
1727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1728 result
= (bool)((wxPropX
const *)arg1
)->CanGet();
1730 wxPyEndAllowThreads(__tstate
);
1731 if (PyErr_Occurred()) SWIG_fail
;
1733 resultobj
= PyBool_FromLong((bool)result
);
1740 static PyObject
*_wrap_PropX_CanSet(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1741 PyObject
*resultobj
;
1742 wxPropX
*arg1
= (wxPropX
*) 0 ;
1744 PyObject
* obj0
= 0 ;
1746 (char *) "self", NULL
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
;
1753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1754 result
= (bool)((wxPropX
const *)arg1
)->CanSet();
1756 wxPyEndAllowThreads(__tstate
);
1757 if (PyErr_Occurred()) SWIG_fail
;
1759 resultobj
= PyBool_FromLong((bool)result
);
1766 static PyObject
* PropX_swigregister(PyObject
*self
, PyObject
*args
) {
1768 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1769 SWIG_TypeClientData(SWIGTYPE_p_wxPropX
, obj
);
1771 return Py_BuildValue((char *)"");
1773 static PyObject
*_wrap_ParamXArray___nonzero__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1774 PyObject
*resultobj
;
1775 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
1777 PyObject
* obj0
= 0 ;
1779 (char *) "self", NULL
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
;
1786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1787 result
= (bool)wxParamXArray___nonzero__(arg1
);
1789 wxPyEndAllowThreads(__tstate
);
1790 if (PyErr_Occurred()) SWIG_fail
;
1792 resultobj
= PyBool_FromLong((bool)result
);
1799 static PyObject
*_wrap_ParamXArray___len__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1800 PyObject
*resultobj
;
1801 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
1803 PyObject
* obj0
= 0 ;
1805 (char *) "self", NULL
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
;
1812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1813 result
= (int)wxParamXArray___len__(arg1
);
1815 wxPyEndAllowThreads(__tstate
);
1816 if (PyErr_Occurred()) SWIG_fail
;
1818 resultobj
= SWIG_FromInt((int)result
);
1825 static PyObject
*_wrap_ParamXArray___getitem__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1826 PyObject
*resultobj
;
1827 wxParamXArray
*arg1
= (wxParamXArray
*) 0 ;
1830 PyObject
* obj0
= 0 ;
1831 PyObject
* obj1
= 0 ;
1833 (char *) "self",(char *) "idx", NULL
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
;
1842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1844 wxParamX
const &_result_ref
= wxParamXArray___getitem__(arg1
,arg2
);
1845 result
= (wxParamX
*) &_result_ref
;
1848 wxPyEndAllowThreads(__tstate
);
1849 if (PyErr_Occurred()) SWIG_fail
;
1851 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxParamX
, 0);
1858 static PyObject
* ParamXArray_swigregister(PyObject
*self
, PyObject
*args
) {
1860 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1861 SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray
, obj
);
1863 return Py_BuildValue((char *)"");
1865 static PyObject
*_wrap_FuncXArray___nonzero__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1866 PyObject
*resultobj
;
1867 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
1869 PyObject
* obj0
= 0 ;
1871 (char *) "self", NULL
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
;
1878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1879 result
= (bool)wxFuncXArray___nonzero__(arg1
);
1881 wxPyEndAllowThreads(__tstate
);
1882 if (PyErr_Occurred()) SWIG_fail
;
1884 resultobj
= PyBool_FromLong((bool)result
);
1891 static PyObject
*_wrap_FuncXArray___len__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1892 PyObject
*resultobj
;
1893 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
1895 PyObject
* obj0
= 0 ;
1897 (char *) "self", NULL
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
;
1904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1905 result
= (int)wxFuncXArray___len__(arg1
);
1907 wxPyEndAllowThreads(__tstate
);
1908 if (PyErr_Occurred()) SWIG_fail
;
1910 resultobj
= SWIG_FromInt((int)result
);
1917 static PyObject
*_wrap_FuncXArray___getitem__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1918 PyObject
*resultobj
;
1919 wxFuncXArray
*arg1
= (wxFuncXArray
*) 0 ;
1922 PyObject
* obj0
= 0 ;
1923 PyObject
* obj1
= 0 ;
1925 (char *) "self",(char *) "idx", NULL
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
;
1934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1936 wxFuncX
const &_result_ref
= wxFuncXArray___getitem__(arg1
,arg2
);
1937 result
= (wxFuncX
*) &_result_ref
;
1940 wxPyEndAllowThreads(__tstate
);
1941 if (PyErr_Occurred()) SWIG_fail
;
1943 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
1950 static PyObject
* FuncXArray_swigregister(PyObject
*self
, PyObject
*args
) {
1952 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1953 SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray
, obj
);
1955 return Py_BuildValue((char *)"");
1957 static PyObject
*_wrap_PropXArray___nonzero__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
*resultobj
;
1959 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
1961 PyObject
* obj0
= 0 ;
1963 (char *) "self", NULL
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
;
1970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1971 result
= (bool)wxPropXArray___nonzero__(arg1
);
1973 wxPyEndAllowThreads(__tstate
);
1974 if (PyErr_Occurred()) SWIG_fail
;
1976 resultobj
= PyBool_FromLong((bool)result
);
1983 static PyObject
*_wrap_PropXArray___len__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1984 PyObject
*resultobj
;
1985 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
1987 PyObject
* obj0
= 0 ;
1989 (char *) "self", NULL
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
;
1996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1997 result
= (int)wxPropXArray___len__(arg1
);
1999 wxPyEndAllowThreads(__tstate
);
2000 if (PyErr_Occurred()) SWIG_fail
;
2002 resultobj
= SWIG_FromInt((int)result
);
2009 static PyObject
*_wrap_PropXArray___getitem__(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2010 PyObject
*resultobj
;
2011 wxPropXArray
*arg1
= (wxPropXArray
*) 0 ;
2014 PyObject
* obj0
= 0 ;
2015 PyObject
* obj1
= 0 ;
2017 (char *) "self",(char *) "idx", NULL
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
;
2026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 wxPropX
const &_result_ref
= wxPropXArray___getitem__(arg1
,arg2
);
2029 result
= (wxPropX
*) &_result_ref
;
2032 wxPyEndAllowThreads(__tstate
);
2033 if (PyErr_Occurred()) SWIG_fail
;
2035 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
2042 static PyObject
* PropXArray_swigregister(PyObject
*self
, PyObject
*args
) {
2044 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2045 SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray
, obj
);
2047 return Py_BuildValue((char *)"");
2049 static PyObject
*_wrap_new_ActiveXWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
*resultobj
;
2051 wxWindow
*arg1
= (wxWindow
*) 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
;
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 ;
2073 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
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)
2083 PyErr_SetString(PyExc_TypeError
,"null reference");
2087 arg3
= (int) SWIG_AsInt(obj2
);
2088 if (PyErr_Occurred()) SWIG_fail
;
2093 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2099 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
2103 arg6
= (long) SWIG_AsLong(obj5
);
2104 if (PyErr_Occurred()) SWIG_fail
;
2108 arg7
= wxString_in_helper(obj6
);
2109 if (arg7
== NULL
) SWIG_fail
;
2114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2115 result
= (wxActiveXWindow
*)new wxActiveXWindow(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
2117 wxPyEndAllowThreads(__tstate
);
2118 if (PyErr_Occurred()) SWIG_fail
;
2120 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxActiveXWindow
, 1);
2135 static PyObject
*_wrap_ActiveXWindow_GetCLSID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2136 PyObject
*resultobj
;
2137 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2139 PyObject
* obj0
= 0 ;
2141 (char *) "self", NULL
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
;
2148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2150 CLSID
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetCLSID();
2151 result
= (CLSID
*) &_result_ref
;
2154 wxPyEndAllowThreads(__tstate
);
2155 if (PyErr_Occurred()) SWIG_fail
;
2157 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_CLSID
, 0);
2164 static PyObject
*_wrap_ActiveXWindow_GetAXEventCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2165 PyObject
*resultobj
;
2166 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2168 PyObject
* obj0
= 0 ;
2170 (char *) "self", NULL
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
;
2177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2178 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXEventCount();
2180 wxPyEndAllowThreads(__tstate
);
2181 if (PyErr_Occurred()) SWIG_fail
;
2183 resultobj
= SWIG_FromInt((int)result
);
2190 static PyObject
*_wrap_ActiveXWindow_GetAXEventDesc(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2191 PyObject
*resultobj
;
2192 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2195 PyObject
* obj0
= 0 ;
2196 PyObject
* obj1
= 0 ;
2198 (char *) "self",(char *) "idx", NULL
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
;
2207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2209 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXEventDesc(arg2
);
2210 result
= (wxFuncX
*) &_result_ref
;
2213 wxPyEndAllowThreads(__tstate
);
2214 if (PyErr_Occurred()) SWIG_fail
;
2216 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
2223 static PyObject
*_wrap_ActiveXWindow_GetAXPropCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2224 PyObject
*resultobj
;
2225 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2227 PyObject
* obj0
= 0 ;
2229 (char *) "self", NULL
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
;
2236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2237 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXPropCount();
2239 wxPyEndAllowThreads(__tstate
);
2240 if (PyErr_Occurred()) SWIG_fail
;
2242 resultobj
= SWIG_FromInt((int)result
);
2249 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject
*self
, PyObject
*args
) {
2250 PyObject
*resultobj
;
2251 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2254 PyObject
* obj0
= 0 ;
2255 PyObject
* obj1
= 0 ;
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
;
2263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2265 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc(arg2
);
2266 result
= (wxPropX
*) &_result_ref
;
2269 wxPyEndAllowThreads(__tstate
);
2270 if (PyErr_Occurred()) SWIG_fail
;
2272 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
2279 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject
*self
, PyObject
*args
) {
2280 PyObject
*resultobj
;
2281 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2282 wxString
*arg2
= 0 ;
2284 bool temp2
= False
;
2285 PyObject
* obj0
= 0 ;
2286 PyObject
* obj1
= 0 ;
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
;
2292 arg2
= wxString_in_helper(obj1
);
2293 if (arg2
== NULL
) SWIG_fail
;
2297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2299 wxPropX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXPropDesc((wxString
const &)*arg2
);
2300 result
= (wxPropX
*) &_result_ref
;
2303 wxPyEndAllowThreads(__tstate
);
2304 if (PyErr_Occurred()) SWIG_fail
;
2306 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropX
, 0);
2321 static PyObject
*_wrap_ActiveXWindow_GetAXPropDesc(PyObject
*self
, PyObject
*args
) {
2326 argc
= PyObject_Length(args
);
2327 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
2328 argv
[ii
] = PyTuple_GetItem(args
,ii
);
2334 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
2343 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
2346 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self
,args
);
2354 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
2362 _v
= SWIG_CheckInt(argv
[1]);
2364 return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self
,args
);
2369 PyErr_SetString(PyExc_TypeError
,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'");
2374 static PyObject
*_wrap_ActiveXWindow_GetAXMethodCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2375 PyObject
*resultobj
;
2376 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2378 PyObject
* obj0
= 0 ;
2380 (char *) "self", NULL
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
;
2387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2388 result
= (int)((wxActiveXWindow
const *)arg1
)->GetAXMethodCount();
2390 wxPyEndAllowThreads(__tstate
);
2391 if (PyErr_Occurred()) SWIG_fail
;
2393 resultobj
= SWIG_FromInt((int)result
);
2400 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject
*self
, PyObject
*args
) {
2401 PyObject
*resultobj
;
2402 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2405 PyObject
* obj0
= 0 ;
2406 PyObject
* obj1
= 0 ;
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
;
2414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2416 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc(arg2
);
2417 result
= (wxFuncX
*) &_result_ref
;
2420 wxPyEndAllowThreads(__tstate
);
2421 if (PyErr_Occurred()) SWIG_fail
;
2423 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
2430 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject
*self
, PyObject
*args
) {
2431 PyObject
*resultobj
;
2432 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2433 wxString
*arg2
= 0 ;
2435 bool temp2
= False
;
2436 PyObject
* obj0
= 0 ;
2437 PyObject
* obj1
= 0 ;
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
;
2443 arg2
= wxString_in_helper(obj1
);
2444 if (arg2
== NULL
) SWIG_fail
;
2448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2450 wxFuncX
const &_result_ref
= ((wxActiveXWindow
const *)arg1
)->GetAXMethodDesc((wxString
const &)*arg2
);
2451 result
= (wxFuncX
*) &_result_ref
;
2454 wxPyEndAllowThreads(__tstate
);
2455 if (PyErr_Occurred()) SWIG_fail
;
2457 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncX
, 0);
2472 static PyObject
*_wrap_ActiveXWindow_GetAXMethodDesc(PyObject
*self
, PyObject
*args
) {
2477 argc
= PyObject_Length(args
);
2478 for (ii
= 0; (ii
< argc
) && (ii
< 2); ii
++) {
2479 argv
[ii
] = PyTuple_GetItem(args
,ii
);
2485 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
2494 _v
= PyString_Check(argv
[1]) || PyUnicode_Check(argv
[1]);
2497 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self
,args
);
2505 if (SWIG_ConvertPtr(argv
[0], &ptr
, SWIGTYPE_p_wxActiveXWindow
, 0) == -1) {
2513 _v
= SWIG_CheckInt(argv
[1]);
2515 return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self
,args
);
2520 PyErr_SetString(PyExc_TypeError
,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'");
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 ;
2531 (char *) "self", NULL
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
;
2538 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2540 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXEvents();
2541 result
= (wxFuncXArray
*) &_result_ref
;
2544 wxPyEndAllowThreads(__tstate
);
2545 if (PyErr_Occurred()) SWIG_fail
;
2547 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
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 ;
2560 (char *) "self", NULL
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
;
2567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2569 wxFuncXArray
const &_result_ref
= (arg1
)->GetAXMethods();
2570 result
= (wxFuncXArray
*) &_result_ref
;
2573 wxPyEndAllowThreads(__tstate
);
2574 if (PyErr_Occurred()) SWIG_fail
;
2576 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxFuncXArray
, 0);
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 ;
2589 (char *) "self", NULL
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
;
2596 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2598 wxPropXArray
const &_result_ref
= (arg1
)->GetAXProperties();
2599 result
= (wxPropXArray
*) &_result_ref
;
2602 wxPyEndAllowThreads(__tstate
);
2603 if (PyErr_Occurred()) SWIG_fail
;
2605 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxPropXArray
, 0);
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 ;
2622 (char *) "self",(char *) "name",(char *) "value", NULL
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
;
2629 arg2
= wxString_in_helper(obj1
);
2630 if (arg2
== NULL
) SWIG_fail
;
2635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2636 (arg1
)->SetAXProp((wxString
const &)*arg2
,arg3
);
2638 wxPyEndAllowThreads(__tstate
);
2639 if (PyErr_Occurred()) SWIG_fail
;
2641 Py_INCREF(Py_None
); resultobj
= Py_None
;
2656 static PyObject
*_wrap_ActiveXWindow_GetAXProp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2657 PyObject
*resultobj
;
2658 wxActiveXWindow
*arg1
= (wxActiveXWindow
*) 0 ;
2659 wxString
*arg2
= 0 ;
2661 bool temp2
= False
;
2662 PyObject
* obj0
= 0 ;
2663 PyObject
* obj1
= 0 ;
2665 (char *) "self",(char *) "name", NULL
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
;
2672 arg2
= wxString_in_helper(obj1
);
2673 if (arg2
== NULL
) SWIG_fail
;
2677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2678 result
= (PyObject
*)(arg1
)->GetAXProp((wxString
const &)*arg2
);
2680 wxPyEndAllowThreads(__tstate
);
2681 if (PyErr_Occurred()) SWIG_fail
;
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 ;
2704 bool temp2
= False
;
2705 PyObject
* obj0
= 0 ;
2706 PyObject
* obj1
= 0 ;
2707 PyObject
* obj2
= 0 ;
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
;
2713 arg2
= wxString_in_helper(obj1
);
2714 if (arg2
== NULL
) SWIG_fail
;
2719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2720 result
= (PyObject
*)(arg1
)->_CallAXMethod((wxString
const &)*arg2
,arg3
);
2722 wxPyEndAllowThreads(__tstate
);
2723 if (PyErr_Occurred()) SWIG_fail
;
2740 static PyObject
* ActiveXWindow_swigregister(PyObject
*self
, PyObject
*args
) {
2742 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2743 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow
, obj
);
2745 return Py_BuildValue((char *)"");
2747 static PyObject
*_wrap_RegisterActiveXEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2748 PyObject
*resultobj
;
2749 wxString
*arg1
= 0 ;
2751 bool temp1
= False
;
2752 PyObject
* obj0
= 0 ;
2754 (char *) "eventName", NULL
2757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:RegisterActiveXEvent",kwnames
,&obj0
)) goto fail
;
2759 arg1
= wxString_in_helper(obj0
);
2760 if (arg1
== NULL
) SWIG_fail
;
2764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2765 result
= (wxEventType
)RegisterActiveXEvent((wxString
const &)*arg1
);
2767 wxPyEndAllowThreads(__tstate
);
2768 if (PyErr_Occurred()) SWIG_fail
;
2770 resultobj
= SWIG_FromInt((int)result
);
2785 static PyObject
*_wrap_ActiveXEvent_EventName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
*resultobj
;
2787 wxActiveXEvent
*arg1
= (wxActiveXEvent
*) 0 ;
2789 PyObject
* obj0
= 0 ;
2791 (char *) "self", NULL
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
;
2798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2799 result
= (arg1
)->EventName();
2801 wxPyEndAllowThreads(__tstate
);
2802 if (PyErr_Occurred()) SWIG_fail
;
2806 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
2808 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
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 ;
2824 (char *) "self",(char *) "pyself", NULL
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
;
2832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2833 wxActiveXEvent__preInit(arg1
,arg2
);
2835 wxPyEndAllowThreads(__tstate
);
2836 if (PyErr_Occurred()) SWIG_fail
;
2838 Py_INCREF(Py_None
); resultobj
= Py_None
;
2845 static PyObject
* ActiveXEvent_swigregister(PyObject
*self
, PyObject
*args
) {
2847 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2848 SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent
, obj
);
2850 return Py_BuildValue((char *)"");
2852 static PyObject
*_wrap_new_IEHtmlWindowBase(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
*resultobj
;
2854 wxWindow
*arg1
= (wxWindow
*) 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
;
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 ;
2876 (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
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)
2886 PyErr_SetString(PyExc_TypeError
,"null reference");
2890 arg3
= (int) SWIG_AsInt(obj2
);
2891 if (PyErr_Occurred()) SWIG_fail
;
2896 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2902 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
2906 arg6
= (long) SWIG_AsLong(obj5
);
2907 if (PyErr_Occurred()) SWIG_fail
;
2911 arg7
= wxString_in_helper(obj6
);
2912 if (arg7
== NULL
) SWIG_fail
;
2917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2918 result
= (wxIEHtmlWindowBase
*)new wxIEHtmlWindowBase(arg1
,(CLSID
const &)*arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
2920 wxPyEndAllowThreads(__tstate
);
2921 if (PyErr_Occurred()) SWIG_fail
;
2923 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxIEHtmlWindowBase
, 1);
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 ;
2946 (char *) "self",(char *) "charset", NULL
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
;
2953 arg2
= wxString_in_helper(obj1
);
2954 if (arg2
== NULL
) SWIG_fail
;
2958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2959 (arg1
)->SetCharset((wxString
const &)*arg2
);
2961 wxPyEndAllowThreads(__tstate
);
2962 if (PyErr_Occurred()) SWIG_fail
;
2964 Py_INCREF(Py_None
); resultobj
= Py_None
;
2979 static PyObject
*_wrap_IEHtmlWindowBase_LoadString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2980 PyObject
*resultobj
;
2981 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
2982 wxString
*arg2
= 0 ;
2984 bool temp2
= False
;
2985 PyObject
* obj0
= 0 ;
2986 PyObject
* obj1
= 0 ;
2988 (char *) "self",(char *) "html", NULL
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
;
2995 arg2
= wxString_in_helper(obj1
);
2996 if (arg2
== NULL
) SWIG_fail
;
3000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3001 result
= (bool)(arg1
)->LoadString((wxString
const &)*arg2
);
3003 wxPyEndAllowThreads(__tstate
);
3004 if (PyErr_Occurred()) SWIG_fail
;
3006 resultobj
= PyBool_FromLong((bool)result
);
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 ;
3026 wxPyInputStream
*temp2
;
3028 PyObject
* obj0
= 0 ;
3029 PyObject
* obj1
= 0 ;
3031 (char *) "self",(char *) "is", NULL
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
;
3038 if (wxPyConvertSwigPtr(obj1
, (void **)&temp2
, wxT("wxPyInputStream"))) {
3039 arg2
= temp2
->m_wxis
;
3042 PyErr_Clear(); // clear the failure of the wxPyConvert above
3043 arg2
= wxPyCBInputStream_create(obj1
, False
);
3045 PyErr_SetString(PyExc_TypeError
, "Expected wxInputStream or Python file-like object.");
3052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3053 result
= (bool)(arg1
)->LoadStream(arg2
);
3055 wxPyEndAllowThreads(__tstate
);
3056 if (PyErr_Occurred()) SWIG_fail
;
3058 resultobj
= PyBool_FromLong((bool)result
);
3073 static PyObject
*_wrap_IEHtmlWindowBase_GetStringSelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3074 PyObject
*resultobj
;
3075 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
3078 PyObject
* obj0
= 0 ;
3079 PyObject
* obj1
= 0 ;
3081 (char *) "self",(char *) "asHTML", NULL
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
;
3090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3091 result
= (arg1
)->GetStringSelection(arg2
);
3093 wxPyEndAllowThreads(__tstate
);
3094 if (PyErr_Occurred()) SWIG_fail
;
3098 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3100 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3109 static PyObject
*_wrap_IEHtmlWindowBase_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3110 PyObject
*resultobj
;
3111 wxIEHtmlWindowBase
*arg1
= (wxIEHtmlWindowBase
*) 0 ;
3114 PyObject
* obj0
= 0 ;
3115 PyObject
* obj1
= 0 ;
3117 (char *) "self",(char *) "asHTML", NULL
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
;
3126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3127 result
= (arg1
)->GetText(arg2
);
3129 wxPyEndAllowThreads(__tstate
);
3130 if (PyErr_Occurred()) SWIG_fail
;
3134 resultobj
= PyUnicode_FromWideChar((&result
)->c_str(), (&result
)->Len());
3136 resultobj
= PyString_FromStringAndSize((&result
)->c_str(), (&result
)->Len());
3145 static PyObject
* IEHtmlWindowBase_swigregister(PyObject
*self
, PyObject
*args
) {
3147 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3148 SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase
, obj
);
3150 return Py_BuildValue((char *)"");
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
},
3225 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3227 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
3228 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
3230 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
3231 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
3233 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
3234 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
3236 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
3237 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
3239 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
3240 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
3242 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
3243 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
3245 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
3246 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
3248 static void *_p_wxSizerTo_p_wxObject(void *x
) {
3249 return (void *)((wxObject
*) ((wxSizer
*) x
));
3251 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
3252 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
3254 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
3255 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3257 static void *_p_wxEventTo_p_wxObject(void *x
) {
3258 return (void *)((wxObject
*) ((wxEvent
*) x
));
3260 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
3261 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
3263 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
3264 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
3266 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
3267 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
3269 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
3270 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
3272 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
3273 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
3275 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
3276 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
3278 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
3279 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
3281 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
3282 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
3284 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
3285 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
3287 static void *_p_wxControlTo_p_wxObject(void *x
) {
3288 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
3290 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
3291 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
3293 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
3294 return (void *)((wxObject
*) ((wxFSFile
*) x
));
3296 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
3297 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
3299 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
3300 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
3302 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
3303 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3305 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
3306 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
3308 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
3309 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
3311 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
3312 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
3314 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
3315 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3317 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
3318 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
3320 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
3321 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
3323 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
3324 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
3326 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
3327 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
3329 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
3330 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
3332 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
3333 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
3335 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
3336 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
3338 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
3339 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
3341 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
3342 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
3344 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
3345 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
3347 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
3348 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
3350 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
3351 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
3353 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
3354 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
3356 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
3357 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
3359 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
3360 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
3362 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
3363 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
3365 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
3366 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
3368 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
3369 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
3371 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
3372 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
3374 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
3375 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
3377 static void *_p_wxImageTo_p_wxObject(void *x
) {
3378 return (void *)((wxObject
*) ((wxImage
*) x
));
3380 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
3381 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
3383 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
3384 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3386 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
3387 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
3389 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
3390 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
3392 static void *_p_wxActiveXWindowTo_p_wxObject(void *x
) {
3393 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxActiveXWindow
*) x
));
3395 static void *_p_wxWindowTo_p_wxObject(void *x
) {
3396 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
3398 static void *_p_wxMenuTo_p_wxObject(void *x
) {
3399 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
3401 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
3402 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
3404 static void *_p_wxActiveXEventTo_p_wxObject(void *x
) {
3405 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxActiveXEvent
*) x
));
3407 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
3408 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
3410 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
3411 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3413 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
3414 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
3416 static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x
) {
3417 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
3419 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
3420 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
3422 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
3423 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
3425 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
3426 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
3428 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
3429 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
3431 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
3432 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3434 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
3435 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
3437 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
3438 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
3440 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
3441 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
3443 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
3444 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3446 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
3447 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3449 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
3450 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
3452 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
3453 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
3455 static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x
) {
3456 return (void *)((wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
3458 static void *_p_wxControlTo_p_wxWindow(void *x
) {
3459 return (void *)((wxWindow
*) ((wxControl
*) x
));
3461 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
3462 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
3464 static void *_p_wxActiveXWindowTo_p_wxWindow(void *x
) {
3465 return (void *)((wxWindow
*) ((wxActiveXWindow
*) x
));
3467 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
3468 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
3470 static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x
) {
3471 return (void *)((wxWindow
*) (wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
3473 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
3474 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3476 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
3477 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
3479 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
3480 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3482 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
3483 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3485 static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x
) {
3486 return (void *)((wxCommandEvent
*) ((wxActiveXEvent
*) x
));
3488 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
3489 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3491 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
3492 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3494 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
3495 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3497 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
3498 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3500 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
3501 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
3503 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
3504 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
3506 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
3507 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3509 static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x
) {
3510 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxActiveXWindow
*) x
));
3512 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
3513 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
3515 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
3516 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
3518 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
3519 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
3521 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
3522 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
3524 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
3525 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
3527 static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x
) {
3528 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxActiveXWindow
*) ((wxIEHtmlWindowBase
*) x
));
3530 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
3531 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3533 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
3534 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
3536 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
3537 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
3539 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
3540 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
3542 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
3543 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
3545 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
3546 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
3548 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
3549 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
3551 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
3552 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
3554 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
3555 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
3557 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
3558 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3560 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
3561 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
3563 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
3564 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3566 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
3567 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
3569 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
3570 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
3572 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
3573 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
3575 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
3576 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
3578 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
3579 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
3581 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
3582 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
3584 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
3585 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
3587 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
3588 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
3590 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
3591 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3593 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
3594 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
3596 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
3597 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
3599 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
3600 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
3602 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
3603 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
3605 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
3606 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
3608 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
3609 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
3611 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
3612 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3614 static void *_p_wxActiveXEventTo_p_wxEvent(void *x
) {
3615 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxActiveXEvent
*) x
));
3617 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
3618 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
3620 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
3621 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
3623 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
3624 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3626 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
3627 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3629 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
3630 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
3632 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
3633 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
3635 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
3636 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
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}};
3656 static swig_type_info
*swig_types_initial
[] = {
3659 _swigt__p_wxActiveXWindow
,
3661 _swigt__p_wxCommandEvent
,
3663 _swigt__p_wxInputStream
,
3664 _swigt__p_wxEvtHandler
,
3666 _swigt__p_wxFuncXArray
,
3667 _swigt__p_wxParamXArray
,
3668 _swigt__p_wxActiveXEvent
,
3670 _swigt__p_wxIEHtmlWindowBase
,
3671 _swigt__p_wxPropXArray
,
3678 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3680 static swig_const_info swig_const_table
[] = {
3690 SWIGEXPORT(void) SWIG_init(void) {
3691 static PyObject
*SWIG_globals
= 0;
3692 static int typeinit
= 0;
3695 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
3696 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
3697 d
= PyModule_GetDict(m
);
3700 for (i
= 0; swig_types_initial
[i
]; i
++) {
3701 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
3705 SWIG_InstallConstants(d
,swig_const_table
);