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