]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.24 | |
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 | ||
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
26 | }; | |
27 | #endif | |
28 | ||
29 | ||
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR | |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
37 | ||
38 | ||
39 | #include <Python.h> | |
40 | ||
41 | /*********************************************************************** | |
42 | * swigrun.swg | |
43 | * | |
44 | * This file contains generic CAPI SWIG runtime support for pointer | |
45 | * type checking. | |
46 | * | |
47 | ************************************************************************/ | |
48 | ||
49 | /* This should only be incremented when either the layout of swig_type_info changes, | |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
52 | ||
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
58 | #else | |
59 | #define SWIG_TYPE_TABLE_NAME | |
60 | #endif | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
67 | #else | |
68 | # define SWIGINLINE | |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
85 | #endif | |
86 | ||
87 | #ifdef __cplusplus | |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
95 | const char *name; | |
96 | swig_converter_func converter; | |
97 | const char *str; | |
98 | void *clientdata; | |
99 | swig_dycast_func dcast; | |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
104 | /* | |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
218 | ||
219 | /* | |
220 | Cast a pointer up an inheritance hierarchy | |
221 | */ | |
222 | SWIGRUNTIMEINLINE void * | |
223 | SWIG_TypeCast(swig_type_info *ty, void *ptr) { | |
224 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
225 | } | |
226 | ||
227 | /* | |
228 | Dynamic pointer casting. Down an inheritance hierarchy | |
229 | */ | |
230 | SWIGRUNTIME swig_type_info * | |
231 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
232 | swig_type_info *lastty = ty; | |
233 | if (!ty || !ty->dcast) return ty; | |
234 | while (ty && (ty->dcast)) { | |
235 | ty = (*ty->dcast)(ptr); | |
236 | if (ty) lastty = ty; | |
237 | } | |
238 | return lastty; | |
239 | } | |
240 | ||
241 | /* | |
242 | Return the name associated with this type | |
243 | */ | |
244 | SWIGRUNTIMEINLINE const char * | |
245 | SWIG_TypeName(const swig_type_info *ty) { | |
246 | return ty->name; | |
247 | } | |
248 | ||
249 | /* | |
250 | Return the pretty name associated with this type, | |
251 | that is an unmangled type name in a form presentable to the user. | |
252 | */ | |
253 | SWIGRUNTIME const char * | |
254 | SWIG_TypePrettyName(const swig_type_info *type) { | |
255 | /* The "str" field contains the equivalent pretty names of the | |
256 | type, separated by vertical-bar characters. We choose | |
257 | to print the last name, as it is often (?) the most | |
258 | specific. */ | |
259 | if (type->str != NULL) { | |
260 | const char *last_name = type->str; | |
261 | const char *s; | |
262 | for (s = type->str; *s; s++) | |
263 | if (*s == '|') last_name = s+1; | |
264 | return last_name; | |
265 | } | |
266 | else | |
267 | return type->name; | |
268 | } | |
269 | ||
270 | /* | |
271 | Search for a swig_type_info structure | |
272 | */ | |
273 | SWIGRUNTIME swig_type_info * | |
274 | SWIG_TypeQueryTL(swig_type_info *tl, const char *name) { | |
275 | swig_type_info *ty = tl; | |
276 | while (ty) { | |
277 | if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty; | |
278 | if (ty->name && (strcmp(name,ty->name) == 0)) return ty; | |
279 | ty = ty->prev; | |
280 | } | |
281 | return 0; | |
282 | } | |
283 | ||
284 | /* | |
285 | Set the clientdata field for a type | |
286 | */ | |
287 | SWIGRUNTIME void | |
288 | SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) { | |
289 | swig_type_info *tc, *equiv; | |
290 | if (ti->clientdata) return; | |
291 | /* if (ti->clientdata == clientdata) return; */ | |
292 | ti->clientdata = clientdata; | |
293 | equiv = ti->next; | |
294 | while (equiv) { | |
295 | if (!equiv->converter) { | |
296 | tc = tl; | |
297 | while (tc) { | |
298 | if ((strcmp(tc->name, equiv->name) == 0)) | |
299 | SWIG_TypeClientDataTL(tl,tc,clientdata); | |
300 | tc = tc->prev; | |
301 | } | |
302 | } | |
303 | equiv = equiv->next; | |
304 | } | |
305 | } | |
306 | ||
307 | /* | |
308 | Pack binary data into a string | |
309 | */ | |
310 | SWIGRUNTIME char * | |
311 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
312 | static char hex[17] = "0123456789abcdef"; | |
313 | unsigned char *u = (unsigned char *) ptr; | |
314 | const unsigned char *eu = u + sz; | |
315 | register unsigned char uu; | |
316 | for (; u != eu; ++u) { | |
317 | uu = *u; | |
318 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
319 | *(c++) = hex[uu & 0xf]; | |
320 | } | |
321 | return c; | |
322 | } | |
323 | ||
324 | /* | |
325 | Unpack binary data from a string | |
326 | */ | |
327 | SWIGRUNTIME const char * | |
328 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
329 | register unsigned char *u = (unsigned char *) ptr; | |
330 | register const unsigned char *eu = u + sz; | |
331 | for (; u != eu; ++u) { | |
332 | register int d = *(c++); | |
333 | register unsigned char uu = 0; | |
334 | if ((d >= '0') && (d <= '9')) | |
335 | uu = ((d - '0') << 4); | |
336 | else if ((d >= 'a') && (d <= 'f')) | |
337 | uu = ((d - ('a'-10)) << 4); | |
338 | else | |
339 | return (char *) 0; | |
340 | d = *(c++); | |
341 | if ((d >= '0') && (d <= '9')) | |
342 | uu |= (d - '0'); | |
343 | else if ((d >= 'a') && (d <= 'f')) | |
344 | uu |= (d - ('a'-10)); | |
345 | else | |
346 | return (char *) 0; | |
347 | *u = uu; | |
348 | } | |
349 | return c; | |
350 | } | |
351 | ||
352 | /* | |
353 | This function will propagate the clientdata field of type to any new | |
354 | swig_type_info structures that have been added into the list of | |
355 | equivalent types. It is like calling SWIG_TypeClientData(type, | |
356 | clientdata) a second time. | |
357 | */ | |
358 | SWIGRUNTIME void | |
359 | SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) { | |
360 | swig_type_info *equiv = type->next; | |
361 | swig_type_info *tc; | |
362 | if (!type->clientdata) return; | |
363 | while (equiv) { | |
364 | if (!equiv->converter) { | |
365 | tc = tl; | |
366 | while (tc) { | |
367 | if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata) | |
368 | SWIG_TypeClientDataTL(tl,tc, type->clientdata); | |
369 | tc = tc->prev; | |
370 | } | |
371 | } | |
372 | equiv = equiv->next; | |
373 | } | |
374 | } | |
375 | ||
376 | /* | |
377 | Pack 'void *' into a string buffer. | |
378 | */ | |
379 | SWIGRUNTIME char * | |
380 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
381 | char *r = buff; | |
382 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
383 | *(r++) = '_'; | |
384 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
385 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
386 | strcpy(r,name); | |
387 | return buff; | |
388 | } | |
389 | ||
390 | SWIGRUNTIME const char * | |
391 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
392 | if (*c != '_') { | |
393 | if (strcmp(c,"NULL") == 0) { | |
394 | *ptr = (void *) 0; | |
395 | return name; | |
396 | } else { | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
401 | } | |
402 | ||
403 | SWIGRUNTIME char * | |
404 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
405 | char *r = buff; | |
406 | size_t lname = (name ? strlen(name) : 0); | |
407 | if ((2*sz + 2 + lname) > bsz) return 0; | |
408 | *(r++) = '_'; | |
409 | r = SWIG_PackData(r,ptr,sz); | |
410 | if (lname) { | |
411 | strncpy(r,name,lname+1); | |
412 | } else { | |
413 | *r = 0; | |
414 | } | |
415 | return buff; | |
416 | } | |
417 | ||
418 | SWIGRUNTIME const char * | |
419 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
420 | if (*c != '_') { | |
421 | if (strcmp(c,"NULL") == 0) { | |
422 | memset(ptr,0,sz); | |
423 | return name; | |
424 | } else { | |
425 | return 0; | |
426 | } | |
427 | } | |
428 | return SWIG_UnpackData(++c,ptr,sz); | |
429 | } | |
430 | ||
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
436 | * common.swg | |
437 | * | |
438 | * This file contains generic SWIG runtime support for pointer | |
439 | * type checking as well as a few commonly used macros to control | |
440 | * external linkage. | |
441 | * | |
442 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
443 | * | |
444 | * Copyright (c) 1999-2000, The University of Chicago | |
445 | * | |
446 | * This file may be freely redistributed without license or fee provided | |
447 | * this copyright message remains intact. | |
448 | ************************************************************************/ | |
449 | ||
450 | ||
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
461 | #ifdef __cplusplus | |
462 | extern "C" { | |
463 | #endif | |
464 | ||
465 | ||
466 | /*************************************************************************/ | |
467 | ||
468 | ||
469 | /* The static type info list */ | |
470 | ||
471 | static swig_type_info *swig_type_list = 0; | |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
474 | ||
475 | /* Register a type mapping with the type-checking */ | |
476 | static swig_type_info * | |
477 | SWIG_TypeRegister(swig_type_info *ti) { | |
478 | return SWIG_TypeRegisterTL(swig_type_list_handle, ti); | |
479 | } | |
480 | ||
481 | /* Search for a swig_type_info structure */ | |
482 | static swig_type_info * | |
483 | SWIG_TypeQuery(const char *name) { | |
484 | return SWIG_TypeQueryTL(*swig_type_list_handle, name); | |
485 | } | |
486 | ||
487 | /* Set the clientdata field for a type */ | |
488 | static void | |
489 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
490 | SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata); | |
491 | } | |
492 | ||
493 | /* This function will propagate the clientdata field of type to | |
494 | * any new swig_type_info structures that have been added into the list | |
495 | * of equivalent types. It is like calling | |
496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
497 | */ | |
498 | static void | |
499 | SWIG_PropagateClientData(swig_type_info *type) { | |
500 | SWIG_PropagateClientDataTL(*swig_type_list_handle, type); | |
501 | } | |
502 | ||
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
507 | /* ----------------------------------------------------------------------------- | |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
510 | ||
511 | #ifdef __cplusplus | |
512 | extern "C" { | |
513 | #endif | |
514 | ||
515 | /* ----------------------------------------------------------------------------- | |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
518 | ||
519 | #ifndef SWIGINTERN | |
520 | #define SWIGINTERN static | |
521 | #endif | |
522 | ||
523 | #ifndef SWIGINTERNSHORT | |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
530 | ||
531 | ||
532 | /* | |
533 | Exception handling in wrappers | |
534 | */ | |
535 | #define SWIG_fail goto fail | |
536 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
537 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
538 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
539 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
540 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
541 | ||
542 | /* | |
543 | Contract support | |
544 | */ | |
545 | #define SWIG_contract_assert(expr, msg) \ | |
546 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
547 | ||
548 | /* ----------------------------------------------------------------------------- | |
549 | * Constant declarations | |
550 | * ----------------------------------------------------------------------------- */ | |
551 | ||
552 | /* Constant Types */ | |
553 | #define SWIG_PY_INT 1 | |
554 | #define SWIG_PY_FLOAT 2 | |
555 | #define SWIG_PY_STRING 3 | |
556 | #define SWIG_PY_POINTER 4 | |
557 | #define SWIG_PY_BINARY 5 | |
558 | ||
559 | /* Constant information structure */ | |
560 | typedef struct swig_const_info { | |
561 | int type; | |
562 | char *name; | |
563 | long lvalue; | |
564 | double dvalue; | |
565 | void *pvalue; | |
566 | swig_type_info **ptype; | |
567 | } swig_const_info; | |
568 | ||
569 | ||
570 | /* ----------------------------------------------------------------------------- | |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
573 | #define SWIG_OLDOBJ 1 | |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
576 | ||
577 | #ifdef __cplusplus | |
578 | } | |
579 | #endif | |
580 | ||
581 | ||
582 | /*********************************************************************** | |
583 | * pyrun.swg | |
584 | * | |
585 | * This file contains the runtime support for Python modules | |
586 | * and includes code for managing global variables and pointer | |
587 | * type checking. | |
588 | * | |
589 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
590 | ************************************************************************/ | |
591 | ||
592 | /* Common SWIG API */ | |
593 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
594 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
595 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
596 | ||
597 | ||
598 | /* Python-specific SWIG API */ | |
599 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
600 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
601 | ||
602 | ||
603 | /* ----------------------------------------------------------------------------- | |
604 | * Pointer declarations | |
605 | * ----------------------------------------------------------------------------- */ | |
606 | /* | |
607 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
608 | C/C++ pointers in the python side. Very useful for debugging, but | |
609 | not always safe. | |
610 | */ | |
611 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
612 | # define SWIG_COBJECT_TYPES | |
613 | #endif | |
614 | ||
615 | /* Flags for pointer conversion */ | |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
618 | ||
619 | ||
620 | #ifdef __cplusplus | |
621 | extern "C" { | |
622 | #endif | |
623 | ||
624 | /* ----------------------------------------------------------------------------- | |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
627 | ||
628 | #ifndef SWIG_BUFFER_SIZE | |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
631 | ||
632 | #if defined(SWIG_COBJECT_TYPES) | |
633 | #if !defined(SWIG_COBJECT_PYTHON) | |
634 | /* ----------------------------------------------------------------------------- | |
635 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
636 | * ----------------------------------------------------------------------------- */ | |
637 | ||
638 | typedef struct { | |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
643 | ||
644 | /* Declarations for objects of type PySwigObject */ | |
645 | ||
646 | SWIGRUNTIME int | |
647 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
648 | { | |
649 | char result[SWIG_BUFFER_SIZE]; | |
650 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
651 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
652 | return 0; | |
653 | } else { | |
654 | return 1; | |
655 | } | |
656 | } | |
657 | ||
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
660 | { | |
661 | char result[SWIG_BUFFER_SIZE]; | |
662 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
663 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
664 | } | |
665 | ||
666 | SWIGRUNTIME PyObject * | |
667 | PySwigObject_str(PySwigObject *v) | |
668 | { | |
669 | char result[SWIG_BUFFER_SIZE]; | |
670 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
671 | PyString_FromString(result) : 0; | |
672 | } | |
673 | ||
674 | SWIGRUNTIME PyObject * | |
675 | PySwigObject_long(PySwigObject *v) | |
676 | { | |
677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); | |
678 | } | |
679 | ||
680 | SWIGRUNTIME PyObject * | |
681 | PySwigObject_oct(PySwigObject *v) | |
682 | { | |
683 | char buf[100]; | |
684 | unsigned long x = (unsigned long)v->ptr; | |
685 | if (x == 0) | |
686 | strcpy(buf, "0"); | |
687 | else | |
688 | PyOS_snprintf(buf, sizeof(buf), "0%lo", x); | |
689 | return PyString_FromString(buf); | |
690 | } | |
691 | ||
692 | SWIGRUNTIME PyObject * | |
693 | PySwigObject_hex(PySwigObject *v) | |
694 | { | |
695 | char buf[100]; | |
696 | PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr); | |
697 | return PyString_FromString(buf); | |
698 | } | |
699 | ||
700 | SWIGRUNTIME int | |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
702 | { | |
703 | int c = strcmp(v->desc, w->desc); | |
704 | if (c) { | |
705 | return c; | |
706 | } else { | |
707 | void *i = v->ptr; | |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
710 | } | |
711 | } | |
712 | ||
713 | SWIGRUNTIME void | |
714 | PySwigObject_dealloc(PySwigObject *self) | |
715 | { | |
716 | PyObject_DEL(self); | |
717 | } | |
718 | ||
719 | SWIGRUNTIME PyTypeObject* | |
720 | PySwigObject_GetType() { | |
721 | static char PySwigObject_Type__doc__[] = | |
722 | "Swig object carries a C/C++ instance pointer"; | |
723 | ||
724 | static PyNumberMethods PySwigObject_as_number = { | |
725 | (binaryfunc)0, /*nb_add*/ | |
726 | (binaryfunc)0, /*nb_subtract*/ | |
727 | (binaryfunc)0, /*nb_multiply*/ | |
728 | (binaryfunc)0, /*nb_divide*/ | |
729 | (binaryfunc)0, /*nb_remainder*/ | |
730 | (binaryfunc)0, /*nb_divmod*/ | |
731 | (ternaryfunc)0,/*nb_power*/ | |
732 | (unaryfunc)0, /*nb_negative*/ | |
733 | (unaryfunc)0, /*nb_positive*/ | |
734 | (unaryfunc)0, /*nb_absolute*/ | |
735 | (inquiry)0, /*nb_nonzero*/ | |
736 | 0, /*nb_invert*/ | |
737 | 0, /*nb_lshift*/ | |
738 | 0, /*nb_rshift*/ | |
739 | 0, /*nb_and*/ | |
740 | 0, /*nb_xor*/ | |
741 | 0, /*nb_or*/ | |
742 | (coercion)0, /*nb_coerce*/ | |
743 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
744 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
745 | (unaryfunc)0, /*nb_float*/ | |
746 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
747 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
748 | #if PY_VERSION_HEX >= 0x02000000 | |
749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
750 | #endif | |
751 | }; | |
752 | ||
753 | static int type_init = 0; | |
754 | static PyTypeObject PySwigObject_Type; | |
755 | ||
756 | if (!type_init) { | |
757 | PyTypeObject tmp = { | |
758 | PyObject_HEAD_INIT(&PyType_Type) | |
759 | 0, /*ob_size*/ | |
760 | "PySwigObject", /*tp_name*/ | |
761 | sizeof(PySwigObject), /*tp_basicsize*/ | |
762 | 0, /*tp_itemsize*/ | |
763 | /* methods */ | |
764 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
765 | (printfunc)PySwigObject_print, /*tp_print*/ | |
766 | (getattrfunc)0, /*tp_getattr*/ | |
767 | (setattrfunc)0, /*tp_setattr*/ | |
768 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
769 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
770 | &PySwigObject_as_number, /*tp_as_number*/ | |
771 | 0, /*tp_as_sequence*/ | |
772 | 0, /*tp_as_mapping*/ | |
773 | (hashfunc)0, /*tp_hash*/ | |
774 | (ternaryfunc)0, /*tp_call*/ | |
775 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
776 | /* Space for future expansion */ | |
777 | 0L,0L,0L,0L, | |
778 | PySwigObject_Type__doc__, /* Documentation string */ | |
779 | #if PY_VERSION_HEX >= 0x02000000 | |
780 | 0, /* tp_traverse */ | |
781 | 0, /* tp_clear */ | |
782 | #endif | |
783 | #if PY_VERSION_HEX >= 0x02010000 | |
784 | 0, /* tp_richcompare */ | |
785 | 0, /* tp_weaklistoffset */ | |
786 | #endif | |
787 | #if PY_VERSION_HEX >= 0x02020000 | |
788 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
789 | #endif | |
790 | #if PY_VERSION_HEX >= 0x02030000 | |
791 | 0, /* tp_del */ | |
792 | #endif | |
793 | #ifdef COUNT_ALLOCS | |
794 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
795 | #endif | |
796 | }; | |
797 | ||
798 | PySwigObject_Type = tmp; | |
799 | type_init = 1; | |
800 | } | |
801 | ||
802 | return &PySwigObject_Type; | |
803 | } | |
804 | ||
805 | SWIGRUNTIME PyObject * | |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
807 | { | |
808 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType()); | |
809 | if (self == NULL) return NULL; | |
810 | self->ptr = ptr; | |
811 | self->desc = desc; | |
812 | return (PyObject *)self; | |
813 | } | |
814 | ||
815 | SWIGRUNTIMEINLINE void * | |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
820 | ||
821 | SWIGRUNTIMEINLINE const char * | |
822 | PySwigObject_GetDesc(PyObject *self) | |
823 | { | |
824 | return ((PySwigObject *)self)->desc; | |
825 | } | |
826 | ||
827 | SWIGRUNTIMEINLINE int | |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
831 | } | |
832 | ||
833 | /* ----------------------------------------------------------------------------- | |
834 | * Implements a simple Swig Packed type, and use it instead of string | |
835 | * ----------------------------------------------------------------------------- */ | |
836 | ||
837 | typedef struct { | |
838 | PyObject_HEAD | |
839 | void *pack; | |
840 | const char *desc; | |
841 | size_t size; | |
842 | } PySwigPacked; | |
843 | ||
844 | SWIGRUNTIME int | |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
846 | { | |
847 | char result[SWIG_BUFFER_SIZE]; | |
848 | fputs("<Swig Packed ", fp); | |
849 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
850 | fputs("at ", fp); | |
851 | fputs(result, fp); | |
852 | } | |
853 | fputs(v->desc,fp); | |
854 | fputs(">", fp); | |
855 | return 0; | |
856 | } | |
857 | ||
858 | SWIGRUNTIME PyObject * | |
859 | PySwigPacked_repr(PySwigPacked *v) | |
860 | { | |
861 | char result[SWIG_BUFFER_SIZE]; | |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
867 | } | |
868 | ||
869 | SWIGRUNTIME PyObject * | |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
879 | ||
880 | SWIGRUNTIME int | |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
893 | ||
894 | SWIGRUNTIME void | |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
974 | ||
975 | SWIGRUNTIMEINLINE const char * | |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
988 | } | |
989 | ||
990 | SWIGRUNTIMEINLINE int | |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
995 | ||
996 | #else | |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1016 | { | |
1017 | if (type) { | |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
1040 | Py_DECREF(str); | |
1041 | return; | |
1042 | } | |
1043 | } | |
1044 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1045 | } else { | |
1046 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1047 | } | |
1048 | } | |
1049 | ||
1050 | SWIGRUNTIMEINLINE void | |
1051 | SWIG_Python_NullRef(const char *type) | |
1052 | { | |
1053 | if (type) { | |
1054 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1055 | } else { | |
1056 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1057 | } | |
1058 | } | |
1059 | ||
1060 | SWIGRUNTIME int | |
1061 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1062 | { | |
1063 | if (PyErr_Occurred()) { | |
1064 | PyObject *type = 0; | |
1065 | PyObject *value = 0; | |
1066 | PyObject *traceback = 0; | |
1067 | PyErr_Fetch(&type, &value, &traceback); | |
1068 | if (value) { | |
1069 | PyObject *old_str = PyObject_Str(value); | |
1070 | Py_XINCREF(type); | |
1071 | PyErr_Clear(); | |
1072 | if (infront) { | |
1073 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1074 | } else { | |
1075 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1076 | } | |
1077 | Py_DECREF(old_str); | |
1078 | } | |
1079 | return 1; | |
1080 | } else { | |
1081 | return 0; | |
1082 | } | |
1083 | } | |
1084 | ||
1085 | SWIGRUNTIME int | |
1086 | SWIG_Python_ArgFail(int argnum) | |
1087 | { | |
1088 | if (PyErr_Occurred()) { | |
1089 | /* add information about failing argument */ | |
1090 | char mesg[256]; | |
1091 | sprintf(mesg, "argument number %d:", argnum); | |
1092 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1093 | } else { | |
1094 | return 0; | |
1095 | } | |
1096 | } | |
1097 | ||
1098 | ||
1099 | /* ----------------------------------------------------------------------------- | |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
1102 | ||
1103 | /* Convert a pointer value */ | |
1104 | SWIGRUNTIME int | |
1105 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1106 | swig_type_info *tc; | |
1107 | const char *c = 0; | |
1108 | static PyObject *SWIG_this = 0; | |
1109 | int newref = 0; | |
1110 | PyObject *pyobj = 0; | |
1111 | void *vptr; | |
1112 | ||
1113 | if (!obj) return 0; | |
1114 | if (obj == Py_None) { | |
1115 | *ptr = 0; | |
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | #ifdef SWIG_COBJECT_TYPES | |
1120 | if (!(PySwigObject_Check(obj))) { | |
1121 | if (!SWIG_this) | |
1122 | SWIG_this = PyString_FromString("this"); | |
1123 | pyobj = obj; | |
1124 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1125 | newref = 1; | |
1126 | if (!obj) goto type_error; | |
1127 | if (!PySwigObject_Check(obj)) { | |
1128 | Py_DECREF(obj); | |
1129 | goto type_error; | |
1130 | } | |
1131 | } | |
1132 | vptr = PySwigObject_AsVoidPtr(obj); | |
1133 | c = (const char *) PySwigObject_GetDesc(obj); | |
1134 | if (newref) { Py_DECREF(obj); } | |
1135 | goto type_check; | |
1136 | #else | |
1137 | if (!(PyString_Check(obj))) { | |
1138 | if (!SWIG_this) | |
1139 | SWIG_this = PyString_FromString("this"); | |
1140 | pyobj = obj; | |
1141 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1142 | newref = 1; | |
1143 | if (!obj) goto type_error; | |
1144 | if (!PyString_Check(obj)) { | |
1145 | Py_DECREF(obj); | |
1146 | goto type_error; | |
1147 | } | |
1148 | } | |
1149 | c = PyString_AS_STRING(obj); | |
1150 | /* Pointer values must start with leading underscore */ | |
1151 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1152 | if (newref) { Py_DECREF(obj); } | |
1153 | if (!c) goto type_error; | |
1154 | #endif | |
1155 | ||
1156 | type_check: | |
1157 | ||
1158 | if (ty) { | |
1159 | tc = SWIG_TypeCheck(c,ty); | |
1160 | if (!tc) goto type_error; | |
1161 | *ptr = SWIG_TypeCast(tc,vptr); | |
1162 | } else { | |
1163 | *ptr = vptr; | |
1164 | } | |
1165 | ||
1166 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1167 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1168 | } | |
1169 | return 0; | |
1170 | ||
1171 | type_error: | |
1172 | PyErr_Clear(); | |
1173 | if (pyobj && !obj) { | |
1174 | obj = pyobj; | |
1175 | if (PyCFunction_Check(obj)) { | |
1176 | /* here we get the method pointer for callbacks */ | |
1177 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1178 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1179 | if (c) { | |
1180 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1181 | if (!c) goto type_error; | |
1182 | goto type_check; | |
1183 | } | |
1184 | } | |
1185 | } | |
1186 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1187 | if (ty) { | |
1188 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1189 | } else { | |
1190 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1191 | } | |
1192 | } | |
1193 | return -1; | |
1194 | } | |
1195 | ||
1196 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1197 | SWIGRUNTIME void * | |
1198 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1199 | void *result; | |
1200 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1201 | PyErr_Clear(); | |
1202 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1203 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1204 | SWIG_Python_ArgFail(argnum); | |
1205 | } | |
1206 | } | |
1207 | return result; | |
1208 | } | |
1209 | ||
1210 | /* Convert a packed value value */ | |
1211 | SWIGRUNTIME int | |
1212 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1213 | swig_type_info *tc; | |
1214 | const char *c = 0; | |
1215 | ||
1216 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1217 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1218 | #else | |
1219 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1220 | c = PyString_AS_STRING(obj); | |
1221 | /* Pointer values must start with leading underscore */ | |
1222 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1223 | #endif | |
1224 | if (!c) goto type_error; | |
1225 | if (ty) { | |
1226 | tc = SWIG_TypeCheck(c,ty); | |
1227 | if (!tc) goto type_error; | |
1228 | } | |
1229 | return 0; | |
1230 | ||
1231 | type_error: | |
1232 | PyErr_Clear(); | |
1233 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1234 | if (ty) { | |
1235 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1236 | } else { | |
1237 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1238 | } | |
1239 | } | |
1240 | return -1; | |
1241 | } | |
1242 | ||
1243 | /* Create a new array object */ | |
1244 | SWIGRUNTIME PyObject * | |
1245 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1246 | PyObject *robj = 0; | |
1247 | if (!ptr) { | |
1248 | Py_INCREF(Py_None); | |
1249 | return Py_None; | |
1250 | } | |
1251 | #ifdef SWIG_COBJECT_TYPES | |
1252 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1253 | #else | |
1254 | { | |
1255 | char result[SWIG_BUFFER_SIZE]; | |
1256 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1257 | PyString_FromString(result) : 0; | |
1258 | } | |
1259 | #endif | |
1260 | if (!robj || (robj == Py_None)) return robj; | |
1261 | if (type->clientdata) { | |
1262 | PyObject *inst; | |
1263 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1264 | Py_DECREF(robj); | |
1265 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1266 | Py_DECREF(args); | |
1267 | if (inst) { | |
1268 | if (own) { | |
1269 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1270 | } | |
1271 | robj = inst; | |
1272 | } | |
1273 | } | |
1274 | return robj; | |
1275 | } | |
1276 | ||
1277 | SWIGRUNTIME PyObject * | |
1278 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1279 | PyObject *robj = 0; | |
1280 | if (!ptr) { | |
1281 | Py_INCREF(Py_None); | |
1282 | return Py_None; | |
1283 | } | |
1284 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1285 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1286 | #else | |
1287 | { | |
1288 | char result[SWIG_BUFFER_SIZE]; | |
1289 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1290 | PyString_FromString(result) : 0; | |
1291 | } | |
1292 | #endif | |
1293 | return robj; | |
1294 | } | |
1295 | ||
1296 | /* -----------------------------------------------------------------------------* | |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
1299 | ||
1300 | #ifdef SWIG_LINK_RUNTIME | |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
1303 | ||
1304 | SWIGRUNTIME swig_type_info ** | |
1305 | SWIG_Python_GetTypeListHandle() { | |
1306 | static void *type_pointer = (void *)0; | |
1307 | /* first check if module already created */ | |
1308 | if (!type_pointer) { | |
1309 | #ifdef SWIG_LINK_RUNTIME | |
1310 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1311 | #else | |
1312 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1313 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1314 | if (PyErr_Occurred()) { | |
1315 | PyErr_Clear(); | |
1316 | type_pointer = (void *)0; | |
1317 | } | |
1318 | } | |
1319 | #endif | |
1320 | return (swig_type_info **) type_pointer; | |
1321 | } | |
1322 | ||
1323 | /* | |
1324 | Search for a swig_type_info structure | |
1325 | */ | |
1326 | SWIGRUNTIMEINLINE swig_type_info * | |
1327 | SWIG_Python_GetTypeList() { | |
1328 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1329 | return tlh ? *tlh : (swig_type_info*)0; | |
1330 | } | |
1331 | ||
1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1333 | ||
1334 | #ifdef __cplusplus | |
1335 | } | |
1336 | #endif | |
1337 | ||
1338 | ||
1339 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1340 | ||
1341 | #define SWIGTYPE_p_wxObject swig_types[0] | |
1342 | #define SWIGTYPE_p_unsigned_char swig_types[1] | |
1343 | #define SWIGTYPE_p_wxFuncX swig_types[2] | |
1344 | #define SWIGTYPE_p_wxActiveXWindow swig_types[3] | |
1345 | #define SWIGTYPE_p_wxWindow swig_types[4] | |
1346 | #define SWIGTYPE_p_wxCommandEvent swig_types[5] | |
1347 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
1348 | #define SWIGTYPE_p_unsigned_int swig_types[7] | |
1349 | #define SWIGTYPE_unsigned_int swig_types[8] | |
1350 | #define SWIGTYPE_p_form_ops_t swig_types[9] | |
1351 | #define SWIGTYPE_p_wxDuplexMode swig_types[10] | |
1352 | #define SWIGTYPE_p_char swig_types[11] | |
1353 | #define SWIGTYPE_p_unsigned_short swig_types[12] | |
1354 | #define SWIGTYPE_p_wxInputStream swig_types[13] | |
1355 | #define SWIGTYPE_p_wxEvtHandler swig_types[14] | |
1356 | #define SWIGTYPE_p_wxPropX swig_types[15] | |
1357 | #define SWIGTYPE_p_wxParamXArray swig_types[16] | |
1358 | #define SWIGTYPE_p_wxFuncXArray swig_types[17] | |
1359 | #define SWIGTYPE_p_wxActiveXEvent swig_types[18] | |
1360 | #define SWIGTYPE_std__ptrdiff_t swig_types[19] | |
1361 | #define SWIGTYPE_ptrdiff_t swig_types[20] | |
1362 | #define SWIGTYPE_p_long swig_types[21] | |
1363 | #define SWIGTYPE_p_wxParamX swig_types[22] | |
1364 | #define SWIGTYPE_p_wxIEHtmlWindowBase swig_types[23] | |
1365 | #define SWIGTYPE_p_wxEvent swig_types[24] | |
1366 | #define SWIGTYPE_p_wxPaperSize swig_types[25] | |
1367 | #define SWIGTYPE_p_CLSID swig_types[26] | |
1368 | #define SWIGTYPE_p_wxPropXArray swig_types[27] | |
1369 | #define SWIGTYPE_p_int swig_types[28] | |
1370 | static swig_type_info *swig_types[30]; | |
1371 | ||
1372 | /* -------- TYPES TABLE (END) -------- */ | |
1373 | ||
1374 | ||
1375 | /*----------------------------------------------- | |
1376 | @(target):= _activex.so | |
1377 | ------------------------------------------------*/ | |
1378 | #define SWIG_init init_activex | |
1379 | ||
1380 | #define SWIG_name "_activex" | |
1381 | ||
1382 | #include "wx/wxPython/wxPython.h" | |
1383 | #include "wx/wxPython/pyclasses.h" | |
1384 | #include "wx/wxPython/pyistream.h" | |
1385 | ||
1386 | #include "wxactivex.h" | |
1387 | ||
1388 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1389 | ||
1390 | // Since SWIG doesn't support nested classes, we need to fool it a bit | |
1391 | // and make them look like global classes. These defines make the C++ code | |
1392 | // know what we are doing. | |
1393 | #define wxParamX wxActiveX::ParamX | |
1394 | #define wxFuncX wxActiveX::FuncX | |
1395 | #define wxPropX wxActiveX::PropX | |
1396 | #define wxParamXArray wxActiveX::ParamXArray | |
1397 | #define wxFuncXArray wxActiveX::FuncXArray | |
1398 | #define wxPropXArray wxActiveX::PropXArray | |
1399 | ||
1400 | ||
1401 | // Some conversion helpers | |
1402 | static wxVariant _PyObj2Variant(PyObject* value); | |
1403 | static bool _PyObj2Variant(PyObject* value, wxVariant& wv); | |
1404 | static PyObject* _Variant2PyObj(wxVariant& value, bool useNone=false); | |
1405 | static wxString _VARTYPEname(VARTYPE vt); | |
1406 | ||
1407 | // Check if an exception has been raised (blocking threads) | |
1408 | inline bool wxPyErr_Occurred() | |
1409 | { | |
1410 | bool rval; | |
1411 | bool blocked = wxPyBeginBlockThreads(); | |
1412 | rval = PyErr_Occurred() != NULL; | |
1413 | wxPyEndBlockThreads(blocked); | |
1414 | return rval; | |
1415 | } | |
1416 | ||
1417 | ||
1418 | static CLSID *new_CLSID(wxString const &id){ | |
1419 | int result; | |
1420 | CLSID* self = new CLSID; | |
1421 | memset(self, 0, sizeof(CLSID)); | |
1422 | ||
1423 | if (id[0] == _T('{')) { | |
1424 | // Looks like a classID string | |
1425 | result = | |
1426 | CLSIDFromString( | |
1427 | (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8), | |
1428 | self); | |
1429 | } else { | |
1430 | // Try a progID | |
1431 | result = | |
1432 | CLSIDFromProgID( | |
1433 | (LPOLESTR)(const wchar_t *)id.wc_str(wxConvUTF8), | |
1434 | self); | |
1435 | } | |
1436 | if (result != NOERROR) { | |
1437 | wxPyErr_SetString(PyExc_ValueError, "Not a recognized classID or progID"); | |
1438 | delete self; | |
1439 | return NULL; | |
1440 | } | |
1441 | return self; | |
1442 | } | |
1443 | static void delete_CLSID(CLSID *self){ delete self; } | |
1444 | static wxString CLSID_GetCLSIDString(CLSID *self){ | |
1445 | LPOLESTR s; | |
1446 | wxString str; | |
1447 | if (StringFromCLSID(*self, &s) == S_OK) { | |
1448 | str = s; | |
1449 | CoTaskMemFree(s); | |
1450 | } | |
1451 | else { | |
1452 | str = _T("Error!"); // TODO: raise exception? | |
1453 | } | |
1454 | return str; | |
1455 | } | |
1456 | static wxString CLSID_GetProgIDString(CLSID *self){ | |
1457 | LPOLESTR s; | |
1458 | wxString str; | |
1459 | if (ProgIDFromCLSID(*self, &s) == S_OK) { | |
1460 | str = s; | |
1461 | CoTaskMemFree(s); | |
1462 | } | |
1463 | else { | |
1464 | str = _T("Error!"); // TODO: raise exception? | |
1465 | } | |
1466 | return str; | |
1467 | } | |
1468 | ||
1469 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
1470 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
1471 | /*@@*/ | |
1472 | ||
1473 | static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); } | |
1474 | ||
1475 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
1476 | #define SWIG_From_long PyInt_FromLong | |
1477 | /*@@*/ | |
1478 | ||
1479 | static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; } | |
1480 | static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); } | |
1481 | ||
1482 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ | |
1483 | #define SWIG_From_int PyInt_FromLong | |
1484 | /*@@*/ | |
1485 | ||
1486 | ||
1487 | #include <limits.h> | |
1488 | ||
1489 | ||
1490 | SWIGINTERN int | |
1491 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1492 | const char *errmsg) | |
1493 | { | |
1494 | if (value < min_value) { | |
1495 | if (errmsg) { | |
1496 | PyErr_Format(PyExc_OverflowError, | |
1497 | "value %ld is less than '%s' minimum %ld", | |
1498 | value, errmsg, min_value); | |
1499 | } | |
1500 | return 0; | |
1501 | } else if (value > max_value) { | |
1502 | if (errmsg) { | |
1503 | PyErr_Format(PyExc_OverflowError, | |
1504 | "value %ld is greater than '%s' maximum %ld", | |
1505 | value, errmsg, max_value); | |
1506 | } | |
1507 | return 0; | |
1508 | } | |
1509 | return 1; | |
1510 | } | |
1511 | ||
1512 | ||
1513 | SWIGINTERN int | |
1514 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1515 | { | |
1516 | if (PyNumber_Check(obj)) { | |
1517 | if (val) *val = PyInt_AsLong(obj); | |
1518 | return 1; | |
1519 | } | |
1520 | else { | |
1521 | SWIG_type_error("number", obj); | |
1522 | } | |
1523 | return 0; | |
1524 | } | |
1525 | ||
1526 | ||
1527 | #if INT_MAX != LONG_MAX | |
1528 | SWIGINTERN int | |
1529 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1530 | { | |
1531 | const char* errmsg = val ? "int" : (char*)0; | |
1532 | long v; | |
1533 | if (SWIG_AsVal_long(obj, &v)) { | |
1534 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1535 | if (val) *val = (int)(v); | |
1536 | return 1; | |
1537 | } else { | |
1538 | return 0; | |
1539 | } | |
1540 | } else { | |
1541 | PyErr_Clear(); | |
1542 | } | |
1543 | if (val) { | |
1544 | SWIG_type_error(errmsg, obj); | |
1545 | } | |
1546 | return 0; | |
1547 | } | |
1548 | #else | |
1549 | SWIGINTERNSHORT int | |
1550 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1551 | { | |
1552 | return SWIG_AsVal_long(obj,(long*)val); | |
1553 | } | |
1554 | #endif | |
1555 | ||
1556 | ||
1557 | SWIGINTERNSHORT int | |
1558 | SWIG_As_int(PyObject* obj) | |
1559 | { | |
1560 | int v; | |
1561 | if (!SWIG_AsVal_int(obj, &v)) { | |
1562 | /* | |
1563 | this is needed to make valgrind/purify happier. | |
1564 | */ | |
1565 | memset((void*)&v, 0, sizeof(int)); | |
1566 | } | |
1567 | return v; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | SWIGINTERNSHORT int | |
1572 | SWIG_Check_int(PyObject* obj) | |
1573 | { | |
1574 | return SWIG_AsVal_int(obj, (int*)0); | |
1575 | } | |
1576 | ||
1577 | static wxParamX const &wxParamXArray___getitem__(wxParamXArray *self,int idx){ | |
1578 | if ( idx >= 0 && idx < self->size() ) | |
1579 | return (*self)[idx]; | |
1580 | else { | |
1581 | static wxParamX BadVal; | |
1582 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1583 | return BadVal; | |
1584 | } | |
1585 | } | |
1586 | static bool wxFuncXArray___nonzero__(wxFuncXArray *self){ return self->size() > 0; } | |
1587 | static int wxFuncXArray___len__(wxFuncXArray *self){ return self->size(); } | |
1588 | static wxFuncX const &wxFuncXArray___getitem__(wxFuncXArray *self,int idx){ | |
1589 | if ( idx >= 0 && idx < self->size() ) | |
1590 | return (*self)[idx]; | |
1591 | else { | |
1592 | static wxFuncX BadVal; | |
1593 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1594 | return BadVal; | |
1595 | } | |
1596 | } | |
1597 | static bool wxPropXArray___nonzero__(wxPropXArray *self){ return self->size() > 0; } | |
1598 | static int wxPropXArray___len__(wxPropXArray *self){ return self->size(); } | |
1599 | static wxPropX const &wxPropXArray___getitem__(wxPropXArray *self,int idx){ | |
1600 | if ( idx >= 0 && idx < self->size() ) | |
1601 | return (*self)[idx]; | |
1602 | else { | |
1603 | static wxPropX BadVal; | |
1604 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1605 | return BadVal; | |
1606 | } | |
1607 | } | |
1608 | ||
1609 | // C++ version of a Python-aware wxActiveX | |
1610 | class wxActiveXWindow : public wxActiveX | |
1611 | { | |
1612 | private: | |
1613 | CLSID m_CLSID; | |
1614 | ||
1615 | DECLARE_ABSTRACT_CLASS(wxActiveXWindow); | |
1616 | ||
1617 | public: | |
1618 | wxActiveXWindow( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1, | |
1619 | const wxPoint& pos = wxDefaultPosition, | |
1620 | const wxSize& size = wxDefaultSize, | |
1621 | long style = 0, | |
1622 | const wxString& name = wxPyPanelNameStr) | |
1623 | : wxActiveX(parent, clsId, id, pos, size, style, name) | |
1624 | { | |
1625 | m_CLSID = clsId; | |
1626 | } | |
1627 | ||
1628 | const CLSID& GetCLSID() const { return m_CLSID; } | |
1629 | ||
1630 | ||
1631 | // Renamed versions of some base class methods that delegate | |
1632 | // to the base where appropriate, and raise Python exceptions | |
1633 | // when needed. | |
1634 | int GetAXEventCount() const { return wxActiveX::GetEventCount(); } | |
1635 | int GetAXPropCount() const { return wxActiveX::GetPropCount(); } | |
1636 | int GetAXMethodCount() const { return wxActiveX::GetMethodCount(); } | |
1637 | ||
1638 | const wxFuncX& GetAXEventDesc(int idx) const | |
1639 | { | |
1640 | static wxFuncX BadVal; | |
1641 | if (idx < 0 || idx >= GetAXEventCount()) { | |
1642 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1643 | return BadVal; | |
1644 | } | |
1645 | return m_events[idx]; | |
1646 | } | |
1647 | const wxFuncX& GetAXMethodDesc(int idx) const | |
1648 | { | |
1649 | static wxFuncX BadVal; | |
1650 | if (idx < 0 || idx >= GetAXMethodCount()) { | |
1651 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1652 | return BadVal; | |
1653 | } | |
1654 | return m_methods[idx]; | |
1655 | } | |
1656 | const wxPropX& GetAXPropDesc(int idx) const | |
1657 | { | |
1658 | static wxPropX BadVal; | |
1659 | if (idx < 0 || idx >= GetAXPropCount()) { | |
1660 | wxPyErr_SetString(PyExc_IndexError, "Index out of range"); | |
1661 | return BadVal; | |
1662 | } | |
1663 | return m_props[idx]; | |
1664 | } | |
1665 | ||
1666 | const wxFuncX& GetAXMethodDesc(const wxString& name) const | |
1667 | { | |
1668 | NameMap::const_iterator it = m_methodNames.find(name); | |
1669 | if (it == m_methodNames.end()) { | |
1670 | wxString msg; | |
1671 | msg << _T("method <") << name << _T("> not found"); | |
1672 | wxPyErr_SetString(PyExc_KeyError, msg.mb_str()); | |
1673 | static wxFuncX BadVal; | |
1674 | return BadVal; | |
1675 | }; | |
1676 | return GetAXMethodDesc(it->second); | |
1677 | } | |
1678 | const wxPropX& GetAXPropDesc(const wxString& name) const | |
1679 | { | |
1680 | NameMap::const_iterator it = m_propNames.find(name); | |
1681 | if (it == m_propNames.end()) { | |
1682 | wxString msg; | |
1683 | msg << _T("property <") << name << _T("> not found"); | |
1684 | wxPyErr_SetString(PyExc_KeyError, msg.mb_str()); | |
1685 | static wxPropX BadVal; | |
1686 | return BadVal; | |
1687 | }; | |
1688 | return GetAXPropDesc(it->second); | |
1689 | } | |
1690 | ||
1691 | // Accessors for the internal vectors of events, methods and | |
1692 | // proprties. Can be used as sequence like objects from | |
1693 | // Python. | |
1694 | const wxFuncXArray& GetAXEvents() { return m_events; } | |
1695 | const wxFuncXArray& GetAXMethods() { return m_methods; } | |
1696 | const wxPropXArray& GetAXProperties() { return m_props; } | |
1697 | ||
1698 | ||
1699 | // Set a property from a Python object | |
1700 | void SetAXProp(const wxString& name, PyObject* value) | |
1701 | { | |
1702 | const wxPropX& prop = GetAXPropDesc(name); | |
1703 | bool blocked = wxPyBeginBlockThreads(); | |
1704 | if (! PyErr_Occurred() ) { | |
1705 | if (! prop.CanSet()) { | |
1706 | wxString msg; | |
1707 | msg << _T("property <") << name << _T("> is readonly"); | |
1708 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1709 | goto done; | |
1710 | } else { | |
1711 | wxVariant wxV = _PyObj2Variant(value); | |
1712 | if (PyErr_Occurred()) | |
1713 | goto done; | |
1714 | VARIANT v = {prop.arg.vt}; | |
1715 | if (!VariantToMSWVariant(wxV, v) || PyErr_Occurred()) { | |
1716 | wxString msg; | |
1717 | msg << _T("Unable to convert value to expected type: (") | |
1718 | << _VARTYPEname(prop.arg.vt) << _T(") for property <") | |
1719 | << name << _T(">"); | |
1720 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1721 | goto done; | |
1722 | } | |
1723 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1724 | SetProp(prop.memid, v); | |
1725 | VariantClear(&v); | |
1726 | wxPyEndAllowThreads(tstate); | |
1727 | } | |
1728 | } | |
1729 | done: | |
1730 | wxPyEndBlockThreads(blocked); | |
1731 | } | |
1732 | ||
1733 | ||
1734 | // Get a property and convert it to a Python object | |
1735 | PyObject* GetAXProp(const wxString& name) | |
1736 | { | |
1737 | PyObject* rval = NULL; | |
1738 | const wxPropX& prop = GetAXPropDesc(name); | |
1739 | bool blocked = wxPyBeginBlockThreads(); | |
1740 | if (! PyErr_Occurred() ) { | |
1741 | if (! prop.CanGet()) { | |
1742 | wxString msg; | |
1743 | msg << _T("property <") << name << _T("> is writeonly"); | |
1744 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1745 | goto done; | |
1746 | } else { | |
1747 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1748 | VARIANT v = GetPropAsVariant(prop.memid); | |
1749 | wxPyEndAllowThreads(tstate); | |
1750 | wxVariant wv; | |
1751 | if (!MSWVariantToVariant(v, wv) || PyErr_Occurred()) { | |
1752 | wxString msg; | |
1753 | msg << _T("Unable to convert value to expected type: (") | |
1754 | << _VARTYPEname(prop.arg.vt) << _T(") for property <") | |
1755 | << name << _T(">"); | |
1756 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1757 | goto done; | |
1758 | } | |
1759 | rval = _Variant2PyObj(wv); | |
1760 | VariantClear(&v); | |
1761 | } | |
1762 | } | |
1763 | done: | |
1764 | wxPyEndBlockThreads(blocked); | |
1765 | return rval; | |
1766 | } | |
1767 | ||
1768 | ||
1769 | // If both IsIn and isOut are false, assume it is actually an | |
1770 | // input param | |
1771 | bool paramIsIn(const wxParamX& p) | |
1772 | { | |
1773 | return p.IsIn() || (!p.IsIn() && !p.IsOut()); | |
1774 | } | |
1775 | ||
1776 | ||
1777 | // Call a method of the ActiveX object | |
1778 | PyObject* _CallAXMethod(const wxString& name, PyObject* args) | |
1779 | { | |
1780 | VARIANTARG *vargs = NULL; | |
1781 | int nargs = 0; | |
1782 | PyObject* rval = NULL; | |
1783 | const wxFuncX& func = GetAXMethodDesc(name); | |
1784 | ||
1785 | bool blocked = wxPyBeginBlockThreads(); | |
1786 | if (! PyErr_Occurred() ) { | |
1787 | nargs = func.params.size(); | |
1788 | if (nargs > 0) | |
1789 | vargs = new VARIANTARG[nargs]; | |
1790 | ||
1791 | if (vargs) { | |
1792 | // init type of vargs, in reverse order | |
1793 | int i; | |
1794 | for (i = 0; i < nargs; i++) | |
1795 | vargs[nargs - i - 1].vt = func.params[i].vt; | |
1796 | ||
1797 | // Map the args coming from Python to the input parameters in vargs | |
1798 | int pi = 0; | |
1799 | i = 0; | |
1800 | while ( i<nargs && pi<PyTuple_Size(args) ) { | |
1801 | // Move to the next input param. | |
1802 | if (! paramIsIn(func.params[i])) { | |
1803 | i += 1; | |
1804 | continue; | |
1805 | } | |
1806 | // convert the python object | |
1807 | PyObject* obj = PyTuple_GetItem(args, pi); | |
1808 | if (obj == Py_None) // special-case None? | |
1809 | vargs[nargs - i - 1].vt = VT_EMPTY; | |
1810 | else { | |
1811 | wxVariant wxV = _PyObj2Variant(obj); | |
1812 | if (PyErr_Occurred()) | |
1813 | goto done; | |
1814 | if (!VariantToMSWVariant(wxV, vargs[nargs - i - 1]) || PyErr_Occurred()) { | |
1815 | wxString msg; | |
1816 | msg << _T("Unable to convert value to expected type: (") | |
1817 | << _VARTYPEname(vargs[nargs - i - 1].vt) | |
1818 | << _T(") for parameter ") << i; | |
1819 | PyErr_SetString(PyExc_TypeError, msg.mb_str()); | |
1820 | goto done; | |
1821 | } | |
1822 | } | |
1823 | i += 1; | |
1824 | pi += 1; | |
1825 | } | |
1826 | } | |
1827 | ||
1828 | // call the method | |
1829 | PyThreadState* tstate = wxPyBeginAllowThreads(); | |
1830 | VARIANT rv = CallMethod(func.memid, vargs, nargs); | |
1831 | wxPyEndAllowThreads(tstate); | |
1832 | ||
1833 | // Convert the return value and any out-params, ignoring | |
1834 | // conversion errors for now | |
1835 | wxVariant wv; | |
1836 | MSWVariantToVariant(rv, wv); | |
1837 | rval = _Variant2PyObj(wv, true); | |
1838 | VariantClear(&rv); | |
1839 | ||
1840 | if (func.hasOut) { | |
1841 | // make a list and put the rval in it if it is not None | |
1842 | PyObject* lst = PyList_New(0); | |
1843 | if (rval != Py_None) | |
1844 | PyList_Append(lst, rval); | |
1845 | else | |
1846 | Py_DECREF(rval); | |
1847 | ||
1848 | // find the out params and convert them | |
1849 | for (int i = 0; i < nargs; i++) { | |
1850 | VARIANTARG& va = vargs[nargs - i - 1]; | |
1851 | const wxParamX &px = func.params[i]; | |
1852 | if (px.IsOut()) { | |
1853 | MSWVariantToVariant(va, wv); | |
1854 | PyObject* obj = _Variant2PyObj(wv, true); | |
1855 | PyList_Append(lst, obj); | |
1856 | } | |
1857 | } | |
1858 | rval = PyList_AsTuple(lst); | |
1859 | Py_DECREF(lst); | |
1860 | } | |
1861 | if (PyErr_Occurred()) | |
1862 | PyErr_Clear(); | |
1863 | } | |
1864 | done: | |
1865 | wxPyEndBlockThreads(blocked); | |
1866 | if (vargs) { | |
1867 | for (int i = 0; i < nargs; i++) | |
1868 | VariantClear(&vargs[i]); | |
1869 | delete [] vargs; | |
1870 | } | |
1871 | return rval; | |
1872 | } | |
1873 | }; | |
1874 | ||
1875 | IMPLEMENT_ABSTRACT_CLASS( wxActiveXWindow, wxWindow ); | |
1876 | ||
1877 | ||
1878 | SWIGINTERNSHORT long | |
1879 | SWIG_As_long(PyObject* obj) | |
1880 | { | |
1881 | long v; | |
1882 | if (!SWIG_AsVal_long(obj, &v)) { | |
1883 | /* | |
1884 | this is needed to make valgrind/purify happier. | |
1885 | */ | |
1886 | memset((void*)&v, 0, sizeof(long)); | |
1887 | } | |
1888 | return v; | |
1889 | } | |
1890 | ||
1891 | ||
1892 | SWIGINTERNSHORT int | |
1893 | SWIG_Check_long(PyObject* obj) | |
1894 | { | |
1895 | return SWIG_AsVal_long(obj, (long*)0); | |
1896 | } | |
1897 | ||
1898 | static void wxActiveXEvent__preCallInit(wxActiveXEvent *self,PyObject *pyself){ | |
1899 | bool blocked = wxPyBeginBlockThreads(); | |
1900 | PyObject* pList = PyList_New(0); | |
1901 | PyObject_SetAttrString(pyself, "paramList", pList); | |
1902 | Py_DECREF(pList); | |
1903 | for (int i=0; i<self->ParamCount(); i+=1) { | |
1904 | PyObject* name = PyString_FromString((char*)(const char*)self->ParamName(i).mb_str()); | |
1905 | PyObject* val = _Variant2PyObj((*self)[i], true); | |
1906 | PyObject_SetAttr(pyself, name, val); | |
1907 | PyList_Append(pList, name); | |
1908 | Py_DECREF(val); | |
1909 | Py_DECREF(name); | |
1910 | } | |
1911 | wxPyEndBlockThreads(blocked); | |
1912 | } | |
1913 | static void wxActiveXEvent__postCallCleanup(wxActiveXEvent *self,PyObject *pyself){ | |
1914 | bool blocked = wxPyBeginBlockThreads(); | |
1915 | for (int i=0; i<self->ParamCount(); i+=1) { | |
1916 | PyObject* val = PyObject_GetAttrString( | |
1917 | pyself, (char*)(const char*)self->ParamName(i).mb_str()); | |
1918 | _PyObj2Variant(val, (*self)[i]); | |
1919 | Py_DECREF(val); | |
1920 | } | |
1921 | wxPyEndBlockThreads(blocked); | |
1922 | } | |
1923 | ||
1924 | ||
1925 | // Caller should already have the GIL! | |
1926 | wxVariant _PyObj2Variant(PyObject* value) | |
1927 | { | |
1928 | wxVariant rval; | |
1929 | ||
1930 | if (value == Py_None) | |
1931 | return rval; | |
1932 | ||
1933 | #if PYTHON_API_VERSION >= 1012 // Python 2.3+ | |
1934 | else if (PyBool_Check(value)) | |
1935 | rval = (value == Py_True) ? true : false; | |
1936 | #endif | |
1937 | ||
1938 | else if (PyInt_Check(value)) | |
1939 | rval = PyInt_AS_LONG(value); | |
1940 | ||
1941 | else if (PyFloat_Check(value)) | |
1942 | rval = PyFloat_AS_DOUBLE(value); | |
1943 | ||
1944 | else if (PyString_Check(value) || PyUnicode_Check(value)) | |
1945 | rval = Py2wxString(value); | |
1946 | ||
1947 | // TODO: PyList of strings --> wxArrayString | |
1948 | // wxDateTime | |
1949 | // list of objects | |
1950 | // etc. | |
1951 | ||
1952 | else { | |
1953 | PyErr_SetString(PyExc_TypeError, "Unsupported object type in _PyObj2Variant"); | |
1954 | rval = (long)0; | |
1955 | } | |
1956 | ||
1957 | return rval; | |
1958 | } | |
1959 | ||
1960 | // This one uses the type of the variant to try and force the conversion | |
1961 | bool _PyObj2Variant(PyObject* value, wxVariant& wv) | |
1962 | { | |
1963 | wxString type = wv.GetType(); | |
1964 | ||
1965 | if ( type == _T("long") || type == _T("bool") || type == _T("char") ) | |
1966 | wv = PyInt_AsLong(value); | |
1967 | ||
1968 | else if ( type == _T("string") ) | |
1969 | wv = Py2wxString(value); | |
1970 | ||
1971 | else if ( type == _T("double") ) | |
1972 | wv = PyFloat_AsDouble(value); | |
1973 | ||
1974 | else { | |
1975 | // it's some other type that we dont' handle yet. Log it? | |
1976 | return false; | |
1977 | } | |
1978 | return true; | |
1979 | } | |
1980 | ||
1981 | // Caller should already have the GIL! | |
1982 | PyObject* _Variant2PyObj(wxVariant& value, bool useNone) | |
1983 | { | |
1984 | PyObject* rval = NULL; | |
1985 | ||
1986 | if (value.IsNull()) { | |
1987 | rval = Py_None; | |
1988 | Py_INCREF(rval); | |
1989 | } | |
1990 | ||
1991 | // should "char" be treated as an int or as a string? | |
1992 | else if (value.IsType(_T("char")) || value.IsType(_T("long"))) | |
1993 | rval = PyInt_FromLong(value); | |
1994 | ||
1995 | else if (value.IsType(_T("double"))) | |
1996 | rval = PyFloat_FromDouble(value); | |
1997 | ||
1998 | else if (value.IsType(_T("bool"))) { | |
1999 | rval = (bool)value ? Py_True : Py_False; | |
2000 | Py_INCREF(rval); | |
2001 | } | |
2002 | ||
2003 | else if (value.IsType(_T("string"))) | |
2004 | rval = wx2PyString(value); | |
2005 | ||
2006 | else { | |
2007 | if (useNone) { | |
2008 | rval = Py_None; | |
2009 | Py_INCREF(rval); | |
2010 | } | |
2011 | else { | |
2012 | PyErr_SetString(PyExc_TypeError, "Unsupported object type in _Variant2PyObj"); | |
2013 | } | |
2014 | } | |
2015 | return rval; | |
2016 | } | |
2017 | ||
2018 | ||
2019 | wxString _VARTYPEname(VARTYPE vt) | |
2020 | { | |
2021 | if (vt & VT_BYREF) | |
2022 | vt &= ~(VT_BYREF); | |
2023 | ||
2024 | switch(vt) { | |
2025 | case VT_VARIANT: | |
2026 | return _T("VT_VARIANT"); | |
2027 | ||
2028 | // 1 byte chars | |
2029 | case VT_I1: | |
2030 | case VT_UI1: | |
2031 | // 2 byte shorts | |
2032 | case VT_I2: | |
2033 | case VT_UI2: | |
2034 | // 4 bytes longs | |
2035 | case VT_I4: | |
2036 | case VT_UI4: | |
2037 | case VT_INT: | |
2038 | case VT_UINT: | |
2039 | case VT_ERROR: | |
2040 | return _T("int"); | |
2041 | ||
2042 | // 4 byte floats | |
2043 | case VT_R4: | |
2044 | // 8 byte doubles | |
2045 | case VT_R8: | |
2046 | // decimals are converted from doubles too | |
2047 | case VT_DECIMAL: | |
2048 | return _T("double"); | |
2049 | ||
2050 | case VT_BOOL: | |
2051 | return _T("bool"); | |
2052 | ||
2053 | case VT_DATE: | |
2054 | return _T("wx.DateTime"); | |
2055 | ||
2056 | case VT_BSTR: | |
2057 | return _T("string"); | |
2058 | ||
2059 | case VT_UNKNOWN: | |
2060 | return _T("VT_UNKNOWN"); | |
2061 | ||
2062 | case VT_DISPATCH: | |
2063 | return _T("VT_DISPATCH"); | |
2064 | ||
2065 | case VT_EMPTY: | |
2066 | return _T("VT_EMPTY"); | |
2067 | ||
2068 | case VT_NULL: | |
2069 | return _T("VT_NULL"); | |
2070 | ||
2071 | case VT_VOID: | |
2072 | return _T("VT_VOID"); | |
2073 | ||
2074 | default: | |
2075 | wxString msg; | |
2076 | msg << _T("unsupported type ") << vt; | |
2077 | return msg; | |
2078 | } | |
2079 | } | |
2080 | ||
2081 | ||
2082 | ||
2083 | // A class derived from out wxActiveXWindow for the IE WebBrowser | |
2084 | // control that will serve as a base class for a Python | |
2085 | // implementation. This is done so we can "eat our own dog food" | |
2086 | // and use a class at least mostly generated by genaxmodule, but | |
2087 | // also get some of the extra stuff like loading a document from | |
2088 | // a string or a stream, getting text contents, etc. that | |
2089 | // Lindsay's version gives us. | |
2090 | // | |
2091 | ||
2092 | #include <wx/mstream.h> | |
2093 | #include <oleidl.h> | |
2094 | #include <winerror.h> | |
2095 | #include <exdispid.h> | |
2096 | #include <exdisp.h> | |
2097 | #include <olectl.h> | |
2098 | #include <Mshtml.h> | |
2099 | #include <sstream> | |
2100 | ||
2101 | #include "IEHtmlStream.h" | |
2102 | ||
2103 | class wxIEHtmlWindowBase : public wxActiveXWindow { | |
2104 | private: | |
2105 | wxAutoOleInterface<IWebBrowser2> m_webBrowser; | |
2106 | ||
2107 | DECLARE_ABSTRACT_CLASS(wxIEHtmlWindowBase); | |
2108 | ||
2109 | public: | |
2110 | ||
2111 | wxIEHtmlWindowBase ( wxWindow* parent, const CLSID& clsId, wxWindowID id = -1, | |
2112 | const wxPoint& pos = wxDefaultPosition, | |
2113 | const wxSize& size = wxDefaultSize, | |
2114 | long style = 0, | |
2115 | const wxString& name = wxPyPanelNameStr) | |
2116 | : wxActiveXWindow(parent, clsId, id, pos, size, style, name) | |
2117 | { | |
2118 | HRESULT hret; | |
2119 | ||
2120 | // Get IWebBrowser2 Interface | |
2121 | hret = m_webBrowser.QueryInterface(IID_IWebBrowser2, m_ActiveX); | |
2122 | wxASSERT(SUCCEEDED(hret)); | |
2123 | ||
2124 | // web browser setup | |
2125 | m_webBrowser->put_MenuBar(VARIANT_FALSE); | |
2126 | m_webBrowser->put_AddressBar(VARIANT_FALSE); | |
2127 | m_webBrowser->put_StatusBar(VARIANT_FALSE); | |
2128 | m_webBrowser->put_ToolBar(VARIANT_FALSE); | |
2129 | ||
2130 | m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE); | |
2131 | m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE); | |
2132 | ||
2133 | m_webBrowser->Navigate( L"about:blank", NULL, NULL, NULL, NULL ); | |
2134 | } | |
2135 | ||
2136 | ||
2137 | void SetCharset(const wxString& charset) | |
2138 | { | |
2139 | HRESULT hret; | |
2140 | ||
2141 | // HTML Document ? | |
2142 | IDispatch *pDisp = NULL; | |
2143 | hret = m_webBrowser->get_Document(&pDisp); | |
2144 | wxAutoOleInterface<IDispatch> disp(pDisp); | |
2145 | ||
2146 | if (disp.Ok()) | |
2147 | { | |
2148 | wxAutoOleInterface<IHTMLDocument2> doc(IID_IHTMLDocument2, disp); | |
2149 | if (doc.Ok()) | |
2150 | doc->put_charset((BSTR) (const wchar_t *) charset.wc_str(wxConvUTF8)); | |
2151 | //doc->put_charset((BSTR) wxConvUTF8.cMB2WC(charset).data()); | |
2152 | } | |
2153 | } | |
2154 | ||
2155 | ||
2156 | bool LoadString(const wxString& html) | |
2157 | { | |
2158 | char *data = NULL; | |
2159 | size_t len = html.length(); | |
2160 | len *= sizeof(wxChar); | |
2161 | data = (char *) malloc(len); | |
2162 | memcpy(data, html.c_str(), len); | |
2163 | return LoadStream(new wxOwnedMemInputStream(data, len)); | |
2164 | } | |
2165 | ||
2166 | ||
2167 | bool LoadStream(IStreamAdaptorBase *pstrm) | |
2168 | { | |
2169 | // need to prepend this as poxy MSHTML will not recognise a HTML comment | |
2170 | // as starting a html document and treats it as plain text | |
2171 | // Does nayone know how to force it to html mode ? | |
2172 | #if wxUSE_UNICODE | |
2173 | // TODO: What to do in this case??? | |
2174 | #else | |
2175 | pstrm->prepend = _T("<html>"); | |
2176 | #endif | |
2177 | ||
2178 | // strip leading whitespace as it can confuse MSHTML | |
2179 | wxAutoOleInterface<IStream> strm(pstrm); | |
2180 | ||
2181 | // Document Interface | |
2182 | IDispatch *pDisp = NULL; | |
2183 | HRESULT hret = m_webBrowser->get_Document(&pDisp); | |
2184 | if (! pDisp) | |
2185 | return false; | |
2186 | wxAutoOleInterface<IDispatch> disp(pDisp); | |
2187 | ||
2188 | ||
2189 | // get IPersistStreamInit | |
2190 | wxAutoOleInterface<IPersistStreamInit> | |
2191 | pPersistStreamInit(IID_IPersistStreamInit, disp); | |
2192 | ||
2193 | if (pPersistStreamInit.Ok()) | |
2194 | { | |
2195 | HRESULT hr = pPersistStreamInit->InitNew(); | |
2196 | if (SUCCEEDED(hr)) | |
2197 | hr = pPersistStreamInit->Load(strm); | |
2198 | ||
2199 | return SUCCEEDED(hr); | |
2200 | } | |
2201 | else | |
2202 | return false; | |
2203 | } | |
2204 | ||
2205 | bool LoadStream(wxInputStream *is) | |
2206 | { | |
2207 | // wrap reference around stream | |
2208 | IwxStreamAdaptor *pstrm = new IwxStreamAdaptor(is); | |
2209 | pstrm->AddRef(); | |
2210 | ||
2211 | return LoadStream(pstrm); | |
2212 | } | |
2213 | ||
2214 | ||
2215 | wxString GetStringSelection(bool asHTML) | |
2216 | { | |
2217 | wxAutoOleInterface<IHTMLTxtRange> tr(wxieGetSelRange(m_oleObject)); | |
2218 | if (! tr) | |
2219 | return wxEmptyString; | |
2220 | ||
2221 | BSTR text = NULL; | |
2222 | HRESULT hr = E_FAIL; | |
2223 | ||
2224 | if (asHTML) | |
2225 | hr = tr->get_htmlText(&text); | |
2226 | else | |
2227 | hr = tr->get_text(&text); | |
2228 | if (hr != S_OK) | |
2229 | return wxEmptyString; | |
2230 | ||
2231 | wxString s = text; | |
2232 | SysFreeString(text); | |
2233 | ||
2234 | return s; | |
2235 | }; | |
2236 | ||
2237 | wxString GetText(bool asHTML) | |
2238 | { | |
2239 | if (! m_webBrowser.Ok()) | |
2240 | return wxEmptyString; | |
2241 | ||
2242 | // get document dispatch interface | |
2243 | IDispatch *iDisp = NULL; | |
2244 | HRESULT hr = m_webBrowser->get_Document(&iDisp); | |
2245 | if (hr != S_OK) | |
2246 | return wxEmptyString; | |
2247 | ||
2248 | // Query for Document Interface | |
2249 | wxAutoOleInterface<IHTMLDocument2> hd(IID_IHTMLDocument2, iDisp); | |
2250 | iDisp->Release(); | |
2251 | ||
2252 | if (! hd.Ok()) | |
2253 | return wxEmptyString; | |
2254 | ||
2255 | // get body element | |
2256 | IHTMLElement *_body = NULL; | |
2257 | hd->get_body(&_body); | |
2258 | if (! _body) | |
2259 | return wxEmptyString; | |
2260 | wxAutoOleInterface<IHTMLElement> body(_body); | |
2261 | ||
2262 | // get inner text | |
2263 | BSTR text = NULL; | |
2264 | hr = E_FAIL; | |
2265 | ||
2266 | if (asHTML) | |
2267 | hr = body->get_innerHTML(&text); | |
2268 | else | |
2269 | hr = body->get_innerText(&text); | |
2270 | if (hr != S_OK) | |
2271 | return wxEmptyString; | |
2272 | ||
2273 | wxString s = text; | |
2274 | SysFreeString(text); | |
2275 | ||
2276 | return s; | |
2277 | } | |
2278 | ||
2279 | ||
2280 | // void wxIEHtmlWin::SetEditMode(bool seton) | |
2281 | // { | |
2282 | // m_bAmbientUserMode = ! seton; | |
2283 | // AmbientPropertyChanged(DISPID_AMBIENT_USERMODE); | |
2284 | // }; | |
2285 | ||
2286 | // bool wxIEHtmlWin::GetEditMode() | |
2287 | // { | |
2288 | // return ! m_bAmbientUserMode; | |
2289 | // }; | |
2290 | }; | |
2291 | ||
2292 | IMPLEMENT_ABSTRACT_CLASS( wxIEHtmlWindowBase, wxActiveXWindow ); | |
2293 | ||
2294 | ||
2295 | ||
2296 | SWIGINTERN int | |
2297 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
2298 | { | |
2299 | if (obj == Py_True) { | |
2300 | if (val) *val = true; | |
2301 | return 1; | |
2302 | } | |
2303 | if (obj == Py_False) { | |
2304 | if (val) *val = false; | |
2305 | return 1; | |
2306 | } | |
2307 | int res = 0; | |
2308 | if (SWIG_AsVal_int(obj, &res)) { | |
2309 | if (val) *val = res ? true : false; | |
2310 | return 1; | |
2311 | } else { | |
2312 | PyErr_Clear(); | |
2313 | } | |
2314 | if (val) { | |
2315 | SWIG_type_error("bool", obj); | |
2316 | } | |
2317 | return 0; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | SWIGINTERNSHORT bool | |
2322 | SWIG_As_bool(PyObject* obj) | |
2323 | { | |
2324 | bool v; | |
2325 | if (!SWIG_AsVal_bool(obj, &v)) { | |
2326 | /* | |
2327 | this is needed to make valgrind/purify happier. | |
2328 | */ | |
2329 | memset((void*)&v, 0, sizeof(bool)); | |
2330 | } | |
2331 | return v; | |
2332 | } | |
2333 | ||
2334 | ||
2335 | SWIGINTERNSHORT int | |
2336 | SWIG_Check_bool(PyObject* obj) | |
2337 | { | |
2338 | return SWIG_AsVal_bool(obj, (bool*)0); | |
2339 | } | |
2340 | ||
2341 | #ifdef __cplusplus | |
2342 | extern "C" { | |
2343 | #endif | |
2344 | static PyObject *_wrap_new_CLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
2345 | PyObject *resultobj; | |
2346 | wxString *arg1 = 0 ; | |
2347 | CLSID *result; | |
2348 | bool temp1 = false ; | |
2349 | PyObject * obj0 = 0 ; | |
2350 | char *kwnames[] = { | |
2351 | (char *) "id", NULL | |
2352 | }; | |
2353 | ||
2354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CLSID",kwnames,&obj0)) goto fail; | |
2355 | { | |
2356 | arg1 = wxString_in_helper(obj0); | |
2357 | if (arg1 == NULL) SWIG_fail; | |
2358 | temp1 = true; | |
2359 | } | |
2360 | { | |
2361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2362 | result = (CLSID *)new_CLSID((wxString const &)*arg1); | |
2363 | ||
2364 | wxPyEndAllowThreads(__tstate); | |
2365 | if (PyErr_Occurred()) SWIG_fail; | |
2366 | } | |
2367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 1); | |
2368 | { | |
2369 | if (temp1) | |
2370 | delete arg1; | |
2371 | } | |
2372 | return resultobj; | |
2373 | fail: | |
2374 | { | |
2375 | if (temp1) | |
2376 | delete arg1; | |
2377 | } | |
2378 | return NULL; | |
2379 | } | |
2380 | ||
2381 | ||
2382 | static PyObject *_wrap_delete_CLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
2383 | PyObject *resultobj; | |
2384 | CLSID *arg1 = (CLSID *) 0 ; | |
2385 | PyObject * obj0 = 0 ; | |
2386 | char *kwnames[] = { | |
2387 | (char *) "self", NULL | |
2388 | }; | |
2389 | ||
2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_CLSID",kwnames,&obj0)) goto fail; | |
2391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2393 | { | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | delete_CLSID(arg1); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | Py_INCREF(Py_None); resultobj = Py_None; | |
2401 | return resultobj; | |
2402 | fail: | |
2403 | return NULL; | |
2404 | } | |
2405 | ||
2406 | ||
2407 | static PyObject *_wrap_CLSID_GetCLSIDString(PyObject *, PyObject *args, PyObject *kwargs) { | |
2408 | PyObject *resultobj; | |
2409 | CLSID *arg1 = (CLSID *) 0 ; | |
2410 | wxString result; | |
2411 | PyObject * obj0 = 0 ; | |
2412 | char *kwnames[] = { | |
2413 | (char *) "self", NULL | |
2414 | }; | |
2415 | ||
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetCLSIDString",kwnames,&obj0)) goto fail; | |
2417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2419 | { | |
2420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2421 | result = CLSID_GetCLSIDString(arg1); | |
2422 | ||
2423 | wxPyEndAllowThreads(__tstate); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
2425 | } | |
2426 | { | |
2427 | #if wxUSE_UNICODE | |
2428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2429 | #else | |
2430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2431 | #endif | |
2432 | } | |
2433 | return resultobj; | |
2434 | fail: | |
2435 | return NULL; | |
2436 | } | |
2437 | ||
2438 | ||
2439 | static PyObject *_wrap_CLSID_GetProgIDString(PyObject *, PyObject *args, PyObject *kwargs) { | |
2440 | PyObject *resultobj; | |
2441 | CLSID *arg1 = (CLSID *) 0 ; | |
2442 | wxString result; | |
2443 | PyObject * obj0 = 0 ; | |
2444 | char *kwnames[] = { | |
2445 | (char *) "self", NULL | |
2446 | }; | |
2447 | ||
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CLSID_GetProgIDString",kwnames,&obj0)) goto fail; | |
2449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
2450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2451 | { | |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2453 | result = CLSID_GetProgIDString(arg1); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
2457 | } | |
2458 | { | |
2459 | #if wxUSE_UNICODE | |
2460 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2461 | #else | |
2462 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2463 | #endif | |
2464 | } | |
2465 | return resultobj; | |
2466 | fail: | |
2467 | return NULL; | |
2468 | } | |
2469 | ||
2470 | ||
2471 | static PyObject * CLSID_swigregister(PyObject *, PyObject *args) { | |
2472 | PyObject *obj; | |
2473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2474 | SWIG_TypeClientData(SWIGTYPE_p_CLSID, obj); | |
2475 | Py_INCREF(obj); | |
2476 | return Py_BuildValue((char *)""); | |
2477 | } | |
2478 | static PyObject *_wrap_ParamX_flags_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject *resultobj; | |
2480 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2481 | USHORT result; | |
2482 | PyObject * obj0 = 0 ; | |
2483 | char *kwnames[] = { | |
2484 | (char *) "self", NULL | |
2485 | }; | |
2486 | ||
2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_flags_get",kwnames,&obj0)) goto fail; | |
2488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2490 | result = (USHORT) ((arg1)->flags); | |
2491 | ||
2492 | { | |
2493 | resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result)); | |
2494 | } | |
2495 | return resultobj; | |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
2501 | static PyObject *_wrap_ParamX_isPtr_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject *resultobj; | |
2503 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2504 | bool result; | |
2505 | PyObject * obj0 = 0 ; | |
2506 | char *kwnames[] = { | |
2507 | (char *) "self", NULL | |
2508 | }; | |
2509 | ||
2510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isPtr_get",kwnames,&obj0)) goto fail; | |
2511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2513 | result = (bool) ((arg1)->isPtr); | |
2514 | ||
2515 | { | |
2516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2517 | } | |
2518 | return resultobj; | |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_ParamX_isSafeArray_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2527 | bool result; | |
2528 | PyObject * obj0 = 0 ; | |
2529 | char *kwnames[] = { | |
2530 | (char *) "self", NULL | |
2531 | }; | |
2532 | ||
2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isSafeArray_get",kwnames,&obj0)) goto fail; | |
2534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2536 | result = (bool) ((arg1)->isSafeArray); | |
2537 | ||
2538 | { | |
2539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2540 | } | |
2541 | return resultobj; | |
2542 | fail: | |
2543 | return NULL; | |
2544 | } | |
2545 | ||
2546 | ||
2547 | static PyObject *_wrap_ParamX_isOptional_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2548 | PyObject *resultobj; | |
2549 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2550 | bool result; | |
2551 | PyObject * obj0 = 0 ; | |
2552 | char *kwnames[] = { | |
2553 | (char *) "self", NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_isOptional_get",kwnames,&obj0)) goto fail; | |
2557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2559 | result = (bool) ((arg1)->isOptional); | |
2560 | ||
2561 | { | |
2562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2563 | } | |
2564 | return resultobj; | |
2565 | fail: | |
2566 | return NULL; | |
2567 | } | |
2568 | ||
2569 | ||
2570 | static PyObject *_wrap_ParamX_vt_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2571 | PyObject *resultobj; | |
2572 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2573 | VARTYPE result; | |
2574 | PyObject * obj0 = 0 ; | |
2575 | char *kwnames[] = { | |
2576 | (char *) "self", NULL | |
2577 | }; | |
2578 | ||
2579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_get",kwnames,&obj0)) goto fail; | |
2580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2582 | result = (VARTYPE) ((arg1)->vt); | |
2583 | ||
2584 | { | |
2585 | resultobj = SWIG_From_unsigned_SS_short((unsigned short)(result)); | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
2593 | static PyObject *_wrap_ParamX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2594 | PyObject *resultobj; | |
2595 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2596 | wxString *result; | |
2597 | PyObject * obj0 = 0 ; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "self", NULL | |
2600 | }; | |
2601 | ||
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_name_get",kwnames,&obj0)) goto fail; | |
2603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2605 | result = (wxString *)& ((arg1)->name); | |
2606 | ||
2607 | { | |
2608 | #if wxUSE_UNICODE | |
2609 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
2610 | #else | |
2611 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
2612 | #endif | |
2613 | } | |
2614 | return resultobj; | |
2615 | fail: | |
2616 | return NULL; | |
2617 | } | |
2618 | ||
2619 | ||
2620 | static PyObject *_wrap_ParamX_vt_type_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2621 | PyObject *resultobj; | |
2622 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2623 | wxString result; | |
2624 | PyObject * obj0 = 0 ; | |
2625 | char *kwnames[] = { | |
2626 | (char *) "self", NULL | |
2627 | }; | |
2628 | ||
2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_vt_type_get",kwnames,&obj0)) goto fail; | |
2630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2632 | { | |
2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2634 | result = wxParamX_vt_type_get(arg1); | |
2635 | ||
2636 | wxPyEndAllowThreads(__tstate); | |
2637 | if (PyErr_Occurred()) SWIG_fail; | |
2638 | } | |
2639 | { | |
2640 | #if wxUSE_UNICODE | |
2641 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2642 | #else | |
2643 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2644 | #endif | |
2645 | } | |
2646 | return resultobj; | |
2647 | fail: | |
2648 | return NULL; | |
2649 | } | |
2650 | ||
2651 | ||
2652 | static PyObject *_wrap_ParamX_IsIn(PyObject *, PyObject *args, PyObject *kwargs) { | |
2653 | PyObject *resultobj; | |
2654 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2655 | bool result; | |
2656 | PyObject * obj0 = 0 ; | |
2657 | char *kwnames[] = { | |
2658 | (char *) "self", NULL | |
2659 | }; | |
2660 | ||
2661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsIn",kwnames,&obj0)) goto fail; | |
2662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2664 | { | |
2665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2666 | result = (bool)((wxParamX const *)arg1)->IsIn(); | |
2667 | ||
2668 | wxPyEndAllowThreads(__tstate); | |
2669 | if (PyErr_Occurred()) SWIG_fail; | |
2670 | } | |
2671 | { | |
2672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2673 | } | |
2674 | return resultobj; | |
2675 | fail: | |
2676 | return NULL; | |
2677 | } | |
2678 | ||
2679 | ||
2680 | static PyObject *_wrap_ParamX_IsOut(PyObject *, PyObject *args, PyObject *kwargs) { | |
2681 | PyObject *resultobj; | |
2682 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2683 | bool result; | |
2684 | PyObject * obj0 = 0 ; | |
2685 | char *kwnames[] = { | |
2686 | (char *) "self", NULL | |
2687 | }; | |
2688 | ||
2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsOut",kwnames,&obj0)) goto fail; | |
2690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2692 | { | |
2693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2694 | result = (bool)((wxParamX const *)arg1)->IsOut(); | |
2695 | ||
2696 | wxPyEndAllowThreads(__tstate); | |
2697 | if (PyErr_Occurred()) SWIG_fail; | |
2698 | } | |
2699 | { | |
2700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2701 | } | |
2702 | return resultobj; | |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
2708 | static PyObject *_wrap_ParamX_IsRetVal(PyObject *, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject *resultobj; | |
2710 | wxParamX *arg1 = (wxParamX *) 0 ; | |
2711 | bool result; | |
2712 | PyObject * obj0 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamX_IsRetVal",kwnames,&obj0)) goto fail; | |
2718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamX, SWIG_POINTER_EXCEPTION | 0); | |
2719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (bool)((wxParamX const *)arg1)->IsRetVal(); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2729 | } | |
2730 | return resultobj; | |
2731 | fail: | |
2732 | return NULL; | |
2733 | } | |
2734 | ||
2735 | ||
2736 | static PyObject * ParamX_swigregister(PyObject *, PyObject *args) { | |
2737 | PyObject *obj; | |
2738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2739 | SWIG_TypeClientData(SWIGTYPE_p_wxParamX, obj); | |
2740 | Py_INCREF(obj); | |
2741 | return Py_BuildValue((char *)""); | |
2742 | } | |
2743 | static PyObject *_wrap_FuncX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2744 | PyObject *resultobj; | |
2745 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2746 | wxString *result; | |
2747 | PyObject * obj0 = 0 ; | |
2748 | char *kwnames[] = { | |
2749 | (char *) "self", NULL | |
2750 | }; | |
2751 | ||
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_name_get",kwnames,&obj0)) goto fail; | |
2753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2755 | result = (wxString *)& ((arg1)->name); | |
2756 | ||
2757 | { | |
2758 | #if wxUSE_UNICODE | |
2759 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
2760 | #else | |
2761 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
2762 | #endif | |
2763 | } | |
2764 | return resultobj; | |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
2770 | static PyObject *_wrap_FuncX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2771 | PyObject *resultobj; | |
2772 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2773 | MEMBERID result; | |
2774 | PyObject * obj0 = 0 ; | |
2775 | char *kwnames[] = { | |
2776 | (char *) "self", NULL | |
2777 | }; | |
2778 | ||
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_memid_get",kwnames,&obj0)) goto fail; | |
2780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2782 | result = (MEMBERID) ((arg1)->memid); | |
2783 | ||
2784 | { | |
2785 | resultobj = SWIG_From_long((long)(result)); | |
2786 | } | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | return NULL; | |
2790 | } | |
2791 | ||
2792 | ||
2793 | static PyObject *_wrap_FuncX_hasOut_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2794 | PyObject *resultobj; | |
2795 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2796 | bool result; | |
2797 | PyObject * obj0 = 0 ; | |
2798 | char *kwnames[] = { | |
2799 | (char *) "self", NULL | |
2800 | }; | |
2801 | ||
2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_hasOut_get",kwnames,&obj0)) goto fail; | |
2803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2805 | result = (bool) ((arg1)->hasOut); | |
2806 | ||
2807 | { | |
2808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2809 | } | |
2810 | return resultobj; | |
2811 | fail: | |
2812 | return NULL; | |
2813 | } | |
2814 | ||
2815 | ||
2816 | static PyObject *_wrap_FuncX_retType_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2817 | PyObject *resultobj; | |
2818 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2819 | wxParamX *result; | |
2820 | PyObject * obj0 = 0 ; | |
2821 | char *kwnames[] = { | |
2822 | (char *) "self", NULL | |
2823 | }; | |
2824 | ||
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_retType_get",kwnames,&obj0)) goto fail; | |
2826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2828 | result = (wxParamX *)& ((arg1)->retType); | |
2829 | ||
2830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
2831 | return resultobj; | |
2832 | fail: | |
2833 | return NULL; | |
2834 | } | |
2835 | ||
2836 | ||
2837 | static PyObject *_wrap_FuncX_params_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2838 | PyObject *resultobj; | |
2839 | wxFuncX *arg1 = (wxFuncX *) 0 ; | |
2840 | wxParamXArray *result; | |
2841 | PyObject * obj0 = 0 ; | |
2842 | char *kwnames[] = { | |
2843 | (char *) "self", NULL | |
2844 | }; | |
2845 | ||
2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncX_params_get",kwnames,&obj0)) goto fail; | |
2847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncX, SWIG_POINTER_EXCEPTION | 0); | |
2848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2849 | result = (wxParamXArray *)& ((arg1)->params); | |
2850 | ||
2851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamXArray, 0); | |
2852 | return resultobj; | |
2853 | fail: | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject * FuncX_swigregister(PyObject *, PyObject *args) { | |
2859 | PyObject *obj; | |
2860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2861 | SWIG_TypeClientData(SWIGTYPE_p_wxFuncX, obj); | |
2862 | Py_INCREF(obj); | |
2863 | return Py_BuildValue((char *)""); | |
2864 | } | |
2865 | static PyObject *_wrap_PropX_name_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2866 | PyObject *resultobj; | |
2867 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2868 | wxString *result; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | char *kwnames[] = { | |
2871 | (char *) "self", NULL | |
2872 | }; | |
2873 | ||
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_name_get",kwnames,&obj0)) goto fail; | |
2875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2877 | result = (wxString *)& ((arg1)->name); | |
2878 | ||
2879 | { | |
2880 | #if wxUSE_UNICODE | |
2881 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
2882 | #else | |
2883 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
2884 | #endif | |
2885 | } | |
2886 | return resultobj; | |
2887 | fail: | |
2888 | return NULL; | |
2889 | } | |
2890 | ||
2891 | ||
2892 | static PyObject *_wrap_PropX_memid_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2893 | PyObject *resultobj; | |
2894 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2895 | MEMBERID result; | |
2896 | PyObject * obj0 = 0 ; | |
2897 | char *kwnames[] = { | |
2898 | (char *) "self", NULL | |
2899 | }; | |
2900 | ||
2901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_memid_get",kwnames,&obj0)) goto fail; | |
2902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2904 | result = (MEMBERID) ((arg1)->memid); | |
2905 | ||
2906 | { | |
2907 | resultobj = SWIG_From_long((long)(result)); | |
2908 | } | |
2909 | return resultobj; | |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2915 | static PyObject *_wrap_PropX_type_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2916 | PyObject *resultobj; | |
2917 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2918 | wxParamX *result; | |
2919 | PyObject * obj0 = 0 ; | |
2920 | char *kwnames[] = { | |
2921 | (char *) "self", NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_type_get",kwnames,&obj0)) goto fail; | |
2925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2927 | result = (wxParamX *)& ((arg1)->type); | |
2928 | ||
2929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
2930 | return resultobj; | |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_PropX_arg_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2939 | wxParamX *result; | |
2940 | PyObject * obj0 = 0 ; | |
2941 | char *kwnames[] = { | |
2942 | (char *) "self", NULL | |
2943 | }; | |
2944 | ||
2945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_arg_get",kwnames,&obj0)) goto fail; | |
2946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2948 | result = (wxParamX *)& ((arg1)->arg); | |
2949 | ||
2950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
2951 | return resultobj; | |
2952 | fail: | |
2953 | return NULL; | |
2954 | } | |
2955 | ||
2956 | ||
2957 | static PyObject *_wrap_PropX_putByRef_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
2958 | PyObject *resultobj; | |
2959 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2960 | bool result; | |
2961 | PyObject * obj0 = 0 ; | |
2962 | char *kwnames[] = { | |
2963 | (char *) "self", NULL | |
2964 | }; | |
2965 | ||
2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_putByRef_get",kwnames,&obj0)) goto fail; | |
2967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2969 | result = (bool) ((arg1)->putByRef); | |
2970 | ||
2971 | { | |
2972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2973 | } | |
2974 | return resultobj; | |
2975 | fail: | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
2980 | static PyObject *_wrap_PropX_CanGet(PyObject *, PyObject *args, PyObject *kwargs) { | |
2981 | PyObject *resultobj; | |
2982 | wxPropX *arg1 = (wxPropX *) 0 ; | |
2983 | bool result; | |
2984 | PyObject * obj0 = 0 ; | |
2985 | char *kwnames[] = { | |
2986 | (char *) "self", NULL | |
2987 | }; | |
2988 | ||
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanGet",kwnames,&obj0)) goto fail; | |
2990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
2991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2992 | { | |
2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2994 | result = (bool)((wxPropX const *)arg1)->CanGet(); | |
2995 | ||
2996 | wxPyEndAllowThreads(__tstate); | |
2997 | if (PyErr_Occurred()) SWIG_fail; | |
2998 | } | |
2999 | { | |
3000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3001 | } | |
3002 | return resultobj; | |
3003 | fail: | |
3004 | return NULL; | |
3005 | } | |
3006 | ||
3007 | ||
3008 | static PyObject *_wrap_PropX_CanSet(PyObject *, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject *resultobj; | |
3010 | wxPropX *arg1 = (wxPropX *) 0 ; | |
3011 | bool result; | |
3012 | PyObject * obj0 = 0 ; | |
3013 | char *kwnames[] = { | |
3014 | (char *) "self", NULL | |
3015 | }; | |
3016 | ||
3017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropX_CanSet",kwnames,&obj0)) goto fail; | |
3018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropX, SWIG_POINTER_EXCEPTION | 0); | |
3019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3020 | { | |
3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3022 | result = (bool)((wxPropX const *)arg1)->CanSet(); | |
3023 | ||
3024 | wxPyEndAllowThreads(__tstate); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
3026 | } | |
3027 | { | |
3028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3029 | } | |
3030 | return resultobj; | |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject * PropX_swigregister(PyObject *, PyObject *args) { | |
3037 | PyObject *obj; | |
3038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3039 | SWIG_TypeClientData(SWIGTYPE_p_wxPropX, obj); | |
3040 | Py_INCREF(obj); | |
3041 | return Py_BuildValue((char *)""); | |
3042 | } | |
3043 | static PyObject *_wrap_ParamXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3046 | bool result; | |
3047 | PyObject * obj0 = 0 ; | |
3048 | char *kwnames[] = { | |
3049 | (char *) "self", NULL | |
3050 | }; | |
3051 | ||
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3055 | { | |
3056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3057 | result = (bool)wxParamXArray___nonzero__(arg1); | |
3058 | ||
3059 | wxPyEndAllowThreads(__tstate); | |
3060 | if (PyErr_Occurred()) SWIG_fail; | |
3061 | } | |
3062 | { | |
3063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3064 | } | |
3065 | return resultobj; | |
3066 | fail: | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_ParamXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3074 | int result; | |
3075 | PyObject * obj0 = 0 ; | |
3076 | char *kwnames[] = { | |
3077 | (char *) "self", NULL | |
3078 | }; | |
3079 | ||
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ParamXArray___len__",kwnames,&obj0)) goto fail; | |
3081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3083 | { | |
3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3085 | result = (int)wxParamXArray___len__(arg1); | |
3086 | ||
3087 | wxPyEndAllowThreads(__tstate); | |
3088 | if (PyErr_Occurred()) SWIG_fail; | |
3089 | } | |
3090 | { | |
3091 | resultobj = SWIG_From_int((int)(result)); | |
3092 | } | |
3093 | return resultobj; | |
3094 | fail: | |
3095 | return NULL; | |
3096 | } | |
3097 | ||
3098 | ||
3099 | static PyObject *_wrap_ParamXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3100 | PyObject *resultobj; | |
3101 | wxParamXArray *arg1 = (wxParamXArray *) 0 ; | |
3102 | int arg2 ; | |
3103 | wxParamX *result; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | PyObject * obj1 = 0 ; | |
3106 | char *kwnames[] = { | |
3107 | (char *) "self",(char *) "idx", NULL | |
3108 | }; | |
3109 | ||
3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ParamXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxParamXArray, SWIG_POINTER_EXCEPTION | 0); | |
3112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3113 | { | |
3114 | arg2 = (int)(SWIG_As_int(obj1)); | |
3115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3116 | } | |
3117 | { | |
3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3119 | { | |
3120 | wxParamX const &_result_ref = wxParamXArray___getitem__(arg1,arg2); | |
3121 | result = (wxParamX *) &_result_ref; | |
3122 | } | |
3123 | ||
3124 | wxPyEndAllowThreads(__tstate); | |
3125 | if (PyErr_Occurred()) SWIG_fail; | |
3126 | } | |
3127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxParamX, 0); | |
3128 | return resultobj; | |
3129 | fail: | |
3130 | return NULL; | |
3131 | } | |
3132 | ||
3133 | ||
3134 | static PyObject * ParamXArray_swigregister(PyObject *, PyObject *args) { | |
3135 | PyObject *obj; | |
3136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3137 | SWIG_TypeClientData(SWIGTYPE_p_wxParamXArray, obj); | |
3138 | Py_INCREF(obj); | |
3139 | return Py_BuildValue((char *)""); | |
3140 | } | |
3141 | static PyObject *_wrap_FuncXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject *resultobj; | |
3143 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3144 | bool result; | |
3145 | PyObject * obj0 = 0 ; | |
3146 | char *kwnames[] = { | |
3147 | (char *) "self", NULL | |
3148 | }; | |
3149 | ||
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3153 | { | |
3154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3155 | result = (bool)wxFuncXArray___nonzero__(arg1); | |
3156 | ||
3157 | wxPyEndAllowThreads(__tstate); | |
3158 | if (PyErr_Occurred()) SWIG_fail; | |
3159 | } | |
3160 | { | |
3161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3162 | } | |
3163 | return resultobj; | |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_FuncXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3172 | int result; | |
3173 | PyObject * obj0 = 0 ; | |
3174 | char *kwnames[] = { | |
3175 | (char *) "self", NULL | |
3176 | }; | |
3177 | ||
3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FuncXArray___len__",kwnames,&obj0)) goto fail; | |
3179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3181 | { | |
3182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3183 | result = (int)wxFuncXArray___len__(arg1); | |
3184 | ||
3185 | wxPyEndAllowThreads(__tstate); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
3188 | { | |
3189 | resultobj = SWIG_From_int((int)(result)); | |
3190 | } | |
3191 | return resultobj; | |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
3197 | static PyObject *_wrap_FuncXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject *resultobj; | |
3199 | wxFuncXArray *arg1 = (wxFuncXArray *) 0 ; | |
3200 | int arg2 ; | |
3201 | wxFuncX *result; | |
3202 | PyObject * obj0 = 0 ; | |
3203 | PyObject * obj1 = 0 ; | |
3204 | char *kwnames[] = { | |
3205 | (char *) "self",(char *) "idx", NULL | |
3206 | }; | |
3207 | ||
3208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FuncXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFuncXArray, SWIG_POINTER_EXCEPTION | 0); | |
3210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3211 | { | |
3212 | arg2 = (int)(SWIG_As_int(obj1)); | |
3213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3214 | } | |
3215 | { | |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3217 | { | |
3218 | wxFuncX const &_result_ref = wxFuncXArray___getitem__(arg1,arg2); | |
3219 | result = (wxFuncX *) &_result_ref; | |
3220 | } | |
3221 | ||
3222 | wxPyEndAllowThreads(__tstate); | |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
3224 | } | |
3225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3226 | return resultobj; | |
3227 | fail: | |
3228 | return NULL; | |
3229 | } | |
3230 | ||
3231 | ||
3232 | static PyObject * FuncXArray_swigregister(PyObject *, PyObject *args) { | |
3233 | PyObject *obj; | |
3234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3235 | SWIG_TypeClientData(SWIGTYPE_p_wxFuncXArray, obj); | |
3236 | Py_INCREF(obj); | |
3237 | return Py_BuildValue((char *)""); | |
3238 | } | |
3239 | static PyObject *_wrap_PropXArray___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3240 | PyObject *resultobj; | |
3241 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3242 | bool result; | |
3243 | PyObject * obj0 = 0 ; | |
3244 | char *kwnames[] = { | |
3245 | (char *) "self", NULL | |
3246 | }; | |
3247 | ||
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___nonzero__",kwnames,&obj0)) goto fail; | |
3249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3251 | { | |
3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3253 | result = (bool)wxPropXArray___nonzero__(arg1); | |
3254 | ||
3255 | wxPyEndAllowThreads(__tstate); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
3257 | } | |
3258 | { | |
3259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3260 | } | |
3261 | return resultobj; | |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
3267 | static PyObject *_wrap_PropXArray___len__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject *resultobj; | |
3269 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3270 | int result; | |
3271 | PyObject * obj0 = 0 ; | |
3272 | char *kwnames[] = { | |
3273 | (char *) "self", NULL | |
3274 | }; | |
3275 | ||
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PropXArray___len__",kwnames,&obj0)) goto fail; | |
3277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3279 | { | |
3280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3281 | result = (int)wxPropXArray___len__(arg1); | |
3282 | ||
3283 | wxPyEndAllowThreads(__tstate); | |
3284 | if (PyErr_Occurred()) SWIG_fail; | |
3285 | } | |
3286 | { | |
3287 | resultobj = SWIG_From_int((int)(result)); | |
3288 | } | |
3289 | return resultobj; | |
3290 | fail: | |
3291 | return NULL; | |
3292 | } | |
3293 | ||
3294 | ||
3295 | static PyObject *_wrap_PropXArray___getitem__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject *resultobj; | |
3297 | wxPropXArray *arg1 = (wxPropXArray *) 0 ; | |
3298 | int arg2 ; | |
3299 | wxPropX *result; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | PyObject * obj1 = 0 ; | |
3302 | char *kwnames[] = { | |
3303 | (char *) "self",(char *) "idx", NULL | |
3304 | }; | |
3305 | ||
3306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PropXArray___getitem__",kwnames,&obj0,&obj1)) goto fail; | |
3307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPropXArray, SWIG_POINTER_EXCEPTION | 0); | |
3308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3309 | { | |
3310 | arg2 = (int)(SWIG_As_int(obj1)); | |
3311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3312 | } | |
3313 | { | |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | { | |
3316 | wxPropX const &_result_ref = wxPropXArray___getitem__(arg1,arg2); | |
3317 | result = (wxPropX *) &_result_ref; | |
3318 | } | |
3319 | ||
3320 | wxPyEndAllowThreads(__tstate); | |
3321 | if (PyErr_Occurred()) SWIG_fail; | |
3322 | } | |
3323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3324 | return resultobj; | |
3325 | fail: | |
3326 | return NULL; | |
3327 | } | |
3328 | ||
3329 | ||
3330 | static PyObject * PropXArray_swigregister(PyObject *, PyObject *args) { | |
3331 | PyObject *obj; | |
3332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3333 | SWIG_TypeClientData(SWIGTYPE_p_wxPropXArray, obj); | |
3334 | Py_INCREF(obj); | |
3335 | return Py_BuildValue((char *)""); | |
3336 | } | |
3337 | static PyObject *_wrap_new_ActiveXWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj; | |
3339 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3340 | CLSID *arg2 = 0 ; | |
3341 | int arg3 = (int) -1 ; | |
3342 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3343 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3344 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3345 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3346 | long arg6 = (long) 0 ; | |
3347 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
3348 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3349 | wxActiveXWindow *result; | |
3350 | wxPoint temp4 ; | |
3351 | wxSize temp5 ; | |
3352 | bool temp7 = false ; | |
3353 | PyObject * obj0 = 0 ; | |
3354 | PyObject * obj1 = 0 ; | |
3355 | PyObject * obj2 = 0 ; | |
3356 | PyObject * obj3 = 0 ; | |
3357 | PyObject * obj4 = 0 ; | |
3358 | PyObject * obj5 = 0 ; | |
3359 | PyObject * obj6 = 0 ; | |
3360 | char *kwnames[] = { | |
3361 | (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_ActiveXWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3367 | { | |
3368 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
3369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3370 | if (arg2 == NULL) { | |
3371 | SWIG_null_ref("CLSID"); | |
3372 | } | |
3373 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3374 | } | |
3375 | if (obj2) { | |
3376 | { | |
3377 | arg3 = (int)(SWIG_As_int(obj2)); | |
3378 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3379 | } | |
3380 | } | |
3381 | if (obj3) { | |
3382 | { | |
3383 | arg4 = &temp4; | |
3384 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3385 | } | |
3386 | } | |
3387 | if (obj4) { | |
3388 | { | |
3389 | arg5 = &temp5; | |
3390 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3391 | } | |
3392 | } | |
3393 | if (obj5) { | |
3394 | { | |
3395 | arg6 = (long)(SWIG_As_long(obj5)); | |
3396 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3397 | } | |
3398 | } | |
3399 | if (obj6) { | |
3400 | { | |
3401 | arg7 = wxString_in_helper(obj6); | |
3402 | if (arg7 == NULL) SWIG_fail; | |
3403 | temp7 = true; | |
3404 | } | |
3405 | } | |
3406 | { | |
3407 | if (!wxPyCheckForApp()) SWIG_fail; | |
3408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3409 | result = (wxActiveXWindow *)new wxActiveXWindow(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3410 | ||
3411 | wxPyEndAllowThreads(__tstate); | |
3412 | if (PyErr_Occurred()) SWIG_fail; | |
3413 | } | |
3414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActiveXWindow, 1); | |
3415 | { | |
3416 | if (temp7) | |
3417 | delete arg7; | |
3418 | } | |
3419 | return resultobj; | |
3420 | fail: | |
3421 | { | |
3422 | if (temp7) | |
3423 | delete arg7; | |
3424 | } | |
3425 | return NULL; | |
3426 | } | |
3427 | ||
3428 | ||
3429 | static PyObject *_wrap_ActiveXWindow_GetCLSID(PyObject *, PyObject *args, PyObject *kwargs) { | |
3430 | PyObject *resultobj; | |
3431 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3432 | CLSID *result; | |
3433 | PyObject * obj0 = 0 ; | |
3434 | char *kwnames[] = { | |
3435 | (char *) "self", NULL | |
3436 | }; | |
3437 | ||
3438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetCLSID",kwnames,&obj0)) goto fail; | |
3439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | { | |
3444 | CLSID const &_result_ref = ((wxActiveXWindow const *)arg1)->GetCLSID(); | |
3445 | result = (CLSID *) &_result_ref; | |
3446 | } | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_CLSID, 0); | |
3452 | return resultobj; | |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_ActiveXWindow_GetAXEventCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3461 | int result; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | char *kwnames[] = { | |
3464 | (char *) "self", NULL | |
3465 | }; | |
3466 | ||
3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEventCount",kwnames,&obj0)) goto fail; | |
3468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3470 | { | |
3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3472 | result = (int)((wxActiveXWindow const *)arg1)->GetAXEventCount(); | |
3473 | ||
3474 | wxPyEndAllowThreads(__tstate); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
3476 | } | |
3477 | { | |
3478 | resultobj = SWIG_From_int((int)(result)); | |
3479 | } | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | return NULL; | |
3483 | } | |
3484 | ||
3485 | ||
3486 | static PyObject *_wrap_ActiveXWindow_GetAXEventDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject *resultobj; | |
3488 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3489 | int arg2 ; | |
3490 | wxFuncX *result; | |
3491 | PyObject * obj0 = 0 ; | |
3492 | PyObject * obj1 = 0 ; | |
3493 | char *kwnames[] = { | |
3494 | (char *) "self",(char *) "idx", NULL | |
3495 | }; | |
3496 | ||
3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXEventDesc",kwnames,&obj0,&obj1)) goto fail; | |
3498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3500 | { | |
3501 | arg2 = (int)(SWIG_As_int(obj1)); | |
3502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3503 | } | |
3504 | { | |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | { | |
3507 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXEventDesc(arg2); | |
3508 | result = (wxFuncX *) &_result_ref; | |
3509 | } | |
3510 | ||
3511 | wxPyEndAllowThreads(__tstate); | |
3512 | if (PyErr_Occurred()) SWIG_fail; | |
3513 | } | |
3514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3515 | return resultobj; | |
3516 | fail: | |
3517 | return NULL; | |
3518 | } | |
3519 | ||
3520 | ||
3521 | static PyObject *_wrap_ActiveXWindow_GetAXPropCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3522 | PyObject *resultobj; | |
3523 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3524 | int result; | |
3525 | PyObject * obj0 = 0 ; | |
3526 | char *kwnames[] = { | |
3527 | (char *) "self", NULL | |
3528 | }; | |
3529 | ||
3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXPropCount",kwnames,&obj0)) goto fail; | |
3531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3533 | { | |
3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3535 | result = (int)((wxActiveXWindow const *)arg1)->GetAXPropCount(); | |
3536 | ||
3537 | wxPyEndAllowThreads(__tstate); | |
3538 | if (PyErr_Occurred()) SWIG_fail; | |
3539 | } | |
3540 | { | |
3541 | resultobj = SWIG_From_int((int)(result)); | |
3542 | } | |
3543 | return resultobj; | |
3544 | fail: | |
3545 | return NULL; | |
3546 | } | |
3547 | ||
3548 | ||
3549 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(PyObject *, PyObject *args) { | |
3550 | PyObject *resultobj; | |
3551 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3552 | int arg2 ; | |
3553 | wxPropX *result; | |
3554 | PyObject * obj0 = 0 ; | |
3555 | PyObject * obj1 = 0 ; | |
3556 | ||
3557 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail; | |
3558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3560 | { | |
3561 | arg2 = (int)(SWIG_As_int(obj1)); | |
3562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3563 | } | |
3564 | { | |
3565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3566 | { | |
3567 | wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc(arg2); | |
3568 | result = (wxPropX *) &_result_ref; | |
3569 | } | |
3570 | ||
3571 | wxPyEndAllowThreads(__tstate); | |
3572 | if (PyErr_Occurred()) SWIG_fail; | |
3573 | } | |
3574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3575 | return resultobj; | |
3576 | fail: | |
3577 | return NULL; | |
3578 | } | |
3579 | ||
3580 | ||
3581 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(PyObject *, PyObject *args) { | |
3582 | PyObject *resultobj; | |
3583 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3584 | wxString *arg2 = 0 ; | |
3585 | wxPropX *result; | |
3586 | bool temp2 = false ; | |
3587 | PyObject * obj0 = 0 ; | |
3588 | PyObject * obj1 = 0 ; | |
3589 | ||
3590 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXPropDesc",&obj0,&obj1)) goto fail; | |
3591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3593 | { | |
3594 | arg2 = wxString_in_helper(obj1); | |
3595 | if (arg2 == NULL) SWIG_fail; | |
3596 | temp2 = true; | |
3597 | } | |
3598 | { | |
3599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3600 | { | |
3601 | wxPropX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXPropDesc((wxString const &)*arg2); | |
3602 | result = (wxPropX *) &_result_ref; | |
3603 | } | |
3604 | ||
3605 | wxPyEndAllowThreads(__tstate); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
3608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropX, 0); | |
3609 | { | |
3610 | if (temp2) | |
3611 | delete arg2; | |
3612 | } | |
3613 | return resultobj; | |
3614 | fail: | |
3615 | { | |
3616 | if (temp2) | |
3617 | delete arg2; | |
3618 | } | |
3619 | return NULL; | |
3620 | } | |
3621 | ||
3622 | ||
3623 | static PyObject *_wrap_ActiveXWindow_GetAXPropDesc(PyObject *self, PyObject *args) { | |
3624 | int argc; | |
3625 | PyObject *argv[3]; | |
3626 | int ii; | |
3627 | ||
3628 | argc = PyObject_Length(args); | |
3629 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
3630 | argv[ii] = PyTuple_GetItem(args,ii); | |
3631 | } | |
3632 | if (argc == 2) { | |
3633 | int _v; | |
3634 | { | |
3635 | void *ptr; | |
3636 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3637 | _v = 0; | |
3638 | PyErr_Clear(); | |
3639 | } else { | |
3640 | _v = 1; | |
3641 | } | |
3642 | } | |
3643 | if (_v) { | |
3644 | { | |
3645 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
3646 | } | |
3647 | if (_v) { | |
3648 | return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_1(self,args); | |
3649 | } | |
3650 | } | |
3651 | } | |
3652 | if (argc == 2) { | |
3653 | int _v; | |
3654 | { | |
3655 | void *ptr; | |
3656 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3657 | _v = 0; | |
3658 | PyErr_Clear(); | |
3659 | } else { | |
3660 | _v = 1; | |
3661 | } | |
3662 | } | |
3663 | if (_v) { | |
3664 | _v = SWIG_Check_int(argv[1]); | |
3665 | if (_v) { | |
3666 | return _wrap_ActiveXWindow_GetAXPropDesc__SWIG_0(self,args); | |
3667 | } | |
3668 | } | |
3669 | } | |
3670 | ||
3671 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXPropDesc'"); | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject *_wrap_ActiveXWindow_GetAXMethodCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3679 | int result; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | char *kwnames[] = { | |
3682 | (char *) "self", NULL | |
3683 | }; | |
3684 | ||
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethodCount",kwnames,&obj0)) goto fail; | |
3686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3688 | { | |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | result = (int)((wxActiveXWindow const *)arg1)->GetAXMethodCount(); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | { | |
3696 | resultobj = SWIG_From_int((int)(result)); | |
3697 | } | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(PyObject *, PyObject *args) { | |
3705 | PyObject *resultobj; | |
3706 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3707 | int arg2 ; | |
3708 | wxFuncX *result; | |
3709 | PyObject * obj0 = 0 ; | |
3710 | PyObject * obj1 = 0 ; | |
3711 | ||
3712 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail; | |
3713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3715 | { | |
3716 | arg2 = (int)(SWIG_As_int(obj1)); | |
3717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3718 | } | |
3719 | { | |
3720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3721 | { | |
3722 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc(arg2); | |
3723 | result = (wxFuncX *) &_result_ref; | |
3724 | } | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
3736 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(PyObject *, PyObject *args) { | |
3737 | PyObject *resultobj; | |
3738 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3739 | wxString *arg2 = 0 ; | |
3740 | wxFuncX *result; | |
3741 | bool temp2 = false ; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | PyObject * obj1 = 0 ; | |
3744 | ||
3745 | if(!PyArg_ParseTuple(args,(char *)"OO:ActiveXWindow_GetAXMethodDesc",&obj0,&obj1)) goto fail; | |
3746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3748 | { | |
3749 | arg2 = wxString_in_helper(obj1); | |
3750 | if (arg2 == NULL) SWIG_fail; | |
3751 | temp2 = true; | |
3752 | } | |
3753 | { | |
3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3755 | { | |
3756 | wxFuncX const &_result_ref = ((wxActiveXWindow const *)arg1)->GetAXMethodDesc((wxString const &)*arg2); | |
3757 | result = (wxFuncX *) &_result_ref; | |
3758 | } | |
3759 | ||
3760 | wxPyEndAllowThreads(__tstate); | |
3761 | if (PyErr_Occurred()) SWIG_fail; | |
3762 | } | |
3763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncX, 0); | |
3764 | { | |
3765 | if (temp2) | |
3766 | delete arg2; | |
3767 | } | |
3768 | return resultobj; | |
3769 | fail: | |
3770 | { | |
3771 | if (temp2) | |
3772 | delete arg2; | |
3773 | } | |
3774 | return NULL; | |
3775 | } | |
3776 | ||
3777 | ||
3778 | static PyObject *_wrap_ActiveXWindow_GetAXMethodDesc(PyObject *self, PyObject *args) { | |
3779 | int argc; | |
3780 | PyObject *argv[3]; | |
3781 | int ii; | |
3782 | ||
3783 | argc = PyObject_Length(args); | |
3784 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
3785 | argv[ii] = PyTuple_GetItem(args,ii); | |
3786 | } | |
3787 | if (argc == 2) { | |
3788 | int _v; | |
3789 | { | |
3790 | void *ptr; | |
3791 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3792 | _v = 0; | |
3793 | PyErr_Clear(); | |
3794 | } else { | |
3795 | _v = 1; | |
3796 | } | |
3797 | } | |
3798 | if (_v) { | |
3799 | { | |
3800 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
3801 | } | |
3802 | if (_v) { | |
3803 | return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_1(self,args); | |
3804 | } | |
3805 | } | |
3806 | } | |
3807 | if (argc == 2) { | |
3808 | int _v; | |
3809 | { | |
3810 | void *ptr; | |
3811 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxActiveXWindow, 0) == -1) { | |
3812 | _v = 0; | |
3813 | PyErr_Clear(); | |
3814 | } else { | |
3815 | _v = 1; | |
3816 | } | |
3817 | } | |
3818 | if (_v) { | |
3819 | _v = SWIG_Check_int(argv[1]); | |
3820 | if (_v) { | |
3821 | return _wrap_ActiveXWindow_GetAXMethodDesc__SWIG_0(self,args); | |
3822 | } | |
3823 | } | |
3824 | } | |
3825 | ||
3826 | PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'ActiveXWindow_GetAXMethodDesc'"); | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_ActiveXWindow_GetAXEvents(PyObject *, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3834 | wxFuncXArray *result; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "self", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXEvents",kwnames,&obj0)) goto fail; | |
3841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3843 | { | |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | { | |
3846 | wxFuncXArray const &_result_ref = (arg1)->GetAXEvents(); | |
3847 | result = (wxFuncXArray *) &_result_ref; | |
3848 | } | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
3853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0); | |
3854 | return resultobj; | |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | static PyObject *_wrap_ActiveXWindow_GetAXMethods(PyObject *, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject *resultobj; | |
3862 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3863 | wxFuncXArray *result; | |
3864 | PyObject * obj0 = 0 ; | |
3865 | char *kwnames[] = { | |
3866 | (char *) "self", NULL | |
3867 | }; | |
3868 | ||
3869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXMethods",kwnames,&obj0)) goto fail; | |
3870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3872 | { | |
3873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3874 | { | |
3875 | wxFuncXArray const &_result_ref = (arg1)->GetAXMethods(); | |
3876 | result = (wxFuncXArray *) &_result_ref; | |
3877 | } | |
3878 | ||
3879 | wxPyEndAllowThreads(__tstate); | |
3880 | if (PyErr_Occurred()) SWIG_fail; | |
3881 | } | |
3882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFuncXArray, 0); | |
3883 | return resultobj; | |
3884 | fail: | |
3885 | return NULL; | |
3886 | } | |
3887 | ||
3888 | ||
3889 | static PyObject *_wrap_ActiveXWindow_GetAXProperties(PyObject *, PyObject *args, PyObject *kwargs) { | |
3890 | PyObject *resultobj; | |
3891 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3892 | wxPropXArray *result; | |
3893 | PyObject * obj0 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "self", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXWindow_GetAXProperties",kwnames,&obj0)) goto fail; | |
3899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3901 | { | |
3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3903 | { | |
3904 | wxPropXArray const &_result_ref = (arg1)->GetAXProperties(); | |
3905 | result = (wxPropXArray *) &_result_ref; | |
3906 | } | |
3907 | ||
3908 | wxPyEndAllowThreads(__tstate); | |
3909 | if (PyErr_Occurred()) SWIG_fail; | |
3910 | } | |
3911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropXArray, 0); | |
3912 | return resultobj; | |
3913 | fail: | |
3914 | return NULL; | |
3915 | } | |
3916 | ||
3917 | ||
3918 | static PyObject *_wrap_ActiveXWindow_SetAXProp(PyObject *, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject *resultobj; | |
3920 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3921 | wxString *arg2 = 0 ; | |
3922 | PyObject *arg3 = (PyObject *) 0 ; | |
3923 | bool temp2 = false ; | |
3924 | PyObject * obj0 = 0 ; | |
3925 | PyObject * obj1 = 0 ; | |
3926 | PyObject * obj2 = 0 ; | |
3927 | char *kwnames[] = { | |
3928 | (char *) "self",(char *) "name",(char *) "value", NULL | |
3929 | }; | |
3930 | ||
3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ActiveXWindow_SetAXProp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3934 | { | |
3935 | arg2 = wxString_in_helper(obj1); | |
3936 | if (arg2 == NULL) SWIG_fail; | |
3937 | temp2 = true; | |
3938 | } | |
3939 | arg3 = obj2; | |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | (arg1)->SetAXProp((wxString const &)*arg2,arg3); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | Py_INCREF(Py_None); resultobj = Py_None; | |
3948 | { | |
3949 | if (temp2) | |
3950 | delete arg2; | |
3951 | } | |
3952 | return resultobj; | |
3953 | fail: | |
3954 | { | |
3955 | if (temp2) | |
3956 | delete arg2; | |
3957 | } | |
3958 | return NULL; | |
3959 | } | |
3960 | ||
3961 | ||
3962 | static PyObject *_wrap_ActiveXWindow_GetAXProp(PyObject *, PyObject *args, PyObject *kwargs) { | |
3963 | PyObject *resultobj; | |
3964 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
3965 | wxString *arg2 = 0 ; | |
3966 | PyObject *result; | |
3967 | bool temp2 = false ; | |
3968 | PyObject * obj0 = 0 ; | |
3969 | PyObject * obj1 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "self",(char *) "name", NULL | |
3972 | }; | |
3973 | ||
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXWindow_GetAXProp",kwnames,&obj0,&obj1)) goto fail; | |
3975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
3976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3977 | { | |
3978 | arg2 = wxString_in_helper(obj1); | |
3979 | if (arg2 == NULL) SWIG_fail; | |
3980 | temp2 = true; | |
3981 | } | |
3982 | { | |
3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3984 | result = (PyObject *)(arg1)->GetAXProp((wxString const &)*arg2); | |
3985 | ||
3986 | wxPyEndAllowThreads(__tstate); | |
3987 | if (PyErr_Occurred()) SWIG_fail; | |
3988 | } | |
3989 | resultobj = result; | |
3990 | { | |
3991 | if (temp2) | |
3992 | delete arg2; | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | { | |
3997 | if (temp2) | |
3998 | delete arg2; | |
3999 | } | |
4000 | return NULL; | |
4001 | } | |
4002 | ||
4003 | ||
4004 | static PyObject *_wrap_ActiveXWindow__CallAXMethod(PyObject *, PyObject *args) { | |
4005 | PyObject *resultobj; | |
4006 | wxActiveXWindow *arg1 = (wxActiveXWindow *) 0 ; | |
4007 | wxString *arg2 = 0 ; | |
4008 | PyObject *arg3 = (PyObject *) 0 ; | |
4009 | PyObject *result; | |
4010 | bool temp2 = false ; | |
4011 | PyObject * obj0 = 0 ; | |
4012 | PyObject * obj1 = 0 ; | |
4013 | PyObject * obj2 = 0 ; | |
4014 | ||
4015 | if(!PyArg_ParseTuple(args,(char *)"OOO:ActiveXWindow__CallAXMethod",&obj0,&obj1,&obj2)) goto fail; | |
4016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXWindow, SWIG_POINTER_EXCEPTION | 0); | |
4017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4018 | { | |
4019 | arg2 = wxString_in_helper(obj1); | |
4020 | if (arg2 == NULL) SWIG_fail; | |
4021 | temp2 = true; | |
4022 | } | |
4023 | arg3 = obj2; | |
4024 | { | |
4025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4026 | result = (PyObject *)(arg1)->_CallAXMethod((wxString const &)*arg2,arg3); | |
4027 | ||
4028 | wxPyEndAllowThreads(__tstate); | |
4029 | if (PyErr_Occurred()) SWIG_fail; | |
4030 | } | |
4031 | resultobj = result; | |
4032 | { | |
4033 | if (temp2) | |
4034 | delete arg2; | |
4035 | } | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | { | |
4039 | if (temp2) | |
4040 | delete arg2; | |
4041 | } | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | static PyObject * ActiveXWindow_swigregister(PyObject *, PyObject *args) { | |
4047 | PyObject *obj; | |
4048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4049 | SWIG_TypeClientData(SWIGTYPE_p_wxActiveXWindow, obj); | |
4050 | Py_INCREF(obj); | |
4051 | return Py_BuildValue((char *)""); | |
4052 | } | |
4053 | static PyObject *_wrap_RegisterActiveXEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4054 | PyObject *resultobj; | |
4055 | wxString *arg1 = 0 ; | |
4056 | wxEventType result; | |
4057 | bool temp1 = false ; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "eventName", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterActiveXEvent",kwnames,&obj0)) goto fail; | |
4064 | { | |
4065 | arg1 = wxString_in_helper(obj0); | |
4066 | if (arg1 == NULL) SWIG_fail; | |
4067 | temp1 = true; | |
4068 | } | |
4069 | { | |
4070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4071 | result = (wxEventType)RegisterActiveXEvent((wxString const &)*arg1); | |
4072 | ||
4073 | wxPyEndAllowThreads(__tstate); | |
4074 | if (PyErr_Occurred()) SWIG_fail; | |
4075 | } | |
4076 | { | |
4077 | resultobj = SWIG_From_int((int)(result)); | |
4078 | } | |
4079 | { | |
4080 | if (temp1) | |
4081 | delete arg1; | |
4082 | } | |
4083 | return resultobj; | |
4084 | fail: | |
4085 | { | |
4086 | if (temp1) | |
4087 | delete arg1; | |
4088 | } | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_ActiveXEvent_EventName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4096 | wxString result; | |
4097 | PyObject * obj0 = 0 ; | |
4098 | char *kwnames[] = { | |
4099 | (char *) "self", NULL | |
4100 | }; | |
4101 | ||
4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActiveXEvent_EventName",kwnames,&obj0)) goto fail; | |
4103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4105 | { | |
4106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4107 | result = (arg1)->EventName(); | |
4108 | ||
4109 | wxPyEndAllowThreads(__tstate); | |
4110 | if (PyErr_Occurred()) SWIG_fail; | |
4111 | } | |
4112 | { | |
4113 | #if wxUSE_UNICODE | |
4114 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4115 | #else | |
4116 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4117 | #endif | |
4118 | } | |
4119 | return resultobj; | |
4120 | fail: | |
4121 | return NULL; | |
4122 | } | |
4123 | ||
4124 | ||
4125 | static PyObject *_wrap_ActiveXEvent__preCallInit(PyObject *, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject *resultobj; | |
4127 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4128 | PyObject *arg2 = (PyObject *) 0 ; | |
4129 | PyObject * obj0 = 0 ; | |
4130 | PyObject * obj1 = 0 ; | |
4131 | char *kwnames[] = { | |
4132 | (char *) "self",(char *) "pyself", NULL | |
4133 | }; | |
4134 | ||
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__preCallInit",kwnames,&obj0,&obj1)) goto fail; | |
4136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4138 | arg2 = obj1; | |
4139 | { | |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | wxActiveXEvent__preCallInit(arg1,arg2); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | Py_INCREF(Py_None); resultobj = Py_None; | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_ActiveXEvent__postCallCleanup(PyObject *, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | wxActiveXEvent *arg1 = (wxActiveXEvent *) 0 ; | |
4156 | PyObject *arg2 = (PyObject *) 0 ; | |
4157 | PyObject * obj0 = 0 ; | |
4158 | PyObject * obj1 = 0 ; | |
4159 | char *kwnames[] = { | |
4160 | (char *) "self",(char *) "pyself", NULL | |
4161 | }; | |
4162 | ||
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ActiveXEvent__postCallCleanup",kwnames,&obj0,&obj1)) goto fail; | |
4164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxActiveXEvent, SWIG_POINTER_EXCEPTION | 0); | |
4165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4166 | arg2 = obj1; | |
4167 | { | |
4168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4169 | wxActiveXEvent__postCallCleanup(arg1,arg2); | |
4170 | ||
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4174 | Py_INCREF(Py_None); resultobj = Py_None; | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | static PyObject * ActiveXEvent_swigregister(PyObject *, PyObject *args) { | |
4182 | PyObject *obj; | |
4183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4184 | SWIG_TypeClientData(SWIGTYPE_p_wxActiveXEvent, obj); | |
4185 | Py_INCREF(obj); | |
4186 | return Py_BuildValue((char *)""); | |
4187 | } | |
4188 | static PyObject *_wrap_new_IEHtmlWindowBase(PyObject *, PyObject *args, PyObject *kwargs) { | |
4189 | PyObject *resultobj; | |
4190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4191 | CLSID *arg2 = 0 ; | |
4192 | int arg3 = (int) -1 ; | |
4193 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4194 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4195 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4196 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4197 | long arg6 = (long) 0 ; | |
4198 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
4199 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4200 | wxIEHtmlWindowBase *result; | |
4201 | wxPoint temp4 ; | |
4202 | wxSize temp5 ; | |
4203 | bool temp7 = false ; | |
4204 | PyObject * obj0 = 0 ; | |
4205 | PyObject * obj1 = 0 ; | |
4206 | PyObject * obj2 = 0 ; | |
4207 | PyObject * obj3 = 0 ; | |
4208 | PyObject * obj4 = 0 ; | |
4209 | PyObject * obj5 = 0 ; | |
4210 | PyObject * obj6 = 0 ; | |
4211 | char *kwnames[] = { | |
4212 | (char *) "parent",(char *) "clsId",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_IEHtmlWindowBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4218 | { | |
4219 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_CLSID, SWIG_POINTER_EXCEPTION | 0); | |
4220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4221 | if (arg2 == NULL) { | |
4222 | SWIG_null_ref("CLSID"); | |
4223 | } | |
4224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4225 | } | |
4226 | if (obj2) { | |
4227 | { | |
4228 | arg3 = (int)(SWIG_As_int(obj2)); | |
4229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4230 | } | |
4231 | } | |
4232 | if (obj3) { | |
4233 | { | |
4234 | arg4 = &temp4; | |
4235 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4236 | } | |
4237 | } | |
4238 | if (obj4) { | |
4239 | { | |
4240 | arg5 = &temp5; | |
4241 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4242 | } | |
4243 | } | |
4244 | if (obj5) { | |
4245 | { | |
4246 | arg6 = (long)(SWIG_As_long(obj5)); | |
4247 | if (SWIG_arg_fail(6)) SWIG_fail; | |
4248 | } | |
4249 | } | |
4250 | if (obj6) { | |
4251 | { | |
4252 | arg7 = wxString_in_helper(obj6); | |
4253 | if (arg7 == NULL) SWIG_fail; | |
4254 | temp7 = true; | |
4255 | } | |
4256 | } | |
4257 | { | |
4258 | if (!wxPyCheckForApp()) SWIG_fail; | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = (wxIEHtmlWindowBase *)new wxIEHtmlWindowBase(arg1,(CLSID const &)*arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIEHtmlWindowBase, 1); | |
4266 | { | |
4267 | if (temp7) | |
4268 | delete arg7; | |
4269 | } | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | { | |
4273 | if (temp7) | |
4274 | delete arg7; | |
4275 | } | |
4276 | return NULL; | |
4277 | } | |
4278 | ||
4279 | ||
4280 | static PyObject *_wrap_IEHtmlWindowBase_SetCharset(PyObject *, PyObject *args, PyObject *kwargs) { | |
4281 | PyObject *resultobj; | |
4282 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4283 | wxString *arg2 = 0 ; | |
4284 | bool temp2 = false ; | |
4285 | PyObject * obj0 = 0 ; | |
4286 | PyObject * obj1 = 0 ; | |
4287 | char *kwnames[] = { | |
4288 | (char *) "self",(char *) "charset", NULL | |
4289 | }; | |
4290 | ||
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_SetCharset",kwnames,&obj0,&obj1)) goto fail; | |
4292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4294 | { | |
4295 | arg2 = wxString_in_helper(obj1); | |
4296 | if (arg2 == NULL) SWIG_fail; | |
4297 | temp2 = true; | |
4298 | } | |
4299 | { | |
4300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4301 | (arg1)->SetCharset((wxString const &)*arg2); | |
4302 | ||
4303 | wxPyEndAllowThreads(__tstate); | |
4304 | if (PyErr_Occurred()) SWIG_fail; | |
4305 | } | |
4306 | Py_INCREF(Py_None); resultobj = Py_None; | |
4307 | { | |
4308 | if (temp2) | |
4309 | delete arg2; | |
4310 | } | |
4311 | return resultobj; | |
4312 | fail: | |
4313 | { | |
4314 | if (temp2) | |
4315 | delete arg2; | |
4316 | } | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | static PyObject *_wrap_IEHtmlWindowBase_LoadString(PyObject *, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject *resultobj; | |
4323 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4324 | wxString *arg2 = 0 ; | |
4325 | bool result; | |
4326 | bool temp2 = false ; | |
4327 | PyObject * obj0 = 0 ; | |
4328 | PyObject * obj1 = 0 ; | |
4329 | char *kwnames[] = { | |
4330 | (char *) "self",(char *) "html", NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadString",kwnames,&obj0,&obj1)) goto fail; | |
4334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4336 | { | |
4337 | arg2 = wxString_in_helper(obj1); | |
4338 | if (arg2 == NULL) SWIG_fail; | |
4339 | temp2 = true; | |
4340 | } | |
4341 | { | |
4342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4343 | result = (bool)(arg1)->LoadString((wxString const &)*arg2); | |
4344 | ||
4345 | wxPyEndAllowThreads(__tstate); | |
4346 | if (PyErr_Occurred()) SWIG_fail; | |
4347 | } | |
4348 | { | |
4349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4350 | } | |
4351 | { | |
4352 | if (temp2) | |
4353 | delete arg2; | |
4354 | } | |
4355 | return resultobj; | |
4356 | fail: | |
4357 | { | |
4358 | if (temp2) | |
4359 | delete arg2; | |
4360 | } | |
4361 | return NULL; | |
4362 | } | |
4363 | ||
4364 | ||
4365 | static PyObject *_wrap_IEHtmlWindowBase_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject *resultobj; | |
4367 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4368 | wxInputStream *arg2 = (wxInputStream *) 0 ; | |
4369 | bool result; | |
4370 | wxPyInputStream *temp2 ; | |
4371 | PyObject * obj0 = 0 ; | |
4372 | PyObject * obj1 = 0 ; | |
4373 | char *kwnames[] = { | |
4374 | (char *) "self",(char *) "is", NULL | |
4375 | }; | |
4376 | ||
4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_LoadStream",kwnames,&obj0,&obj1)) goto fail; | |
4378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4380 | { | |
4381 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
4382 | arg2 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp2->m_wxis); | |
4383 | } else { | |
4384 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
4385 | arg2 = wxPyCBInputStream_create(obj1, false); | |
4386 | if (arg2 == NULL) { | |
4387 | PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object."); | |
4388 | SWIG_fail; | |
4389 | } | |
4390 | } | |
4391 | } | |
4392 | { | |
4393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4394 | result = (bool)(arg1)->LoadStream(arg2); | |
4395 | ||
4396 | wxPyEndAllowThreads(__tstate); | |
4397 | if (PyErr_Occurred()) SWIG_fail; | |
4398 | } | |
4399 | { | |
4400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4401 | } | |
4402 | return resultobj; | |
4403 | fail: | |
4404 | return NULL; | |
4405 | } | |
4406 | ||
4407 | ||
4408 | static PyObject *_wrap_IEHtmlWindowBase_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
4409 | PyObject *resultobj; | |
4410 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4411 | bool arg2 ; | |
4412 | wxString result; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | PyObject * obj1 = 0 ; | |
4415 | char *kwnames[] = { | |
4416 | (char *) "self",(char *) "asHTML", NULL | |
4417 | }; | |
4418 | ||
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
4420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4422 | { | |
4423 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4424 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4425 | } | |
4426 | { | |
4427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4428 | result = (arg1)->GetStringSelection(arg2); | |
4429 | ||
4430 | wxPyEndAllowThreads(__tstate); | |
4431 | if (PyErr_Occurred()) SWIG_fail; | |
4432 | } | |
4433 | { | |
4434 | #if wxUSE_UNICODE | |
4435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4436 | #else | |
4437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4438 | #endif | |
4439 | } | |
4440 | return resultobj; | |
4441 | fail: | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
4446 | static PyObject *_wrap_IEHtmlWindowBase_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
4447 | PyObject *resultobj; | |
4448 | wxIEHtmlWindowBase *arg1 = (wxIEHtmlWindowBase *) 0 ; | |
4449 | bool arg2 ; | |
4450 | wxString result; | |
4451 | PyObject * obj0 = 0 ; | |
4452 | PyObject * obj1 = 0 ; | |
4453 | char *kwnames[] = { | |
4454 | (char *) "self",(char *) "asHTML", NULL | |
4455 | }; | |
4456 | ||
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IEHtmlWindowBase_GetText",kwnames,&obj0,&obj1)) goto fail; | |
4458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIEHtmlWindowBase, SWIG_POINTER_EXCEPTION | 0); | |
4459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4460 | { | |
4461 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4462 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4463 | } | |
4464 | { | |
4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4466 | result = (arg1)->GetText(arg2); | |
4467 | ||
4468 | wxPyEndAllowThreads(__tstate); | |
4469 | if (PyErr_Occurred()) SWIG_fail; | |
4470 | } | |
4471 | { | |
4472 | #if wxUSE_UNICODE | |
4473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4474 | #else | |
4475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4476 | #endif | |
4477 | } | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
4484 | static PyObject * IEHtmlWindowBase_swigregister(PyObject *, PyObject *args) { | |
4485 | PyObject *obj; | |
4486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4487 | SWIG_TypeClientData(SWIGTYPE_p_wxIEHtmlWindowBase, obj); | |
4488 | Py_INCREF(obj); | |
4489 | return Py_BuildValue((char *)""); | |
4490 | } | |
4491 | static PyMethodDef SwigMethods[] = { | |
4492 | { (char *)"new_CLSID", (PyCFunction) _wrap_new_CLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4493 | { (char *)"delete_CLSID", (PyCFunction) _wrap_delete_CLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4494 | { (char *)"CLSID_GetCLSIDString", (PyCFunction) _wrap_CLSID_GetCLSIDString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4495 | { (char *)"CLSID_GetProgIDString", (PyCFunction) _wrap_CLSID_GetProgIDString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4496 | { (char *)"CLSID_swigregister", CLSID_swigregister, METH_VARARGS, NULL}, | |
4497 | { (char *)"ParamX_flags_get", (PyCFunction) _wrap_ParamX_flags_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4498 | { (char *)"ParamX_isPtr_get", (PyCFunction) _wrap_ParamX_isPtr_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4499 | { (char *)"ParamX_isSafeArray_get", (PyCFunction) _wrap_ParamX_isSafeArray_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4500 | { (char *)"ParamX_isOptional_get", (PyCFunction) _wrap_ParamX_isOptional_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4501 | { (char *)"ParamX_vt_get", (PyCFunction) _wrap_ParamX_vt_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4502 | { (char *)"ParamX_name_get", (PyCFunction) _wrap_ParamX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4503 | { (char *)"ParamX_vt_type_get", (PyCFunction) _wrap_ParamX_vt_type_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4504 | { (char *)"ParamX_IsIn", (PyCFunction) _wrap_ParamX_IsIn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4505 | { (char *)"ParamX_IsOut", (PyCFunction) _wrap_ParamX_IsOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4506 | { (char *)"ParamX_IsRetVal", (PyCFunction) _wrap_ParamX_IsRetVal, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4507 | { (char *)"ParamX_swigregister", ParamX_swigregister, METH_VARARGS, NULL}, | |
4508 | { (char *)"FuncX_name_get", (PyCFunction) _wrap_FuncX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4509 | { (char *)"FuncX_memid_get", (PyCFunction) _wrap_FuncX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4510 | { (char *)"FuncX_hasOut_get", (PyCFunction) _wrap_FuncX_hasOut_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4511 | { (char *)"FuncX_retType_get", (PyCFunction) _wrap_FuncX_retType_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4512 | { (char *)"FuncX_params_get", (PyCFunction) _wrap_FuncX_params_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4513 | { (char *)"FuncX_swigregister", FuncX_swigregister, METH_VARARGS, NULL}, | |
4514 | { (char *)"PropX_name_get", (PyCFunction) _wrap_PropX_name_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4515 | { (char *)"PropX_memid_get", (PyCFunction) _wrap_PropX_memid_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4516 | { (char *)"PropX_type_get", (PyCFunction) _wrap_PropX_type_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4517 | { (char *)"PropX_arg_get", (PyCFunction) _wrap_PropX_arg_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4518 | { (char *)"PropX_putByRef_get", (PyCFunction) _wrap_PropX_putByRef_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4519 | { (char *)"PropX_CanGet", (PyCFunction) _wrap_PropX_CanGet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4520 | { (char *)"PropX_CanSet", (PyCFunction) _wrap_PropX_CanSet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4521 | { (char *)"PropX_swigregister", PropX_swigregister, METH_VARARGS, NULL}, | |
4522 | { (char *)"ParamXArray___nonzero__", (PyCFunction) _wrap_ParamXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4523 | { (char *)"ParamXArray___len__", (PyCFunction) _wrap_ParamXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4524 | { (char *)"ParamXArray___getitem__", (PyCFunction) _wrap_ParamXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4525 | { (char *)"ParamXArray_swigregister", ParamXArray_swigregister, METH_VARARGS, NULL}, | |
4526 | { (char *)"FuncXArray___nonzero__", (PyCFunction) _wrap_FuncXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4527 | { (char *)"FuncXArray___len__", (PyCFunction) _wrap_FuncXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4528 | { (char *)"FuncXArray___getitem__", (PyCFunction) _wrap_FuncXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4529 | { (char *)"FuncXArray_swigregister", FuncXArray_swigregister, METH_VARARGS, NULL}, | |
4530 | { (char *)"PropXArray___nonzero__", (PyCFunction) _wrap_PropXArray___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4531 | { (char *)"PropXArray___len__", (PyCFunction) _wrap_PropXArray___len__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4532 | { (char *)"PropXArray___getitem__", (PyCFunction) _wrap_PropXArray___getitem__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4533 | { (char *)"PropXArray_swigregister", PropXArray_swigregister, METH_VARARGS, NULL}, | |
4534 | { (char *)"new_ActiveXWindow", (PyCFunction) _wrap_new_ActiveXWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4535 | { (char *)"ActiveXWindow_GetCLSID", (PyCFunction) _wrap_ActiveXWindow_GetCLSID, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4536 | { (char *)"ActiveXWindow_GetAXEventCount", (PyCFunction) _wrap_ActiveXWindow_GetAXEventCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4537 | { (char *)"ActiveXWindow_GetAXEventDesc", (PyCFunction) _wrap_ActiveXWindow_GetAXEventDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4538 | { (char *)"ActiveXWindow_GetAXPropCount", (PyCFunction) _wrap_ActiveXWindow_GetAXPropCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4539 | { (char *)"ActiveXWindow_GetAXPropDesc", _wrap_ActiveXWindow_GetAXPropDesc, METH_VARARGS, NULL}, | |
4540 | { (char *)"ActiveXWindow_GetAXMethodCount", (PyCFunction) _wrap_ActiveXWindow_GetAXMethodCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4541 | { (char *)"ActiveXWindow_GetAXMethodDesc", _wrap_ActiveXWindow_GetAXMethodDesc, METH_VARARGS, NULL}, | |
4542 | { (char *)"ActiveXWindow_GetAXEvents", (PyCFunction) _wrap_ActiveXWindow_GetAXEvents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4543 | { (char *)"ActiveXWindow_GetAXMethods", (PyCFunction) _wrap_ActiveXWindow_GetAXMethods, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4544 | { (char *)"ActiveXWindow_GetAXProperties", (PyCFunction) _wrap_ActiveXWindow_GetAXProperties, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4545 | { (char *)"ActiveXWindow_SetAXProp", (PyCFunction) _wrap_ActiveXWindow_SetAXProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4546 | { (char *)"ActiveXWindow_GetAXProp", (PyCFunction) _wrap_ActiveXWindow_GetAXProp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4547 | { (char *)"ActiveXWindow__CallAXMethod", _wrap_ActiveXWindow__CallAXMethod, METH_VARARGS, NULL}, | |
4548 | { (char *)"ActiveXWindow_swigregister", ActiveXWindow_swigregister, METH_VARARGS, NULL}, | |
4549 | { (char *)"RegisterActiveXEvent", (PyCFunction) _wrap_RegisterActiveXEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4550 | { (char *)"ActiveXEvent_EventName", (PyCFunction) _wrap_ActiveXEvent_EventName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4551 | { (char *)"ActiveXEvent__preCallInit", (PyCFunction) _wrap_ActiveXEvent__preCallInit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4552 | { (char *)"ActiveXEvent__postCallCleanup", (PyCFunction) _wrap_ActiveXEvent__postCallCleanup, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4553 | { (char *)"ActiveXEvent_swigregister", ActiveXEvent_swigregister, METH_VARARGS, NULL}, | |
4554 | { (char *)"new_IEHtmlWindowBase", (PyCFunction) _wrap_new_IEHtmlWindowBase, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4555 | { (char *)"IEHtmlWindowBase_SetCharset", (PyCFunction) _wrap_IEHtmlWindowBase_SetCharset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4556 | { (char *)"IEHtmlWindowBase_LoadString", (PyCFunction) _wrap_IEHtmlWindowBase_LoadString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4557 | { (char *)"IEHtmlWindowBase_LoadStream", (PyCFunction) _wrap_IEHtmlWindowBase_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4558 | { (char *)"IEHtmlWindowBase_GetStringSelection", (PyCFunction) _wrap_IEHtmlWindowBase_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4559 | { (char *)"IEHtmlWindowBase_GetText", (PyCFunction) _wrap_IEHtmlWindowBase_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
4560 | { (char *)"IEHtmlWindowBase_swigregister", IEHtmlWindowBase_swigregister, METH_VARARGS, NULL}, | |
4561 | { NULL, NULL, 0, NULL } | |
4562 | }; | |
4563 | ||
4564 | ||
4565 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
4566 | ||
4567 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
4568 | return (void *)((wxWindow *) ((wxControl *) x)); | |
4569 | } | |
4570 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
4571 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
4572 | } | |
4573 | static void *_p_wxActiveXWindowTo_p_wxWindow(void *x) { | |
4574 | return (void *)((wxWindow *) ((wxActiveXWindow *) x)); | |
4575 | } | |
4576 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
4577 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
4578 | } | |
4579 | static void *_p_wxIEHtmlWindowBaseTo_p_wxWindow(void *x) { | |
4580 | return (void *)((wxWindow *) (wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4581 | } | |
4582 | static void *_p_wxIEHtmlWindowBaseTo_p_wxActiveXWindow(void *x) { | |
4583 | return (void *)((wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4584 | } | |
4585 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
4586 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
4587 | } | |
4588 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
4589 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
4590 | } | |
4591 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
4592 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
4593 | } | |
4594 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
4595 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
4596 | } | |
4597 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
4598 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
4599 | } | |
4600 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
4601 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
4602 | } | |
4603 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
4604 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
4605 | } | |
4606 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
4607 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
4608 | } | |
4609 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
4610 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
4611 | } | |
4612 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
4613 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4614 | } | |
4615 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
4616 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
4617 | } | |
4618 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
4619 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4620 | } | |
4621 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
4622 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
4623 | } | |
4624 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
4625 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
4626 | } | |
4627 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
4628 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
4629 | } | |
4630 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
4631 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
4632 | } | |
4633 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
4634 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
4635 | } | |
4636 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
4637 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
4638 | } | |
4639 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
4640 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
4641 | } | |
4642 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
4643 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
4644 | } | |
4645 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
4646 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
4647 | } | |
4648 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
4649 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4650 | } | |
4651 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
4652 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
4653 | } | |
4654 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
4655 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
4656 | } | |
4657 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
4658 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
4659 | } | |
4660 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
4661 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
4662 | } | |
4663 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
4664 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
4665 | } | |
4666 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
4667 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
4668 | } | |
4669 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
4670 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
4671 | } | |
4672 | static void *_p_wxActiveXEventTo_p_wxEvent(void *x) { | |
4673 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxActiveXEvent *) x)); | |
4674 | } | |
4675 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
4676 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
4677 | } | |
4678 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
4679 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
4680 | } | |
4681 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
4682 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
4683 | } | |
4684 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
4685 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
4686 | } | |
4687 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
4688 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
4689 | } | |
4690 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
4691 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
4692 | } | |
4693 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
4694 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
4695 | } | |
4696 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
4697 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
4698 | } | |
4699 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
4700 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
4701 | } | |
4702 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
4703 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
4704 | } | |
4705 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
4706 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
4707 | } | |
4708 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
4709 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
4710 | } | |
4711 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
4712 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
4713 | } | |
4714 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
4715 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
4716 | } | |
4717 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
4718 | return (void *)((wxObject *) ((wxSizer *) x)); | |
4719 | } | |
4720 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
4721 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
4722 | } | |
4723 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
4724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4725 | } | |
4726 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
4727 | return (void *)((wxObject *) ((wxEvent *) x)); | |
4728 | } | |
4729 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
4730 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
4731 | } | |
4732 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
4733 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
4734 | } | |
4735 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
4736 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
4737 | } | |
4738 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
4739 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
4740 | } | |
4741 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
4742 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
4743 | } | |
4744 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
4745 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
4746 | } | |
4747 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
4748 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
4749 | } | |
4750 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
4751 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
4752 | } | |
4753 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
4754 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
4755 | } | |
4756 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
4757 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
4758 | } | |
4759 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
4760 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
4761 | } | |
4762 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
4763 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
4764 | } | |
4765 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
4766 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
4767 | } | |
4768 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
4769 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
4770 | } | |
4771 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
4772 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4773 | } | |
4774 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
4775 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
4776 | } | |
4777 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
4778 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
4779 | } | |
4780 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
4781 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
4782 | } | |
4783 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
4784 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
4785 | } | |
4786 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
4787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4788 | } | |
4789 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
4790 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
4791 | } | |
4792 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
4793 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
4794 | } | |
4795 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
4796 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
4797 | } | |
4798 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
4799 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
4800 | } | |
4801 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
4802 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
4803 | } | |
4804 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
4805 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
4806 | } | |
4807 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
4808 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
4809 | } | |
4810 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
4811 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
4812 | } | |
4813 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
4814 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
4815 | } | |
4816 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
4817 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
4818 | } | |
4819 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
4820 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
4821 | } | |
4822 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
4823 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
4824 | } | |
4825 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
4826 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
4827 | } | |
4828 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
4829 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
4830 | } | |
4831 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
4832 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
4833 | } | |
4834 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
4835 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
4836 | } | |
4837 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
4838 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
4839 | } | |
4840 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
4841 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
4842 | } | |
4843 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
4844 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
4845 | } | |
4846 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
4847 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
4848 | } | |
4849 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
4850 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
4851 | } | |
4852 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
4853 | return (void *)((wxObject *) ((wxImage *) x)); | |
4854 | } | |
4855 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
4856 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
4857 | } | |
4858 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
4859 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
4860 | } | |
4861 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
4862 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
4863 | } | |
4864 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
4865 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
4866 | } | |
4867 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
4868 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
4869 | } | |
4870 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
4871 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
4872 | } | |
4873 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
4874 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
4875 | } | |
4876 | static void *_p_wxActiveXWindowTo_p_wxObject(void *x) { | |
4877 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxActiveXWindow *) x)); | |
4878 | } | |
4879 | static void *_p_wxActiveXEventTo_p_wxObject(void *x) { | |
4880 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxActiveXEvent *) x)); | |
4881 | } | |
4882 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
4883 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
4884 | } | |
4885 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
4886 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
4887 | } | |
4888 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
4889 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
4890 | } | |
4891 | static void *_p_wxIEHtmlWindowBaseTo_p_wxObject(void *x) { | |
4892 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4893 | } | |
4894 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
4895 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
4896 | } | |
4897 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
4898 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
4899 | } | |
4900 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
4901 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
4902 | } | |
4903 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
4904 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
4905 | } | |
4906 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
4907 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
4908 | } | |
4909 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
4910 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
4911 | } | |
4912 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
4913 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
4914 | } | |
4915 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
4916 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
4917 | } | |
4918 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
4919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
4920 | } | |
4921 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
4922 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
4923 | } | |
4924 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
4925 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
4926 | } | |
4927 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
4928 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
4929 | } | |
4930 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
4931 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
4932 | } | |
4933 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
4934 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
4935 | } | |
4936 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
4937 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
4938 | } | |
4939 | static void *_p_wxActiveXWindowTo_p_wxEvtHandler(void *x) { | |
4940 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxActiveXWindow *) x)); | |
4941 | } | |
4942 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
4943 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
4944 | } | |
4945 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
4946 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
4947 | } | |
4948 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
4949 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
4950 | } | |
4951 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
4952 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
4953 | } | |
4954 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
4955 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
4956 | } | |
4957 | static void *_p_wxIEHtmlWindowBaseTo_p_wxEvtHandler(void *x) { | |
4958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxActiveXWindow *) ((wxIEHtmlWindowBase *) x)); | |
4959 | } | |
4960 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
4961 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
4962 | } | |
4963 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
4964 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
4965 | } | |
4966 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
4967 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
4968 | } | |
4969 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
4970 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
4971 | } | |
4972 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
4973 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
4974 | } | |
4975 | static void *_p_wxActiveXEventTo_p_wxCommandEvent(void *x) { | |
4976 | return (void *)((wxCommandEvent *) ((wxActiveXEvent *) x)); | |
4977 | } | |
4978 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
4979 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
4980 | } | |
4981 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
4982 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
4983 | } | |
4984 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
4985 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
4986 | } | |
4987 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
4988 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
4989 | } | |
4990 | 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_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_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_wxDateEvent", _p_wxDateEventTo_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_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_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_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}}; | |
4991 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4992 | 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}}; | |
4993 | 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}}; | |
4994 | 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}}; | |
4995 | 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_wxDateEvent", _p_wxDateEventTo_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}}; | |
4996 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4997 | static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4998 | static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4999 | static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5000 | static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5001 | 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}}; | |
5002 | static swig_type_info _swigt__p_unsigned_short[] = {{"_p_unsigned_short", 0, "unsigned short *|VARTYPE *", 0, 0, 0, 0},{"_p_unsigned_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5003 | 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}}; | |
5004 | 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}}; | |
5005 | 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}}; | |
5006 | 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}}; | |
5007 | 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}}; | |
5008 | 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}}; | |
5009 | static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5010 | static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5011 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *|MEMBERID *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5012 | 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}}; | |
5013 | 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}}; | |
5014 | 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_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_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_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}}; | |
5015 | static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5016 | 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}}; | |
5017 | 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}}; | |
5018 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5019 | ||
5020 | static swig_type_info *swig_types_initial[] = { | |
5021 | _swigt__p_wxObject, | |
5022 | _swigt__p_unsigned_char, | |
5023 | _swigt__p_wxFuncX, | |
5024 | _swigt__p_wxActiveXWindow, | |
5025 | _swigt__p_wxWindow, | |
5026 | _swigt__p_wxCommandEvent, | |
5027 | _swigt__p_unsigned_long, | |
5028 | _swigt__p_unsigned_int, | |
5029 | _swigt__unsigned_int, | |
5030 | _swigt__p_form_ops_t, | |
5031 | _swigt__p_wxDuplexMode, | |
5032 | _swigt__p_char, | |
5033 | _swigt__p_unsigned_short, | |
5034 | _swigt__p_wxInputStream, | |
5035 | _swigt__p_wxEvtHandler, | |
5036 | _swigt__p_wxPropX, | |
5037 | _swigt__p_wxParamXArray, | |
5038 | _swigt__p_wxFuncXArray, | |
5039 | _swigt__p_wxActiveXEvent, | |
5040 | _swigt__std__ptrdiff_t, | |
5041 | _swigt__ptrdiff_t, | |
5042 | _swigt__p_long, | |
5043 | _swigt__p_wxParamX, | |
5044 | _swigt__p_wxIEHtmlWindowBase, | |
5045 | _swigt__p_wxEvent, | |
5046 | _swigt__p_wxPaperSize, | |
5047 | _swigt__p_CLSID, | |
5048 | _swigt__p_wxPropXArray, | |
5049 | _swigt__p_int, | |
5050 | 0 | |
5051 | }; | |
5052 | ||
5053 | ||
5054 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
5055 | ||
5056 | static swig_const_info swig_const_table[] = { | |
5057 | {0, 0, 0, 0.0, 0, 0}}; | |
5058 | ||
5059 | #ifdef __cplusplus | |
5060 | } | |
5061 | #endif | |
5062 | ||
5063 | ||
5064 | #ifdef __cplusplus | |
5065 | extern "C" { | |
5066 | #endif | |
5067 | ||
5068 | /* Python-specific SWIG API */ | |
5069 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
5070 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
5071 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
5072 | ||
5073 | /* ----------------------------------------------------------------------------- | |
5074 | * global variable support code. | |
5075 | * ----------------------------------------------------------------------------- */ | |
5076 | ||
5077 | typedef struct swig_globalvar { | |
5078 | char *name; /* Name of global variable */ | |
5079 | PyObject *(*get_attr)(); /* Return the current value */ | |
5080 | int (*set_attr)(PyObject *); /* Set the value */ | |
5081 | struct swig_globalvar *next; | |
5082 | } swig_globalvar; | |
5083 | ||
5084 | typedef struct swig_varlinkobject { | |
5085 | PyObject_HEAD | |
5086 | swig_globalvar *vars; | |
5087 | } swig_varlinkobject; | |
5088 | ||
5089 | static PyObject * | |
5090 | swig_varlink_repr(swig_varlinkobject *v) { | |
5091 | v = v; | |
5092 | return PyString_FromString("<Swig global variables>"); | |
5093 | } | |
5094 | ||
5095 | static int | |
5096 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
5097 | swig_globalvar *var; | |
5098 | flags = flags; | |
5099 | fprintf(fp,"Swig global variables { "); | |
5100 | for (var = v->vars; var; var=var->next) { | |
5101 | fprintf(fp,"%s", var->name); | |
5102 | if (var->next) fprintf(fp,", "); | |
5103 | } | |
5104 | fprintf(fp," }\n"); | |
5105 | return 0; | |
5106 | } | |
5107 | ||
5108 | static PyObject * | |
5109 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
5110 | swig_globalvar *var = v->vars; | |
5111 | while (var) { | |
5112 | if (strcmp(var->name,n) == 0) { | |
5113 | return (*var->get_attr)(); | |
5114 | } | |
5115 | var = var->next; | |
5116 | } | |
5117 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5118 | return NULL; | |
5119 | } | |
5120 | ||
5121 | static int | |
5122 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
5123 | swig_globalvar *var = v->vars; | |
5124 | while (var) { | |
5125 | if (strcmp(var->name,n) == 0) { | |
5126 | return (*var->set_attr)(p); | |
5127 | } | |
5128 | var = var->next; | |
5129 | } | |
5130 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
5131 | return 1; | |
5132 | } | |
5133 | ||
5134 | static PyTypeObject varlinktype = { | |
5135 | PyObject_HEAD_INIT(0) | |
5136 | 0, /* Number of items in variable part (ob_size) */ | |
5137 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
5138 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
5139 | 0, /* Itemsize (tp_itemsize) */ | |
5140 | 0, /* Deallocator (tp_dealloc) */ | |
5141 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
5142 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
5143 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
5144 | 0, /* tp_compare */ | |
5145 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
5146 | 0, /* tp_as_number */ | |
5147 | 0, /* tp_as_sequence */ | |
5148 | 0, /* tp_as_mapping */ | |
5149 | 0, /* tp_hash */ | |
5150 | 0, /* tp_call */ | |
5151 | 0, /* tp_str */ | |
5152 | 0, /* tp_getattro */ | |
5153 | 0, /* tp_setattro */ | |
5154 | 0, /* tp_as_buffer */ | |
5155 | 0, /* tp_flags */ | |
5156 | 0, /* tp_doc */ | |
5157 | #if PY_VERSION_HEX >= 0x02000000 | |
5158 | 0, /* tp_traverse */ | |
5159 | 0, /* tp_clear */ | |
5160 | #endif | |
5161 | #if PY_VERSION_HEX >= 0x02010000 | |
5162 | 0, /* tp_richcompare */ | |
5163 | 0, /* tp_weaklistoffset */ | |
5164 | #endif | |
5165 | #if PY_VERSION_HEX >= 0x02020000 | |
5166 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
5167 | #endif | |
5168 | #if PY_VERSION_HEX >= 0x02030000 | |
5169 | 0, /* tp_del */ | |
5170 | #endif | |
5171 | #ifdef COUNT_ALLOCS | |
5172 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
5173 | #endif | |
5174 | }; | |
5175 | ||
5176 | /* Create a variable linking object for use later */ | |
5177 | static PyObject * | |
5178 | SWIG_Python_newvarlink(void) { | |
5179 | swig_varlinkobject *result = 0; | |
5180 | result = PyMem_NEW(swig_varlinkobject,1); | |
5181 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
5182 | result->ob_type = &varlinktype; | |
5183 | result->vars = 0; | |
5184 | result->ob_refcnt = 0; | |
5185 | Py_XINCREF((PyObject *) result); | |
5186 | return ((PyObject*) result); | |
5187 | } | |
5188 | ||
5189 | static void | |
5190 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
5191 | swig_varlinkobject *v; | |
5192 | swig_globalvar *gv; | |
5193 | v= (swig_varlinkobject *) p; | |
5194 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
5195 | gv->name = (char *) malloc(strlen(name)+1); | |
5196 | strcpy(gv->name,name); | |
5197 | gv->get_attr = get_attr; | |
5198 | gv->set_attr = set_attr; | |
5199 | gv->next = v->vars; | |
5200 | v->vars = gv; | |
5201 | } | |
5202 | ||
5203 | /* ----------------------------------------------------------------------------- | |
5204 | * constants/methods manipulation | |
5205 | * ----------------------------------------------------------------------------- */ | |
5206 | ||
5207 | /* Install Constants */ | |
5208 | static void | |
5209 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
5210 | PyObject *obj = 0; | |
5211 | size_t i; | |
5212 | for (i = 0; constants[i].type; i++) { | |
5213 | switch(constants[i].type) { | |
5214 | case SWIG_PY_INT: | |
5215 | obj = PyInt_FromLong(constants[i].lvalue); | |
5216 | break; | |
5217 | case SWIG_PY_FLOAT: | |
5218 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
5219 | break; | |
5220 | case SWIG_PY_STRING: | |
5221 | if (constants[i].pvalue) { | |
5222 | obj = PyString_FromString((char *) constants[i].pvalue); | |
5223 | } else { | |
5224 | Py_INCREF(Py_None); | |
5225 | obj = Py_None; | |
5226 | } | |
5227 | break; | |
5228 | case SWIG_PY_POINTER: | |
5229 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
5230 | break; | |
5231 | case SWIG_PY_BINARY: | |
5232 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
5233 | break; | |
5234 | default: | |
5235 | obj = 0; | |
5236 | break; | |
5237 | } | |
5238 | if (obj) { | |
5239 | PyDict_SetItemString(d,constants[i].name,obj); | |
5240 | Py_DECREF(obj); | |
5241 | } | |
5242 | } | |
5243 | } | |
5244 | ||
5245 | /* -----------------------------------------------------------------------------*/ | |
5246 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
5247 | /* -----------------------------------------------------------------------------*/ | |
5248 | ||
5249 | static void | |
5250 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
5251 | swig_const_info *const_table, | |
5252 | swig_type_info **types, | |
5253 | swig_type_info **types_initial) { | |
5254 | size_t i; | |
5255 | for (i = 0; methods[i].ml_name; ++i) { | |
5256 | char *c = methods[i].ml_doc; | |
5257 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
5258 | int j; | |
5259 | swig_const_info *ci = 0; | |
5260 | char *name = c + 10; | |
5261 | for (j = 0; const_table[j].type; j++) { | |
5262 | if (strncmp(const_table[j].name, name, | |
5263 | strlen(const_table[j].name)) == 0) { | |
5264 | ci = &(const_table[j]); | |
5265 | break; | |
5266 | } | |
5267 | } | |
5268 | if (ci) { | |
5269 | size_t shift = (ci->ptype) - types; | |
5270 | swig_type_info *ty = types_initial[shift]; | |
5271 | size_t ldoc = (c - methods[i].ml_doc); | |
5272 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
5273 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
5274 | char *buff = ndoc; | |
5275 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
5276 | strncpy(buff, methods[i].ml_doc, ldoc); | |
5277 | buff += ldoc; | |
5278 | strncpy(buff, "swig_ptr: ", 10); | |
5279 | buff += 10; | |
5280 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
5281 | methods[i].ml_doc = ndoc; | |
5282 | } | |
5283 | } | |
5284 | } | |
5285 | } | |
5286 | ||
5287 | /* -----------------------------------------------------------------------------* | |
5288 | * Initialize type list | |
5289 | * -----------------------------------------------------------------------------*/ | |
5290 | ||
5291 | #if PY_MAJOR_VERSION < 2 | |
5292 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
5293 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
5294 | static int | |
5295 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
5296 | { | |
5297 | PyObject *dict; | |
5298 | if (!PyModule_Check(m)) { | |
5299 | PyErr_SetString(PyExc_TypeError, | |
5300 | "PyModule_AddObject() needs module as first arg"); | |
5301 | return -1; | |
5302 | } | |
5303 | if (!o) { | |
5304 | PyErr_SetString(PyExc_TypeError, | |
5305 | "PyModule_AddObject() needs non-NULL value"); | |
5306 | return -1; | |
5307 | } | |
5308 | ||
5309 | dict = PyModule_GetDict(m); | |
5310 | if (dict == NULL) { | |
5311 | /* Internal error -- modules must have a dict! */ | |
5312 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
5313 | PyModule_GetName(m)); | |
5314 | return -1; | |
5315 | } | |
5316 | if (PyDict_SetItemString(dict, name, o)) | |
5317 | return -1; | |
5318 | Py_DECREF(o); | |
5319 | return 0; | |
5320 | } | |
5321 | #endif | |
5322 | ||
5323 | static swig_type_info ** | |
5324 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
5325 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
5326 | { | |
5327 | NULL, NULL, 0, NULL | |
5328 | } | |
5329 | };/* Sentinel */ | |
5330 | ||
5331 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
5332 | swig_empty_runtime_method_table); | |
5333 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
5334 | if (pointer && module) { | |
5335 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
5336 | } | |
5337 | return type_list_handle; | |
5338 | } | |
5339 | ||
5340 | static swig_type_info ** | |
5341 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
5342 | swig_type_info **type_pointer; | |
5343 | ||
5344 | /* first check if module already created */ | |
5345 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
5346 | if (type_pointer) { | |
5347 | return type_pointer; | |
5348 | } else { | |
5349 | /* create a new module and variable */ | |
5350 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
5351 | } | |
5352 | } | |
5353 | ||
5354 | #ifdef __cplusplus | |
5355 | } | |
5356 | #endif | |
5357 | ||
5358 | /* -----------------------------------------------------------------------------* | |
5359 | * Partial Init method | |
5360 | * -----------------------------------------------------------------------------*/ | |
5361 | ||
5362 | #ifdef SWIG_LINK_RUNTIME | |
5363 | #ifdef __cplusplus | |
5364 | extern "C" | |
5365 | #endif | |
5366 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
5367 | #endif | |
5368 | ||
5369 | #ifdef __cplusplus | |
5370 | extern "C" | |
5371 | #endif | |
5372 | SWIGEXPORT(void) SWIG_init(void) { | |
5373 | static PyObject *SWIG_globals = 0; | |
5374 | static int typeinit = 0; | |
5375 | PyObject *m, *d; | |
5376 | int i; | |
5377 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
5378 | ||
5379 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
5380 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
5381 | ||
5382 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
5383 | d = PyModule_GetDict(m); | |
5384 | ||
5385 | if (!typeinit) { | |
5386 | #ifdef SWIG_LINK_RUNTIME | |
5387 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
5388 | #else | |
5389 | # ifndef SWIG_STATIC_RUNTIME | |
5390 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
5391 | # endif | |
5392 | #endif | |
5393 | for (i = 0; swig_types_initial[i]; i++) { | |
5394 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
5395 | } | |
5396 | typeinit = 1; | |
5397 | } | |
5398 | SWIG_InstallConstants(d,swig_const_table); | |
5399 | ||
5400 | } | |
5401 |