]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.29 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | /* ----------------------------------------------------------------------------- | |
31 | * This section contains generic SWIG labels for method/variable | |
32 | * declarations/attributes, and other compiler dependent labels. | |
33 | * ----------------------------------------------------------------------------- */ | |
34 | ||
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ | |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
37 | # if defined(__SUNPRO_CC) | |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
46 | #endif | |
47 | ||
48 | /* inline attribute */ | |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
59 | # if defined(__GNUC__) | |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
67 | # else | |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
72 | #ifndef SWIGUNUSEDPARM | |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
80 | /* internal SWIG method */ | |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
90 | /* exporting methods */ | |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
97 | #ifndef SWIGEXPORT | |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) | |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
110 | # endif | |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ | |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
126 | ||
127 | ||
128 | /* Python.h has to appear first */ | |
129 | #include <Python.h> | |
130 | ||
131 | /* ----------------------------------------------------------------------------- | |
132 | * swigrun.swg | |
133 | * | |
134 | * This file contains generic CAPI SWIG runtime support for pointer | |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
137 | ||
138 | /* This should only be incremented when either the layout of swig_type_info changes, | |
139 | or for whatever reason, the runtime changes incompatibly */ | |
140 | #define SWIG_RUNTIME_VERSION "2" | |
141 | ||
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ | |
143 | #ifdef SWIG_TYPE_TABLE | |
144 | # define SWIG_QUOTE_STRING(x) #x | |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
147 | #else | |
148 | # define SWIG_TYPE_TABLE_NAME | |
149 | #endif | |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
159 | ||
160 | #ifndef SWIGRUNTIME | |
161 | # define SWIGRUNTIME SWIGINTERN | |
162 | #endif | |
163 | ||
164 | #ifndef SWIGRUNTIMEINLINE | |
165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
166 | #endif | |
167 | ||
168 | /* Generic buffer size */ | |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
309 | #include <string.h> | |
310 | ||
311 | #ifdef __cplusplus | |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
318 | /* Structure to store inforomation on one type */ | |
319 | typedef struct swig_type_info { | |
320 | const char *name; /* mangled name of this type */ | |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
325 | int owndata; /* flag if the structure owns the clientdata */ | |
326 | } swig_type_info; | |
327 | ||
328 | /* Structure to store a type and conversion function used for casting */ | |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
348 | /* | |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; | |
362 | } | |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
368 | Return 0 if not equal, 1 if equal | |
369 | */ | |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
380 | if (*ne) ++ne; | |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
386 | Check type equivalence in a name list like <name1>|<name2>|... | |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
388 | */ | |
389 | SWIGRUNTIME int | |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
397 | } | |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; | |
399 | if (*ne) ++ne; | |
400 | } | |
401 | return equiv; | |
402 | } | |
403 | ||
404 | ||
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
427 | /* | |
428 | Check the typename | |
429 | */ | |
430 | SWIGRUNTIME swig_cast_info * | |
431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); | |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
439 | } | |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { | |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
481 | if (!type) return NULL; | |
482 | if (type->str != NULL) { | |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
493 | /* | |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
498 | swig_cast_info *cast = ti->cast; | |
499 | /* if (ti->clientdata == clientdata) return; */ | |
500 | ti->clientdata = clientdata; | |
501 | ||
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
507 | } | |
508 | } | |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
512 | SWIGRUNTIME void | |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
518 | /* | |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
556 | } | |
557 | iter = iter->next; | |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
591 | } | |
592 | ||
593 | /* neither found a match */ | |
594 | return 0; | |
595 | } | |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
602 | static const char hex[17] = "0123456789abcdef"; | |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
605 | for (; u != eu; ++u) { | |
606 | register unsigned char uu = *u; | |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
619 | register const unsigned char *eu = u + sz; | |
620 | for (; u != eu; ++u) { | |
621 | register char d = *(c++); | |
622 | register unsigned char uu; | |
623 | if ((d >= '0') && (d <= '9')) | |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
641 | /* | |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
682 | ||
683 | SWIGRUNTIME const char * | |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
695 | ||
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
700 | /* Errors in SWIG */ | |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
714 | ||
715 | ||
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
764 | #endif | |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ | |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
799 | ||
800 | /* ----------------------------------------------------------------------------- | |
801 | * error manipulation | |
802 | * ----------------------------------------------------------------------------- */ | |
803 | ||
804 | SWIGRUNTIME PyObject* | |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
846 | ||
847 | ||
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
935 | #endif | |
936 | ||
937 | /* ----------------------------------------------------------------------------- | |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
940 | ||
941 | #ifdef __cplusplus | |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
947 | ||
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
951 | ||
952 | /* Constant Types */ | |
953 | #define SWIG_PY_POINTER 4 | |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
958 | int type; | |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
964 | } swig_const_info; | |
965 | ||
966 | #ifdef __cplusplus | |
967 | #if 0 | |
968 | { /* cc-mode */ | |
969 | #endif | |
970 | } | |
971 | #endif | |
972 | ||
973 | ||
974 | /* ----------------------------------------------------------------------------- | |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
978 | * pyrun.swg | |
979 | * | |
980 | * This file contains the runtime support for Python modules | |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
983 | * | |
984 | * ----------------------------------------------------------------------------- */ | |
985 | ||
986 | /* Common SWIG API */ | |
987 | ||
988 | #if PY_VERSION_HEX < 0x02050000 | |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
992 | /* for raw pointers */ | |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
1000 | ||
1001 | /* for raw packed data */ | |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
1004 | ||
1005 | /* for class or struct pointers */ | |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
1008 | ||
1009 | /* for C or C++ function pointers */ | |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
1012 | ||
1013 | /* for C++ member pointers, ie, member methods */ | |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
1016 | ||
1017 | ||
1018 | /* Runtime API */ | |
1019 | ||
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
1023 | ||
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj | |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
1029 | ||
1030 | ||
1031 | /* Runtime API implementation */ | |
1032 | ||
1033 | /* Error manipulation */ | |
1034 | ||
1035 | SWIGINTERN void | |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
1041 | } | |
1042 | ||
1043 | SWIGINTERN void | |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
1048 | } | |
1049 | ||
1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) | |
1051 | ||
1052 | /* Set a constant value */ | |
1053 | ||
1054 | SWIGINTERN void | |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
1058 | } | |
1059 | ||
1060 | /* Append a value to the result obj */ | |
1061 | ||
1062 | SWIGINTERN PyObject* | |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
1088 | } else { | |
1089 | if (!PyTuple_Check(result)) { | |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
1100 | } | |
1101 | return result; | |
1102 | #endif | |
1103 | } | |
1104 | ||
1105 | /* Unpack the argument tuple */ | |
1106 | ||
1107 | SWIGINTERN int | |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
1591 | (binaryfunc)0, /*nb_divmod*/ | |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
1609 | #if PY_VERSION_HEX >= 0x02020000 | |
1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
1611 | #elif PY_VERSION_HEX >= 0x02000000 | |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
1613 | #endif | |
1614 | }; | |
1615 | ||
1616 | static PyTypeObject pyswigobject_type; | |
1617 | static int type_init = 0; | |
1618 | if (!type_init) { | |
1619 | const PyTypeObject tmp | |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
1632 | #endif | |
1633 | (setattrfunc)0, /* tp_setattr */ | |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
1651 | #if PY_VERSION_HEX >= 0x02020000 | |
1652 | 0, /* tp_iter */ | |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
1672 | #endif | |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
1674 | 0, /* tp_del */ | |
1675 | #endif | |
1676 | #ifdef COUNT_ALLOCS | |
1677 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1678 | #endif | |
1679 | }; | |
1680 | pyswigobject_type = tmp; | |
1681 | pyswigobject_type.ob_type = &PyType_Type; | |
1682 | type_init = 1; | |
1683 | } | |
1684 | return &pyswigobject_type; | |
1685 | } | |
1686 | ||
1687 | SWIGRUNTIME PyObject * | |
1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) | |
1689 | { | |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); | |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
1696 | } | |
1697 | return (PyObject *)sobj; | |
1698 | } | |
1699 | ||
1700 | /* ----------------------------------------------------------------------------- | |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
1707 | swig_type_info *ty; | |
1708 | size_t size; | |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1713 | { | |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
1720 | fputs(v->ty->name,fp); | |
1721 | fputs(">", fp); | |
1722 | return 0; | |
1723 | } | |
1724 | ||
1725 | SWIGRUNTIME PyObject * | |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
1727 | { | |
1728 | char result[SWIG_BUFFER_SIZE]; | |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); | |
1731 | } else { | |
1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); | |
1733 | } | |
1734 | } | |
1735 | ||
1736 | SWIGRUNTIME PyObject * | |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
1741 | return PyString_FromFormat("%s%s", result, v->ty->name); | |
1742 | } else { | |
1743 | return PyString_FromString(v->ty->name); | |
1744 | } | |
1745 | } | |
1746 | ||
1747 | SWIGRUNTIME int | |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
1749 | { | |
1750 | size_t i = v->size; | |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
1754 | } | |
1755 | ||
1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); | |
1757 | ||
1758 | SWIGRUNTIME PyTypeObject* | |
1759 | PySwigPacked_type(void) { | |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); | |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
1835 | #endif | |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
1837 | 0, /* tp_del */ | |
1838 | #endif | |
1839 | #ifdef COUNT_ALLOCS | |
1840 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1841 | #endif | |
1842 | }; | |
1843 | pyswigpacked_type = tmp; | |
1844 | pyswigpacked_type.ob_type = &PyType_Type; | |
1845 | type_init = 1; | |
1846 | } | |
1847 | return &pyswigpacked_type; | |
1848 | } | |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) | |
1852 | { | |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); | |
1854 | if (sobj) { | |
1855 | void *pack = malloc(size); | |
1856 | if (pack) { | |
1857 | memcpy(pack, ptr, size); | |
1858 | sobj->pack = pack; | |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
1864 | } | |
1865 | } | |
1866 | return (PyObject *) sobj; | |
1867 | } | |
1868 | ||
1869 | SWIGRUNTIME swig_type_info * | |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1871 | { | |
1872 | if (PySwigPacked_Check(obj)) { | |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
1880 | } | |
1881 | ||
1882 | /* ----------------------------------------------------------------------------- | |
1883 | * pointers/data manipulation | |
1884 | * ----------------------------------------------------------------------------- */ | |
1885 | ||
1886 | SWIGRUNTIMEINLINE PyObject * | |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
1891 | ||
1892 | SWIGRUNTIME PyObject * | |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
1898 | ||
1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ | |
1900 | ||
1901 | SWIGRUNTIME PySwigObject * | |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
1903 | { | |
1904 | if (PySwigObject_Check(pyobj)) { | |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
1926 | } else { | |
1927 | if (PyErr_Occurred()) PyErr_Clear(); | |
1928 | return 0; | |
1929 | } | |
1930 | } | |
1931 | } | |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
1947 | } | |
1948 | } | |
1949 | ||
1950 | /* Acquire a pointer value */ | |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
1961 | } | |
1962 | return 0; | |
1963 | } | |
1964 | ||
1965 | /* Convert a pointer value */ | |
1966 | ||
1967 | SWIGRUNTIME int | |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { | |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
1992 | } else { | |
1993 | if (ptr) *ptr = vptr; | |
1994 | break; | |
1995 | } | |
1996 | } | |
1997 | if (sobj) { | |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
2042 | } | |
2043 | } | |
2044 | ||
2045 | /* Convert a function ptr value */ | |
2046 | ||
2047 | SWIGRUNTIME int | |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { | |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
2051 | } else { | |
2052 | void *vptr = 0; | |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; | |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
2069 | } | |
2070 | } | |
2071 | ||
2072 | /* Convert a packed value value */ | |
2073 | ||
2074 | SWIGRUNTIME int | |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { | |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
2084 | } | |
2085 | return SWIG_OK; | |
2086 | } | |
2087 | ||
2088 | /* ----------------------------------------------------------------------------- | |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
2091 | ||
2092 | /* | |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
2096 | ||
2097 | SWIGRUNTIME PyObject* | |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
2115 | } | |
2116 | #else | |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
2120 | } | |
2121 | } else { | |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
2126 | } | |
2127 | return inst; | |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
2140 | } | |
2141 | inst->in_class = (PyClassObject *)data->newargs; | |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
2147 | } | |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS | |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
2158 | } | |
2159 | ||
2160 | SWIGRUNTIME void | |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
2175 | #endif | |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); | |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
2180 | ||
2181 | ||
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
2191 | } else { | |
2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); | |
2193 | } | |
2194 | return SWIG_Py_Void(); | |
2195 | } | |
2196 | } | |
2197 | ||
2198 | /* Create a new pointer object */ | |
2199 | ||
2200 | SWIGRUNTIME PyObject * | |
2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { | |
2202 | if (!ptr) { | |
2203 | return SWIG_Py_Void(); | |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
2213 | } | |
2214 | } | |
2215 | return robj; | |
2216 | } | |
2217 | } | |
2218 | ||
2219 | /* Create a new packed object */ | |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); | |
2224 | } | |
2225 | ||
2226 | /* -----------------------------------------------------------------------------* | |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
2234 | SWIGRUNTIME swig_module_info * | |
2235 | SWIG_Python_GetModule(void) { | |
2236 | static void *type_pointer = (void *)0; | |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
2241 | #else | |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
2248 | #endif | |
2249 | } | |
2250 | return (swig_module_info *) type_pointer; | |
2251 | } | |
2252 | ||
2253 | #if PY_MAJOR_VERSION < 2 | |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
2256 | SWIGINTERN int | |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
2263 | return SWIG_ERROR; | |
2264 | } | |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
2268 | return SWIG_ERROR; | |
2269 | } | |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
2276 | return SWIG_ERROR; | |
2277 | } | |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
2279 | return SWIG_ERROR; | |
2280 | Py_DECREF(o); | |
2281 | return SWIG_OK; | |
2282 | } | |
2283 | #endif | |
2284 | ||
2285 | SWIGRUNTIME void | |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
2301 | SWIGRUNTIME void | |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); | |
2308 | if (pointer && module) { | |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
2310 | } else { | |
2311 | Py_XDECREF(pointer); | |
2312 | } | |
2313 | } | |
2314 | ||
2315 | /* The python cached type query */ | |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
2320 | } | |
2321 | ||
2322 | SWIGRUNTIME swig_type_info * | |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
2466 | #define SWIGTYPE_p_char swig_types[0] | |
2467 | #define SWIGTYPE_p_form_ops_t swig_types[1] | |
2468 | #define SWIGTYPE_p_int swig_types[2] | |
2469 | #define SWIGTYPE_p_long swig_types[3] | |
2470 | #define SWIGTYPE_p_unsigned_char swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_int swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_long swig_types[6] | |
2473 | #define SWIGTYPE_p_wxANIHandler swig_types[7] | |
2474 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[8] | |
2475 | #define SWIGTYPE_p_wxActivateEvent swig_types[9] | |
2476 | #define SWIGTYPE_p_wxArrayInt swig_types[10] | |
2477 | #define SWIGTYPE_p_wxBMPHandler swig_types[11] | |
2478 | #define SWIGTYPE_p_wxBitmap swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBoxSizer swig_types[13] | |
2480 | #define SWIGTYPE_p_wxCURHandler swig_types[14] | |
2481 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15] | |
2482 | #define SWIGTYPE_p_wxChar swig_types[16] | |
2483 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[17] | |
2484 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[18] | |
2485 | #define SWIGTYPE_p_wxCloseEvent swig_types[19] | |
2486 | #define SWIGTYPE_p_wxColour swig_types[20] | |
2487 | #define SWIGTYPE_p_wxColourData swig_types[21] | |
2488 | #define SWIGTYPE_p_wxColourDialog swig_types[22] | |
2489 | #define SWIGTYPE_p_wxCommandEvent swig_types[23] | |
2490 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxControl swig_types[25] | |
2492 | #define SWIGTYPE_p_wxControlWithItems swig_types[26] | |
2493 | #define SWIGTYPE_p_wxDateEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxDialog swig_types[28] | |
2495 | #define SWIGTYPE_p_wxDirDialog swig_types[29] | |
2496 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxDuplexMode swig_types[32] | |
2499 | #define SWIGTYPE_p_wxEraseEvent swig_types[33] | |
2500 | #define SWIGTYPE_p_wxEvent swig_types[34] | |
2501 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
2502 | #define SWIGTYPE_p_wxFSFile swig_types[36] | |
2503 | #define SWIGTYPE_p_wxFileDialog swig_types[37] | |
2504 | #define SWIGTYPE_p_wxFileSystem swig_types[38] | |
2505 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxFindReplaceData swig_types[40] | |
2507 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41] | |
2508 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[42] | |
2509 | #define SWIGTYPE_p_wxFocusEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFont swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFontData swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFontDialog swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFrame swig_types[47] | |
2514 | #define SWIGTYPE_p_wxGBSizerItem swig_types[48] | |
2515 | #define SWIGTYPE_p_wxGIFHandler swig_types[49] | |
2516 | #define SWIGTYPE_p_wxGridBagSizer swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGridSizer swig_types[51] | |
2518 | #define SWIGTYPE_p_wxICOHandler swig_types[52] | |
2519 | #define SWIGTYPE_p_wxIconizeEvent swig_types[53] | |
2520 | #define SWIGTYPE_p_wxIdleEvent swig_types[54] | |
2521 | #define SWIGTYPE_p_wxImage swig_types[55] | |
2522 | #define SWIGTYPE_p_wxImageHandler swig_types[56] | |
2523 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57] | |
2524 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[58] | |
2525 | #define SWIGTYPE_p_wxJPEGHandler swig_types[59] | |
2526 | #define SWIGTYPE_p_wxKeyEvent swig_types[60] | |
2527 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61] | |
2528 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[62] | |
2529 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[63] | |
2530 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[64] | |
2531 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[65] | |
2532 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[66] | |
2533 | #define SWIGTYPE_p_wxMenu swig_types[67] | |
2534 | #define SWIGTYPE_p_wxMenuBar swig_types[68] | |
2535 | #define SWIGTYPE_p_wxMenuEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxMenuItem swig_types[70] | |
2537 | #define SWIGTYPE_p_wxMessageDialog swig_types[71] | |
2538 | #define SWIGTYPE_p_wxMiniFrame swig_types[72] | |
2539 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMoveEvent swig_types[76] | |
2543 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[77] | |
2544 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxNotifyEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxNumberEntryDialog swig_types[81] | |
2548 | #define SWIGTYPE_p_wxObject swig_types[82] | |
2549 | #define SWIGTYPE_p_wxPCXHandler swig_types[83] | |
2550 | #define SWIGTYPE_p_wxPNGHandler swig_types[84] | |
2551 | #define SWIGTYPE_p_wxPNMHandler swig_types[85] | |
2552 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[86] | |
2553 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[87] | |
2554 | #define SWIGTYPE_p_wxPaintEvent swig_types[88] | |
2555 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89] | |
2556 | #define SWIGTYPE_p_wxPanel swig_types[90] | |
2557 | #define SWIGTYPE_p_wxPaperSize swig_types[91] | |
2558 | #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[92] | |
2559 | #define SWIGTYPE_p_wxPopupWindow swig_types[93] | |
2560 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[94] | |
2561 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPreviewFrame swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPrintData swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPrintDialog swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPrintDialogData swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPrintPreview swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPrinter swig_types[101] | |
2568 | #define SWIGTYPE_p_wxProgressDialog swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPyEvent swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPyImageHandler swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPyPanel swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyPrintout swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPySizer swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyVListBox swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyValidator swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPyWindow swig_types[120] | |
2587 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[121] | |
2588 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[122] | |
2589 | #define SWIGTYPE_p_wxRichTextAttr swig_types[123] | |
2590 | #define SWIGTYPE_p_wxRichTextBuffer swig_types[124] | |
2591 | #define SWIGTYPE_p_wxRichTextCtrl swig_types[125] | |
2592 | #define SWIGTYPE_p_wxRichTextEvent swig_types[126] | |
2593 | #define SWIGTYPE_p_wxRichTextImageBlock swig_types[127] | |
2594 | #define SWIGTYPE_p_wxRichTextRange swig_types[128] | |
2595 | #define SWIGTYPE_p_wxRichTextStyleSheet swig_types[129] | |
2596 | #define SWIGTYPE_p_wxSashEvent swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[131] | |
2598 | #define SWIGTYPE_p_wxSashWindow swig_types[132] | |
2599 | #define SWIGTYPE_p_wxScrollEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScrolledWindow swig_types[135] | |
2602 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxShowEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSimpleHtmlListBox swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizeEvent swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizer swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizerItem swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreen swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterEvent swig_types[145] | |
2612 | #define SWIGTYPE_p_wxSplitterWindow swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStatusBar swig_types[148] | |
2615 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149] | |
2616 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxTGAHandler swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTIFFHandler swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextCoord swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTipWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[158] | |
2625 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[159] | |
2626 | #define SWIGTYPE_p_wxValidator swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindow swig_types[161] | |
2628 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxXPMHandler swig_types[164] | |
2631 | static swig_type_info *swig_types[166]; | |
2632 | static swig_module_info swig_module = {swig_types, 165, 0, 0, 0, 0}; | |
2633 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) | |
2634 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2635 | ||
2636 | /* -------- TYPES TABLE (END) -------- */ | |
2637 | ||
2638 | #if (PY_VERSION_HEX <= 0x02000000) | |
2639 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2640 | # error "This python version requires to use swig with the '-classic' option" | |
2641 | # endif | |
2642 | #endif | |
2643 | #if (PY_VERSION_HEX <= 0x02020000) | |
2644 | # error "This python version requires to use swig with the '-nomodern' option" | |
2645 | #endif | |
2646 | #if (PY_VERSION_HEX <= 0x02020000) | |
2647 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2648 | #endif | |
2649 | #ifndef METH_O | |
2650 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2651 | #endif | |
2652 | ||
2653 | /*----------------------------------------------- | |
2654 | @(target):= _richtext.so | |
2655 | ------------------------------------------------*/ | |
2656 | #define SWIG_init init_richtext | |
2657 | ||
2658 | #define SWIG_name "_richtext" | |
2659 | ||
2660 | #define SWIGVERSION 0x010329 | |
2661 | ||
2662 | ||
2663 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2664 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2665 | ||
2666 | ||
2667 | #include <stdexcept> | |
2668 | ||
2669 | ||
2670 | namespace swig { | |
2671 | class PyObject_ptr { | |
2672 | protected: | |
2673 | PyObject *_obj; | |
2674 | ||
2675 | public: | |
2676 | PyObject_ptr() :_obj(0) | |
2677 | { | |
2678 | } | |
2679 | ||
2680 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2681 | { | |
2682 | Py_XINCREF(_obj); | |
2683 | } | |
2684 | ||
2685 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2686 | { | |
2687 | if (initial_ref) Py_XINCREF(_obj); | |
2688 | } | |
2689 | ||
2690 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2691 | { | |
2692 | Py_XINCREF(item._obj); | |
2693 | Py_XDECREF(_obj); | |
2694 | _obj = item._obj; | |
2695 | return *this; | |
2696 | } | |
2697 | ||
2698 | ~PyObject_ptr() | |
2699 | { | |
2700 | Py_XDECREF(_obj); | |
2701 | } | |
2702 | ||
2703 | operator PyObject *() const | |
2704 | { | |
2705 | return _obj; | |
2706 | } | |
2707 | ||
2708 | PyObject *operator->() const | |
2709 | { | |
2710 | return _obj; | |
2711 | } | |
2712 | }; | |
2713 | } | |
2714 | ||
2715 | ||
2716 | namespace swig { | |
2717 | struct PyObject_var : PyObject_ptr { | |
2718 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2719 | ||
2720 | PyObject_var & operator = (PyObject* obj) | |
2721 | { | |
2722 | Py_XDECREF(_obj); | |
2723 | _obj = obj; | |
2724 | return *this; | |
2725 | } | |
2726 | }; | |
2727 | } | |
2728 | ||
2729 | ||
2730 | #include "wx/wxPython/wxPython.h" | |
2731 | #include "wx/wxPython/pyclasses.h" | |
2732 | #include "wx/wxPython/printfw.h" | |
2733 | #include "wx/wxPython/twoitem.h" | |
2734 | ||
2735 | #include <wx/richtext/richtextctrl.h> | |
2736 | ||
2737 | ||
2738 | class wxEffects; | |
2739 | class wxBufferedDC; | |
2740 | class wxBufferedPaintDC; | |
2741 | class wxMetaFile; | |
2742 | class wxMetaFileDC; | |
2743 | class wxPrinterDC; | |
2744 | ||
2745 | ||
2746 | ||
2747 | #define SWIG_From_long PyInt_FromLong | |
2748 | ||
2749 | ||
2750 | SWIGINTERNINLINE PyObject * | |
2751 | SWIG_From_int (int value) | |
2752 | { | |
2753 | return SWIG_From_long (value); | |
2754 | } | |
2755 | ||
2756 | static const wxString wxPyEmptyString(wxEmptyString); | |
2757 | ||
2758 | ||
2759 | bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj) | |
2760 | { | |
2761 | if (source == Py_None) { | |
2762 | **obj = wxRICHTEXT_NONE; | |
2763 | return true; | |
2764 | } | |
2765 | return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange")); | |
2766 | } | |
2767 | ||
2768 | ||
2769 | SWIGINTERN int | |
2770 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2771 | { | |
2772 | if (PyNumber_Check(obj)) { | |
2773 | if (val) *val = PyInt_AsLong(obj); | |
2774 | return SWIG_OK; | |
2775 | } | |
2776 | return SWIG_TypeError; | |
2777 | } | |
2778 | ||
2779 | SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){ | |
2780 | wxRichTextRange temp, *obj = &temp; | |
2781 | if ( other == Py_None ) return false; | |
2782 | if ( ! wxRichTextRange_helper(other, &obj) ) { | |
2783 | PyErr_Clear(); | |
2784 | return false; | |
2785 | } | |
2786 | return self->operator==(*obj); | |
2787 | } | |
2788 | SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){ | |
2789 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2790 | PyObject* tup = PyTuple_New(2); | |
2791 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart())); | |
2792 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd())); | |
2793 | wxPyEndBlockThreads(blocked); | |
2794 | return tup; | |
2795 | } | |
2796 | ||
2797 | wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL); | |
2798 | wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE); | |
2799 | ||
2800 | ||
2801 | #include <limits.h> | |
2802 | #ifndef LLONG_MIN | |
2803 | # define LLONG_MIN LONG_LONG_MIN | |
2804 | #endif | |
2805 | #ifndef LLONG_MAX | |
2806 | # define LLONG_MAX LONG_LONG_MAX | |
2807 | #endif | |
2808 | #ifndef ULLONG_MAX | |
2809 | # define ULLONG_MAX ULONG_LONG_MAX | |
2810 | #endif | |
2811 | ||
2812 | ||
2813 | SWIGINTERN int | |
2814 | SWIG_AsVal_int (PyObject * obj, int *val) | |
2815 | { | |
2816 | long v; | |
2817 | int res = SWIG_AsVal_long (obj, &v); | |
2818 | if (SWIG_IsOK(res)) { | |
2819 | if ((v < INT_MIN || v > INT_MAX)) { | |
2820 | return SWIG_OverflowError; | |
2821 | } else { | |
2822 | if (val) *val = static_cast< int >(v); | |
2823 | } | |
2824 | } | |
2825 | return res; | |
2826 | } | |
2827 | ||
2828 | ||
2829 | SWIGINTERN int | |
2830 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2831 | { | |
2832 | if (obj == Py_True) { | |
2833 | if (val) *val = true; | |
2834 | return SWIG_OK; | |
2835 | } else if (obj == Py_False) { | |
2836 | if (val) *val = false; | |
2837 | return SWIG_OK; | |
2838 | } else { | |
2839 | long v = 0; | |
2840 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2841 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2842 | return res; | |
2843 | } | |
2844 | } | |
2845 | ||
2846 | ||
2847 | SWIGINTERN int | |
2848 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2849 | { | |
2850 | long v = 0; | |
2851 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2852 | return SWIG_TypeError; | |
2853 | } | |
2854 | else if (val) | |
2855 | *val = (unsigned long)v; | |
2856 | return SWIG_OK; | |
2857 | } | |
2858 | ||
2859 | #ifdef __cplusplus | |
2860 | extern "C" { | |
2861 | #endif | |
2862 | SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2863 | PyObject *resultobj = 0; | |
2864 | long arg1 = (long) 0 ; | |
2865 | long arg2 = (long) 0 ; | |
2866 | wxRichTextRange *result = 0 ; | |
2867 | long val1 ; | |
2868 | int ecode1 = 0 ; | |
2869 | long val2 ; | |
2870 | int ecode2 = 0 ; | |
2871 | PyObject * obj0 = 0 ; | |
2872 | PyObject * obj1 = 0 ; | |
2873 | char * kwnames[] = { | |
2874 | (char *) "start",(char *) "end", NULL | |
2875 | }; | |
2876 | ||
2877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
2878 | if (obj0) { | |
2879 | ecode1 = SWIG_AsVal_long(obj0, &val1); | |
2880 | if (!SWIG_IsOK(ecode1)) { | |
2881 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'"); | |
2882 | } | |
2883 | arg1 = static_cast< long >(val1); | |
2884 | } | |
2885 | if (obj1) { | |
2886 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
2887 | if (!SWIG_IsOK(ecode2)) { | |
2888 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'"); | |
2889 | } | |
2890 | arg2 = static_cast< long >(val2); | |
2891 | } | |
2892 | { | |
2893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2894 | result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2); | |
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 ); | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
2906 | PyObject *resultobj = 0; | |
2907 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2908 | void *argp1 = 0 ; | |
2909 | int res1 = 0 ; | |
2910 | PyObject *swig_obj[1] ; | |
2911 | ||
2912 | if (!args) SWIG_fail; | |
2913 | swig_obj[0] = args; | |
2914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 ); | |
2915 | if (!SWIG_IsOK(res1)) { | |
2916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
2917 | } | |
2918 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2919 | { | |
2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2921 | delete arg1; | |
2922 | ||
2923 | wxPyEndAllowThreads(__tstate); | |
2924 | if (PyErr_Occurred()) SWIG_fail; | |
2925 | } | |
2926 | resultobj = SWIG_Py_Void(); | |
2927 | return resultobj; | |
2928 | fail: | |
2929 | return NULL; | |
2930 | } | |
2931 | ||
2932 | ||
2933 | SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2934 | PyObject *resultobj = 0; | |
2935 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2936 | PyObject *arg2 = (PyObject *) 0 ; | |
2937 | bool result; | |
2938 | void *argp1 = 0 ; | |
2939 | int res1 = 0 ; | |
2940 | PyObject * obj0 = 0 ; | |
2941 | PyObject * obj1 = 0 ; | |
2942 | char * kwnames[] = { | |
2943 | (char *) "self",(char *) "other", NULL | |
2944 | }; | |
2945 | ||
2946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
2947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
2948 | if (!SWIG_IsOK(res1)) { | |
2949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
2950 | } | |
2951 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2952 | arg2 = obj1; | |
2953 | { | |
2954 | result = (bool)wxRichTextRange___eq__(arg1,arg2); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2959 | } | |
2960 | return resultobj; | |
2961 | fail: | |
2962 | return NULL; | |
2963 | } | |
2964 | ||
2965 | ||
2966 | SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2967 | PyObject *resultobj = 0; | |
2968 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2969 | wxRichTextRange *arg2 = 0 ; | |
2970 | wxRichTextRange result; | |
2971 | void *argp1 = 0 ; | |
2972 | int res1 = 0 ; | |
2973 | wxRichTextRange temp2 ; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | PyObject * obj1 = 0 ; | |
2976 | char * kwnames[] = { | |
2977 | (char *) "self",(char *) "range", NULL | |
2978 | }; | |
2979 | ||
2980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail; | |
2981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
2982 | if (!SWIG_IsOK(res1)) { | |
2983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
2984 | } | |
2985 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2986 | { | |
2987 | arg2 = &temp2; | |
2988 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
2989 | } | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2); | |
2993 | wxPyEndAllowThreads(__tstate); | |
2994 | if (PyErr_Occurred()) SWIG_fail; | |
2995 | } | |
2996 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | return NULL; | |
3000 | } | |
3001 | ||
3002 | ||
3003 | SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3004 | PyObject *resultobj = 0; | |
3005 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3006 | wxRichTextRange *arg2 = 0 ; | |
3007 | wxRichTextRange result; | |
3008 | void *argp1 = 0 ; | |
3009 | int res1 = 0 ; | |
3010 | wxRichTextRange temp2 ; | |
3011 | PyObject * obj0 = 0 ; | |
3012 | PyObject * obj1 = 0 ; | |
3013 | char * kwnames[] = { | |
3014 | (char *) "self",(char *) "range", NULL | |
3015 | }; | |
3016 | ||
3017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3019 | if (!SWIG_IsOK(res1)) { | |
3020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3021 | } | |
3022 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3023 | { | |
3024 | arg2 = &temp2; | |
3025 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3026 | } | |
3027 | { | |
3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3029 | result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2); | |
3030 | wxPyEndAllowThreads(__tstate); | |
3031 | if (PyErr_Occurred()) SWIG_fail; | |
3032 | } | |
3033 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3034 | return resultobj; | |
3035 | fail: | |
3036 | return NULL; | |
3037 | } | |
3038 | ||
3039 | ||
3040 | SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3041 | PyObject *resultobj = 0; | |
3042 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3043 | long arg2 ; | |
3044 | long arg3 ; | |
3045 | void *argp1 = 0 ; | |
3046 | int res1 = 0 ; | |
3047 | long val2 ; | |
3048 | int ecode2 = 0 ; | |
3049 | long val3 ; | |
3050 | int ecode3 = 0 ; | |
3051 | PyObject * obj0 = 0 ; | |
3052 | PyObject * obj1 = 0 ; | |
3053 | PyObject * obj2 = 0 ; | |
3054 | char * kwnames[] = { | |
3055 | (char *) "self",(char *) "start",(char *) "end", NULL | |
3056 | }; | |
3057 | ||
3058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3060 | if (!SWIG_IsOK(res1)) { | |
3061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3062 | } | |
3063 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3064 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3065 | if (!SWIG_IsOK(ecode2)) { | |
3066 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'"); | |
3067 | } | |
3068 | arg2 = static_cast< long >(val2); | |
3069 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
3070 | if (!SWIG_IsOK(ecode3)) { | |
3071 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'"); | |
3072 | } | |
3073 | arg3 = static_cast< long >(val3); | |
3074 | { | |
3075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3076 | (arg1)->SetRange(arg2,arg3); | |
3077 | wxPyEndAllowThreads(__tstate); | |
3078 | if (PyErr_Occurred()) SWIG_fail; | |
3079 | } | |
3080 | resultobj = SWIG_Py_Void(); | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | return NULL; | |
3084 | } | |
3085 | ||
3086 | ||
3087 | SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3088 | PyObject *resultobj = 0; | |
3089 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3090 | long arg2 ; | |
3091 | void *argp1 = 0 ; | |
3092 | int res1 = 0 ; | |
3093 | long val2 ; | |
3094 | int ecode2 = 0 ; | |
3095 | PyObject * obj0 = 0 ; | |
3096 | PyObject * obj1 = 0 ; | |
3097 | char * kwnames[] = { | |
3098 | (char *) "self",(char *) "start", NULL | |
3099 | }; | |
3100 | ||
3101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
3102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3103 | if (!SWIG_IsOK(res1)) { | |
3104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3105 | } | |
3106 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3107 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3108 | if (!SWIG_IsOK(ecode2)) { | |
3109 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'"); | |
3110 | } | |
3111 | arg2 = static_cast< long >(val2); | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | (arg1)->SetStart(arg2); | |
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | resultobj = SWIG_Py_Void(); | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | return NULL; | |
3122 | } | |
3123 | ||
3124 | ||
3125 | SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3126 | PyObject *resultobj = 0; | |
3127 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3128 | long result; | |
3129 | void *argp1 = 0 ; | |
3130 | int res1 = 0 ; | |
3131 | PyObject *swig_obj[1] ; | |
3132 | ||
3133 | if (!args) SWIG_fail; | |
3134 | swig_obj[0] = args; | |
3135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3136 | if (!SWIG_IsOK(res1)) { | |
3137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3138 | } | |
3139 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3140 | { | |
3141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3142 | result = (long)((wxRichTextRange const *)arg1)->GetStart(); | |
3143 | wxPyEndAllowThreads(__tstate); | |
3144 | if (PyErr_Occurred()) SWIG_fail; | |
3145 | } | |
3146 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3147 | return resultobj; | |
3148 | fail: | |
3149 | return NULL; | |
3150 | } | |
3151 | ||
3152 | ||
3153 | SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3154 | PyObject *resultobj = 0; | |
3155 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3156 | long arg2 ; | |
3157 | void *argp1 = 0 ; | |
3158 | int res1 = 0 ; | |
3159 | long val2 ; | |
3160 | int ecode2 = 0 ; | |
3161 | PyObject * obj0 = 0 ; | |
3162 | PyObject * obj1 = 0 ; | |
3163 | char * kwnames[] = { | |
3164 | (char *) "self",(char *) "end", NULL | |
3165 | }; | |
3166 | ||
3167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
3168 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3169 | if (!SWIG_IsOK(res1)) { | |
3170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3171 | } | |
3172 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3173 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3174 | if (!SWIG_IsOK(ecode2)) { | |
3175 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'"); | |
3176 | } | |
3177 | arg2 = static_cast< long >(val2); | |
3178 | { | |
3179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3180 | (arg1)->SetEnd(arg2); | |
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | resultobj = SWIG_Py_Void(); | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3192 | PyObject *resultobj = 0; | |
3193 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3194 | long result; | |
3195 | void *argp1 = 0 ; | |
3196 | int res1 = 0 ; | |
3197 | PyObject *swig_obj[1] ; | |
3198 | ||
3199 | if (!args) SWIG_fail; | |
3200 | swig_obj[0] = args; | |
3201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3202 | if (!SWIG_IsOK(res1)) { | |
3203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3204 | } | |
3205 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3206 | { | |
3207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3208 | result = (long)((wxRichTextRange const *)arg1)->GetEnd(); | |
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3213 | return resultobj; | |
3214 | fail: | |
3215 | return NULL; | |
3216 | } | |
3217 | ||
3218 | ||
3219 | SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3220 | PyObject *resultobj = 0; | |
3221 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3222 | wxRichTextRange *arg2 = 0 ; | |
3223 | bool result; | |
3224 | void *argp1 = 0 ; | |
3225 | int res1 = 0 ; | |
3226 | wxRichTextRange temp2 ; | |
3227 | PyObject * obj0 = 0 ; | |
3228 | PyObject * obj1 = 0 ; | |
3229 | char * kwnames[] = { | |
3230 | (char *) "self",(char *) "range", NULL | |
3231 | }; | |
3232 | ||
3233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail; | |
3234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3235 | if (!SWIG_IsOK(res1)) { | |
3236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3237 | } | |
3238 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3239 | { | |
3240 | arg2 = &temp2; | |
3241 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3242 | } | |
3243 | { | |
3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3245 | result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2); | |
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | { | |
3250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3251 | } | |
3252 | return resultobj; | |
3253 | fail: | |
3254 | return NULL; | |
3255 | } | |
3256 | ||
3257 | ||
3258 | SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3259 | PyObject *resultobj = 0; | |
3260 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3261 | wxRichTextRange *arg2 = 0 ; | |
3262 | bool result; | |
3263 | void *argp1 = 0 ; | |
3264 | int res1 = 0 ; | |
3265 | wxRichTextRange temp2 ; | |
3266 | PyObject * obj0 = 0 ; | |
3267 | PyObject * obj1 = 0 ; | |
3268 | char * kwnames[] = { | |
3269 | (char *) "self",(char *) "range", NULL | |
3270 | }; | |
3271 | ||
3272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail; | |
3273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3274 | if (!SWIG_IsOK(res1)) { | |
3275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3276 | } | |
3277 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3278 | { | |
3279 | arg2 = &temp2; | |
3280 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2); | |
3285 | wxPyEndAllowThreads(__tstate); | |
3286 | if (PyErr_Occurred()) SWIG_fail; | |
3287 | } | |
3288 | { | |
3289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3290 | } | |
3291 | return resultobj; | |
3292 | fail: | |
3293 | return NULL; | |
3294 | } | |
3295 | ||
3296 | ||
3297 | SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3298 | PyObject *resultobj = 0; | |
3299 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3300 | long arg2 ; | |
3301 | bool result; | |
3302 | void *argp1 = 0 ; | |
3303 | int res1 = 0 ; | |
3304 | long val2 ; | |
3305 | int ecode2 = 0 ; | |
3306 | PyObject * obj0 = 0 ; | |
3307 | PyObject * obj1 = 0 ; | |
3308 | char * kwnames[] = { | |
3309 | (char *) "self",(char *) "pos", NULL | |
3310 | }; | |
3311 | ||
3312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail; | |
3313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3314 | if (!SWIG_IsOK(res1)) { | |
3315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3316 | } | |
3317 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3318 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3319 | if (!SWIG_IsOK(ecode2)) { | |
3320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'"); | |
3321 | } | |
3322 | arg2 = static_cast< long >(val2); | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2); | |
3326 | wxPyEndAllowThreads(__tstate); | |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
3328 | } | |
3329 | { | |
3330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3339 | PyObject *resultobj = 0; | |
3340 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3341 | wxRichTextRange *arg2 = 0 ; | |
3342 | bool result; | |
3343 | void *argp1 = 0 ; | |
3344 | int res1 = 0 ; | |
3345 | wxRichTextRange temp2 ; | |
3346 | PyObject * obj0 = 0 ; | |
3347 | PyObject * obj1 = 0 ; | |
3348 | char * kwnames[] = { | |
3349 | (char *) "self",(char *) "range", NULL | |
3350 | }; | |
3351 | ||
3352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
3353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3354 | if (!SWIG_IsOK(res1)) { | |
3355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3356 | } | |
3357 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3358 | { | |
3359 | arg2 = &temp2; | |
3360 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3361 | } | |
3362 | { | |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2); | |
3365 | wxPyEndAllowThreads(__tstate); | |
3366 | if (PyErr_Occurred()) SWIG_fail; | |
3367 | } | |
3368 | { | |
3369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3370 | } | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3378 | PyObject *resultobj = 0; | |
3379 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3380 | long result; | |
3381 | void *argp1 = 0 ; | |
3382 | int res1 = 0 ; | |
3383 | PyObject *swig_obj[1] ; | |
3384 | ||
3385 | if (!args) SWIG_fail; | |
3386 | swig_obj[0] = args; | |
3387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3388 | if (!SWIG_IsOK(res1)) { | |
3389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3390 | } | |
3391 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3392 | { | |
3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3394 | result = (long)((wxRichTextRange const *)arg1)->GetLength(); | |
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3399 | return resultobj; | |
3400 | fail: | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
3405 | SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3406 | PyObject *resultobj = 0; | |
3407 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3408 | void *argp1 = 0 ; | |
3409 | int res1 = 0 ; | |
3410 | PyObject *swig_obj[1] ; | |
3411 | ||
3412 | if (!args) SWIG_fail; | |
3413 | swig_obj[0] = args; | |
3414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3415 | if (!SWIG_IsOK(res1)) { | |
3416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3417 | } | |
3418 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3419 | { | |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | (arg1)->Swap(); | |
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | resultobj = SWIG_Py_Void(); | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3433 | PyObject *resultobj = 0; | |
3434 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3435 | PyObject *result = 0 ; | |
3436 | void *argp1 = 0 ; | |
3437 | int res1 = 0 ; | |
3438 | PyObject *swig_obj[1] ; | |
3439 | ||
3440 | if (!args) SWIG_fail; | |
3441 | swig_obj[0] = args; | |
3442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3443 | if (!SWIG_IsOK(res1)) { | |
3444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3445 | } | |
3446 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3447 | { | |
3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3449 | result = (PyObject *)wxRichTextRange_Get(arg1); | |
3450 | wxPyEndAllowThreads(__tstate); | |
3451 | if (PyErr_Occurred()) SWIG_fail; | |
3452 | } | |
3453 | resultobj = result; | |
3454 | return resultobj; | |
3455 | fail: | |
3456 | return NULL; | |
3457 | } | |
3458 | ||
3459 | ||
3460 | SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3461 | PyObject *obj; | |
3462 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3463 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj)); | |
3464 | return SWIG_Py_Void(); | |
3465 | } | |
3466 | ||
3467 | SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3468 | return SWIG_Python_InitShadowInstance(args); | |
3469 | } | |
3470 | ||
3471 | SWIGINTERN int RICHTEXT_ALL_set(PyObject *) { | |
3472 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only."); | |
3473 | return 1; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | SWIGINTERN PyObject *RICHTEXT_ALL_get(void) { | |
3478 | PyObject *pyobj = 0; | |
3479 | ||
3480 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3481 | return pyobj; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | SWIGINTERN int RICHTEXT_NONE_set(PyObject *) { | |
3486 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only."); | |
3487 | return 1; | |
3488 | } | |
3489 | ||
3490 | ||
3491 | SWIGINTERN PyObject *RICHTEXT_NONE_get(void) { | |
3492 | PyObject *pyobj = 0; | |
3493 | ||
3494 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3495 | return pyobj; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3500 | PyObject *resultobj = 0; | |
3501 | wxColour const &arg1_defvalue = wxNullColour ; | |
3502 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
3503 | wxColour const &arg2_defvalue = wxNullColour ; | |
3504 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3505 | wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
3506 | wxRichTextAttr *result = 0 ; | |
3507 | wxColour temp1 ; | |
3508 | wxColour temp2 ; | |
3509 | int val3 ; | |
3510 | int ecode3 = 0 ; | |
3511 | PyObject * obj0 = 0 ; | |
3512 | PyObject * obj1 = 0 ; | |
3513 | PyObject * obj2 = 0 ; | |
3514 | char * kwnames[] = { | |
3515 | (char *) "colText",(char *) "colBack",(char *) "alignment", NULL | |
3516 | }; | |
3517 | ||
3518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3519 | if (obj0) { | |
3520 | { | |
3521 | arg1 = &temp1; | |
3522 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3523 | } | |
3524 | } | |
3525 | if (obj1) { | |
3526 | { | |
3527 | arg2 = &temp2; | |
3528 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3529 | } | |
3530 | } | |
3531 | if (obj2) { | |
3532 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3533 | if (!SWIG_IsOK(ecode3)) { | |
3534 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'"); | |
3535 | } | |
3536 | arg3 = static_cast< wxTextAttrAlignment >(val3); | |
3537 | } | |
3538 | { | |
3539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3540 | result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3); | |
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
3544 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 ); | |
3545 | return resultobj; | |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
3551 | SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3552 | PyObject *resultobj = 0; | |
3553 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3554 | void *argp1 = 0 ; | |
3555 | int res1 = 0 ; | |
3556 | PyObject *swig_obj[1] ; | |
3557 | ||
3558 | if (!args) SWIG_fail; | |
3559 | swig_obj[0] = args; | |
3560 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
3561 | if (!SWIG_IsOK(res1)) { | |
3562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3563 | } | |
3564 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3565 | { | |
3566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3567 | delete arg1; | |
3568 | ||
3569 | wxPyEndAllowThreads(__tstate); | |
3570 | if (PyErr_Occurred()) SWIG_fail; | |
3571 | } | |
3572 | resultobj = SWIG_Py_Void(); | |
3573 | return resultobj; | |
3574 | fail: | |
3575 | return NULL; | |
3576 | } | |
3577 | ||
3578 | ||
3579 | SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3580 | PyObject *resultobj = 0; | |
3581 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3582 | wxFont result; | |
3583 | void *argp1 = 0 ; | |
3584 | int res1 = 0 ; | |
3585 | PyObject *swig_obj[1] ; | |
3586 | ||
3587 | if (!args) SWIG_fail; | |
3588 | swig_obj[0] = args; | |
3589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3590 | if (!SWIG_IsOK(res1)) { | |
3591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
3592 | } | |
3593 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3594 | { | |
3595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3596 | result = ((wxRichTextAttr const *)arg1)->CreateFont(); | |
3597 | wxPyEndAllowThreads(__tstate); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | } | |
3600 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
3601 | return resultobj; | |
3602 | fail: | |
3603 | return NULL; | |
3604 | } | |
3605 | ||
3606 | ||
3607 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3608 | PyObject *resultobj = 0; | |
3609 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3610 | wxFont *arg2 = 0 ; | |
3611 | bool result; | |
3612 | void *argp1 = 0 ; | |
3613 | int res1 = 0 ; | |
3614 | void *argp2 = 0 ; | |
3615 | int res2 = 0 ; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | PyObject * obj1 = 0 ; | |
3618 | char * kwnames[] = { | |
3619 | (char *) "self",(char *) "font", NULL | |
3620 | }; | |
3621 | ||
3622 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail; | |
3623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3624 | if (!SWIG_IsOK(res1)) { | |
3625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3626 | } | |
3627 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3628 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
3629 | if (!SWIG_IsOK(res2)) { | |
3630 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3631 | } | |
3632 | if (!argp2) { | |
3633 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3634 | } | |
3635 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2); | |
3639 | wxPyEndAllowThreads(__tstate); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
3642 | { | |
3643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3644 | } | |
3645 | return resultobj; | |
3646 | fail: | |
3647 | return NULL; | |
3648 | } | |
3649 | ||
3650 | ||
3651 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3652 | PyObject *resultobj = 0; | |
3653 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3654 | wxColour *arg2 = 0 ; | |
3655 | void *argp1 = 0 ; | |
3656 | int res1 = 0 ; | |
3657 | wxColour temp2 ; | |
3658 | PyObject * obj0 = 0 ; | |
3659 | PyObject * obj1 = 0 ; | |
3660 | char * kwnames[] = { | |
3661 | (char *) "self",(char *) "colText", NULL | |
3662 | }; | |
3663 | ||
3664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3666 | if (!SWIG_IsOK(res1)) { | |
3667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3668 | } | |
3669 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3670 | { | |
3671 | arg2 = &temp2; | |
3672 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3673 | } | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3677 | wxPyEndAllowThreads(__tstate); | |
3678 | if (PyErr_Occurred()) SWIG_fail; | |
3679 | } | |
3680 | resultobj = SWIG_Py_Void(); | |
3681 | return resultobj; | |
3682 | fail: | |
3683 | return NULL; | |
3684 | } | |
3685 | ||
3686 | ||
3687 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3688 | PyObject *resultobj = 0; | |
3689 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3690 | wxColour *arg2 = 0 ; | |
3691 | void *argp1 = 0 ; | |
3692 | int res1 = 0 ; | |
3693 | wxColour temp2 ; | |
3694 | PyObject * obj0 = 0 ; | |
3695 | PyObject * obj1 = 0 ; | |
3696 | char * kwnames[] = { | |
3697 | (char *) "self",(char *) "colBack", NULL | |
3698 | }; | |
3699 | ||
3700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3702 | if (!SWIG_IsOK(res1)) { | |
3703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3704 | } | |
3705 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3706 | { | |
3707 | arg2 = &temp2; | |
3708 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3709 | } | |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3713 | wxPyEndAllowThreads(__tstate); | |
3714 | if (PyErr_Occurred()) SWIG_fail; | |
3715 | } | |
3716 | resultobj = SWIG_Py_Void(); | |
3717 | return resultobj; | |
3718 | fail: | |
3719 | return NULL; | |
3720 | } | |
3721 | ||
3722 | ||
3723 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3724 | PyObject *resultobj = 0; | |
3725 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3726 | wxTextAttrAlignment arg2 ; | |
3727 | void *argp1 = 0 ; | |
3728 | int res1 = 0 ; | |
3729 | int val2 ; | |
3730 | int ecode2 = 0 ; | |
3731 | PyObject * obj0 = 0 ; | |
3732 | PyObject * obj1 = 0 ; | |
3733 | char * kwnames[] = { | |
3734 | (char *) "self",(char *) "alignment", NULL | |
3735 | }; | |
3736 | ||
3737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
3738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3739 | if (!SWIG_IsOK(res1)) { | |
3740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3741 | } | |
3742 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3743 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3744 | if (!SWIG_IsOK(ecode2)) { | |
3745 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
3746 | } | |
3747 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
3748 | { | |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | (arg1)->SetAlignment(arg2); | |
3751 | wxPyEndAllowThreads(__tstate); | |
3752 | if (PyErr_Occurred()) SWIG_fail; | |
3753 | } | |
3754 | resultobj = SWIG_Py_Void(); | |
3755 | return resultobj; | |
3756 | fail: | |
3757 | return NULL; | |
3758 | } | |
3759 | ||
3760 | ||
3761 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3762 | PyObject *resultobj = 0; | |
3763 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3764 | wxArrayInt *arg2 = 0 ; | |
3765 | void *argp1 = 0 ; | |
3766 | int res1 = 0 ; | |
3767 | bool temp2 = false ; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | PyObject * obj1 = 0 ; | |
3770 | char * kwnames[] = { | |
3771 | (char *) "self",(char *) "tabs", NULL | |
3772 | }; | |
3773 | ||
3774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
3775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3776 | if (!SWIG_IsOK(res1)) { | |
3777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3778 | } | |
3779 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3780 | { | |
3781 | if (! PySequence_Check(obj1)) { | |
3782 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
3783 | SWIG_fail; | |
3784 | } | |
3785 | arg2 = new wxArrayInt; | |
3786 | temp2 = true; | |
3787 | int i, len=PySequence_Length(obj1); | |
3788 | for (i=0; i<len; i++) { | |
3789 | PyObject* item = PySequence_GetItem(obj1, i); | |
3790 | PyObject* number = PyNumber_Int(item); | |
3791 | if (!number) { | |
3792 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
3793 | SWIG_fail; | |
3794 | } | |
3795 | arg2->Add(PyInt_AS_LONG(number)); | |
3796 | Py_DECREF(item); | |
3797 | Py_DECREF(number); | |
3798 | } | |
3799 | } | |
3800 | { | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
3806 | resultobj = SWIG_Py_Void(); | |
3807 | { | |
3808 | if (temp2) delete arg2; | |
3809 | } | |
3810 | return resultobj; | |
3811 | fail: | |
3812 | { | |
3813 | if (temp2) delete arg2; | |
3814 | } | |
3815 | return NULL; | |
3816 | } | |
3817 | ||
3818 | ||
3819 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3820 | PyObject *resultobj = 0; | |
3821 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3822 | int arg2 ; | |
3823 | int arg3 = (int) 0 ; | |
3824 | void *argp1 = 0 ; | |
3825 | int res1 = 0 ; | |
3826 | int val2 ; | |
3827 | int ecode2 = 0 ; | |
3828 | int val3 ; | |
3829 | int ecode3 = 0 ; | |
3830 | PyObject * obj0 = 0 ; | |
3831 | PyObject * obj1 = 0 ; | |
3832 | PyObject * obj2 = 0 ; | |
3833 | char * kwnames[] = { | |
3834 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
3835 | }; | |
3836 | ||
3837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3839 | if (!SWIG_IsOK(res1)) { | |
3840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3841 | } | |
3842 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3843 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3844 | if (!SWIG_IsOK(ecode2)) { | |
3845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
3846 | } | |
3847 | arg2 = static_cast< int >(val2); | |
3848 | if (obj2) { | |
3849 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3850 | if (!SWIG_IsOK(ecode3)) { | |
3851 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
3852 | } | |
3853 | arg3 = static_cast< int >(val3); | |
3854 | } | |
3855 | { | |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3857 | (arg1)->SetLeftIndent(arg2,arg3); | |
3858 | wxPyEndAllowThreads(__tstate); | |
3859 | if (PyErr_Occurred()) SWIG_fail; | |
3860 | } | |
3861 | resultobj = SWIG_Py_Void(); | |
3862 | return resultobj; | |
3863 | fail: | |
3864 | return NULL; | |
3865 | } | |
3866 | ||
3867 | ||
3868 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3869 | PyObject *resultobj = 0; | |
3870 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3871 | int arg2 ; | |
3872 | void *argp1 = 0 ; | |
3873 | int res1 = 0 ; | |
3874 | int val2 ; | |
3875 | int ecode2 = 0 ; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | PyObject * obj1 = 0 ; | |
3878 | char * kwnames[] = { | |
3879 | (char *) "self",(char *) "indent", NULL | |
3880 | }; | |
3881 | ||
3882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
3883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3884 | if (!SWIG_IsOK(res1)) { | |
3885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3886 | } | |
3887 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3888 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3889 | if (!SWIG_IsOK(ecode2)) { | |
3890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
3891 | } | |
3892 | arg2 = static_cast< int >(val2); | |
3893 | { | |
3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3895 | (arg1)->SetRightIndent(arg2); | |
3896 | wxPyEndAllowThreads(__tstate); | |
3897 | if (PyErr_Occurred()) SWIG_fail; | |
3898 | } | |
3899 | resultobj = SWIG_Py_Void(); | |
3900 | return resultobj; | |
3901 | fail: | |
3902 | return NULL; | |
3903 | } | |
3904 | ||
3905 | ||
3906 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3907 | PyObject *resultobj = 0; | |
3908 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3909 | int arg2 ; | |
3910 | void *argp1 = 0 ; | |
3911 | int res1 = 0 ; | |
3912 | int val2 ; | |
3913 | int ecode2 = 0 ; | |
3914 | PyObject * obj0 = 0 ; | |
3915 | PyObject * obj1 = 0 ; | |
3916 | char * kwnames[] = { | |
3917 | (char *) "self",(char *) "pointSize", NULL | |
3918 | }; | |
3919 | ||
3920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
3921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3922 | if (!SWIG_IsOK(res1)) { | |
3923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3924 | } | |
3925 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3927 | if (!SWIG_IsOK(ecode2)) { | |
3928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'"); | |
3929 | } | |
3930 | arg2 = static_cast< int >(val2); | |
3931 | { | |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3933 | (arg1)->SetFontSize(arg2); | |
3934 | wxPyEndAllowThreads(__tstate); | |
3935 | if (PyErr_Occurred()) SWIG_fail; | |
3936 | } | |
3937 | resultobj = SWIG_Py_Void(); | |
3938 | return resultobj; | |
3939 | fail: | |
3940 | return NULL; | |
3941 | } | |
3942 | ||
3943 | ||
3944 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3945 | PyObject *resultobj = 0; | |
3946 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3947 | int arg2 ; | |
3948 | void *argp1 = 0 ; | |
3949 | int res1 = 0 ; | |
3950 | int val2 ; | |
3951 | int ecode2 = 0 ; | |
3952 | PyObject * obj0 = 0 ; | |
3953 | PyObject * obj1 = 0 ; | |
3954 | char * kwnames[] = { | |
3955 | (char *) "self",(char *) "fontStyle", NULL | |
3956 | }; | |
3957 | ||
3958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
3959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3960 | if (!SWIG_IsOK(res1)) { | |
3961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3962 | } | |
3963 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3964 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3965 | if (!SWIG_IsOK(ecode2)) { | |
3966 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'"); | |
3967 | } | |
3968 | arg2 = static_cast< int >(val2); | |
3969 | { | |
3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3971 | (arg1)->SetFontStyle(arg2); | |
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | resultobj = SWIG_Py_Void(); | |
3976 | return resultobj; | |
3977 | fail: | |
3978 | return NULL; | |
3979 | } | |
3980 | ||
3981 | ||
3982 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3983 | PyObject *resultobj = 0; | |
3984 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3985 | int arg2 ; | |
3986 | void *argp1 = 0 ; | |
3987 | int res1 = 0 ; | |
3988 | int val2 ; | |
3989 | int ecode2 = 0 ; | |
3990 | PyObject * obj0 = 0 ; | |
3991 | PyObject * obj1 = 0 ; | |
3992 | char * kwnames[] = { | |
3993 | (char *) "self",(char *) "fontWeight", NULL | |
3994 | }; | |
3995 | ||
3996 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
3997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3998 | if (!SWIG_IsOK(res1)) { | |
3999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4000 | } | |
4001 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4002 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4003 | if (!SWIG_IsOK(ecode2)) { | |
4004 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'"); | |
4005 | } | |
4006 | arg2 = static_cast< int >(val2); | |
4007 | { | |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | (arg1)->SetFontWeight(arg2); | |
4010 | wxPyEndAllowThreads(__tstate); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
4012 | } | |
4013 | resultobj = SWIG_Py_Void(); | |
4014 | return resultobj; | |
4015 | fail: | |
4016 | return NULL; | |
4017 | } | |
4018 | ||
4019 | ||
4020 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4021 | PyObject *resultobj = 0; | |
4022 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4023 | wxString *arg2 = 0 ; | |
4024 | void *argp1 = 0 ; | |
4025 | int res1 = 0 ; | |
4026 | bool temp2 = false ; | |
4027 | PyObject * obj0 = 0 ; | |
4028 | PyObject * obj1 = 0 ; | |
4029 | char * kwnames[] = { | |
4030 | (char *) "self",(char *) "faceName", NULL | |
4031 | }; | |
4032 | ||
4033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4035 | if (!SWIG_IsOK(res1)) { | |
4036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4037 | } | |
4038 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4039 | { | |
4040 | arg2 = wxString_in_helper(obj1); | |
4041 | if (arg2 == NULL) SWIG_fail; | |
4042 | temp2 = true; | |
4043 | } | |
4044 | { | |
4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4046 | (arg1)->SetFontFaceName((wxString const &)*arg2); | |
4047 | wxPyEndAllowThreads(__tstate); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
4050 | resultobj = SWIG_Py_Void(); | |
4051 | { | |
4052 | if (temp2) | |
4053 | delete arg2; | |
4054 | } | |
4055 | return resultobj; | |
4056 | fail: | |
4057 | { | |
4058 | if (temp2) | |
4059 | delete arg2; | |
4060 | } | |
4061 | return NULL; | |
4062 | } | |
4063 | ||
4064 | ||
4065 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4066 | PyObject *resultobj = 0; | |
4067 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4068 | bool arg2 ; | |
4069 | void *argp1 = 0 ; | |
4070 | int res1 = 0 ; | |
4071 | bool val2 ; | |
4072 | int ecode2 = 0 ; | |
4073 | PyObject * obj0 = 0 ; | |
4074 | PyObject * obj1 = 0 ; | |
4075 | char * kwnames[] = { | |
4076 | (char *) "self",(char *) "underlined", NULL | |
4077 | }; | |
4078 | ||
4079 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
4080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4081 | if (!SWIG_IsOK(res1)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4083 | } | |
4084 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4085 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4086 | if (!SWIG_IsOK(ecode2)) { | |
4087 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
4088 | } | |
4089 | arg2 = static_cast< bool >(val2); | |
4090 | { | |
4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4092 | (arg1)->SetFontUnderlined(arg2); | |
4093 | wxPyEndAllowThreads(__tstate); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
4095 | } | |
4096 | resultobj = SWIG_Py_Void(); | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj = 0; | |
4105 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4106 | long arg2 ; | |
4107 | void *argp1 = 0 ; | |
4108 | int res1 = 0 ; | |
4109 | long val2 ; | |
4110 | int ecode2 = 0 ; | |
4111 | PyObject * obj0 = 0 ; | |
4112 | PyObject * obj1 = 0 ; | |
4113 | char * kwnames[] = { | |
4114 | (char *) "self",(char *) "flags", NULL | |
4115 | }; | |
4116 | ||
4117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4119 | if (!SWIG_IsOK(res1)) { | |
4120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4121 | } | |
4122 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4123 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4124 | if (!SWIG_IsOK(ecode2)) { | |
4125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
4126 | } | |
4127 | arg2 = static_cast< long >(val2); | |
4128 | { | |
4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4130 | (arg1)->SetFlags(arg2); | |
4131 | wxPyEndAllowThreads(__tstate); | |
4132 | if (PyErr_Occurred()) SWIG_fail; | |
4133 | } | |
4134 | resultobj = SWIG_Py_Void(); | |
4135 | return resultobj; | |
4136 | fail: | |
4137 | return NULL; | |
4138 | } | |
4139 | ||
4140 | ||
4141 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4142 | PyObject *resultobj = 0; | |
4143 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4144 | wxString *arg2 = 0 ; | |
4145 | void *argp1 = 0 ; | |
4146 | int res1 = 0 ; | |
4147 | bool temp2 = false ; | |
4148 | PyObject * obj0 = 0 ; | |
4149 | PyObject * obj1 = 0 ; | |
4150 | char * kwnames[] = { | |
4151 | (char *) "self",(char *) "name", NULL | |
4152 | }; | |
4153 | ||
4154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4156 | if (!SWIG_IsOK(res1)) { | |
4157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4158 | } | |
4159 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4160 | { | |
4161 | arg2 = wxString_in_helper(obj1); | |
4162 | if (arg2 == NULL) SWIG_fail; | |
4163 | temp2 = true; | |
4164 | } | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | (arg1)->SetCharacterStyleName((wxString const &)*arg2); | |
4168 | wxPyEndAllowThreads(__tstate); | |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
4170 | } | |
4171 | resultobj = SWIG_Py_Void(); | |
4172 | { | |
4173 | if (temp2) | |
4174 | delete arg2; | |
4175 | } | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | { | |
4179 | if (temp2) | |
4180 | delete arg2; | |
4181 | } | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
4186 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4187 | PyObject *resultobj = 0; | |
4188 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4189 | wxString *arg2 = 0 ; | |
4190 | void *argp1 = 0 ; | |
4191 | int res1 = 0 ; | |
4192 | bool temp2 = false ; | |
4193 | PyObject * obj0 = 0 ; | |
4194 | PyObject * obj1 = 0 ; | |
4195 | char * kwnames[] = { | |
4196 | (char *) "self",(char *) "name", NULL | |
4197 | }; | |
4198 | ||
4199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4201 | if (!SWIG_IsOK(res1)) { | |
4202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4203 | } | |
4204 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4205 | { | |
4206 | arg2 = wxString_in_helper(obj1); | |
4207 | if (arg2 == NULL) SWIG_fail; | |
4208 | temp2 = true; | |
4209 | } | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | (arg1)->SetParagraphStyleName((wxString const &)*arg2); | |
4213 | wxPyEndAllowThreads(__tstate); | |
4214 | if (PyErr_Occurred()) SWIG_fail; | |
4215 | } | |
4216 | resultobj = SWIG_Py_Void(); | |
4217 | { | |
4218 | if (temp2) | |
4219 | delete arg2; | |
4220 | } | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | { | |
4224 | if (temp2) | |
4225 | delete arg2; | |
4226 | } | |
4227 | return NULL; | |
4228 | } | |
4229 | ||
4230 | ||
4231 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4232 | PyObject *resultobj = 0; | |
4233 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4234 | int arg2 ; | |
4235 | void *argp1 = 0 ; | |
4236 | int res1 = 0 ; | |
4237 | int val2 ; | |
4238 | int ecode2 = 0 ; | |
4239 | PyObject * obj0 = 0 ; | |
4240 | PyObject * obj1 = 0 ; | |
4241 | char * kwnames[] = { | |
4242 | (char *) "self",(char *) "spacing", NULL | |
4243 | }; | |
4244 | ||
4245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail; | |
4246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4247 | if (!SWIG_IsOK(res1)) { | |
4248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4249 | } | |
4250 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4251 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4252 | if (!SWIG_IsOK(ecode2)) { | |
4253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'"); | |
4254 | } | |
4255 | arg2 = static_cast< int >(val2); | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | (arg1)->SetParagraphSpacingAfter(arg2); | |
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | resultobj = SWIG_Py_Void(); | |
4263 | return resultobj; | |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj = 0; | |
4271 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4272 | int arg2 ; | |
4273 | void *argp1 = 0 ; | |
4274 | int res1 = 0 ; | |
4275 | int val2 ; | |
4276 | int ecode2 = 0 ; | |
4277 | PyObject * obj0 = 0 ; | |
4278 | PyObject * obj1 = 0 ; | |
4279 | char * kwnames[] = { | |
4280 | (char *) "self",(char *) "spacing", NULL | |
4281 | }; | |
4282 | ||
4283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail; | |
4284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4285 | if (!SWIG_IsOK(res1)) { | |
4286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4287 | } | |
4288 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4289 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4290 | if (!SWIG_IsOK(ecode2)) { | |
4291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'"); | |
4292 | } | |
4293 | arg2 = static_cast< int >(val2); | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | (arg1)->SetParagraphSpacingBefore(arg2); | |
4297 | wxPyEndAllowThreads(__tstate); | |
4298 | if (PyErr_Occurred()) SWIG_fail; | |
4299 | } | |
4300 | resultobj = SWIG_Py_Void(); | |
4301 | return resultobj; | |
4302 | fail: | |
4303 | return NULL; | |
4304 | } | |
4305 | ||
4306 | ||
4307 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4308 | PyObject *resultobj = 0; | |
4309 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4310 | int arg2 ; | |
4311 | void *argp1 = 0 ; | |
4312 | int res1 = 0 ; | |
4313 | int val2 ; | |
4314 | int ecode2 = 0 ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | PyObject * obj1 = 0 ; | |
4317 | char * kwnames[] = { | |
4318 | (char *) "self",(char *) "spacing", NULL | |
4319 | }; | |
4320 | ||
4321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
4322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4323 | if (!SWIG_IsOK(res1)) { | |
4324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4325 | } | |
4326 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4327 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4328 | if (!SWIG_IsOK(ecode2)) { | |
4329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
4330 | } | |
4331 | arg2 = static_cast< int >(val2); | |
4332 | { | |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4334 | (arg1)->SetLineSpacing(arg2); | |
4335 | wxPyEndAllowThreads(__tstate); | |
4336 | if (PyErr_Occurred()) SWIG_fail; | |
4337 | } | |
4338 | resultobj = SWIG_Py_Void(); | |
4339 | return resultobj; | |
4340 | fail: | |
4341 | return NULL; | |
4342 | } | |
4343 | ||
4344 | ||
4345 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4346 | PyObject *resultobj = 0; | |
4347 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4348 | int arg2 ; | |
4349 | void *argp1 = 0 ; | |
4350 | int res1 = 0 ; | |
4351 | int val2 ; | |
4352 | int ecode2 = 0 ; | |
4353 | PyObject * obj0 = 0 ; | |
4354 | PyObject * obj1 = 0 ; | |
4355 | char * kwnames[] = { | |
4356 | (char *) "self",(char *) "style", NULL | |
4357 | }; | |
4358 | ||
4359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4361 | if (!SWIG_IsOK(res1)) { | |
4362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4363 | } | |
4364 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4365 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4366 | if (!SWIG_IsOK(ecode2)) { | |
4367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'"); | |
4368 | } | |
4369 | arg2 = static_cast< int >(val2); | |
4370 | { | |
4371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4372 | (arg1)->SetBulletStyle(arg2); | |
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
4376 | resultobj = SWIG_Py_Void(); | |
4377 | return resultobj; | |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj = 0; | |
4385 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4386 | int arg2 ; | |
4387 | void *argp1 = 0 ; | |
4388 | int res1 = 0 ; | |
4389 | int val2 ; | |
4390 | int ecode2 = 0 ; | |
4391 | PyObject * obj0 = 0 ; | |
4392 | PyObject * obj1 = 0 ; | |
4393 | char * kwnames[] = { | |
4394 | (char *) "self",(char *) "n", NULL | |
4395 | }; | |
4396 | ||
4397 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail; | |
4398 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4399 | if (!SWIG_IsOK(res1)) { | |
4400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4401 | } | |
4402 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4403 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4404 | if (!SWIG_IsOK(ecode2)) { | |
4405 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'"); | |
4406 | } | |
4407 | arg2 = static_cast< int >(val2); | |
4408 | { | |
4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4410 | (arg1)->SetBulletNumber(arg2); | |
4411 | wxPyEndAllowThreads(__tstate); | |
4412 | if (PyErr_Occurred()) SWIG_fail; | |
4413 | } | |
4414 | resultobj = SWIG_Py_Void(); | |
4415 | return resultobj; | |
4416 | fail: | |
4417 | return NULL; | |
4418 | } | |
4419 | ||
4420 | ||
4421 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4422 | PyObject *resultobj = 0; | |
4423 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4424 | wxChar arg2 ; | |
4425 | void *argp1 = 0 ; | |
4426 | int res1 = 0 ; | |
4427 | void *argp2 ; | |
4428 | int res2 = 0 ; | |
4429 | PyObject * obj0 = 0 ; | |
4430 | PyObject * obj1 = 0 ; | |
4431 | char * kwnames[] = { | |
4432 | (char *) "self",(char *) "symbol", NULL | |
4433 | }; | |
4434 | ||
4435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletText",kwnames,&obj0,&obj1)) SWIG_fail; | |
4436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4437 | if (!SWIG_IsOK(res1)) { | |
4438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4439 | } | |
4440 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4441 | { | |
4442 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0); | |
4443 | if (!SWIG_IsOK(res2)) { | |
4444 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'"); | |
4445 | } | |
4446 | if (!argp2) { | |
4447 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'"); | |
4448 | } else { | |
4449 | wxChar * temp = reinterpret_cast< wxChar * >(argp2); | |
4450 | arg2 = *temp; | |
4451 | if (SWIG_IsNewObj(res2)) delete temp; | |
4452 | } | |
4453 | } | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | (arg1)->SetBulletText(arg2); | |
4457 | wxPyEndAllowThreads(__tstate); | |
4458 | if (PyErr_Occurred()) SWIG_fail; | |
4459 | } | |
4460 | resultobj = SWIG_Py_Void(); | |
4461 | return resultobj; | |
4462 | fail: | |
4463 | return NULL; | |
4464 | } | |
4465 | ||
4466 | ||
4467 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4468 | PyObject *resultobj = 0; | |
4469 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4470 | wxString *arg2 = 0 ; | |
4471 | void *argp1 = 0 ; | |
4472 | int res1 = 0 ; | |
4473 | bool temp2 = false ; | |
4474 | PyObject * obj0 = 0 ; | |
4475 | PyObject * obj1 = 0 ; | |
4476 | char * kwnames[] = { | |
4477 | (char *) "self",(char *) "bulletFont", NULL | |
4478 | }; | |
4479 | ||
4480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
4481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4482 | if (!SWIG_IsOK(res1)) { | |
4483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4484 | } | |
4485 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4486 | { | |
4487 | arg2 = wxString_in_helper(obj1); | |
4488 | if (arg2 == NULL) SWIG_fail; | |
4489 | temp2 = true; | |
4490 | } | |
4491 | { | |
4492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4493 | (arg1)->SetBulletFont((wxString const &)*arg2); | |
4494 | wxPyEndAllowThreads(__tstate); | |
4495 | if (PyErr_Occurred()) SWIG_fail; | |
4496 | } | |
4497 | resultobj = SWIG_Py_Void(); | |
4498 | { | |
4499 | if (temp2) | |
4500 | delete arg2; | |
4501 | } | |
4502 | return resultobj; | |
4503 | fail: | |
4504 | { | |
4505 | if (temp2) | |
4506 | delete arg2; | |
4507 | } | |
4508 | return NULL; | |
4509 | } | |
4510 | ||
4511 | ||
4512 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4513 | PyObject *resultobj = 0; | |
4514 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4515 | wxColour *result = 0 ; | |
4516 | void *argp1 = 0 ; | |
4517 | int res1 = 0 ; | |
4518 | PyObject *swig_obj[1] ; | |
4519 | ||
4520 | if (!args) SWIG_fail; | |
4521 | swig_obj[0] = args; | |
4522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4523 | if (!SWIG_IsOK(res1)) { | |
4524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4525 | } | |
4526 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4527 | { | |
4528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4529 | { | |
4530 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour(); | |
4531 | result = (wxColour *) &_result_ref; | |
4532 | } | |
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4544 | PyObject *resultobj = 0; | |
4545 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4546 | wxColour *result = 0 ; | |
4547 | void *argp1 = 0 ; | |
4548 | int res1 = 0 ; | |
4549 | PyObject *swig_obj[1] ; | |
4550 | ||
4551 | if (!args) SWIG_fail; | |
4552 | swig_obj[0] = args; | |
4553 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4554 | if (!SWIG_IsOK(res1)) { | |
4555 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4556 | } | |
4557 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4558 | { | |
4559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4560 | { | |
4561 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour(); | |
4562 | result = (wxColour *) &_result_ref; | |
4563 | } | |
4564 | wxPyEndAllowThreads(__tstate); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
4566 | } | |
4567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4568 | return resultobj; | |
4569 | fail: | |
4570 | return NULL; | |
4571 | } | |
4572 | ||
4573 | ||
4574 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4575 | PyObject *resultobj = 0; | |
4576 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4577 | wxTextAttrAlignment result; | |
4578 | void *argp1 = 0 ; | |
4579 | int res1 = 0 ; | |
4580 | PyObject *swig_obj[1] ; | |
4581 | ||
4582 | if (!args) SWIG_fail; | |
4583 | swig_obj[0] = args; | |
4584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4585 | if (!SWIG_IsOK(res1)) { | |
4586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4587 | } | |
4588 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4589 | { | |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment(); | |
4592 | wxPyEndAllowThreads(__tstate); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
4594 | } | |
4595 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4596 | return resultobj; | |
4597 | fail: | |
4598 | return NULL; | |
4599 | } | |
4600 | ||
4601 | ||
4602 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4603 | PyObject *resultobj = 0; | |
4604 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4605 | wxArrayInt *result = 0 ; | |
4606 | void *argp1 = 0 ; | |
4607 | int res1 = 0 ; | |
4608 | PyObject *swig_obj[1] ; | |
4609 | ||
4610 | if (!args) SWIG_fail; | |
4611 | swig_obj[0] = args; | |
4612 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4613 | if (!SWIG_IsOK(res1)) { | |
4614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4615 | } | |
4616 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4617 | { | |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | { | |
4620 | wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs(); | |
4621 | result = (wxArrayInt *) &_result_ref; | |
4622 | } | |
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | { | |
4627 | resultobj = wxArrayInt2PyList_helper(*result); | |
4628 | } | |
4629 | return resultobj; | |
4630 | fail: | |
4631 | return NULL; | |
4632 | } | |
4633 | ||
4634 | ||
4635 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4636 | PyObject *resultobj = 0; | |
4637 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4638 | long result; | |
4639 | void *argp1 = 0 ; | |
4640 | int res1 = 0 ; | |
4641 | PyObject *swig_obj[1] ; | |
4642 | ||
4643 | if (!args) SWIG_fail; | |
4644 | swig_obj[0] = args; | |
4645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4646 | if (!SWIG_IsOK(res1)) { | |
4647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4648 | } | |
4649 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4650 | { | |
4651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4652 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent(); | |
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
4656 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4664 | PyObject *resultobj = 0; | |
4665 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4666 | long result; | |
4667 | void *argp1 = 0 ; | |
4668 | int res1 = 0 ; | |
4669 | PyObject *swig_obj[1] ; | |
4670 | ||
4671 | if (!args) SWIG_fail; | |
4672 | swig_obj[0] = args; | |
4673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4674 | if (!SWIG_IsOK(res1)) { | |
4675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4676 | } | |
4677 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4678 | { | |
4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4680 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent(); | |
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
4684 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4685 | return resultobj; | |
4686 | fail: | |
4687 | return NULL; | |
4688 | } | |
4689 | ||
4690 | ||
4691 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4692 | PyObject *resultobj = 0; | |
4693 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4694 | long result; | |
4695 | void *argp1 = 0 ; | |
4696 | int res1 = 0 ; | |
4697 | PyObject *swig_obj[1] ; | |
4698 | ||
4699 | if (!args) SWIG_fail; | |
4700 | swig_obj[0] = args; | |
4701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4702 | if (!SWIG_IsOK(res1)) { | |
4703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4704 | } | |
4705 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4706 | { | |
4707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4708 | result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent(); | |
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
4716 | } | |
4717 | ||
4718 | ||
4719 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4720 | PyObject *resultobj = 0; | |
4721 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4722 | long result; | |
4723 | void *argp1 = 0 ; | |
4724 | int res1 = 0 ; | |
4725 | PyObject *swig_obj[1] ; | |
4726 | ||
4727 | if (!args) SWIG_fail; | |
4728 | swig_obj[0] = args; | |
4729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4730 | if (!SWIG_IsOK(res1)) { | |
4731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4732 | } | |
4733 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4734 | { | |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4736 | result = (long)((wxRichTextAttr const *)arg1)->GetFlags(); | |
4737 | wxPyEndAllowThreads(__tstate); | |
4738 | if (PyErr_Occurred()) SWIG_fail; | |
4739 | } | |
4740 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4741 | return resultobj; | |
4742 | fail: | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
4747 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4748 | PyObject *resultobj = 0; | |
4749 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4750 | int result; | |
4751 | void *argp1 = 0 ; | |
4752 | int res1 = 0 ; | |
4753 | PyObject *swig_obj[1] ; | |
4754 | ||
4755 | if (!args) SWIG_fail; | |
4756 | swig_obj[0] = args; | |
4757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4758 | if (!SWIG_IsOK(res1)) { | |
4759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4760 | } | |
4761 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4762 | { | |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | result = (int)((wxRichTextAttr const *)arg1)->GetFontSize(); | |
4765 | wxPyEndAllowThreads(__tstate); | |
4766 | if (PyErr_Occurred()) SWIG_fail; | |
4767 | } | |
4768 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4769 | return resultobj; | |
4770 | fail: | |
4771 | return NULL; | |
4772 | } | |
4773 | ||
4774 | ||
4775 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4776 | PyObject *resultobj = 0; | |
4777 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4778 | int result; | |
4779 | void *argp1 = 0 ; | |
4780 | int res1 = 0 ; | |
4781 | PyObject *swig_obj[1] ; | |
4782 | ||
4783 | if (!args) SWIG_fail; | |
4784 | swig_obj[0] = args; | |
4785 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4786 | if (!SWIG_IsOK(res1)) { | |
4787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4788 | } | |
4789 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle(); | |
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) SWIG_fail; | |
4795 | } | |
4796 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4797 | return resultobj; | |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
4803 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4804 | PyObject *resultobj = 0; | |
4805 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4806 | int result; | |
4807 | void *argp1 = 0 ; | |
4808 | int res1 = 0 ; | |
4809 | PyObject *swig_obj[1] ; | |
4810 | ||
4811 | if (!args) SWIG_fail; | |
4812 | swig_obj[0] = args; | |
4813 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4814 | if (!SWIG_IsOK(res1)) { | |
4815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4816 | } | |
4817 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4818 | { | |
4819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4820 | result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight(); | |
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
4831 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4832 | PyObject *resultobj = 0; | |
4833 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4834 | bool result; | |
4835 | void *argp1 = 0 ; | |
4836 | int res1 = 0 ; | |
4837 | PyObject *swig_obj[1] ; | |
4838 | ||
4839 | if (!args) SWIG_fail; | |
4840 | swig_obj[0] = args; | |
4841 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4842 | if (!SWIG_IsOK(res1)) { | |
4843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4844 | } | |
4845 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined(); | |
4849 | wxPyEndAllowThreads(__tstate); | |
4850 | if (PyErr_Occurred()) SWIG_fail; | |
4851 | } | |
4852 | { | |
4853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4854 | } | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4862 | PyObject *resultobj = 0; | |
4863 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4864 | wxString *result = 0 ; | |
4865 | void *argp1 = 0 ; | |
4866 | int res1 = 0 ; | |
4867 | PyObject *swig_obj[1] ; | |
4868 | ||
4869 | if (!args) SWIG_fail; | |
4870 | swig_obj[0] = args; | |
4871 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4872 | if (!SWIG_IsOK(res1)) { | |
4873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4874 | } | |
4875 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4876 | { | |
4877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4878 | { | |
4879 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName(); | |
4880 | result = (wxString *) &_result_ref; | |
4881 | } | |
4882 | wxPyEndAllowThreads(__tstate); | |
4883 | if (PyErr_Occurred()) SWIG_fail; | |
4884 | } | |
4885 | { | |
4886 | #if wxUSE_UNICODE | |
4887 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4888 | #else | |
4889 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4890 | #endif | |
4891 | } | |
4892 | return resultobj; | |
4893 | fail: | |
4894 | return NULL; | |
4895 | } | |
4896 | ||
4897 | ||
4898 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4899 | PyObject *resultobj = 0; | |
4900 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4901 | wxString *result = 0 ; | |
4902 | void *argp1 = 0 ; | |
4903 | int res1 = 0 ; | |
4904 | PyObject *swig_obj[1] ; | |
4905 | ||
4906 | if (!args) SWIG_fail; | |
4907 | swig_obj[0] = args; | |
4908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4909 | if (!SWIG_IsOK(res1)) { | |
4910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4911 | } | |
4912 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4913 | { | |
4914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4915 | { | |
4916 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName(); | |
4917 | result = (wxString *) &_result_ref; | |
4918 | } | |
4919 | wxPyEndAllowThreads(__tstate); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
4922 | { | |
4923 | #if wxUSE_UNICODE | |
4924 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4925 | #else | |
4926 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4927 | #endif | |
4928 | } | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4936 | PyObject *resultobj = 0; | |
4937 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4938 | wxString *result = 0 ; | |
4939 | void *argp1 = 0 ; | |
4940 | int res1 = 0 ; | |
4941 | PyObject *swig_obj[1] ; | |
4942 | ||
4943 | if (!args) SWIG_fail; | |
4944 | swig_obj[0] = args; | |
4945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4946 | if (!SWIG_IsOK(res1)) { | |
4947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4948 | } | |
4949 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | { | |
4953 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName(); | |
4954 | result = (wxString *) &_result_ref; | |
4955 | } | |
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | { | |
4960 | #if wxUSE_UNICODE | |
4961 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4962 | #else | |
4963 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4964 | #endif | |
4965 | } | |
4966 | return resultobj; | |
4967 | fail: | |
4968 | return NULL; | |
4969 | } | |
4970 | ||
4971 | ||
4972 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4973 | PyObject *resultobj = 0; | |
4974 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4975 | int result; | |
4976 | void *argp1 = 0 ; | |
4977 | int res1 = 0 ; | |
4978 | PyObject *swig_obj[1] ; | |
4979 | ||
4980 | if (!args) SWIG_fail; | |
4981 | swig_obj[0] = args; | |
4982 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4983 | if (!SWIG_IsOK(res1)) { | |
4984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4985 | } | |
4986 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4987 | { | |
4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4989 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter(); | |
4990 | wxPyEndAllowThreads(__tstate); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | } | |
4993 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
5000 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5001 | PyObject *resultobj = 0; | |
5002 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5003 | int result; | |
5004 | void *argp1 = 0 ; | |
5005 | int res1 = 0 ; | |
5006 | PyObject *swig_obj[1] ; | |
5007 | ||
5008 | if (!args) SWIG_fail; | |
5009 | swig_obj[0] = args; | |
5010 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5011 | if (!SWIG_IsOK(res1)) { | |
5012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5013 | } | |
5014 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore(); | |
5018 | wxPyEndAllowThreads(__tstate); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | } | |
5021 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
5028 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5029 | PyObject *resultobj = 0; | |
5030 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5031 | int result; | |
5032 | void *argp1 = 0 ; | |
5033 | int res1 = 0 ; | |
5034 | PyObject *swig_obj[1] ; | |
5035 | ||
5036 | if (!args) SWIG_fail; | |
5037 | swig_obj[0] = args; | |
5038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5039 | if (!SWIG_IsOK(res1)) { | |
5040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5041 | } | |
5042 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5043 | { | |
5044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5045 | result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing(); | |
5046 | wxPyEndAllowThreads(__tstate); | |
5047 | if (PyErr_Occurred()) SWIG_fail; | |
5048 | } | |
5049 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5050 | return resultobj; | |
5051 | fail: | |
5052 | return NULL; | |
5053 | } | |
5054 | ||
5055 | ||
5056 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5057 | PyObject *resultobj = 0; | |
5058 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5059 | int result; | |
5060 | void *argp1 = 0 ; | |
5061 | int res1 = 0 ; | |
5062 | PyObject *swig_obj[1] ; | |
5063 | ||
5064 | if (!args) SWIG_fail; | |
5065 | swig_obj[0] = args; | |
5066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5067 | if (!SWIG_IsOK(res1)) { | |
5068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5069 | } | |
5070 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5071 | { | |
5072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5073 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle(); | |
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5078 | return resultobj; | |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5085 | PyObject *resultobj = 0; | |
5086 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5087 | int result; | |
5088 | void *argp1 = 0 ; | |
5089 | int res1 = 0 ; | |
5090 | PyObject *swig_obj[1] ; | |
5091 | ||
5092 | if (!args) SWIG_fail; | |
5093 | swig_obj[0] = args; | |
5094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5095 | if (!SWIG_IsOK(res1)) { | |
5096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5097 | } | |
5098 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5099 | { | |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber(); | |
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
5105 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5106 | return resultobj; | |
5107 | fail: | |
5108 | return NULL; | |
5109 | } | |
5110 | ||
5111 | ||
5112 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5113 | PyObject *resultobj = 0; | |
5114 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5115 | wxString *result = 0 ; | |
5116 | void *argp1 = 0 ; | |
5117 | int res1 = 0 ; | |
5118 | PyObject *swig_obj[1] ; | |
5119 | ||
5120 | if (!args) SWIG_fail; | |
5121 | swig_obj[0] = args; | |
5122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5123 | if (!SWIG_IsOK(res1)) { | |
5124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5125 | } | |
5126 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | { | |
5130 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletText(); | |
5131 | result = (wxString *) &_result_ref; | |
5132 | } | |
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
5136 | { | |
5137 | #if wxUSE_UNICODE | |
5138 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5139 | #else | |
5140 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5141 | #endif | |
5142 | } | |
5143 | return resultobj; | |
5144 | fail: | |
5145 | return NULL; | |
5146 | } | |
5147 | ||
5148 | ||
5149 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5150 | PyObject *resultobj = 0; | |
5151 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5152 | wxString *result = 0 ; | |
5153 | void *argp1 = 0 ; | |
5154 | int res1 = 0 ; | |
5155 | PyObject *swig_obj[1] ; | |
5156 | ||
5157 | if (!args) SWIG_fail; | |
5158 | swig_obj[0] = args; | |
5159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5160 | if (!SWIG_IsOK(res1)) { | |
5161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5162 | } | |
5163 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5164 | { | |
5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5166 | { | |
5167 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletFont(); | |
5168 | result = (wxString *) &_result_ref; | |
5169 | } | |
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
5173 | { | |
5174 | #if wxUSE_UNICODE | |
5175 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5176 | #else | |
5177 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5178 | #endif | |
5179 | } | |
5180 | return resultobj; | |
5181 | fail: | |
5182 | return NULL; | |
5183 | } | |
5184 | ||
5185 | ||
5186 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5187 | PyObject *resultobj = 0; | |
5188 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5189 | bool result; | |
5190 | void *argp1 = 0 ; | |
5191 | int res1 = 0 ; | |
5192 | PyObject *swig_obj[1] ; | |
5193 | ||
5194 | if (!args) SWIG_fail; | |
5195 | swig_obj[0] = args; | |
5196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5197 | if (!SWIG_IsOK(res1)) { | |
5198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5199 | } | |
5200 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour(); | |
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | { | |
5208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5209 | } | |
5210 | return resultobj; | |
5211 | fail: | |
5212 | return NULL; | |
5213 | } | |
5214 | ||
5215 | ||
5216 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5217 | PyObject *resultobj = 0; | |
5218 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5219 | bool result; | |
5220 | void *argp1 = 0 ; | |
5221 | int res1 = 0 ; | |
5222 | PyObject *swig_obj[1] ; | |
5223 | ||
5224 | if (!args) SWIG_fail; | |
5225 | swig_obj[0] = args; | |
5226 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5227 | if (!SWIG_IsOK(res1)) { | |
5228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5229 | } | |
5230 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour(); | |
5234 | wxPyEndAllowThreads(__tstate); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | } | |
5237 | { | |
5238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5239 | } | |
5240 | return resultobj; | |
5241 | fail: | |
5242 | return NULL; | |
5243 | } | |
5244 | ||
5245 | ||
5246 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5247 | PyObject *resultobj = 0; | |
5248 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5249 | bool result; | |
5250 | void *argp1 = 0 ; | |
5251 | int res1 = 0 ; | |
5252 | PyObject *swig_obj[1] ; | |
5253 | ||
5254 | if (!args) SWIG_fail; | |
5255 | swig_obj[0] = args; | |
5256 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5257 | if (!SWIG_IsOK(res1)) { | |
5258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5259 | } | |
5260 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5261 | { | |
5262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5263 | result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment(); | |
5264 | wxPyEndAllowThreads(__tstate); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | } | |
5267 | { | |
5268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5269 | } | |
5270 | return resultobj; | |
5271 | fail: | |
5272 | return NULL; | |
5273 | } | |
5274 | ||
5275 | ||
5276 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5277 | PyObject *resultobj = 0; | |
5278 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5279 | bool result; | |
5280 | void *argp1 = 0 ; | |
5281 | int res1 = 0 ; | |
5282 | PyObject *swig_obj[1] ; | |
5283 | ||
5284 | if (!args) SWIG_fail; | |
5285 | swig_obj[0] = args; | |
5286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5287 | if (!SWIG_IsOK(res1)) { | |
5288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5289 | } | |
5290 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5291 | { | |
5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5293 | result = (bool)((wxRichTextAttr const *)arg1)->HasTabs(); | |
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | { | |
5298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5299 | } | |
5300 | return resultobj; | |
5301 | fail: | |
5302 | return NULL; | |
5303 | } | |
5304 | ||
5305 | ||
5306 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5307 | PyObject *resultobj = 0; | |
5308 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5309 | bool result; | |
5310 | void *argp1 = 0 ; | |
5311 | int res1 = 0 ; | |
5312 | PyObject *swig_obj[1] ; | |
5313 | ||
5314 | if (!args) SWIG_fail; | |
5315 | swig_obj[0] = args; | |
5316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5317 | if (!SWIG_IsOK(res1)) { | |
5318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5319 | } | |
5320 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5321 | { | |
5322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5323 | result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent(); | |
5324 | wxPyEndAllowThreads(__tstate); | |
5325 | if (PyErr_Occurred()) SWIG_fail; | |
5326 | } | |
5327 | { | |
5328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5329 | } | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5337 | PyObject *resultobj = 0; | |
5338 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5339 | bool result; | |
5340 | void *argp1 = 0 ; | |
5341 | int res1 = 0 ; | |
5342 | PyObject *swig_obj[1] ; | |
5343 | ||
5344 | if (!args) SWIG_fail; | |
5345 | swig_obj[0] = args; | |
5346 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5347 | if (!SWIG_IsOK(res1)) { | |
5348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5349 | } | |
5350 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent(); | |
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | { | |
5358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5359 | } | |
5360 | return resultobj; | |
5361 | fail: | |
5362 | return NULL; | |
5363 | } | |
5364 | ||
5365 | ||
5366 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5367 | PyObject *resultobj = 0; | |
5368 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5369 | bool result; | |
5370 | void *argp1 = 0 ; | |
5371 | int res1 = 0 ; | |
5372 | PyObject *swig_obj[1] ; | |
5373 | ||
5374 | if (!args) SWIG_fail; | |
5375 | swig_obj[0] = args; | |
5376 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5377 | if (!SWIG_IsOK(res1)) { | |
5378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5379 | } | |
5380 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5381 | { | |
5382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5383 | result = (bool)((wxRichTextAttr const *)arg1)->HasWeight(); | |
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | { | |
5388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5389 | } | |
5390 | return resultobj; | |
5391 | fail: | |
5392 | return NULL; | |
5393 | } | |
5394 | ||
5395 | ||
5396 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5397 | PyObject *resultobj = 0; | |
5398 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5399 | bool result; | |
5400 | void *argp1 = 0 ; | |
5401 | int res1 = 0 ; | |
5402 | PyObject *swig_obj[1] ; | |
5403 | ||
5404 | if (!args) SWIG_fail; | |
5405 | swig_obj[0] = args; | |
5406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5407 | if (!SWIG_IsOK(res1)) { | |
5408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5409 | } | |
5410 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5411 | { | |
5412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5413 | result = (bool)((wxRichTextAttr const *)arg1)->HasSize(); | |
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | { | |
5418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5419 | } | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5427 | PyObject *resultobj = 0; | |
5428 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5429 | bool result; | |
5430 | void *argp1 = 0 ; | |
5431 | int res1 = 0 ; | |
5432 | PyObject *swig_obj[1] ; | |
5433 | ||
5434 | if (!args) SWIG_fail; | |
5435 | swig_obj[0] = args; | |
5436 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5437 | if (!SWIG_IsOK(res1)) { | |
5438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5439 | } | |
5440 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5441 | { | |
5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5443 | result = (bool)((wxRichTextAttr const *)arg1)->HasItalic(); | |
5444 | wxPyEndAllowThreads(__tstate); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | } | |
5447 | { | |
5448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5449 | } | |
5450 | return resultobj; | |
5451 | fail: | |
5452 | return NULL; | |
5453 | } | |
5454 | ||
5455 | ||
5456 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5457 | PyObject *resultobj = 0; | |
5458 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5459 | bool result; | |
5460 | void *argp1 = 0 ; | |
5461 | int res1 = 0 ; | |
5462 | PyObject *swig_obj[1] ; | |
5463 | ||
5464 | if (!args) SWIG_fail; | |
5465 | swig_obj[0] = args; | |
5466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5467 | if (!SWIG_IsOK(res1)) { | |
5468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5469 | } | |
5470 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5471 | { | |
5472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5473 | result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined(); | |
5474 | wxPyEndAllowThreads(__tstate); | |
5475 | if (PyErr_Occurred()) SWIG_fail; | |
5476 | } | |
5477 | { | |
5478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5479 | } | |
5480 | return resultobj; | |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
5486 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5487 | PyObject *resultobj = 0; | |
5488 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5489 | bool result; | |
5490 | void *argp1 = 0 ; | |
5491 | int res1 = 0 ; | |
5492 | PyObject *swig_obj[1] ; | |
5493 | ||
5494 | if (!args) SWIG_fail; | |
5495 | swig_obj[0] = args; | |
5496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5497 | if (!SWIG_IsOK(res1)) { | |
5498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5499 | } | |
5500 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5501 | { | |
5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5503 | result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName(); | |
5504 | wxPyEndAllowThreads(__tstate); | |
5505 | if (PyErr_Occurred()) SWIG_fail; | |
5506 | } | |
5507 | { | |
5508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5509 | } | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | return NULL; | |
5513 | } | |
5514 | ||
5515 | ||
5516 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5517 | PyObject *resultobj = 0; | |
5518 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5519 | bool result; | |
5520 | void *argp1 = 0 ; | |
5521 | int res1 = 0 ; | |
5522 | PyObject *swig_obj[1] ; | |
5523 | ||
5524 | if (!args) SWIG_fail; | |
5525 | swig_obj[0] = args; | |
5526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5527 | if (!SWIG_IsOK(res1)) { | |
5528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5529 | } | |
5530 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (bool)((wxRichTextAttr const *)arg1)->HasFont(); | |
5534 | wxPyEndAllowThreads(__tstate); | |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
5536 | } | |
5537 | { | |
5538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5539 | } | |
5540 | return resultobj; | |
5541 | fail: | |
5542 | return NULL; | |
5543 | } | |
5544 | ||
5545 | ||
5546 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5547 | PyObject *resultobj = 0; | |
5548 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5549 | bool result; | |
5550 | void *argp1 = 0 ; | |
5551 | int res1 = 0 ; | |
5552 | PyObject *swig_obj[1] ; | |
5553 | ||
5554 | if (!args) SWIG_fail; | |
5555 | swig_obj[0] = args; | |
5556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5557 | if (!SWIG_IsOK(res1)) { | |
5558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5559 | } | |
5560 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5561 | { | |
5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5563 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter(); | |
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
5567 | { | |
5568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5569 | } | |
5570 | return resultobj; | |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
5576 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5577 | PyObject *resultobj = 0; | |
5578 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5579 | bool result; | |
5580 | void *argp1 = 0 ; | |
5581 | int res1 = 0 ; | |
5582 | PyObject *swig_obj[1] ; | |
5583 | ||
5584 | if (!args) SWIG_fail; | |
5585 | swig_obj[0] = args; | |
5586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5587 | if (!SWIG_IsOK(res1)) { | |
5588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5589 | } | |
5590 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5591 | { | |
5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5593 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore(); | |
5594 | wxPyEndAllowThreads(__tstate); | |
5595 | if (PyErr_Occurred()) SWIG_fail; | |
5596 | } | |
5597 | { | |
5598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5599 | } | |
5600 | return resultobj; | |
5601 | fail: | |
5602 | return NULL; | |
5603 | } | |
5604 | ||
5605 | ||
5606 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5607 | PyObject *resultobj = 0; | |
5608 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5609 | bool result; | |
5610 | void *argp1 = 0 ; | |
5611 | int res1 = 0 ; | |
5612 | PyObject *swig_obj[1] ; | |
5613 | ||
5614 | if (!args) SWIG_fail; | |
5615 | swig_obj[0] = args; | |
5616 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5617 | if (!SWIG_IsOK(res1)) { | |
5618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5619 | } | |
5620 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5621 | { | |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing(); | |
5624 | wxPyEndAllowThreads(__tstate); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
5627 | { | |
5628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5629 | } | |
5630 | return resultobj; | |
5631 | fail: | |
5632 | return NULL; | |
5633 | } | |
5634 | ||
5635 | ||
5636 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5637 | PyObject *resultobj = 0; | |
5638 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5639 | bool result; | |
5640 | void *argp1 = 0 ; | |
5641 | int res1 = 0 ; | |
5642 | PyObject *swig_obj[1] ; | |
5643 | ||
5644 | if (!args) SWIG_fail; | |
5645 | swig_obj[0] = args; | |
5646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5647 | if (!SWIG_IsOK(res1)) { | |
5648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5649 | } | |
5650 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5651 | { | |
5652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5653 | result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName(); | |
5654 | wxPyEndAllowThreads(__tstate); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
5657 | { | |
5658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5659 | } | |
5660 | return resultobj; | |
5661 | fail: | |
5662 | return NULL; | |
5663 | } | |
5664 | ||
5665 | ||
5666 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5667 | PyObject *resultobj = 0; | |
5668 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5669 | bool result; | |
5670 | void *argp1 = 0 ; | |
5671 | int res1 = 0 ; | |
5672 | PyObject *swig_obj[1] ; | |
5673 | ||
5674 | if (!args) SWIG_fail; | |
5675 | swig_obj[0] = args; | |
5676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5677 | if (!SWIG_IsOK(res1)) { | |
5678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5679 | } | |
5680 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5681 | { | |
5682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5683 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName(); | |
5684 | wxPyEndAllowThreads(__tstate); | |
5685 | if (PyErr_Occurred()) SWIG_fail; | |
5686 | } | |
5687 | { | |
5688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5689 | } | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5697 | PyObject *resultobj = 0; | |
5698 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5699 | bool result; | |
5700 | void *argp1 = 0 ; | |
5701 | int res1 = 0 ; | |
5702 | PyObject *swig_obj[1] ; | |
5703 | ||
5704 | if (!args) SWIG_fail; | |
5705 | swig_obj[0] = args; | |
5706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5707 | if (!SWIG_IsOK(res1)) { | |
5708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5709 | } | |
5710 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle(); | |
5714 | wxPyEndAllowThreads(__tstate); | |
5715 | if (PyErr_Occurred()) SWIG_fail; | |
5716 | } | |
5717 | { | |
5718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5719 | } | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
5726 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5727 | PyObject *resultobj = 0; | |
5728 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5729 | bool result; | |
5730 | void *argp1 = 0 ; | |
5731 | int res1 = 0 ; | |
5732 | PyObject *swig_obj[1] ; | |
5733 | ||
5734 | if (!args) SWIG_fail; | |
5735 | swig_obj[0] = args; | |
5736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5737 | if (!SWIG_IsOK(res1)) { | |
5738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5739 | } | |
5740 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5741 | { | |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber(); | |
5744 | wxPyEndAllowThreads(__tstate); | |
5745 | if (PyErr_Occurred()) SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5749 | } | |
5750 | return resultobj; | |
5751 | fail: | |
5752 | return NULL; | |
5753 | } | |
5754 | ||
5755 | ||
5756 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5757 | PyObject *resultobj = 0; | |
5758 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5759 | bool result; | |
5760 | void *argp1 = 0 ; | |
5761 | int res1 = 0 ; | |
5762 | PyObject *swig_obj[1] ; | |
5763 | ||
5764 | if (!args) SWIG_fail; | |
5765 | swig_obj[0] = args; | |
5766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5767 | if (!SWIG_IsOK(res1)) { | |
5768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5769 | } | |
5770 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5771 | { | |
5772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5773 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletText(); | |
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
5777 | { | |
5778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5779 | } | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj = 0; | |
5788 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5789 | long arg2 ; | |
5790 | bool result; | |
5791 | void *argp1 = 0 ; | |
5792 | int res1 = 0 ; | |
5793 | long val2 ; | |
5794 | int ecode2 = 0 ; | |
5795 | PyObject * obj0 = 0 ; | |
5796 | PyObject * obj1 = 0 ; | |
5797 | char * kwnames[] = { | |
5798 | (char *) "self",(char *) "flag", NULL | |
5799 | }; | |
5800 | ||
5801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
5802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5803 | if (!SWIG_IsOK(res1)) { | |
5804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5805 | } | |
5806 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5807 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5808 | if (!SWIG_IsOK(ecode2)) { | |
5809 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
5810 | } | |
5811 | arg2 = static_cast< long >(val2); | |
5812 | { | |
5813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5814 | result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2); | |
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | { | |
5819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5820 | } | |
5821 | return resultobj; | |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
5827 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5828 | PyObject *resultobj = 0; | |
5829 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5830 | bool result; | |
5831 | void *argp1 = 0 ; | |
5832 | int res1 = 0 ; | |
5833 | PyObject *swig_obj[1] ; | |
5834 | ||
5835 | if (!args) SWIG_fail; | |
5836 | swig_obj[0] = args; | |
5837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5838 | if (!SWIG_IsOK(res1)) { | |
5839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5840 | } | |
5841 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5842 | { | |
5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5844 | result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle(); | |
5845 | wxPyEndAllowThreads(__tstate); | |
5846 | if (PyErr_Occurred()) SWIG_fail; | |
5847 | } | |
5848 | { | |
5849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5850 | } | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5858 | PyObject *resultobj = 0; | |
5859 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5860 | bool result; | |
5861 | void *argp1 = 0 ; | |
5862 | int res1 = 0 ; | |
5863 | PyObject *swig_obj[1] ; | |
5864 | ||
5865 | if (!args) SWIG_fail; | |
5866 | swig_obj[0] = args; | |
5867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5868 | if (!SWIG_IsOK(res1)) { | |
5869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5870 | } | |
5871 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5872 | { | |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5874 | result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle(); | |
5875 | wxPyEndAllowThreads(__tstate); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | } | |
5878 | { | |
5879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5880 | } | |
5881 | return resultobj; | |
5882 | fail: | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5888 | PyObject *resultobj = 0; | |
5889 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5890 | bool result; | |
5891 | void *argp1 = 0 ; | |
5892 | int res1 = 0 ; | |
5893 | PyObject *swig_obj[1] ; | |
5894 | ||
5895 | if (!args) SWIG_fail; | |
5896 | swig_obj[0] = args; | |
5897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5898 | if (!SWIG_IsOK(res1)) { | |
5899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5900 | } | |
5901 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5902 | { | |
5903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5904 | result = (bool)((wxRichTextAttr const *)arg1)->IsDefault(); | |
5905 | wxPyEndAllowThreads(__tstate); | |
5906 | if (PyErr_Occurred()) SWIG_fail; | |
5907 | } | |
5908 | { | |
5909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5910 | } | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5918 | PyObject *obj; | |
5919 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5920 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj)); | |
5921 | return SWIG_Py_Void(); | |
5922 | } | |
5923 | ||
5924 | SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5925 | return SWIG_Python_InitShadowInstance(args); | |
5926 | } | |
5927 | ||
5928 | SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5929 | PyObject *resultobj = 0; | |
5930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5931 | int arg2 = (int) -1 ; | |
5932 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5933 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5938 | long arg6 = (long) wxRE_MULTILINE ; | |
5939 | wxRichTextCtrl *result = 0 ; | |
5940 | void *argp1 = 0 ; | |
5941 | int res1 = 0 ; | |
5942 | int val2 ; | |
5943 | int ecode2 = 0 ; | |
5944 | bool temp3 = false ; | |
5945 | wxPoint temp4 ; | |
5946 | wxSize temp5 ; | |
5947 | long val6 ; | |
5948 | int ecode6 = 0 ; | |
5949 | PyObject * obj0 = 0 ; | |
5950 | PyObject * obj1 = 0 ; | |
5951 | PyObject * obj2 = 0 ; | |
5952 | PyObject * obj3 = 0 ; | |
5953 | PyObject * obj4 = 0 ; | |
5954 | PyObject * obj5 = 0 ; | |
5955 | char * kwnames[] = { | |
5956 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL | |
5957 | }; | |
5958 | ||
5959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
5960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
5961 | if (!SWIG_IsOK(res1)) { | |
5962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5963 | } | |
5964 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5965 | if (obj1) { | |
5966 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5967 | if (!SWIG_IsOK(ecode2)) { | |
5968 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
5969 | } | |
5970 | arg2 = static_cast< int >(val2); | |
5971 | } | |
5972 | if (obj2) { | |
5973 | { | |
5974 | arg3 = wxString_in_helper(obj2); | |
5975 | if (arg3 == NULL) SWIG_fail; | |
5976 | temp3 = true; | |
5977 | } | |
5978 | } | |
5979 | if (obj3) { | |
5980 | { | |
5981 | arg4 = &temp4; | |
5982 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5983 | } | |
5984 | } | |
5985 | if (obj4) { | |
5986 | { | |
5987 | arg5 = &temp5; | |
5988 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5989 | } | |
5990 | } | |
5991 | if (obj5) { | |
5992 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5993 | if (!SWIG_IsOK(ecode6)) { | |
5994 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
5995 | } | |
5996 | arg6 = static_cast< long >(val6); | |
5997 | } | |
5998 | { | |
5999 | if (!wxPyCheckForApp()) SWIG_fail; | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
6002 | wxPyEndAllowThreads(__tstate); | |
6003 | if (PyErr_Occurred()) SWIG_fail; | |
6004 | } | |
6005 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 ); | |
6006 | { | |
6007 | if (temp3) | |
6008 | delete arg3; | |
6009 | } | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | { | |
6013 | if (temp3) | |
6014 | delete arg3; | |
6015 | } | |
6016 | return NULL; | |
6017 | } | |
6018 | ||
6019 | ||
6020 | SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6021 | PyObject *resultobj = 0; | |
6022 | wxRichTextCtrl *result = 0 ; | |
6023 | ||
6024 | if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail; | |
6025 | { | |
6026 | if (!wxPyCheckForApp()) SWIG_fail; | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6028 | result = (wxRichTextCtrl *)new wxRichTextCtrl(); | |
6029 | wxPyEndAllowThreads(__tstate); | |
6030 | if (PyErr_Occurred()) SWIG_fail; | |
6031 | } | |
6032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 ); | |
6033 | return resultobj; | |
6034 | fail: | |
6035 | return NULL; | |
6036 | } | |
6037 | ||
6038 | ||
6039 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6040 | PyObject *resultobj = 0; | |
6041 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6042 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6043 | int arg3 = (int) -1 ; | |
6044 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6045 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6046 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6047 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6048 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6049 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6050 | long arg7 = (long) wxRE_MULTILINE ; | |
6051 | bool result; | |
6052 | void *argp1 = 0 ; | |
6053 | int res1 = 0 ; | |
6054 | void *argp2 = 0 ; | |
6055 | int res2 = 0 ; | |
6056 | int val3 ; | |
6057 | int ecode3 = 0 ; | |
6058 | bool temp4 = false ; | |
6059 | wxPoint temp5 ; | |
6060 | wxSize temp6 ; | |
6061 | long val7 ; | |
6062 | int ecode7 = 0 ; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | PyObject * obj1 = 0 ; | |
6065 | PyObject * obj2 = 0 ; | |
6066 | PyObject * obj3 = 0 ; | |
6067 | PyObject * obj4 = 0 ; | |
6068 | PyObject * obj5 = 0 ; | |
6069 | PyObject * obj6 = 0 ; | |
6070 | char * kwnames[] = { | |
6071 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL | |
6072 | }; | |
6073 | ||
6074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
6075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6076 | if (!SWIG_IsOK(res1)) { | |
6077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6078 | } | |
6079 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6080 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6081 | if (!SWIG_IsOK(res2)) { | |
6082 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6083 | } | |
6084 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6085 | if (obj2) { | |
6086 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6087 | if (!SWIG_IsOK(ecode3)) { | |
6088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
6089 | } | |
6090 | arg3 = static_cast< int >(val3); | |
6091 | } | |
6092 | if (obj3) { | |
6093 | { | |
6094 | arg4 = wxString_in_helper(obj3); | |
6095 | if (arg4 == NULL) SWIG_fail; | |
6096 | temp4 = true; | |
6097 | } | |
6098 | } | |
6099 | if (obj4) { | |
6100 | { | |
6101 | arg5 = &temp5; | |
6102 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6103 | } | |
6104 | } | |
6105 | if (obj5) { | |
6106 | { | |
6107 | arg6 = &temp6; | |
6108 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6109 | } | |
6110 | } | |
6111 | if (obj6) { | |
6112 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6113 | if (!SWIG_IsOK(ecode7)) { | |
6114 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
6115 | } | |
6116 | arg7 = static_cast< long >(val7); | |
6117 | } | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7); | |
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | { | |
6125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6126 | } | |
6127 | { | |
6128 | if (temp4) | |
6129 | delete arg4; | |
6130 | } | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | { | |
6134 | if (temp4) | |
6135 | delete arg4; | |
6136 | } | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
6141 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6142 | PyObject *resultobj = 0; | |
6143 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6144 | wxString result; | |
6145 | void *argp1 = 0 ; | |
6146 | int res1 = 0 ; | |
6147 | PyObject *swig_obj[1] ; | |
6148 | ||
6149 | if (!args) SWIG_fail; | |
6150 | swig_obj[0] = args; | |
6151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6152 | if (!SWIG_IsOK(res1)) { | |
6153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6154 | } | |
6155 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6156 | { | |
6157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6158 | result = ((wxRichTextCtrl const *)arg1)->GetValue(); | |
6159 | wxPyEndAllowThreads(__tstate); | |
6160 | if (PyErr_Occurred()) SWIG_fail; | |
6161 | } | |
6162 | { | |
6163 | #if wxUSE_UNICODE | |
6164 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6165 | #else | |
6166 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6167 | #endif | |
6168 | } | |
6169 | return resultobj; | |
6170 | fail: | |
6171 | return NULL; | |
6172 | } | |
6173 | ||
6174 | ||
6175 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6176 | PyObject *resultobj = 0; | |
6177 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6178 | wxString *arg2 = 0 ; | |
6179 | void *argp1 = 0 ; | |
6180 | int res1 = 0 ; | |
6181 | bool temp2 = false ; | |
6182 | PyObject * obj0 = 0 ; | |
6183 | PyObject * obj1 = 0 ; | |
6184 | char * kwnames[] = { | |
6185 | (char *) "self",(char *) "value", NULL | |
6186 | }; | |
6187 | ||
6188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
6189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6190 | if (!SWIG_IsOK(res1)) { | |
6191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6192 | } | |
6193 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6194 | { | |
6195 | arg2 = wxString_in_helper(obj1); | |
6196 | if (arg2 == NULL) SWIG_fail; | |
6197 | temp2 = true; | |
6198 | } | |
6199 | { | |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | (arg1)->SetValue((wxString const &)*arg2); | |
6202 | wxPyEndAllowThreads(__tstate); | |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
6204 | } | |
6205 | resultobj = SWIG_Py_Void(); | |
6206 | { | |
6207 | if (temp2) | |
6208 | delete arg2; | |
6209 | } | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | { | |
6213 | if (temp2) | |
6214 | delete arg2; | |
6215 | } | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj = 0; | |
6222 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6223 | long arg2 ; | |
6224 | long arg3 ; | |
6225 | wxString result; | |
6226 | void *argp1 = 0 ; | |
6227 | int res1 = 0 ; | |
6228 | long val2 ; | |
6229 | int ecode2 = 0 ; | |
6230 | long val3 ; | |
6231 | int ecode3 = 0 ; | |
6232 | PyObject * obj0 = 0 ; | |
6233 | PyObject * obj1 = 0 ; | |
6234 | PyObject * obj2 = 0 ; | |
6235 | char * kwnames[] = { | |
6236 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6237 | }; | |
6238 | ||
6239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6241 | if (!SWIG_IsOK(res1)) { | |
6242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6243 | } | |
6244 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6245 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6246 | if (!SWIG_IsOK(ecode2)) { | |
6247 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
6248 | } | |
6249 | arg2 = static_cast< long >(val2); | |
6250 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6251 | if (!SWIG_IsOK(ecode3)) { | |
6252 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
6253 | } | |
6254 | arg3 = static_cast< long >(val3); | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6258 | wxPyEndAllowThreads(__tstate); | |
6259 | if (PyErr_Occurred()) SWIG_fail; | |
6260 | } | |
6261 | { | |
6262 | #if wxUSE_UNICODE | |
6263 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6264 | #else | |
6265 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6266 | #endif | |
6267 | } | |
6268 | return resultobj; | |
6269 | fail: | |
6270 | return NULL; | |
6271 | } | |
6272 | ||
6273 | ||
6274 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6275 | PyObject *resultobj = 0; | |
6276 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6277 | long arg2 ; | |
6278 | int result; | |
6279 | void *argp1 = 0 ; | |
6280 | int res1 = 0 ; | |
6281 | long val2 ; | |
6282 | int ecode2 = 0 ; | |
6283 | PyObject * obj0 = 0 ; | |
6284 | PyObject * obj1 = 0 ; | |
6285 | char * kwnames[] = { | |
6286 | (char *) "self",(char *) "lineNo", NULL | |
6287 | }; | |
6288 | ||
6289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
6290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6291 | if (!SWIG_IsOK(res1)) { | |
6292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6293 | } | |
6294 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6295 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6296 | if (!SWIG_IsOK(ecode2)) { | |
6297 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
6298 | } | |
6299 | arg2 = static_cast< long >(val2); | |
6300 | { | |
6301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6302 | result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2); | |
6303 | wxPyEndAllowThreads(__tstate); | |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
6305 | } | |
6306 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6307 | return resultobj; | |
6308 | fail: | |
6309 | return NULL; | |
6310 | } | |
6311 | ||
6312 | ||
6313 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6314 | PyObject *resultobj = 0; | |
6315 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6316 | long arg2 ; | |
6317 | wxString result; | |
6318 | void *argp1 = 0 ; | |
6319 | int res1 = 0 ; | |
6320 | long val2 ; | |
6321 | int ecode2 = 0 ; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | PyObject * obj1 = 0 ; | |
6324 | char * kwnames[] = { | |
6325 | (char *) "self",(char *) "lineNo", NULL | |
6326 | }; | |
6327 | ||
6328 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6330 | if (!SWIG_IsOK(res1)) { | |
6331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6332 | } | |
6333 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6334 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6335 | if (!SWIG_IsOK(ecode2)) { | |
6336 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
6337 | } | |
6338 | arg2 = static_cast< long >(val2); | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2); | |
6342 | wxPyEndAllowThreads(__tstate); | |
6343 | if (PyErr_Occurred()) SWIG_fail; | |
6344 | } | |
6345 | { | |
6346 | #if wxUSE_UNICODE | |
6347 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6348 | #else | |
6349 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6350 | #endif | |
6351 | } | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
6358 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6359 | PyObject *resultobj = 0; | |
6360 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6361 | int result; | |
6362 | void *argp1 = 0 ; | |
6363 | int res1 = 0 ; | |
6364 | PyObject *swig_obj[1] ; | |
6365 | ||
6366 | if (!args) SWIG_fail; | |
6367 | swig_obj[0] = args; | |
6368 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6369 | if (!SWIG_IsOK(res1)) { | |
6370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6371 | } | |
6372 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6373 | { | |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines(); | |
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) SWIG_fail; | |
6378 | } | |
6379 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | return NULL; | |
6383 | } | |
6384 | ||
6385 | ||
6386 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6387 | PyObject *resultobj = 0; | |
6388 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6389 | bool result; | |
6390 | void *argp1 = 0 ; | |
6391 | int res1 = 0 ; | |
6392 | PyObject *swig_obj[1] ; | |
6393 | ||
6394 | if (!args) SWIG_fail; | |
6395 | swig_obj[0] = args; | |
6396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6397 | if (!SWIG_IsOK(res1)) { | |
6398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6399 | } | |
6400 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6401 | { | |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | result = (bool)((wxRichTextCtrl const *)arg1)->IsModified(); | |
6404 | wxPyEndAllowThreads(__tstate); | |
6405 | if (PyErr_Occurred()) SWIG_fail; | |
6406 | } | |
6407 | { | |
6408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6409 | } | |
6410 | return resultobj; | |
6411 | fail: | |
6412 | return NULL; | |
6413 | } | |
6414 | ||
6415 | ||
6416 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6417 | PyObject *resultobj = 0; | |
6418 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6419 | bool result; | |
6420 | void *argp1 = 0 ; | |
6421 | int res1 = 0 ; | |
6422 | PyObject *swig_obj[1] ; | |
6423 | ||
6424 | if (!args) SWIG_fail; | |
6425 | swig_obj[0] = args; | |
6426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6427 | if (!SWIG_IsOK(res1)) { | |
6428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6429 | } | |
6430 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6431 | { | |
6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6433 | result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable(); | |
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | { | |
6438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6439 | } | |
6440 | return resultobj; | |
6441 | fail: | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6447 | PyObject *resultobj = 0; | |
6448 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6449 | bool result; | |
6450 | void *argp1 = 0 ; | |
6451 | int res1 = 0 ; | |
6452 | PyObject *swig_obj[1] ; | |
6453 | ||
6454 | if (!args) SWIG_fail; | |
6455 | swig_obj[0] = args; | |
6456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6457 | if (!SWIG_IsOK(res1)) { | |
6458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6459 | } | |
6460 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine(); | |
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | { | |
6468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6469 | } | |
6470 | return resultobj; | |
6471 | fail: | |
6472 | return NULL; | |
6473 | } | |
6474 | ||
6475 | ||
6476 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6477 | PyObject *resultobj = 0; | |
6478 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6479 | bool result; | |
6480 | void *argp1 = 0 ; | |
6481 | int res1 = 0 ; | |
6482 | PyObject *swig_obj[1] ; | |
6483 | ||
6484 | if (!args) SWIG_fail; | |
6485 | swig_obj[0] = args; | |
6486 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6487 | if (!SWIG_IsOK(res1)) { | |
6488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6489 | } | |
6490 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6491 | { | |
6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6493 | result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine(); | |
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) SWIG_fail; | |
6496 | } | |
6497 | { | |
6498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6499 | } | |
6500 | return resultobj; | |
6501 | fail: | |
6502 | return NULL; | |
6503 | } | |
6504 | ||
6505 | ||
6506 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6507 | PyObject *resultobj = 0; | |
6508 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6509 | long *arg2 = (long *) 0 ; | |
6510 | long *arg3 = (long *) 0 ; | |
6511 | void *argp1 = 0 ; | |
6512 | int res1 = 0 ; | |
6513 | long temp2 ; | |
6514 | int res2 = SWIG_TMPOBJ ; | |
6515 | long temp3 ; | |
6516 | int res3 = SWIG_TMPOBJ ; | |
6517 | PyObject *swig_obj[1] ; | |
6518 | ||
6519 | arg2 = &temp2; | |
6520 | arg3 = &temp3; | |
6521 | if (!args) SWIG_fail; | |
6522 | swig_obj[0] = args; | |
6523 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6524 | if (!SWIG_IsOK(res1)) { | |
6525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6526 | } | |
6527 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6528 | { | |
6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6530 | ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
6534 | resultobj = SWIG_Py_Void(); | |
6535 | if (SWIG_IsTmpObj(res2)) { | |
6536 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6537 | } else { | |
6538 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6539 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6540 | } | |
6541 | if (SWIG_IsTmpObj(res3)) { | |
6542 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6543 | } else { | |
6544 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6545 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6546 | } | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6554 | PyObject *resultobj = 0; | |
6555 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6556 | wxString result; | |
6557 | void *argp1 = 0 ; | |
6558 | int res1 = 0 ; | |
6559 | PyObject *swig_obj[1] ; | |
6560 | ||
6561 | if (!args) SWIG_fail; | |
6562 | swig_obj[0] = args; | |
6563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6564 | if (!SWIG_IsOK(res1)) { | |
6565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6566 | } | |
6567 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | result = ((wxRichTextCtrl const *)arg1)->GetStringSelection(); | |
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
6574 | { | |
6575 | #if wxUSE_UNICODE | |
6576 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6577 | #else | |
6578 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6579 | #endif | |
6580 | } | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | return NULL; | |
6584 | } | |
6585 | ||
6586 | ||
6587 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6588 | PyObject *resultobj = 0; | |
6589 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6590 | wxString result; | |
6591 | void *argp1 = 0 ; | |
6592 | int res1 = 0 ; | |
6593 | PyObject *swig_obj[1] ; | |
6594 | ||
6595 | if (!args) SWIG_fail; | |
6596 | swig_obj[0] = args; | |
6597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6598 | if (!SWIG_IsOK(res1)) { | |
6599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6600 | } | |
6601 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6602 | { | |
6603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6604 | result = ((wxRichTextCtrl const *)arg1)->GetFilename(); | |
6605 | wxPyEndAllowThreads(__tstate); | |
6606 | if (PyErr_Occurred()) SWIG_fail; | |
6607 | } | |
6608 | { | |
6609 | #if wxUSE_UNICODE | |
6610 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6611 | #else | |
6612 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6613 | #endif | |
6614 | } | |
6615 | return resultobj; | |
6616 | fail: | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
6621 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6622 | PyObject *resultobj = 0; | |
6623 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6624 | wxString *arg2 = 0 ; | |
6625 | void *argp1 = 0 ; | |
6626 | int res1 = 0 ; | |
6627 | bool temp2 = false ; | |
6628 | PyObject * obj0 = 0 ; | |
6629 | PyObject * obj1 = 0 ; | |
6630 | char * kwnames[] = { | |
6631 | (char *) "self",(char *) "filename", NULL | |
6632 | }; | |
6633 | ||
6634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
6635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6636 | if (!SWIG_IsOK(res1)) { | |
6637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6638 | } | |
6639 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6640 | { | |
6641 | arg2 = wxString_in_helper(obj1); | |
6642 | if (arg2 == NULL) SWIG_fail; | |
6643 | temp2 = true; | |
6644 | } | |
6645 | { | |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | (arg1)->SetFilename((wxString const &)*arg2); | |
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | resultobj = SWIG_Py_Void(); | |
6652 | { | |
6653 | if (temp2) | |
6654 | delete arg2; | |
6655 | } | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | { | |
6659 | if (temp2) | |
6660 | delete arg2; | |
6661 | } | |
6662 | return NULL; | |
6663 | } | |
6664 | ||
6665 | ||
6666 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6667 | PyObject *resultobj = 0; | |
6668 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6669 | long arg2 ; | |
6670 | void *argp1 = 0 ; | |
6671 | int res1 = 0 ; | |
6672 | long val2 ; | |
6673 | int ecode2 = 0 ; | |
6674 | PyObject * obj0 = 0 ; | |
6675 | PyObject * obj1 = 0 ; | |
6676 | char * kwnames[] = { | |
6677 | (char *) "self",(char *) "threshold", NULL | |
6678 | }; | |
6679 | ||
6680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail; | |
6681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6682 | if (!SWIG_IsOK(res1)) { | |
6683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6684 | } | |
6685 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6686 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6687 | if (!SWIG_IsOK(ecode2)) { | |
6688 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'"); | |
6689 | } | |
6690 | arg2 = static_cast< long >(val2); | |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | (arg1)->SetDelayedLayoutThreshold(arg2); | |
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | resultobj = SWIG_Py_Void(); | |
6698 | return resultobj; | |
6699 | fail: | |
6700 | return NULL; | |
6701 | } | |
6702 | ||
6703 | ||
6704 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6705 | PyObject *resultobj = 0; | |
6706 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6707 | long result; | |
6708 | void *argp1 = 0 ; | |
6709 | int res1 = 0 ; | |
6710 | PyObject *swig_obj[1] ; | |
6711 | ||
6712 | if (!args) SWIG_fail; | |
6713 | swig_obj[0] = args; | |
6714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6715 | if (!SWIG_IsOK(res1)) { | |
6716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6717 | } | |
6718 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6719 | { | |
6720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6721 | result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold(); | |
6722 | wxPyEndAllowThreads(__tstate); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | } | |
6725 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6726 | return resultobj; | |
6727 | fail: | |
6728 | return NULL; | |
6729 | } | |
6730 | ||
6731 | ||
6732 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6733 | PyObject *resultobj = 0; | |
6734 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6735 | void *argp1 = 0 ; | |
6736 | int res1 = 0 ; | |
6737 | PyObject *swig_obj[1] ; | |
6738 | ||
6739 | if (!args) SWIG_fail; | |
6740 | swig_obj[0] = args; | |
6741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6742 | if (!SWIG_IsOK(res1)) { | |
6743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6744 | } | |
6745 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | (arg1)->Clear(); | |
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | resultobj = SWIG_Py_Void(); | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | return NULL; | |
6756 | } | |
6757 | ||
6758 | ||
6759 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6760 | PyObject *resultobj = 0; | |
6761 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6762 | long arg2 ; | |
6763 | long arg3 ; | |
6764 | wxString *arg4 = 0 ; | |
6765 | void *argp1 = 0 ; | |
6766 | int res1 = 0 ; | |
6767 | long val2 ; | |
6768 | int ecode2 = 0 ; | |
6769 | long val3 ; | |
6770 | int ecode3 = 0 ; | |
6771 | bool temp4 = false ; | |
6772 | PyObject * obj0 = 0 ; | |
6773 | PyObject * obj1 = 0 ; | |
6774 | PyObject * obj2 = 0 ; | |
6775 | PyObject * obj3 = 0 ; | |
6776 | char * kwnames[] = { | |
6777 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6778 | }; | |
6779 | ||
6780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6782 | if (!SWIG_IsOK(res1)) { | |
6783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6784 | } | |
6785 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6786 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6787 | if (!SWIG_IsOK(ecode2)) { | |
6788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6789 | } | |
6790 | arg2 = static_cast< long >(val2); | |
6791 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6792 | if (!SWIG_IsOK(ecode3)) { | |
6793 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6794 | } | |
6795 | arg3 = static_cast< long >(val3); | |
6796 | { | |
6797 | arg4 = wxString_in_helper(obj3); | |
6798 | if (arg4 == NULL) SWIG_fail; | |
6799 | temp4 = true; | |
6800 | } | |
6801 | { | |
6802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6803 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6804 | wxPyEndAllowThreads(__tstate); | |
6805 | if (PyErr_Occurred()) SWIG_fail; | |
6806 | } | |
6807 | resultobj = SWIG_Py_Void(); | |
6808 | { | |
6809 | if (temp4) | |
6810 | delete arg4; | |
6811 | } | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | { | |
6815 | if (temp4) | |
6816 | delete arg4; | |
6817 | } | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6823 | PyObject *resultobj = 0; | |
6824 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6825 | long arg2 ; | |
6826 | long arg3 ; | |
6827 | void *argp1 = 0 ; | |
6828 | int res1 = 0 ; | |
6829 | long val2 ; | |
6830 | int ecode2 = 0 ; | |
6831 | long val3 ; | |
6832 | int ecode3 = 0 ; | |
6833 | PyObject * obj0 = 0 ; | |
6834 | PyObject * obj1 = 0 ; | |
6835 | PyObject * obj2 = 0 ; | |
6836 | char * kwnames[] = { | |
6837 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6838 | }; | |
6839 | ||
6840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6842 | if (!SWIG_IsOK(res1)) { | |
6843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6844 | } | |
6845 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6846 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6847 | if (!SWIG_IsOK(ecode2)) { | |
6848 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6849 | } | |
6850 | arg2 = static_cast< long >(val2); | |
6851 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6852 | if (!SWIG_IsOK(ecode3)) { | |
6853 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6854 | } | |
6855 | arg3 = static_cast< long >(val3); | |
6856 | { | |
6857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6858 | (arg1)->Remove(arg2,arg3); | |
6859 | wxPyEndAllowThreads(__tstate); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
6861 | } | |
6862 | resultobj = SWIG_Py_Void(); | |
6863 | return resultobj; | |
6864 | fail: | |
6865 | return NULL; | |
6866 | } | |
6867 | ||
6868 | ||
6869 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6870 | PyObject *resultobj = 0; | |
6871 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6872 | wxString *arg2 = 0 ; | |
6873 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6874 | bool result; | |
6875 | void *argp1 = 0 ; | |
6876 | int res1 = 0 ; | |
6877 | bool temp2 = false ; | |
6878 | int val3 ; | |
6879 | int ecode3 = 0 ; | |
6880 | PyObject * obj0 = 0 ; | |
6881 | PyObject * obj1 = 0 ; | |
6882 | PyObject * obj2 = 0 ; | |
6883 | char * kwnames[] = { | |
6884 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6885 | }; | |
6886 | ||
6887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6889 | if (!SWIG_IsOK(res1)) { | |
6890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6891 | } | |
6892 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6893 | { | |
6894 | arg2 = wxString_in_helper(obj1); | |
6895 | if (arg2 == NULL) SWIG_fail; | |
6896 | temp2 = true; | |
6897 | } | |
6898 | if (obj2) { | |
6899 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6900 | if (!SWIG_IsOK(ecode3)) { | |
6901 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
6902 | } | |
6903 | arg3 = static_cast< int >(val3); | |
6904 | } | |
6905 | { | |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6908 | wxPyEndAllowThreads(__tstate); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
6911 | { | |
6912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6913 | } | |
6914 | { | |
6915 | if (temp2) | |
6916 | delete arg2; | |
6917 | } | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | { | |
6921 | if (temp2) | |
6922 | delete arg2; | |
6923 | } | |
6924 | return NULL; | |
6925 | } | |
6926 | ||
6927 | ||
6928 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6929 | PyObject *resultobj = 0; | |
6930 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6931 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6932 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6933 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6934 | bool result; | |
6935 | void *argp1 = 0 ; | |
6936 | int res1 = 0 ; | |
6937 | bool temp2 = false ; | |
6938 | int val3 ; | |
6939 | int ecode3 = 0 ; | |
6940 | PyObject * obj0 = 0 ; | |
6941 | PyObject * obj1 = 0 ; | |
6942 | PyObject * obj2 = 0 ; | |
6943 | char * kwnames[] = { | |
6944 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6945 | }; | |
6946 | ||
6947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6949 | if (!SWIG_IsOK(res1)) { | |
6950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6951 | } | |
6952 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6953 | if (obj1) { | |
6954 | { | |
6955 | arg2 = wxString_in_helper(obj1); | |
6956 | if (arg2 == NULL) SWIG_fail; | |
6957 | temp2 = true; | |
6958 | } | |
6959 | } | |
6960 | if (obj2) { | |
6961 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6962 | if (!SWIG_IsOK(ecode3)) { | |
6963 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
6964 | } | |
6965 | arg3 = static_cast< int >(val3); | |
6966 | } | |
6967 | { | |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | { | |
6974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6975 | } | |
6976 | { | |
6977 | if (temp2) | |
6978 | delete arg2; | |
6979 | } | |
6980 | return resultobj; | |
6981 | fail: | |
6982 | { | |
6983 | if (temp2) | |
6984 | delete arg2; | |
6985 | } | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj = 0; | |
6992 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6993 | int arg2 ; | |
6994 | void *argp1 = 0 ; | |
6995 | int res1 = 0 ; | |
6996 | int val2 ; | |
6997 | int ecode2 = 0 ; | |
6998 | PyObject * obj0 = 0 ; | |
6999 | PyObject * obj1 = 0 ; | |
7000 | char * kwnames[] = { | |
7001 | (char *) "self",(char *) "flags", NULL | |
7002 | }; | |
7003 | ||
7004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetHandlerFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
7005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7006 | if (!SWIG_IsOK(res1)) { | |
7007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7008 | } | |
7009 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7010 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7011 | if (!SWIG_IsOK(ecode2)) { | |
7012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "2"" of type '" "int""'"); | |
7013 | } | |
7014 | arg2 = static_cast< int >(val2); | |
7015 | { | |
7016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7017 | (arg1)->SetHandlerFlags(arg2); | |
7018 | wxPyEndAllowThreads(__tstate); | |
7019 | if (PyErr_Occurred()) SWIG_fail; | |
7020 | } | |
7021 | resultobj = SWIG_Py_Void(); | |
7022 | return resultobj; | |
7023 | fail: | |
7024 | return NULL; | |
7025 | } | |
7026 | ||
7027 | ||
7028 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7029 | PyObject *resultobj = 0; | |
7030 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7031 | int result; | |
7032 | void *argp1 = 0 ; | |
7033 | int res1 = 0 ; | |
7034 | PyObject *swig_obj[1] ; | |
7035 | ||
7036 | if (!args) SWIG_fail; | |
7037 | swig_obj[0] = args; | |
7038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7039 | if (!SWIG_IsOK(res1)) { | |
7040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7041 | } | |
7042 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7043 | { | |
7044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7045 | result = (int)((wxRichTextCtrl const *)arg1)->GetHandlerFlags(); | |
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7050 | return resultobj; | |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7057 | PyObject *resultobj = 0; | |
7058 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7059 | void *argp1 = 0 ; | |
7060 | int res1 = 0 ; | |
7061 | PyObject *swig_obj[1] ; | |
7062 | ||
7063 | if (!args) SWIG_fail; | |
7064 | swig_obj[0] = args; | |
7065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7066 | if (!SWIG_IsOK(res1)) { | |
7067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7068 | } | |
7069 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7070 | { | |
7071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7072 | (arg1)->MarkDirty(); | |
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | resultobj = SWIG_Py_Void(); | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7084 | PyObject *resultobj = 0; | |
7085 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7086 | void *argp1 = 0 ; | |
7087 | int res1 = 0 ; | |
7088 | PyObject *swig_obj[1] ; | |
7089 | ||
7090 | if (!args) SWIG_fail; | |
7091 | swig_obj[0] = args; | |
7092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7093 | if (!SWIG_IsOK(res1)) { | |
7094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7095 | } | |
7096 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | (arg1)->DiscardEdits(); | |
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
7103 | resultobj = SWIG_Py_Void(); | |
7104 | return resultobj; | |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj = 0; | |
7112 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7113 | unsigned long arg2 ; | |
7114 | void *argp1 = 0 ; | |
7115 | int res1 = 0 ; | |
7116 | unsigned long val2 ; | |
7117 | int ecode2 = 0 ; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | PyObject * obj1 = 0 ; | |
7120 | char * kwnames[] = { | |
7121 | (char *) "self",(char *) "len", NULL | |
7122 | }; | |
7123 | ||
7124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
7125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7126 | if (!SWIG_IsOK(res1)) { | |
7127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7128 | } | |
7129 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7130 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
7131 | if (!SWIG_IsOK(ecode2)) { | |
7132 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
7133 | } | |
7134 | arg2 = static_cast< unsigned long >(val2); | |
7135 | { | |
7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7137 | (arg1)->SetMaxLength(arg2); | |
7138 | wxPyEndAllowThreads(__tstate); | |
7139 | if (PyErr_Occurred()) SWIG_fail; | |
7140 | } | |
7141 | resultobj = SWIG_Py_Void(); | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
7148 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7149 | PyObject *resultobj = 0; | |
7150 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7151 | wxString *arg2 = 0 ; | |
7152 | void *argp1 = 0 ; | |
7153 | int res1 = 0 ; | |
7154 | bool temp2 = false ; | |
7155 | PyObject * obj0 = 0 ; | |
7156 | PyObject * obj1 = 0 ; | |
7157 | char * kwnames[] = { | |
7158 | (char *) "self",(char *) "text", NULL | |
7159 | }; | |
7160 | ||
7161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7163 | if (!SWIG_IsOK(res1)) { | |
7164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7165 | } | |
7166 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7167 | { | |
7168 | arg2 = wxString_in_helper(obj1); | |
7169 | if (arg2 == NULL) SWIG_fail; | |
7170 | temp2 = true; | |
7171 | } | |
7172 | { | |
7173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7174 | (arg1)->WriteText((wxString const &)*arg2); | |
7175 | wxPyEndAllowThreads(__tstate); | |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
7177 | } | |
7178 | resultobj = SWIG_Py_Void(); | |
7179 | { | |
7180 | if (temp2) | |
7181 | delete arg2; | |
7182 | } | |
7183 | return resultobj; | |
7184 | fail: | |
7185 | { | |
7186 | if (temp2) | |
7187 | delete arg2; | |
7188 | } | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj = 0; | |
7195 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7196 | wxString *arg2 = 0 ; | |
7197 | void *argp1 = 0 ; | |
7198 | int res1 = 0 ; | |
7199 | bool temp2 = false ; | |
7200 | PyObject * obj0 = 0 ; | |
7201 | PyObject * obj1 = 0 ; | |
7202 | char * kwnames[] = { | |
7203 | (char *) "self",(char *) "text", NULL | |
7204 | }; | |
7205 | ||
7206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7208 | if (!SWIG_IsOK(res1)) { | |
7209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7210 | } | |
7211 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7212 | { | |
7213 | arg2 = wxString_in_helper(obj1); | |
7214 | if (arg2 == NULL) SWIG_fail; | |
7215 | temp2 = true; | |
7216 | } | |
7217 | { | |
7218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7219 | (arg1)->AppendText((wxString const &)*arg2); | |
7220 | wxPyEndAllowThreads(__tstate); | |
7221 | if (PyErr_Occurred()) SWIG_fail; | |
7222 | } | |
7223 | resultobj = SWIG_Py_Void(); | |
7224 | { | |
7225 | if (temp2) | |
7226 | delete arg2; | |
7227 | } | |
7228 | return resultobj; | |
7229 | fail: | |
7230 | { | |
7231 | if (temp2) | |
7232 | delete arg2; | |
7233 | } | |
7234 | return NULL; | |
7235 | } | |
7236 | ||
7237 | ||
7238 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7239 | PyObject *resultobj = 0; | |
7240 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7241 | wxRichTextRange *arg2 = 0 ; | |
7242 | wxRichTextAttr *arg3 = 0 ; | |
7243 | bool result; | |
7244 | void *argp1 = 0 ; | |
7245 | int res1 = 0 ; | |
7246 | wxRichTextRange temp2 ; | |
7247 | void *argp3 = 0 ; | |
7248 | int res3 = 0 ; | |
7249 | PyObject * obj0 = 0 ; | |
7250 | PyObject * obj1 = 0 ; | |
7251 | PyObject * obj2 = 0 ; | |
7252 | char * kwnames[] = { | |
7253 | (char *) "self",(char *) "range",(char *) "style", NULL | |
7254 | }; | |
7255 | ||
7256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7258 | if (!SWIG_IsOK(res1)) { | |
7259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7260 | } | |
7261 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7262 | { | |
7263 | arg2 = &temp2; | |
7264 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7265 | } | |
7266 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7267 | if (!SWIG_IsOK(res3)) { | |
7268 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7269 | } | |
7270 | if (!argp3) { | |
7271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7272 | } | |
7273 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7274 | { | |
7275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7276 | result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) SWIG_fail; | |
7279 | } | |
7280 | { | |
7281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7282 | } | |
7283 | return resultobj; | |
7284 | fail: | |
7285 | return NULL; | |
7286 | } | |
7287 | ||
7288 | ||
7289 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7290 | PyObject *resultobj = 0; | |
7291 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7292 | wxRichTextRange *arg2 = 0 ; | |
7293 | wxRichTextAttr *arg3 = 0 ; | |
7294 | int arg4 = (int) wxRICHTEXT_SETSTYLE_WITH_UNDO ; | |
7295 | bool result; | |
7296 | void *argp1 = 0 ; | |
7297 | int res1 = 0 ; | |
7298 | wxRichTextRange temp2 ; | |
7299 | void *argp3 = 0 ; | |
7300 | int res3 = 0 ; | |
7301 | int val4 ; | |
7302 | int ecode4 = 0 ; | |
7303 | PyObject * obj0 = 0 ; | |
7304 | PyObject * obj1 = 0 ; | |
7305 | PyObject * obj2 = 0 ; | |
7306 | PyObject * obj3 = 0 ; | |
7307 | char * kwnames[] = { | |
7308 | (char *) "self",(char *) "range",(char *) "style",(char *) "flags", NULL | |
7309 | }; | |
7310 | ||
7311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:RichTextCtrl_SetStyleEx",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7313 | if (!SWIG_IsOK(res1)) { | |
7314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7315 | } | |
7316 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7317 | { | |
7318 | arg2 = &temp2; | |
7319 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7320 | } | |
7321 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7322 | if (!SWIG_IsOK(res3)) { | |
7323 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7324 | } | |
7325 | if (!argp3) { | |
7326 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7327 | } | |
7328 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7329 | if (obj3) { | |
7330 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7331 | if (!SWIG_IsOK(ecode4)) { | |
7332 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "4"" of type '" "int""'"); | |
7333 | } | |
7334 | arg4 = static_cast< int >(val4); | |
7335 | } | |
7336 | { | |
7337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7338 | result = (bool)(arg1)->SetStyleEx((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3,arg4); | |
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) SWIG_fail; | |
7341 | } | |
7342 | { | |
7343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7344 | } | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | return NULL; | |
7348 | } | |
7349 | ||
7350 | ||
7351 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7352 | PyObject *resultobj = 0; | |
7353 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7354 | long arg2 ; | |
7355 | wxRichTextAttr *arg3 = 0 ; | |
7356 | bool result; | |
7357 | void *argp1 = 0 ; | |
7358 | int res1 = 0 ; | |
7359 | long val2 ; | |
7360 | int ecode2 = 0 ; | |
7361 | void *argp3 = 0 ; | |
7362 | int res3 = 0 ; | |
7363 | PyObject * obj0 = 0 ; | |
7364 | PyObject * obj1 = 0 ; | |
7365 | PyObject * obj2 = 0 ; | |
7366 | char * kwnames[] = { | |
7367 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7368 | }; | |
7369 | ||
7370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7372 | if (!SWIG_IsOK(res1)) { | |
7373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7374 | } | |
7375 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7376 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7377 | if (!SWIG_IsOK(ecode2)) { | |
7378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
7379 | } | |
7380 | arg2 = static_cast< long >(val2); | |
7381 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7382 | if (!SWIG_IsOK(res3)) { | |
7383 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7384 | } | |
7385 | if (!argp3) { | |
7386 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7387 | } | |
7388 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7389 | { | |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7392 | wxPyEndAllowThreads(__tstate); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | { | |
7396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7397 | } | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetUncombinedStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj = 0; | |
7406 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7407 | long arg2 ; | |
7408 | wxRichTextAttr *arg3 = 0 ; | |
7409 | bool result; | |
7410 | void *argp1 = 0 ; | |
7411 | int res1 = 0 ; | |
7412 | long val2 ; | |
7413 | int ecode2 = 0 ; | |
7414 | void *argp3 = 0 ; | |
7415 | int res3 = 0 ; | |
7416 | PyObject * obj0 = 0 ; | |
7417 | PyObject * obj1 = 0 ; | |
7418 | PyObject * obj2 = 0 ; | |
7419 | char * kwnames[] = { | |
7420 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7421 | }; | |
7422 | ||
7423 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetUncombinedStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7425 | if (!SWIG_IsOK(res1)) { | |
7426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7427 | } | |
7428 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7429 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7430 | if (!SWIG_IsOK(ecode2)) { | |
7431 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "2"" of type '" "long""'"); | |
7432 | } | |
7433 | arg2 = static_cast< long >(val2); | |
7434 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7435 | if (!SWIG_IsOK(res3)) { | |
7436 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7437 | } | |
7438 | if (!argp3) { | |
7439 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7440 | } | |
7441 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | result = (bool)(arg1)->GetUncombinedStyle(arg2,*arg3); | |
7445 | wxPyEndAllowThreads(__tstate); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
7448 | { | |
7449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7450 | } | |
7451 | return resultobj; | |
7452 | fail: | |
7453 | return NULL; | |
7454 | } | |
7455 | ||
7456 | ||
7457 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7458 | PyObject *resultobj = 0; | |
7459 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7460 | wxRichTextAttr *arg2 = 0 ; | |
7461 | bool result; | |
7462 | void *argp1 = 0 ; | |
7463 | int res1 = 0 ; | |
7464 | void *argp2 = 0 ; | |
7465 | int res2 = 0 ; | |
7466 | PyObject * obj0 = 0 ; | |
7467 | PyObject * obj1 = 0 ; | |
7468 | char * kwnames[] = { | |
7469 | (char *) "self",(char *) "style", NULL | |
7470 | }; | |
7471 | ||
7472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
7473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7474 | if (!SWIG_IsOK(res1)) { | |
7475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7476 | } | |
7477 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7478 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7479 | if (!SWIG_IsOK(res2)) { | |
7480 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7481 | } | |
7482 | if (!argp2) { | |
7483 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7484 | } | |
7485 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
7486 | { | |
7487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7488 | result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2); | |
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
7492 | { | |
7493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7494 | } | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7502 | PyObject *resultobj = 0; | |
7503 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7504 | wxRichTextAttr result; | |
7505 | void *argp1 = 0 ; | |
7506 | int res1 = 0 ; | |
7507 | PyObject *swig_obj[1] ; | |
7508 | ||
7509 | if (!args) SWIG_fail; | |
7510 | swig_obj[0] = args; | |
7511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7512 | if (!SWIG_IsOK(res1)) { | |
7513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7514 | } | |
7515 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx(); | |
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
7522 | resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 ); | |
7523 | return resultobj; | |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7530 | PyObject *resultobj = 0; | |
7531 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7532 | long arg2 ; | |
7533 | long arg3 ; | |
7534 | long result; | |
7535 | void *argp1 = 0 ; | |
7536 | int res1 = 0 ; | |
7537 | long val2 ; | |
7538 | int ecode2 = 0 ; | |
7539 | long val3 ; | |
7540 | int ecode3 = 0 ; | |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | PyObject * obj2 = 0 ; | |
7544 | char * kwnames[] = { | |
7545 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7546 | }; | |
7547 | ||
7548 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7550 | if (!SWIG_IsOK(res1)) { | |
7551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7552 | } | |
7553 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7554 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7555 | if (!SWIG_IsOK(ecode2)) { | |
7556 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
7557 | } | |
7558 | arg2 = static_cast< long >(val2); | |
7559 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7560 | if (!SWIG_IsOK(ecode3)) { | |
7561 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
7562 | } | |
7563 | arg3 = static_cast< long >(val3); | |
7564 | { | |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) SWIG_fail; | |
7569 | } | |
7570 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7571 | return resultobj; | |
7572 | fail: | |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
7577 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj = 0; | |
7579 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7580 | long arg2 ; | |
7581 | long *arg3 = (long *) 0 ; | |
7582 | long *arg4 = (long *) 0 ; | |
7583 | void *argp1 = 0 ; | |
7584 | int res1 = 0 ; | |
7585 | long val2 ; | |
7586 | int ecode2 = 0 ; | |
7587 | long temp3 ; | |
7588 | int res3 = SWIG_TMPOBJ ; | |
7589 | long temp4 ; | |
7590 | int res4 = SWIG_TMPOBJ ; | |
7591 | PyObject * obj0 = 0 ; | |
7592 | PyObject * obj1 = 0 ; | |
7593 | char * kwnames[] = { | |
7594 | (char *) "self",(char *) "pos", NULL | |
7595 | }; | |
7596 | ||
7597 | arg3 = &temp3; | |
7598 | arg4 = &temp4; | |
7599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
7600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7601 | if (!SWIG_IsOK(res1)) { | |
7602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7603 | } | |
7604 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7605 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7606 | if (!SWIG_IsOK(ecode2)) { | |
7607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
7608 | } | |
7609 | arg2 = static_cast< long >(val2); | |
7610 | { | |
7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7612 | ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | resultobj = SWIG_Py_Void(); | |
7617 | if (SWIG_IsTmpObj(res3)) { | |
7618 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7619 | } else { | |
7620 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7621 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7622 | } | |
7623 | if (SWIG_IsTmpObj(res4)) { | |
7624 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
7625 | } else { | |
7626 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7627 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
7628 | } | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
7635 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7636 | PyObject *resultobj = 0; | |
7637 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7638 | long arg2 ; | |
7639 | void *argp1 = 0 ; | |
7640 | int res1 = 0 ; | |
7641 | long val2 ; | |
7642 | int ecode2 = 0 ; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | PyObject * obj1 = 0 ; | |
7645 | char * kwnames[] = { | |
7646 | (char *) "self",(char *) "position", NULL | |
7647 | }; | |
7648 | ||
7649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
7650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7651 | if (!SWIG_IsOK(res1)) { | |
7652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7653 | } | |
7654 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7655 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7656 | if (!SWIG_IsOK(ecode2)) { | |
7657 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
7658 | } | |
7659 | arg2 = static_cast< long >(val2); | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | (arg1)->ShowPosition(arg2); | |
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | resultobj = SWIG_Py_Void(); | |
7667 | return resultobj; | |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7674 | PyObject *resultobj = 0; | |
7675 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7676 | wxPoint *arg2 = 0 ; | |
7677 | long *arg3 = (long *) 0 ; | |
7678 | wxTextCtrlHitTestResult result; | |
7679 | void *argp1 = 0 ; | |
7680 | int res1 = 0 ; | |
7681 | wxPoint temp2 ; | |
7682 | long temp3 ; | |
7683 | int res3 = SWIG_TMPOBJ ; | |
7684 | PyObject * obj0 = 0 ; | |
7685 | PyObject * obj1 = 0 ; | |
7686 | char * kwnames[] = { | |
7687 | (char *) "self",(char *) "pt", NULL | |
7688 | }; | |
7689 | ||
7690 | arg3 = &temp3; | |
7691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
7692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7693 | if (!SWIG_IsOK(res1)) { | |
7694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7695 | } | |
7696 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7697 | { | |
7698 | arg2 = &temp2; | |
7699 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7703 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7708 | if (SWIG_IsTmpObj(res3)) { | |
7709 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7710 | } else { | |
7711 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7712 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7713 | } | |
7714 | return resultobj; | |
7715 | fail: | |
7716 | return NULL; | |
7717 | } | |
7718 | ||
7719 | ||
7720 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7721 | PyObject *resultobj = 0; | |
7722 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7723 | wxPoint *arg2 = 0 ; | |
7724 | wxTextCoord *arg3 = (wxTextCoord *) 0 ; | |
7725 | wxTextCoord *arg4 = (wxTextCoord *) 0 ; | |
7726 | wxTextCtrlHitTestResult result; | |
7727 | void *argp1 = 0 ; | |
7728 | int res1 = 0 ; | |
7729 | wxPoint temp2 ; | |
7730 | void *argp3 = 0 ; | |
7731 | int res3 = 0 ; | |
7732 | void *argp4 = 0 ; | |
7733 | int res4 = 0 ; | |
7734 | PyObject * obj0 = 0 ; | |
7735 | PyObject * obj1 = 0 ; | |
7736 | PyObject * obj2 = 0 ; | |
7737 | PyObject * obj3 = 0 ; | |
7738 | char * kwnames[] = { | |
7739 | (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL | |
7740 | }; | |
7741 | ||
7742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7744 | if (!SWIG_IsOK(res1)) { | |
7745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7746 | } | |
7747 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7748 | { | |
7749 | arg2 = &temp2; | |
7750 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7751 | } | |
7752 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7753 | if (!SWIG_IsOK(res3)) { | |
7754 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'"); | |
7755 | } | |
7756 | arg3 = reinterpret_cast< wxTextCoord * >(argp3); | |
7757 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7758 | if (!SWIG_IsOK(res4)) { | |
7759 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'"); | |
7760 | } | |
7761 | arg4 = reinterpret_cast< wxTextCoord * >(argp4); | |
7762 | { | |
7763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7764 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
7768 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7769 | return resultobj; | |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7776 | PyObject *resultobj = 0; | |
7777 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7778 | void *argp1 = 0 ; | |
7779 | int res1 = 0 ; | |
7780 | PyObject *swig_obj[1] ; | |
7781 | ||
7782 | if (!args) SWIG_fail; | |
7783 | swig_obj[0] = args; | |
7784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7785 | if (!SWIG_IsOK(res1)) { | |
7786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7787 | } | |
7788 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | (arg1)->Copy(); | |
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
7795 | resultobj = SWIG_Py_Void(); | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
7802 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7803 | PyObject *resultobj = 0; | |
7804 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7805 | void *argp1 = 0 ; | |
7806 | int res1 = 0 ; | |
7807 | PyObject *swig_obj[1] ; | |
7808 | ||
7809 | if (!args) SWIG_fail; | |
7810 | swig_obj[0] = args; | |
7811 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7812 | if (!SWIG_IsOK(res1)) { | |
7813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7814 | } | |
7815 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7816 | { | |
7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7818 | (arg1)->Cut(); | |
7819 | wxPyEndAllowThreads(__tstate); | |
7820 | if (PyErr_Occurred()) SWIG_fail; | |
7821 | } | |
7822 | resultobj = SWIG_Py_Void(); | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
7829 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7830 | PyObject *resultobj = 0; | |
7831 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7832 | void *argp1 = 0 ; | |
7833 | int res1 = 0 ; | |
7834 | PyObject *swig_obj[1] ; | |
7835 | ||
7836 | if (!args) SWIG_fail; | |
7837 | swig_obj[0] = args; | |
7838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7839 | if (!SWIG_IsOK(res1)) { | |
7840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7841 | } | |
7842 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7843 | { | |
7844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7845 | (arg1)->Paste(); | |
7846 | wxPyEndAllowThreads(__tstate); | |
7847 | if (PyErr_Occurred()) SWIG_fail; | |
7848 | } | |
7849 | resultobj = SWIG_Py_Void(); | |
7850 | return resultobj; | |
7851 | fail: | |
7852 | return NULL; | |
7853 | } | |
7854 | ||
7855 | ||
7856 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7857 | PyObject *resultobj = 0; | |
7858 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7859 | void *argp1 = 0 ; | |
7860 | int res1 = 0 ; | |
7861 | PyObject *swig_obj[1] ; | |
7862 | ||
7863 | if (!args) SWIG_fail; | |
7864 | swig_obj[0] = args; | |
7865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7866 | if (!SWIG_IsOK(res1)) { | |
7867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7868 | } | |
7869 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7870 | { | |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | (arg1)->DeleteSelection(); | |
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
7876 | resultobj = SWIG_Py_Void(); | |
7877 | return resultobj; | |
7878 | fail: | |
7879 | return NULL; | |
7880 | } | |
7881 | ||
7882 | ||
7883 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7884 | PyObject *resultobj = 0; | |
7885 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7886 | bool result; | |
7887 | void *argp1 = 0 ; | |
7888 | int res1 = 0 ; | |
7889 | PyObject *swig_obj[1] ; | |
7890 | ||
7891 | if (!args) SWIG_fail; | |
7892 | swig_obj[0] = args; | |
7893 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7894 | if (!SWIG_IsOK(res1)) { | |
7895 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7896 | } | |
7897 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy(); | |
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | { | |
7905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7906 | } | |
7907 | return resultobj; | |
7908 | fail: | |
7909 | return NULL; | |
7910 | } | |
7911 | ||
7912 | ||
7913 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7914 | PyObject *resultobj = 0; | |
7915 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7916 | bool result; | |
7917 | void *argp1 = 0 ; | |
7918 | int res1 = 0 ; | |
7919 | PyObject *swig_obj[1] ; | |
7920 | ||
7921 | if (!args) SWIG_fail; | |
7922 | swig_obj[0] = args; | |
7923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7924 | if (!SWIG_IsOK(res1)) { | |
7925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7926 | } | |
7927 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7928 | { | |
7929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7930 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCut(); | |
7931 | wxPyEndAllowThreads(__tstate); | |
7932 | if (PyErr_Occurred()) SWIG_fail; | |
7933 | } | |
7934 | { | |
7935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7936 | } | |
7937 | return resultobj; | |
7938 | fail: | |
7939 | return NULL; | |
7940 | } | |
7941 | ||
7942 | ||
7943 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7944 | PyObject *resultobj = 0; | |
7945 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7946 | bool result; | |
7947 | void *argp1 = 0 ; | |
7948 | int res1 = 0 ; | |
7949 | PyObject *swig_obj[1] ; | |
7950 | ||
7951 | if (!args) SWIG_fail; | |
7952 | swig_obj[0] = args; | |
7953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7954 | if (!SWIG_IsOK(res1)) { | |
7955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7956 | } | |
7957 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste(); | |
7961 | wxPyEndAllowThreads(__tstate); | |
7962 | if (PyErr_Occurred()) SWIG_fail; | |
7963 | } | |
7964 | { | |
7965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7966 | } | |
7967 | return resultobj; | |
7968 | fail: | |
7969 | return NULL; | |
7970 | } | |
7971 | ||
7972 | ||
7973 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7974 | PyObject *resultobj = 0; | |
7975 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7976 | bool result; | |
7977 | void *argp1 = 0 ; | |
7978 | int res1 = 0 ; | |
7979 | PyObject *swig_obj[1] ; | |
7980 | ||
7981 | if (!args) SWIG_fail; | |
7982 | swig_obj[0] = args; | |
7983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7984 | if (!SWIG_IsOK(res1)) { | |
7985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7986 | } | |
7987 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection(); | |
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | { | |
7995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7996 | } | |
7997 | return resultobj; | |
7998 | fail: | |
7999 | return NULL; | |
8000 | } | |
8001 | ||
8002 | ||
8003 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8004 | PyObject *resultobj = 0; | |
8005 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8006 | void *argp1 = 0 ; | |
8007 | int res1 = 0 ; | |
8008 | PyObject *swig_obj[1] ; | |
8009 | ||
8010 | if (!args) SWIG_fail; | |
8011 | swig_obj[0] = args; | |
8012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8013 | if (!SWIG_IsOK(res1)) { | |
8014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8015 | } | |
8016 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8017 | { | |
8018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8019 | (arg1)->Undo(); | |
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | resultobj = SWIG_Py_Void(); | |
8024 | return resultobj; | |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
8030 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8031 | PyObject *resultobj = 0; | |
8032 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8033 | void *argp1 = 0 ; | |
8034 | int res1 = 0 ; | |
8035 | PyObject *swig_obj[1] ; | |
8036 | ||
8037 | if (!args) SWIG_fail; | |
8038 | swig_obj[0] = args; | |
8039 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8040 | if (!SWIG_IsOK(res1)) { | |
8041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8042 | } | |
8043 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | (arg1)->Redo(); | |
8047 | wxPyEndAllowThreads(__tstate); | |
8048 | if (PyErr_Occurred()) SWIG_fail; | |
8049 | } | |
8050 | resultobj = SWIG_Py_Void(); | |
8051 | return resultobj; | |
8052 | fail: | |
8053 | return NULL; | |
8054 | } | |
8055 | ||
8056 | ||
8057 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8058 | PyObject *resultobj = 0; | |
8059 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8060 | bool result; | |
8061 | void *argp1 = 0 ; | |
8062 | int res1 = 0 ; | |
8063 | PyObject *swig_obj[1] ; | |
8064 | ||
8065 | if (!args) SWIG_fail; | |
8066 | swig_obj[0] = args; | |
8067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8068 | if (!SWIG_IsOK(res1)) { | |
8069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8070 | } | |
8071 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8072 | { | |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo(); | |
8075 | wxPyEndAllowThreads(__tstate); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | } | |
8078 | { | |
8079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8080 | } | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | return NULL; | |
8084 | } | |
8085 | ||
8086 | ||
8087 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8088 | PyObject *resultobj = 0; | |
8089 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8090 | bool result; | |
8091 | void *argp1 = 0 ; | |
8092 | int res1 = 0 ; | |
8093 | PyObject *swig_obj[1] ; | |
8094 | ||
8095 | if (!args) SWIG_fail; | |
8096 | swig_obj[0] = args; | |
8097 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8098 | if (!SWIG_IsOK(res1)) { | |
8099 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8100 | } | |
8101 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8102 | { | |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8104 | result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo(); | |
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | } | |
8108 | { | |
8109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8110 | } | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj = 0; | |
8119 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8120 | long arg2 ; | |
8121 | void *argp1 = 0 ; | |
8122 | int res1 = 0 ; | |
8123 | long val2 ; | |
8124 | int ecode2 = 0 ; | |
8125 | PyObject * obj0 = 0 ; | |
8126 | PyObject * obj1 = 0 ; | |
8127 | char * kwnames[] = { | |
8128 | (char *) "self",(char *) "pos", NULL | |
8129 | }; | |
8130 | ||
8131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8133 | if (!SWIG_IsOK(res1)) { | |
8134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8135 | } | |
8136 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8137 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8138 | if (!SWIG_IsOK(ecode2)) { | |
8139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
8140 | } | |
8141 | arg2 = static_cast< long >(val2); | |
8142 | { | |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | (arg1)->SetInsertionPoint(arg2); | |
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | resultobj = SWIG_Py_Void(); | |
8149 | return resultobj; | |
8150 | fail: | |
8151 | return NULL; | |
8152 | } | |
8153 | ||
8154 | ||
8155 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8156 | PyObject *resultobj = 0; | |
8157 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8158 | void *argp1 = 0 ; | |
8159 | int res1 = 0 ; | |
8160 | PyObject *swig_obj[1] ; | |
8161 | ||
8162 | if (!args) SWIG_fail; | |
8163 | swig_obj[0] = args; | |
8164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8165 | if (!SWIG_IsOK(res1)) { | |
8166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8167 | } | |
8168 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8169 | { | |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | (arg1)->SetInsertionPointEnd(); | |
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | resultobj = SWIG_Py_Void(); | |
8176 | return resultobj; | |
8177 | fail: | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
8182 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8183 | PyObject *resultobj = 0; | |
8184 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8185 | long result; | |
8186 | void *argp1 = 0 ; | |
8187 | int res1 = 0 ; | |
8188 | PyObject *swig_obj[1] ; | |
8189 | ||
8190 | if (!args) SWIG_fail; | |
8191 | swig_obj[0] = args; | |
8192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8193 | if (!SWIG_IsOK(res1)) { | |
8194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8195 | } | |
8196 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8197 | { | |
8198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8199 | result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint(); | |
8200 | wxPyEndAllowThreads(__tstate); | |
8201 | if (PyErr_Occurred()) SWIG_fail; | |
8202 | } | |
8203 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8204 | return resultobj; | |
8205 | fail: | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
8210 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8211 | PyObject *resultobj = 0; | |
8212 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8213 | long result; | |
8214 | void *argp1 = 0 ; | |
8215 | int res1 = 0 ; | |
8216 | PyObject *swig_obj[1] ; | |
8217 | ||
8218 | if (!args) SWIG_fail; | |
8219 | swig_obj[0] = args; | |
8220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8221 | if (!SWIG_IsOK(res1)) { | |
8222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8223 | } | |
8224 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8225 | { | |
8226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8227 | result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition(); | |
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
8231 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8232 | return resultobj; | |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj = 0; | |
8240 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8241 | long arg2 ; | |
8242 | long arg3 ; | |
8243 | void *argp1 = 0 ; | |
8244 | int res1 = 0 ; | |
8245 | long val2 ; | |
8246 | int ecode2 = 0 ; | |
8247 | long val3 ; | |
8248 | int ecode3 = 0 ; | |
8249 | PyObject * obj0 = 0 ; | |
8250 | PyObject * obj1 = 0 ; | |
8251 | PyObject * obj2 = 0 ; | |
8252 | char * kwnames[] = { | |
8253 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8254 | }; | |
8255 | ||
8256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8258 | if (!SWIG_IsOK(res1)) { | |
8259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8260 | } | |
8261 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8262 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8263 | if (!SWIG_IsOK(ecode2)) { | |
8264 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
8265 | } | |
8266 | arg2 = static_cast< long >(val2); | |
8267 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8268 | if (!SWIG_IsOK(ecode3)) { | |
8269 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
8270 | } | |
8271 | arg3 = static_cast< long >(val3); | |
8272 | { | |
8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8274 | (arg1)->SetSelection(arg2,arg3); | |
8275 | wxPyEndAllowThreads(__tstate); | |
8276 | if (PyErr_Occurred()) SWIG_fail; | |
8277 | } | |
8278 | resultobj = SWIG_Py_Void(); | |
8279 | return resultobj; | |
8280 | fail: | |
8281 | return NULL; | |
8282 | } | |
8283 | ||
8284 | ||
8285 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8286 | PyObject *resultobj = 0; | |
8287 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8288 | void *argp1 = 0 ; | |
8289 | int res1 = 0 ; | |
8290 | PyObject *swig_obj[1] ; | |
8291 | ||
8292 | if (!args) SWIG_fail; | |
8293 | swig_obj[0] = args; | |
8294 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8295 | if (!SWIG_IsOK(res1)) { | |
8296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8297 | } | |
8298 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8299 | { | |
8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8301 | (arg1)->SelectAll(); | |
8302 | wxPyEndAllowThreads(__tstate); | |
8303 | if (PyErr_Occurred()) SWIG_fail; | |
8304 | } | |
8305 | resultobj = SWIG_Py_Void(); | |
8306 | return resultobj; | |
8307 | fail: | |
8308 | return NULL; | |
8309 | } | |
8310 | ||
8311 | ||
8312 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj = 0; | |
8314 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8315 | bool arg2 ; | |
8316 | void *argp1 = 0 ; | |
8317 | int res1 = 0 ; | |
8318 | bool val2 ; | |
8319 | int ecode2 = 0 ; | |
8320 | PyObject * obj0 = 0 ; | |
8321 | PyObject * obj1 = 0 ; | |
8322 | char * kwnames[] = { | |
8323 | (char *) "self",(char *) "editable", NULL | |
8324 | }; | |
8325 | ||
8326 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
8327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8328 | if (!SWIG_IsOK(res1)) { | |
8329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8330 | } | |
8331 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8332 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
8333 | if (!SWIG_IsOK(ecode2)) { | |
8334 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
8335 | } | |
8336 | arg2 = static_cast< bool >(val2); | |
8337 | { | |
8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8339 | (arg1)->SetEditable(arg2); | |
8340 | wxPyEndAllowThreads(__tstate); | |
8341 | if (PyErr_Occurred()) SWIG_fail; | |
8342 | } | |
8343 | resultobj = SWIG_Py_Void(); | |
8344 | return resultobj; | |
8345 | fail: | |
8346 | return NULL; | |
8347 | } | |
8348 | ||
8349 | ||
8350 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8351 | PyObject *resultobj = 0; | |
8352 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8353 | bool result; | |
8354 | void *argp1 = 0 ; | |
8355 | int res1 = 0 ; | |
8356 | PyObject *swig_obj[1] ; | |
8357 | ||
8358 | if (!args) SWIG_fail; | |
8359 | swig_obj[0] = args; | |
8360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8361 | if (!SWIG_IsOK(res1)) { | |
8362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8363 | } | |
8364 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8365 | { | |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection(); | |
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | { | |
8372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8373 | } | |
8374 | return resultobj; | |
8375 | fail: | |
8376 | return NULL; | |
8377 | } | |
8378 | ||
8379 | ||
8380 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8381 | PyObject *resultobj = 0; | |
8382 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8383 | wxImage *arg2 = 0 ; | |
8384 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8385 | bool result; | |
8386 | void *argp1 = 0 ; | |
8387 | int res1 = 0 ; | |
8388 | void *argp2 = 0 ; | |
8389 | int res2 = 0 ; | |
8390 | int val3 ; | |
8391 | int ecode3 = 0 ; | |
8392 | PyObject * obj0 = 0 ; | |
8393 | PyObject * obj1 = 0 ; | |
8394 | PyObject * obj2 = 0 ; | |
8395 | char * kwnames[] = { | |
8396 | (char *) "self",(char *) "image",(char *) "bitmapType", NULL | |
8397 | }; | |
8398 | ||
8399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8401 | if (!SWIG_IsOK(res1)) { | |
8402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8403 | } | |
8404 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8405 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
8406 | if (!SWIG_IsOK(res2)) { | |
8407 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8408 | } | |
8409 | if (!argp2) { | |
8410 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8411 | } | |
8412 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
8413 | if (obj2) { | |
8414 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8415 | if (!SWIG_IsOK(ecode3)) { | |
8416 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'"); | |
8417 | } | |
8418 | arg3 = static_cast< int >(val3); | |
8419 | } | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3); | |
8423 | wxPyEndAllowThreads(__tstate); | |
8424 | if (PyErr_Occurred()) SWIG_fail; | |
8425 | } | |
8426 | { | |
8427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8428 | } | |
8429 | return resultobj; | |
8430 | fail: | |
8431 | return NULL; | |
8432 | } | |
8433 | ||
8434 | ||
8435 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8436 | PyObject *resultobj = 0; | |
8437 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8438 | wxBitmap *arg2 = 0 ; | |
8439 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8440 | bool result; | |
8441 | void *argp1 = 0 ; | |
8442 | int res1 = 0 ; | |
8443 | void *argp2 = 0 ; | |
8444 | int res2 = 0 ; | |
8445 | int val3 ; | |
8446 | int ecode3 = 0 ; | |
8447 | PyObject * obj0 = 0 ; | |
8448 | PyObject * obj1 = 0 ; | |
8449 | PyObject * obj2 = 0 ; | |
8450 | char * kwnames[] = { | |
8451 | (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL | |
8452 | }; | |
8453 | ||
8454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8456 | if (!SWIG_IsOK(res1)) { | |
8457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8458 | } | |
8459 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8460 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8461 | if (!SWIG_IsOK(res2)) { | |
8462 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8463 | } | |
8464 | if (!argp2) { | |
8465 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8466 | } | |
8467 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8468 | if (obj2) { | |
8469 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8470 | if (!SWIG_IsOK(ecode3)) { | |
8471 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'"); | |
8472 | } | |
8473 | arg3 = static_cast< int >(val3); | |
8474 | } | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3); | |
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | { | |
8482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8483 | } | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
8490 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8491 | PyObject *resultobj = 0; | |
8492 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8493 | wxString *arg2 = 0 ; | |
8494 | int arg3 ; | |
8495 | bool result; | |
8496 | void *argp1 = 0 ; | |
8497 | int res1 = 0 ; | |
8498 | bool temp2 = false ; | |
8499 | int val3 ; | |
8500 | int ecode3 = 0 ; | |
8501 | PyObject * obj0 = 0 ; | |
8502 | PyObject * obj1 = 0 ; | |
8503 | PyObject * obj2 = 0 ; | |
8504 | char * kwnames[] = { | |
8505 | (char *) "self",(char *) "filename",(char *) "bitmapType", NULL | |
8506 | }; | |
8507 | ||
8508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8510 | if (!SWIG_IsOK(res1)) { | |
8511 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8512 | } | |
8513 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8514 | { | |
8515 | arg2 = wxString_in_helper(obj1); | |
8516 | if (arg2 == NULL) SWIG_fail; | |
8517 | temp2 = true; | |
8518 | } | |
8519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8520 | if (!SWIG_IsOK(ecode3)) { | |
8521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'"); | |
8522 | } | |
8523 | arg3 = static_cast< int >(val3); | |
8524 | { | |
8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8526 | result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3); | |
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
8530 | { | |
8531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8532 | } | |
8533 | { | |
8534 | if (temp2) | |
8535 | delete arg2; | |
8536 | } | |
8537 | return resultobj; | |
8538 | fail: | |
8539 | { | |
8540 | if (temp2) | |
8541 | delete arg2; | |
8542 | } | |
8543 | return NULL; | |
8544 | } | |
8545 | ||
8546 | ||
8547 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8548 | PyObject *resultobj = 0; | |
8549 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8550 | wxRichTextImageBlock *arg2 = 0 ; | |
8551 | bool result; | |
8552 | void *argp1 = 0 ; | |
8553 | int res1 = 0 ; | |
8554 | void *argp2 = 0 ; | |
8555 | int res2 = 0 ; | |
8556 | PyObject * obj0 = 0 ; | |
8557 | PyObject * obj1 = 0 ; | |
8558 | char * kwnames[] = { | |
8559 | (char *) "self",(char *) "imageBlock", NULL | |
8560 | }; | |
8561 | ||
8562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail; | |
8563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8564 | if (!SWIG_IsOK(res1)) { | |
8565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8566 | } | |
8567 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8568 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0); | |
8569 | if (!SWIG_IsOK(res2)) { | |
8570 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8571 | } | |
8572 | if (!argp2) { | |
8573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8574 | } | |
8575 | arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2); | |
8576 | { | |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2); | |
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | { | |
8583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8584 | } | |
8585 | return resultobj; | |
8586 | fail: | |
8587 | return NULL; | |
8588 | } | |
8589 | ||
8590 | ||
8591 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8592 | PyObject *resultobj = 0; | |
8593 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8594 | bool result; | |
8595 | void *argp1 = 0 ; | |
8596 | int res1 = 0 ; | |
8597 | PyObject *swig_obj[1] ; | |
8598 | ||
8599 | if (!args) SWIG_fail; | |
8600 | swig_obj[0] = args; | |
8601 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8602 | if (!SWIG_IsOK(res1)) { | |
8603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8604 | } | |
8605 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8606 | { | |
8607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8608 | result = (bool)(arg1)->Newline(); | |
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | { | |
8613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8614 | } | |
8615 | return resultobj; | |
8616 | fail: | |
8617 | return NULL; | |
8618 | } | |
8619 | ||
8620 | ||
8621 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8622 | PyObject *resultobj = 0; | |
8623 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8624 | wxRichTextAttr *arg2 = 0 ; | |
8625 | void *argp1 = 0 ; | |
8626 | int res1 = 0 ; | |
8627 | void *argp2 = 0 ; | |
8628 | int res2 = 0 ; | |
8629 | PyObject * obj0 = 0 ; | |
8630 | PyObject * obj1 = 0 ; | |
8631 | char * kwnames[] = { | |
8632 | (char *) "self",(char *) "style", NULL | |
8633 | }; | |
8634 | ||
8635 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
8636 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8637 | if (!SWIG_IsOK(res1)) { | |
8638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8639 | } | |
8640 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8641 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
8642 | if (!SWIG_IsOK(res2)) { | |
8643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8644 | } | |
8645 | if (!argp2) { | |
8646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8647 | } | |
8648 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
8649 | { | |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2); | |
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | resultobj = SWIG_Py_Void(); | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
8662 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8663 | PyObject *resultobj = 0; | |
8664 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8665 | bool result; | |
8666 | void *argp1 = 0 ; | |
8667 | int res1 = 0 ; | |
8668 | PyObject *swig_obj[1] ; | |
8669 | ||
8670 | if (!args) SWIG_fail; | |
8671 | swig_obj[0] = args; | |
8672 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8673 | if (!SWIG_IsOK(res1)) { | |
8674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8675 | } | |
8676 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8677 | { | |
8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8679 | result = (bool)(arg1)->EndStyle(); | |
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | { | |
8684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8685 | } | |
8686 | return resultobj; | |
8687 | fail: | |
8688 | return NULL; | |
8689 | } | |
8690 | ||
8691 | ||
8692 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8693 | PyObject *resultobj = 0; | |
8694 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8695 | bool result; | |
8696 | void *argp1 = 0 ; | |
8697 | int res1 = 0 ; | |
8698 | PyObject *swig_obj[1] ; | |
8699 | ||
8700 | if (!args) SWIG_fail; | |
8701 | swig_obj[0] = args; | |
8702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8703 | if (!SWIG_IsOK(res1)) { | |
8704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8705 | } | |
8706 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8707 | { | |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | result = (bool)(arg1)->EndAllStyles(); | |
8710 | wxPyEndAllowThreads(__tstate); | |
8711 | if (PyErr_Occurred()) SWIG_fail; | |
8712 | } | |
8713 | { | |
8714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8715 | } | |
8716 | return resultobj; | |
8717 | fail: | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8723 | PyObject *resultobj = 0; | |
8724 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8725 | bool result; | |
8726 | void *argp1 = 0 ; | |
8727 | int res1 = 0 ; | |
8728 | PyObject *swig_obj[1] ; | |
8729 | ||
8730 | if (!args) SWIG_fail; | |
8731 | swig_obj[0] = args; | |
8732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8733 | if (!SWIG_IsOK(res1)) { | |
8734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8735 | } | |
8736 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8737 | { | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | result = (bool)(arg1)->BeginBold(); | |
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | { | |
8744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8745 | } | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | return NULL; | |
8749 | } | |
8750 | ||
8751 | ||
8752 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8753 | PyObject *resultobj = 0; | |
8754 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8755 | bool result; | |
8756 | void *argp1 = 0 ; | |
8757 | int res1 = 0 ; | |
8758 | PyObject *swig_obj[1] ; | |
8759 | ||
8760 | if (!args) SWIG_fail; | |
8761 | swig_obj[0] = args; | |
8762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8763 | if (!SWIG_IsOK(res1)) { | |
8764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8765 | } | |
8766 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8767 | { | |
8768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8769 | result = (bool)(arg1)->EndBold(); | |
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
8773 | { | |
8774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8775 | } | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | return NULL; | |
8779 | } | |
8780 | ||
8781 | ||
8782 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8783 | PyObject *resultobj = 0; | |
8784 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8785 | bool result; | |
8786 | void *argp1 = 0 ; | |
8787 | int res1 = 0 ; | |
8788 | PyObject *swig_obj[1] ; | |
8789 | ||
8790 | if (!args) SWIG_fail; | |
8791 | swig_obj[0] = args; | |
8792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8793 | if (!SWIG_IsOK(res1)) { | |
8794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8795 | } | |
8796 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = (bool)(arg1)->BeginItalic(); | |
8800 | wxPyEndAllowThreads(__tstate); | |
8801 | if (PyErr_Occurred()) SWIG_fail; | |
8802 | } | |
8803 | { | |
8804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8805 | } | |
8806 | return resultobj; | |
8807 | fail: | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
8812 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8813 | PyObject *resultobj = 0; | |
8814 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8815 | bool result; | |
8816 | void *argp1 = 0 ; | |
8817 | int res1 = 0 ; | |
8818 | PyObject *swig_obj[1] ; | |
8819 | ||
8820 | if (!args) SWIG_fail; | |
8821 | swig_obj[0] = args; | |
8822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8823 | if (!SWIG_IsOK(res1)) { | |
8824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8825 | } | |
8826 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8827 | { | |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8829 | result = (bool)(arg1)->EndItalic(); | |
8830 | wxPyEndAllowThreads(__tstate); | |
8831 | if (PyErr_Occurred()) SWIG_fail; | |
8832 | } | |
8833 | { | |
8834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8835 | } | |
8836 | return resultobj; | |
8837 | fail: | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
8842 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8843 | PyObject *resultobj = 0; | |
8844 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8845 | bool result; | |
8846 | void *argp1 = 0 ; | |
8847 | int res1 = 0 ; | |
8848 | PyObject *swig_obj[1] ; | |
8849 | ||
8850 | if (!args) SWIG_fail; | |
8851 | swig_obj[0] = args; | |
8852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8853 | if (!SWIG_IsOK(res1)) { | |
8854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8855 | } | |
8856 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8857 | { | |
8858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8859 | result = (bool)(arg1)->BeginUnderline(); | |
8860 | wxPyEndAllowThreads(__tstate); | |
8861 | if (PyErr_Occurred()) SWIG_fail; | |
8862 | } | |
8863 | { | |
8864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8865 | } | |
8866 | return resultobj; | |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
8872 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8873 | PyObject *resultobj = 0; | |
8874 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8875 | bool result; | |
8876 | void *argp1 = 0 ; | |
8877 | int res1 = 0 ; | |
8878 | PyObject *swig_obj[1] ; | |
8879 | ||
8880 | if (!args) SWIG_fail; | |
8881 | swig_obj[0] = args; | |
8882 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8883 | if (!SWIG_IsOK(res1)) { | |
8884 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8885 | } | |
8886 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8887 | { | |
8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8889 | result = (bool)(arg1)->EndUnderline(); | |
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | { | |
8894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8895 | } | |
8896 | return resultobj; | |
8897 | fail: | |
8898 | return NULL; | |
8899 | } | |
8900 | ||
8901 | ||
8902 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8903 | PyObject *resultobj = 0; | |
8904 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8905 | int arg2 ; | |
8906 | bool result; | |
8907 | void *argp1 = 0 ; | |
8908 | int res1 = 0 ; | |
8909 | int val2 ; | |
8910 | int ecode2 = 0 ; | |
8911 | PyObject * obj0 = 0 ; | |
8912 | PyObject * obj1 = 0 ; | |
8913 | char * kwnames[] = { | |
8914 | (char *) "self",(char *) "pointSize", NULL | |
8915 | }; | |
8916 | ||
8917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8918 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8919 | if (!SWIG_IsOK(res1)) { | |
8920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8921 | } | |
8922 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8923 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8924 | if (!SWIG_IsOK(ecode2)) { | |
8925 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'"); | |
8926 | } | |
8927 | arg2 = static_cast< int >(val2); | |
8928 | { | |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | result = (bool)(arg1)->BeginFontSize(arg2); | |
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
8934 | { | |
8935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8936 | } | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8944 | PyObject *resultobj = 0; | |
8945 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8946 | bool result; | |
8947 | void *argp1 = 0 ; | |
8948 | int res1 = 0 ; | |
8949 | PyObject *swig_obj[1] ; | |
8950 | ||
8951 | if (!args) SWIG_fail; | |
8952 | swig_obj[0] = args; | |
8953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8954 | if (!SWIG_IsOK(res1)) { | |
8955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8956 | } | |
8957 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8958 | { | |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (bool)(arg1)->EndFontSize(); | |
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | { | |
8965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8966 | } | |
8967 | return resultobj; | |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
8973 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8974 | PyObject *resultobj = 0; | |
8975 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8976 | wxFont *arg2 = 0 ; | |
8977 | bool result; | |
8978 | void *argp1 = 0 ; | |
8979 | int res1 = 0 ; | |
8980 | void *argp2 = 0 ; | |
8981 | int res2 = 0 ; | |
8982 | PyObject * obj0 = 0 ; | |
8983 | PyObject * obj1 = 0 ; | |
8984 | char * kwnames[] = { | |
8985 | (char *) "self",(char *) "font", NULL | |
8986 | }; | |
8987 | ||
8988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8990 | if (!SWIG_IsOK(res1)) { | |
8991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8992 | } | |
8993 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8994 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
8995 | if (!SWIG_IsOK(res2)) { | |
8996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8997 | } | |
8998 | if (!argp2) { | |
8999 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
9000 | } | |
9001 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
9002 | { | |
9003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9004 | result = (bool)(arg1)->BeginFont((wxFont const &)*arg2); | |
9005 | wxPyEndAllowThreads(__tstate); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | } | |
9008 | { | |
9009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9010 | } | |
9011 | return resultobj; | |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9018 | PyObject *resultobj = 0; | |
9019 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9020 | bool result; | |
9021 | void *argp1 = 0 ; | |
9022 | int res1 = 0 ; | |
9023 | PyObject *swig_obj[1] ; | |
9024 | ||
9025 | if (!args) SWIG_fail; | |
9026 | swig_obj[0] = args; | |
9027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9028 | if (!SWIG_IsOK(res1)) { | |
9029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9030 | } | |
9031 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9032 | { | |
9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9034 | result = (bool)(arg1)->EndFont(); | |
9035 | wxPyEndAllowThreads(__tstate); | |
9036 | if (PyErr_Occurred()) SWIG_fail; | |
9037 | } | |
9038 | { | |
9039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9040 | } | |
9041 | return resultobj; | |
9042 | fail: | |
9043 | return NULL; | |
9044 | } | |
9045 | ||
9046 | ||
9047 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9048 | PyObject *resultobj = 0; | |
9049 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9050 | wxColour *arg2 = 0 ; | |
9051 | bool result; | |
9052 | void *argp1 = 0 ; | |
9053 | int res1 = 0 ; | |
9054 | wxColour temp2 ; | |
9055 | PyObject * obj0 = 0 ; | |
9056 | PyObject * obj1 = 0 ; | |
9057 | char * kwnames[] = { | |
9058 | (char *) "self",(char *) "colour", NULL | |
9059 | }; | |
9060 | ||
9061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
9062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9063 | if (!SWIG_IsOK(res1)) { | |
9064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9065 | } | |
9066 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9067 | { | |
9068 | arg2 = &temp2; | |
9069 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9070 | } | |
9071 | { | |
9072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9073 | result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2); | |
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
9077 | { | |
9078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9079 | } | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9087 | PyObject *resultobj = 0; | |
9088 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9089 | bool result; | |
9090 | void *argp1 = 0 ; | |
9091 | int res1 = 0 ; | |
9092 | PyObject *swig_obj[1] ; | |
9093 | ||
9094 | if (!args) SWIG_fail; | |
9095 | swig_obj[0] = args; | |
9096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9097 | if (!SWIG_IsOK(res1)) { | |
9098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9099 | } | |
9100 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9101 | { | |
9102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9103 | result = (bool)(arg1)->EndTextColour(); | |
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | { | |
9108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9109 | } | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
9116 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9117 | PyObject *resultobj = 0; | |
9118 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9119 | wxTextAttrAlignment arg2 ; | |
9120 | bool result; | |
9121 | void *argp1 = 0 ; | |
9122 | int res1 = 0 ; | |
9123 | int val2 ; | |
9124 | int ecode2 = 0 ; | |
9125 | PyObject * obj0 = 0 ; | |
9126 | PyObject * obj1 = 0 ; | |
9127 | char * kwnames[] = { | |
9128 | (char *) "self",(char *) "alignment", NULL | |
9129 | }; | |
9130 | ||
9131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
9132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9133 | if (!SWIG_IsOK(res1)) { | |
9134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9135 | } | |
9136 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9137 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9138 | if (!SWIG_IsOK(ecode2)) { | |
9139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
9140 | } | |
9141 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
9142 | { | |
9143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9144 | result = (bool)(arg1)->BeginAlignment(arg2); | |
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
9148 | { | |
9149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9150 | } | |
9151 | return resultobj; | |
9152 | fail: | |
9153 | return NULL; | |
9154 | } | |
9155 | ||
9156 | ||
9157 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9158 | PyObject *resultobj = 0; | |
9159 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9160 | bool result; | |
9161 | void *argp1 = 0 ; | |
9162 | int res1 = 0 ; | |
9163 | PyObject *swig_obj[1] ; | |
9164 | ||
9165 | if (!args) SWIG_fail; | |
9166 | swig_obj[0] = args; | |
9167 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9168 | if (!SWIG_IsOK(res1)) { | |
9169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9170 | } | |
9171 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9172 | { | |
9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9174 | result = (bool)(arg1)->EndAlignment(); | |
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | { | |
9179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9180 | } | |
9181 | return resultobj; | |
9182 | fail: | |
9183 | return NULL; | |
9184 | } | |
9185 | ||
9186 | ||
9187 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9188 | PyObject *resultobj = 0; | |
9189 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9190 | int arg2 ; | |
9191 | int arg3 = (int) 0 ; | |
9192 | bool result; | |
9193 | void *argp1 = 0 ; | |
9194 | int res1 = 0 ; | |
9195 | int val2 ; | |
9196 | int ecode2 = 0 ; | |
9197 | int val3 ; | |
9198 | int ecode3 = 0 ; | |
9199 | PyObject * obj0 = 0 ; | |
9200 | PyObject * obj1 = 0 ; | |
9201 | PyObject * obj2 = 0 ; | |
9202 | char * kwnames[] = { | |
9203 | (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL | |
9204 | }; | |
9205 | ||
9206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9208 | if (!SWIG_IsOK(res1)) { | |
9209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9210 | } | |
9211 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9212 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9213 | if (!SWIG_IsOK(ecode2)) { | |
9214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
9215 | } | |
9216 | arg2 = static_cast< int >(val2); | |
9217 | if (obj2) { | |
9218 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9219 | if (!SWIG_IsOK(ecode3)) { | |
9220 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
9221 | } | |
9222 | arg3 = static_cast< int >(val3); | |
9223 | } | |
9224 | { | |
9225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9226 | result = (bool)(arg1)->BeginLeftIndent(arg2,arg3); | |
9227 | wxPyEndAllowThreads(__tstate); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
9230 | { | |
9231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9232 | } | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
9239 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9240 | PyObject *resultobj = 0; | |
9241 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9242 | bool result; | |
9243 | void *argp1 = 0 ; | |
9244 | int res1 = 0 ; | |
9245 | PyObject *swig_obj[1] ; | |
9246 | ||
9247 | if (!args) SWIG_fail; | |
9248 | swig_obj[0] = args; | |
9249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9250 | if (!SWIG_IsOK(res1)) { | |
9251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9252 | } | |
9253 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9254 | { | |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9256 | result = (bool)(arg1)->EndLeftIndent(); | |
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
9260 | { | |
9261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9262 | } | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj = 0; | |
9271 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9272 | int arg2 ; | |
9273 | bool result; | |
9274 | void *argp1 = 0 ; | |
9275 | int res1 = 0 ; | |
9276 | int val2 ; | |
9277 | int ecode2 = 0 ; | |
9278 | PyObject * obj0 = 0 ; | |
9279 | PyObject * obj1 = 0 ; | |
9280 | char * kwnames[] = { | |
9281 | (char *) "self",(char *) "rightIndent", NULL | |
9282 | }; | |
9283 | ||
9284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
9285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9286 | if (!SWIG_IsOK(res1)) { | |
9287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9288 | } | |
9289 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9290 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9291 | if (!SWIG_IsOK(ecode2)) { | |
9292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
9293 | } | |
9294 | arg2 = static_cast< int >(val2); | |
9295 | { | |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | result = (bool)(arg1)->BeginRightIndent(arg2); | |
9298 | wxPyEndAllowThreads(__tstate); | |
9299 | if (PyErr_Occurred()) SWIG_fail; | |
9300 | } | |
9301 | { | |
9302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9303 | } | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9311 | PyObject *resultobj = 0; | |
9312 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9313 | bool result; | |
9314 | void *argp1 = 0 ; | |
9315 | int res1 = 0 ; | |
9316 | PyObject *swig_obj[1] ; | |
9317 | ||
9318 | if (!args) SWIG_fail; | |
9319 | swig_obj[0] = args; | |
9320 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9321 | if (!SWIG_IsOK(res1)) { | |
9322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9323 | } | |
9324 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9325 | { | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | result = (bool)(arg1)->EndRightIndent(); | |
9328 | wxPyEndAllowThreads(__tstate); | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | { | |
9332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9333 | } | |
9334 | return resultobj; | |
9335 | fail: | |
9336 | return NULL; | |
9337 | } | |
9338 | ||
9339 | ||
9340 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9341 | PyObject *resultobj = 0; | |
9342 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9343 | int arg2 ; | |
9344 | int arg3 ; | |
9345 | bool result; | |
9346 | void *argp1 = 0 ; | |
9347 | int res1 = 0 ; | |
9348 | int val2 ; | |
9349 | int ecode2 = 0 ; | |
9350 | int val3 ; | |
9351 | int ecode3 = 0 ; | |
9352 | PyObject * obj0 = 0 ; | |
9353 | PyObject * obj1 = 0 ; | |
9354 | PyObject * obj2 = 0 ; | |
9355 | char * kwnames[] = { | |
9356 | (char *) "self",(char *) "before",(char *) "after", NULL | |
9357 | }; | |
9358 | ||
9359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9361 | if (!SWIG_IsOK(res1)) { | |
9362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9363 | } | |
9364 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9365 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9366 | if (!SWIG_IsOK(ecode2)) { | |
9367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9368 | } | |
9369 | arg2 = static_cast< int >(val2); | |
9370 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9371 | if (!SWIG_IsOK(ecode3)) { | |
9372 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'"); | |
9373 | } | |
9374 | arg3 = static_cast< int >(val3); | |
9375 | { | |
9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9377 | result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3); | |
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | { | |
9382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9383 | } | |
9384 | return resultobj; | |
9385 | fail: | |
9386 | return NULL; | |
9387 | } | |
9388 | ||
9389 | ||
9390 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9391 | PyObject *resultobj = 0; | |
9392 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9393 | bool result; | |
9394 | void *argp1 = 0 ; | |
9395 | int res1 = 0 ; | |
9396 | PyObject *swig_obj[1] ; | |
9397 | ||
9398 | if (!args) SWIG_fail; | |
9399 | swig_obj[0] = args; | |
9400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9401 | if (!SWIG_IsOK(res1)) { | |
9402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9403 | } | |
9404 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9405 | { | |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = (bool)(arg1)->EndParagraphSpacing(); | |
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | { | |
9412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj = 0; | |
9422 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9423 | int arg2 ; | |
9424 | bool result; | |
9425 | void *argp1 = 0 ; | |
9426 | int res1 = 0 ; | |
9427 | int val2 ; | |
9428 | int ecode2 = 0 ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
9431 | char * kwnames[] = { | |
9432 | (char *) "self",(char *) "lineSpacing", NULL | |
9433 | }; | |
9434 | ||
9435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
9436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9437 | if (!SWIG_IsOK(res1)) { | |
9438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9439 | } | |
9440 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9441 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9442 | if (!SWIG_IsOK(ecode2)) { | |
9443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9444 | } | |
9445 | arg2 = static_cast< int >(val2); | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | result = (bool)(arg1)->BeginLineSpacing(arg2); | |
9449 | wxPyEndAllowThreads(__tstate); | |
9450 | if (PyErr_Occurred()) SWIG_fail; | |
9451 | } | |
9452 | { | |
9453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9454 | } | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9462 | PyObject *resultobj = 0; | |
9463 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9464 | bool result; | |
9465 | void *argp1 = 0 ; | |
9466 | int res1 = 0 ; | |
9467 | PyObject *swig_obj[1] ; | |
9468 | ||
9469 | if (!args) SWIG_fail; | |
9470 | swig_obj[0] = args; | |
9471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9472 | if (!SWIG_IsOK(res1)) { | |
9473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9474 | } | |
9475 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9476 | { | |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (bool)(arg1)->EndLineSpacing(); | |
9479 | wxPyEndAllowThreads(__tstate); | |
9480 | if (PyErr_Occurred()) SWIG_fail; | |
9481 | } | |
9482 | { | |
9483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9484 | } | |
9485 | return resultobj; | |
9486 | fail: | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj = 0; | |
9493 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9494 | int arg2 ; | |
9495 | int arg3 ; | |
9496 | int arg4 ; | |
9497 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ; | |
9498 | bool result; | |
9499 | void *argp1 = 0 ; | |
9500 | int res1 = 0 ; | |
9501 | int val2 ; | |
9502 | int ecode2 = 0 ; | |
9503 | int val3 ; | |
9504 | int ecode3 = 0 ; | |
9505 | int val4 ; | |
9506 | int ecode4 = 0 ; | |
9507 | int val5 ; | |
9508 | int ecode5 = 0 ; | |
9509 | PyObject * obj0 = 0 ; | |
9510 | PyObject * obj1 = 0 ; | |
9511 | PyObject * obj2 = 0 ; | |
9512 | PyObject * obj3 = 0 ; | |
9513 | PyObject * obj4 = 0 ; | |
9514 | char * kwnames[] = { | |
9515 | (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9516 | }; | |
9517 | ||
9518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9520 | if (!SWIG_IsOK(res1)) { | |
9521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9522 | } | |
9523 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9524 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9525 | if (!SWIG_IsOK(ecode2)) { | |
9526 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'"); | |
9527 | } | |
9528 | arg2 = static_cast< int >(val2); | |
9529 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9530 | if (!SWIG_IsOK(ecode3)) { | |
9531 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'"); | |
9532 | } | |
9533 | arg3 = static_cast< int >(val3); | |
9534 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9535 | if (!SWIG_IsOK(ecode4)) { | |
9536 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'"); | |
9537 | } | |
9538 | arg4 = static_cast< int >(val4); | |
9539 | if (obj4) { | |
9540 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9541 | if (!SWIG_IsOK(ecode5)) { | |
9542 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'"); | |
9543 | } | |
9544 | arg5 = static_cast< int >(val5); | |
9545 | } | |
9546 | { | |
9547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9548 | result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5); | |
9549 | wxPyEndAllowThreads(__tstate); | |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
9551 | } | |
9552 | { | |
9553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9554 | } | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | return NULL; | |
9558 | } | |
9559 | ||
9560 | ||
9561 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9562 | PyObject *resultobj = 0; | |
9563 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9564 | bool result; | |
9565 | void *argp1 = 0 ; | |
9566 | int res1 = 0 ; | |
9567 | PyObject *swig_obj[1] ; | |
9568 | ||
9569 | if (!args) SWIG_fail; | |
9570 | swig_obj[0] = args; | |
9571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9572 | if (!SWIG_IsOK(res1)) { | |
9573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9574 | } | |
9575 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9576 | { | |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | result = (bool)(arg1)->EndNumberedBullet(); | |
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | { | |
9583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9584 | } | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj = 0; | |
9593 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9594 | wxString *arg2 = 0 ; | |
9595 | int arg3 ; | |
9596 | int arg4 ; | |
9597 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ; | |
9598 | bool result; | |
9599 | void *argp1 = 0 ; | |
9600 | int res1 = 0 ; | |
9601 | bool temp2 = false ; | |
9602 | int val3 ; | |
9603 | int ecode3 = 0 ; | |
9604 | int val4 ; | |
9605 | int ecode4 = 0 ; | |
9606 | int val5 ; | |
9607 | int ecode5 = 0 ; | |
9608 | PyObject * obj0 = 0 ; | |
9609 | PyObject * obj1 = 0 ; | |
9610 | PyObject * obj2 = 0 ; | |
9611 | PyObject * obj3 = 0 ; | |
9612 | PyObject * obj4 = 0 ; | |
9613 | char * kwnames[] = { | |
9614 | (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9615 | }; | |
9616 | ||
9617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9619 | if (!SWIG_IsOK(res1)) { | |
9620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9621 | } | |
9622 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9623 | { | |
9624 | arg2 = wxString_in_helper(obj1); | |
9625 | if (arg2 == NULL) SWIG_fail; | |
9626 | temp2 = true; | |
9627 | } | |
9628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9629 | if (!SWIG_IsOK(ecode3)) { | |
9630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'"); | |
9631 | } | |
9632 | arg3 = static_cast< int >(val3); | |
9633 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9634 | if (!SWIG_IsOK(ecode4)) { | |
9635 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'"); | |
9636 | } | |
9637 | arg4 = static_cast< int >(val4); | |
9638 | if (obj4) { | |
9639 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9640 | if (!SWIG_IsOK(ecode5)) { | |
9641 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'"); | |
9642 | } | |
9643 | arg5 = static_cast< int >(val5); | |
9644 | } | |
9645 | { | |
9646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9647 | result = (bool)(arg1)->BeginSymbolBullet((wxString const &)*arg2,arg3,arg4,arg5); | |
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
9651 | { | |
9652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9653 | } | |
9654 | { | |
9655 | if (temp2) | |
9656 | delete arg2; | |
9657 | } | |
9658 | return resultobj; | |
9659 | fail: | |
9660 | { | |
9661 | if (temp2) | |
9662 | delete arg2; | |
9663 | } | |
9664 | return NULL; | |
9665 | } | |
9666 | ||
9667 | ||
9668 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9669 | PyObject *resultobj = 0; | |
9670 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9671 | bool result; | |
9672 | void *argp1 = 0 ; | |
9673 | int res1 = 0 ; | |
9674 | PyObject *swig_obj[1] ; | |
9675 | ||
9676 | if (!args) SWIG_fail; | |
9677 | swig_obj[0] = args; | |
9678 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9679 | if (!SWIG_IsOK(res1)) { | |
9680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9681 | } | |
9682 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = (bool)(arg1)->EndSymbolBullet(); | |
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) SWIG_fail; | |
9688 | } | |
9689 | { | |
9690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9699 | PyObject *resultobj = 0; | |
9700 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9701 | wxString *arg2 = 0 ; | |
9702 | bool result; | |
9703 | void *argp1 = 0 ; | |
9704 | int res1 = 0 ; | |
9705 | bool temp2 = false ; | |
9706 | PyObject * obj0 = 0 ; | |
9707 | PyObject * obj1 = 0 ; | |
9708 | char * kwnames[] = { | |
9709 | (char *) "self",(char *) "characterStyle", NULL | |
9710 | }; | |
9711 | ||
9712 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9714 | if (!SWIG_IsOK(res1)) { | |
9715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9716 | } | |
9717 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9718 | { | |
9719 | arg2 = wxString_in_helper(obj1); | |
9720 | if (arg2 == NULL) SWIG_fail; | |
9721 | temp2 = true; | |
9722 | } | |
9723 | { | |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2); | |
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
9729 | { | |
9730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9731 | } | |
9732 | { | |
9733 | if (temp2) | |
9734 | delete arg2; | |
9735 | } | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | { | |
9739 | if (temp2) | |
9740 | delete arg2; | |
9741 | } | |
9742 | return NULL; | |
9743 | } | |
9744 | ||
9745 | ||
9746 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9747 | PyObject *resultobj = 0; | |
9748 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9749 | bool result; | |
9750 | void *argp1 = 0 ; | |
9751 | int res1 = 0 ; | |
9752 | PyObject *swig_obj[1] ; | |
9753 | ||
9754 | if (!args) SWIG_fail; | |
9755 | swig_obj[0] = args; | |
9756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9757 | if (!SWIG_IsOK(res1)) { | |
9758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9759 | } | |
9760 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | result = (bool)(arg1)->EndCharacterStyle(); | |
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
9767 | { | |
9768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9769 | } | |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj = 0; | |
9778 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9779 | wxString *arg2 = 0 ; | |
9780 | bool result; | |
9781 | void *argp1 = 0 ; | |
9782 | int res1 = 0 ; | |
9783 | bool temp2 = false ; | |
9784 | PyObject * obj0 = 0 ; | |
9785 | PyObject * obj1 = 0 ; | |
9786 | char * kwnames[] = { | |
9787 | (char *) "self",(char *) "paragraphStyle", NULL | |
9788 | }; | |
9789 | ||
9790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9792 | if (!SWIG_IsOK(res1)) { | |
9793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9794 | } | |
9795 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9796 | { | |
9797 | arg2 = wxString_in_helper(obj1); | |
9798 | if (arg2 == NULL) SWIG_fail; | |
9799 | temp2 = true; | |
9800 | } | |
9801 | { | |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9803 | result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2); | |
9804 | wxPyEndAllowThreads(__tstate); | |
9805 | if (PyErr_Occurred()) SWIG_fail; | |
9806 | } | |
9807 | { | |
9808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9809 | } | |
9810 | { | |
9811 | if (temp2) | |
9812 | delete arg2; | |
9813 | } | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | { | |
9817 | if (temp2) | |
9818 | delete arg2; | |
9819 | } | |
9820 | return NULL; | |
9821 | } | |
9822 | ||
9823 | ||
9824 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9825 | PyObject *resultobj = 0; | |
9826 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9827 | bool result; | |
9828 | void *argp1 = 0 ; | |
9829 | int res1 = 0 ; | |
9830 | PyObject *swig_obj[1] ; | |
9831 | ||
9832 | if (!args) SWIG_fail; | |
9833 | swig_obj[0] = args; | |
9834 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9835 | if (!SWIG_IsOK(res1)) { | |
9836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9837 | } | |
9838 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9839 | { | |
9840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9841 | result = (bool)(arg1)->EndParagraphStyle(); | |
9842 | wxPyEndAllowThreads(__tstate); | |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
9844 | } | |
9845 | { | |
9846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9847 | } | |
9848 | return resultobj; | |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj = 0; | |
9856 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9857 | wxString *arg2 = 0 ; | |
9858 | int arg3 = (int) 1 ; | |
9859 | int arg4 = (int) 1 ; | |
9860 | bool result; | |
9861 | void *argp1 = 0 ; | |
9862 | int res1 = 0 ; | |
9863 | bool temp2 = false ; | |
9864 | int val3 ; | |
9865 | int ecode3 = 0 ; | |
9866 | int val4 ; | |
9867 | int ecode4 = 0 ; | |
9868 | PyObject * obj0 = 0 ; | |
9869 | PyObject * obj1 = 0 ; | |
9870 | PyObject * obj2 = 0 ; | |
9871 | PyObject * obj3 = 0 ; | |
9872 | char * kwnames[] = { | |
9873 | (char *) "self",(char *) "listStyle",(char *) "level",(char *) "number", NULL | |
9874 | }; | |
9875 | ||
9876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:RichTextCtrl_BeginListStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9878 | if (!SWIG_IsOK(res1)) { | |
9879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9880 | } | |
9881 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9882 | { | |
9883 | arg2 = wxString_in_helper(obj1); | |
9884 | if (arg2 == NULL) SWIG_fail; | |
9885 | temp2 = true; | |
9886 | } | |
9887 | if (obj2) { | |
9888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9889 | if (!SWIG_IsOK(ecode3)) { | |
9890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "3"" of type '" "int""'"); | |
9891 | } | |
9892 | arg3 = static_cast< int >(val3); | |
9893 | } | |
9894 | if (obj3) { | |
9895 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9896 | if (!SWIG_IsOK(ecode4)) { | |
9897 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "4"" of type '" "int""'"); | |
9898 | } | |
9899 | arg4 = static_cast< int >(val4); | |
9900 | } | |
9901 | { | |
9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9903 | result = (bool)(arg1)->BeginListStyle((wxString const &)*arg2,arg3,arg4); | |
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | { | |
9908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9909 | } | |
9910 | { | |
9911 | if (temp2) | |
9912 | delete arg2; | |
9913 | } | |
9914 | return resultobj; | |
9915 | fail: | |
9916 | { | |
9917 | if (temp2) | |
9918 | delete arg2; | |
9919 | } | |
9920 | return NULL; | |
9921 | } | |
9922 | ||
9923 | ||
9924 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9925 | PyObject *resultobj = 0; | |
9926 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9927 | bool result; | |
9928 | void *argp1 = 0 ; | |
9929 | int res1 = 0 ; | |
9930 | PyObject *swig_obj[1] ; | |
9931 | ||
9932 | if (!args) SWIG_fail; | |
9933 | swig_obj[0] = args; | |
9934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9935 | if (!SWIG_IsOK(res1)) { | |
9936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9937 | } | |
9938 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9939 | { | |
9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9941 | result = (bool)(arg1)->EndListStyle(); | |
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
9945 | { | |
9946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9947 | } | |
9948 | return resultobj; | |
9949 | fail: | |
9950 | return NULL; | |
9951 | } | |
9952 | ||
9953 | ||
9954 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9955 | PyObject *resultobj = 0; | |
9956 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9957 | wxString *arg2 = 0 ; | |
9958 | wxString const &arg3_defvalue = wxEmptyString ; | |
9959 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9960 | bool result; | |
9961 | void *argp1 = 0 ; | |
9962 | int res1 = 0 ; | |
9963 | bool temp2 = false ; | |
9964 | bool temp3 = false ; | |
9965 | PyObject * obj0 = 0 ; | |
9966 | PyObject * obj1 = 0 ; | |
9967 | PyObject * obj2 = 0 ; | |
9968 | char * kwnames[] = { | |
9969 | (char *) "self",(char *) "url",(char *) "characterStyle", NULL | |
9970 | }; | |
9971 | ||
9972 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginURL",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9974 | if (!SWIG_IsOK(res1)) { | |
9975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9976 | } | |
9977 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9978 | { | |
9979 | arg2 = wxString_in_helper(obj1); | |
9980 | if (arg2 == NULL) SWIG_fail; | |
9981 | temp2 = true; | |
9982 | } | |
9983 | if (obj2) { | |
9984 | { | |
9985 | arg3 = wxString_in_helper(obj2); | |
9986 | if (arg3 == NULL) SWIG_fail; | |
9987 | temp3 = true; | |
9988 | } | |
9989 | } | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | result = (bool)(arg1)->BeginURL((wxString const &)*arg2,(wxString const &)*arg3); | |
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | { | |
9997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9998 | } | |
9999 | { | |
10000 | if (temp2) | |
10001 | delete arg2; | |
10002 | } | |
10003 | { | |
10004 | if (temp3) | |
10005 | delete arg3; | |
10006 | } | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | { | |
10010 | if (temp2) | |
10011 | delete arg2; | |
10012 | } | |
10013 | { | |
10014 | if (temp3) | |
10015 | delete arg3; | |
10016 | } | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10022 | PyObject *resultobj = 0; | |
10023 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10024 | bool result; | |
10025 | void *argp1 = 0 ; | |
10026 | int res1 = 0 ; | |
10027 | PyObject *swig_obj[1] ; | |
10028 | ||
10029 | if (!args) SWIG_fail; | |
10030 | swig_obj[0] = args; | |
10031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10032 | if (!SWIG_IsOK(res1)) { | |
10033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10034 | } | |
10035 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10036 | { | |
10037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10038 | result = (bool)(arg1)->EndURL(); | |
10039 | wxPyEndAllowThreads(__tstate); | |
10040 | if (PyErr_Occurred()) SWIG_fail; | |
10041 | } | |
10042 | { | |
10043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10044 | } | |
10045 | return resultobj; | |
10046 | fail: | |
10047 | return NULL; | |
10048 | } | |
10049 | ||
10050 | ||
10051 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10052 | PyObject *resultobj = 0; | |
10053 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10054 | bool result; | |
10055 | void *argp1 = 0 ; | |
10056 | int res1 = 0 ; | |
10057 | PyObject *swig_obj[1] ; | |
10058 | ||
10059 | if (!args) SWIG_fail; | |
10060 | swig_obj[0] = args; | |
10061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10062 | if (!SWIG_IsOK(res1)) { | |
10063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10064 | } | |
10065 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10066 | { | |
10067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10068 | result = (bool)(arg1)->SetDefaultStyleToCursorStyle(); | |
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
10072 | { | |
10073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10074 | } | |
10075 | return resultobj; | |
10076 | fail: | |
10077 | return NULL; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10082 | PyObject *resultobj = 0; | |
10083 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10084 | void *argp1 = 0 ; | |
10085 | int res1 = 0 ; | |
10086 | PyObject *swig_obj[1] ; | |
10087 | ||
10088 | if (!args) SWIG_fail; | |
10089 | swig_obj[0] = args; | |
10090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10091 | if (!SWIG_IsOK(res1)) { | |
10092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10093 | } | |
10094 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | (arg1)->SelectNone(); | |
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) SWIG_fail; | |
10100 | } | |
10101 | resultobj = SWIG_Py_Void(); | |
10102 | return resultobj; | |
10103 | fail: | |
10104 | return NULL; | |
10105 | } | |
10106 | ||
10107 | ||
10108 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10109 | PyObject *resultobj = 0; | |
10110 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10111 | long arg2 ; | |
10112 | bool result; | |
10113 | void *argp1 = 0 ; | |
10114 | int res1 = 0 ; | |
10115 | long val2 ; | |
10116 | int ecode2 = 0 ; | |
10117 | PyObject * obj0 = 0 ; | |
10118 | PyObject * obj1 = 0 ; | |
10119 | char * kwnames[] = { | |
10120 | (char *) "self",(char *) "position", NULL | |
10121 | }; | |
10122 | ||
10123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SelectWord",kwnames,&obj0,&obj1)) SWIG_fail; | |
10124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10125 | if (!SWIG_IsOK(res1)) { | |
10126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10127 | } | |
10128 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10129 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10130 | if (!SWIG_IsOK(ecode2)) { | |
10131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "2"" of type '" "long""'"); | |
10132 | } | |
10133 | arg2 = static_cast< long >(val2); | |
10134 | { | |
10135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10136 | result = (bool)(arg1)->SelectWord(arg2); | |
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) SWIG_fail; | |
10139 | } | |
10140 | { | |
10141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10142 | } | |
10143 | return resultobj; | |
10144 | fail: | |
10145 | return NULL; | |
10146 | } | |
10147 | ||
10148 | ||
10149 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10150 | PyObject *resultobj = 0; | |
10151 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10152 | wxRichTextRange result; | |
10153 | void *argp1 = 0 ; | |
10154 | int res1 = 0 ; | |
10155 | PyObject *swig_obj[1] ; | |
10156 | ||
10157 | if (!args) SWIG_fail; | |
10158 | swig_obj[0] = args; | |
10159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10160 | if (!SWIG_IsOK(res1)) { | |
10161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10162 | } | |
10163 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | result = ((wxRichTextCtrl const *)arg1)->GetSelectionRange(); | |
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
10177 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10178 | PyObject *resultobj = 0; | |
10179 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10180 | wxRichTextRange *arg2 = 0 ; | |
10181 | void *argp1 = 0 ; | |
10182 | int res1 = 0 ; | |
10183 | wxRichTextRange temp2 ; | |
10184 | PyObject * obj0 = 0 ; | |
10185 | PyObject * obj1 = 0 ; | |
10186 | char * kwnames[] = { | |
10187 | (char *) "self",(char *) "range", NULL | |
10188 | }; | |
10189 | ||
10190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
10191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10192 | if (!SWIG_IsOK(res1)) { | |
10193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10194 | } | |
10195 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10196 | { | |
10197 | arg2 = &temp2; | |
10198 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10199 | } | |
10200 | { | |
10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10202 | (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2); | |
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
10206 | resultobj = SWIG_Py_Void(); | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10214 | PyObject *resultobj = 0; | |
10215 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10216 | wxRichTextRange *result = 0 ; | |
10217 | void *argp1 = 0 ; | |
10218 | int res1 = 0 ; | |
10219 | PyObject *swig_obj[1] ; | |
10220 | ||
10221 | if (!args) SWIG_fail; | |
10222 | swig_obj[0] = args; | |
10223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10224 | if (!SWIG_IsOK(res1)) { | |
10225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10226 | } | |
10227 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10228 | { | |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | { | |
10231 | wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetInternalSelectionRange(); | |
10232 | result = (wxRichTextRange *) &_result_ref; | |
10233 | } | |
10234 | wxPyEndAllowThreads(__tstate); | |
10235 | if (PyErr_Occurred()) SWIG_fail; | |
10236 | } | |
10237 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
10238 | return resultobj; | |
10239 | fail: | |
10240 | return NULL; | |
10241 | } | |
10242 | ||
10243 | ||
10244 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10245 | PyObject *resultobj = 0; | |
10246 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10247 | wxRichTextRange *arg2 = 0 ; | |
10248 | void *argp1 = 0 ; | |
10249 | int res1 = 0 ; | |
10250 | wxRichTextRange temp2 ; | |
10251 | PyObject * obj0 = 0 ; | |
10252 | PyObject * obj1 = 0 ; | |
10253 | char * kwnames[] = { | |
10254 | (char *) "self",(char *) "range", NULL | |
10255 | }; | |
10256 | ||
10257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInternalSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
10258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10259 | if (!SWIG_IsOK(res1)) { | |
10260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10261 | } | |
10262 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10263 | { | |
10264 | arg2 = &temp2; | |
10265 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10266 | } | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | (arg1)->SetInternalSelectionRange((wxRichTextRange const &)*arg2); | |
10270 | wxPyEndAllowThreads(__tstate); | |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
10272 | } | |
10273 | resultobj = SWIG_Py_Void(); | |
10274 | return resultobj; | |
10275 | fail: | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
10280 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10281 | PyObject *resultobj = 0; | |
10282 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10283 | wxString *arg2 = 0 ; | |
10284 | wxRichTextRange result; | |
10285 | void *argp1 = 0 ; | |
10286 | int res1 = 0 ; | |
10287 | bool temp2 = false ; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | PyObject * obj1 = 0 ; | |
10290 | char * kwnames[] = { | |
10291 | (char *) "self",(char *) "text", NULL | |
10292 | }; | |
10293 | ||
10294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail; | |
10295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10296 | if (!SWIG_IsOK(res1)) { | |
10297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10298 | } | |
10299 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10300 | { | |
10301 | arg2 = wxString_in_helper(obj1); | |
10302 | if (arg2 == NULL) SWIG_fail; | |
10303 | temp2 = true; | |
10304 | } | |
10305 | { | |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10307 | result = (arg1)->AddParagraph((wxString const &)*arg2); | |
10308 | wxPyEndAllowThreads(__tstate); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
10311 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10312 | { | |
10313 | if (temp2) | |
10314 | delete arg2; | |
10315 | } | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | { | |
10319 | if (temp2) | |
10320 | delete arg2; | |
10321 | } | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
10326 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10327 | PyObject *resultobj = 0; | |
10328 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10329 | wxImage *arg2 = 0 ; | |
10330 | wxRichTextRange result; | |
10331 | void *argp1 = 0 ; | |
10332 | int res1 = 0 ; | |
10333 | void *argp2 = 0 ; | |
10334 | int res2 = 0 ; | |
10335 | PyObject * obj0 = 0 ; | |
10336 | PyObject * obj1 = 0 ; | |
10337 | char * kwnames[] = { | |
10338 | (char *) "self",(char *) "image", NULL | |
10339 | }; | |
10340 | ||
10341 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
10342 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10343 | if (!SWIG_IsOK(res1)) { | |
10344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10345 | } | |
10346 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10347 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
10348 | if (!SWIG_IsOK(res2)) { | |
10349 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10350 | } | |
10351 | if (!argp2) { | |
10352 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10353 | } | |
10354 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
10355 | { | |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (arg1)->AddImage((wxImage const &)*arg2); | |
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
10361 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj = 0; | |
10370 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10371 | bool arg2 = (bool) false ; | |
10372 | bool result; | |
10373 | void *argp1 = 0 ; | |
10374 | int res1 = 0 ; | |
10375 | bool val2 ; | |
10376 | int ecode2 = 0 ; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | PyObject * obj1 = 0 ; | |
10379 | char * kwnames[] = { | |
10380 | (char *) "self",(char *) "onlyVisibleRect", NULL | |
10381 | }; | |
10382 | ||
10383 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10384 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10385 | if (!SWIG_IsOK(res1)) { | |
10386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10387 | } | |
10388 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10389 | if (obj1) { | |
10390 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10391 | if (!SWIG_IsOK(ecode2)) { | |
10392 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'"); | |
10393 | } | |
10394 | arg2 = static_cast< bool >(val2); | |
10395 | } | |
10396 | { | |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (bool)(arg1)->LayoutContent(arg2); | |
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
10402 | { | |
10403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10404 | } | |
10405 | return resultobj; | |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj = 0; | |
10413 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10414 | long arg2 ; | |
10415 | bool arg3 = (bool) false ; | |
10416 | bool result; | |
10417 | void *argp1 = 0 ; | |
10418 | int res1 = 0 ; | |
10419 | long val2 ; | |
10420 | int ecode2 = 0 ; | |
10421 | bool val3 ; | |
10422 | int ecode3 = 0 ; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | PyObject * obj1 = 0 ; | |
10425 | PyObject * obj2 = 0 ; | |
10426 | char * kwnames[] = { | |
10427 | (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL | |
10428 | }; | |
10429 | ||
10430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10432 | if (!SWIG_IsOK(res1)) { | |
10433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10434 | } | |
10435 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10436 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10437 | if (!SWIG_IsOK(ecode2)) { | |
10438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'"); | |
10439 | } | |
10440 | arg2 = static_cast< long >(val2); | |
10441 | if (obj2) { | |
10442 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10443 | if (!SWIG_IsOK(ecode3)) { | |
10444 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'"); | |
10445 | } | |
10446 | arg3 = static_cast< bool >(val3); | |
10447 | } | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | result = (bool)(arg1)->MoveCaret(arg2,arg3); | |
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | { | |
10455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10456 | } | |
10457 | return resultobj; | |
10458 | fail: | |
10459 | return NULL; | |
10460 | } | |
10461 | ||
10462 | ||
10463 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10464 | PyObject *resultobj = 0; | |
10465 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10466 | int arg2 = (int) 1 ; | |
10467 | int arg3 = (int) 0 ; | |
10468 | bool result; | |
10469 | void *argp1 = 0 ; | |
10470 | int res1 = 0 ; | |
10471 | int val2 ; | |
10472 | int ecode2 = 0 ; | |
10473 | int val3 ; | |
10474 | int ecode3 = 0 ; | |
10475 | PyObject * obj0 = 0 ; | |
10476 | PyObject * obj1 = 0 ; | |
10477 | PyObject * obj2 = 0 ; | |
10478 | char * kwnames[] = { | |
10479 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10480 | }; | |
10481 | ||
10482 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10483 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10484 | if (!SWIG_IsOK(res1)) { | |
10485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10486 | } | |
10487 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10488 | if (obj1) { | |
10489 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10490 | if (!SWIG_IsOK(ecode2)) { | |
10491 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'"); | |
10492 | } | |
10493 | arg2 = static_cast< int >(val2); | |
10494 | } | |
10495 | if (obj2) { | |
10496 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10497 | if (!SWIG_IsOK(ecode3)) { | |
10498 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'"); | |
10499 | } | |
10500 | arg3 = static_cast< int >(val3); | |
10501 | } | |
10502 | { | |
10503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10504 | result = (bool)(arg1)->MoveRight(arg2,arg3); | |
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
10508 | { | |
10509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10510 | } | |
10511 | return resultobj; | |
10512 | fail: | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10518 | PyObject *resultobj = 0; | |
10519 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10520 | int arg2 = (int) 1 ; | |
10521 | int arg3 = (int) 0 ; | |
10522 | bool result; | |
10523 | void *argp1 = 0 ; | |
10524 | int res1 = 0 ; | |
10525 | int val2 ; | |
10526 | int ecode2 = 0 ; | |
10527 | int val3 ; | |
10528 | int ecode3 = 0 ; | |
10529 | PyObject * obj0 = 0 ; | |
10530 | PyObject * obj1 = 0 ; | |
10531 | PyObject * obj2 = 0 ; | |
10532 | char * kwnames[] = { | |
10533 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10534 | }; | |
10535 | ||
10536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10538 | if (!SWIG_IsOK(res1)) { | |
10539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10540 | } | |
10541 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10542 | if (obj1) { | |
10543 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10544 | if (!SWIG_IsOK(ecode2)) { | |
10545 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'"); | |
10546 | } | |
10547 | arg2 = static_cast< int >(val2); | |
10548 | } | |
10549 | if (obj2) { | |
10550 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10551 | if (!SWIG_IsOK(ecode3)) { | |
10552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'"); | |
10553 | } | |
10554 | arg3 = static_cast< int >(val3); | |
10555 | } | |
10556 | { | |
10557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10558 | result = (bool)(arg1)->MoveLeft(arg2,arg3); | |
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | { | |
10563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10564 | } | |
10565 | return resultobj; | |
10566 | fail: | |
10567 | return NULL; | |
10568 | } | |
10569 | ||
10570 | ||
10571 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10572 | PyObject *resultobj = 0; | |
10573 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10574 | int arg2 = (int) 1 ; | |
10575 | int arg3 = (int) 0 ; | |
10576 | bool result; | |
10577 | void *argp1 = 0 ; | |
10578 | int res1 = 0 ; | |
10579 | int val2 ; | |
10580 | int ecode2 = 0 ; | |
10581 | int val3 ; | |
10582 | int ecode3 = 0 ; | |
10583 | PyObject * obj0 = 0 ; | |
10584 | PyObject * obj1 = 0 ; | |
10585 | PyObject * obj2 = 0 ; | |
10586 | char * kwnames[] = { | |
10587 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10588 | }; | |
10589 | ||
10590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10592 | if (!SWIG_IsOK(res1)) { | |
10593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10594 | } | |
10595 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10596 | if (obj1) { | |
10597 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10598 | if (!SWIG_IsOK(ecode2)) { | |
10599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'"); | |
10600 | } | |
10601 | arg2 = static_cast< int >(val2); | |
10602 | } | |
10603 | if (obj2) { | |
10604 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10605 | if (!SWIG_IsOK(ecode3)) { | |
10606 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'"); | |
10607 | } | |
10608 | arg3 = static_cast< int >(val3); | |
10609 | } | |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | result = (bool)(arg1)->MoveUp(arg2,arg3); | |
10613 | wxPyEndAllowThreads(__tstate); | |
10614 | if (PyErr_Occurred()) SWIG_fail; | |
10615 | } | |
10616 | { | |
10617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10618 | } | |
10619 | return resultobj; | |
10620 | fail: | |
10621 | return NULL; | |
10622 | } | |
10623 | ||
10624 | ||
10625 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10626 | PyObject *resultobj = 0; | |
10627 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10628 | int arg2 = (int) 1 ; | |
10629 | int arg3 = (int) 0 ; | |
10630 | bool result; | |
10631 | void *argp1 = 0 ; | |
10632 | int res1 = 0 ; | |
10633 | int val2 ; | |
10634 | int ecode2 = 0 ; | |
10635 | int val3 ; | |
10636 | int ecode3 = 0 ; | |
10637 | PyObject * obj0 = 0 ; | |
10638 | PyObject * obj1 = 0 ; | |
10639 | PyObject * obj2 = 0 ; | |
10640 | char * kwnames[] = { | |
10641 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10642 | }; | |
10643 | ||
10644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10646 | if (!SWIG_IsOK(res1)) { | |
10647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10648 | } | |
10649 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10650 | if (obj1) { | |
10651 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10652 | if (!SWIG_IsOK(ecode2)) { | |
10653 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'"); | |
10654 | } | |
10655 | arg2 = static_cast< int >(val2); | |
10656 | } | |
10657 | if (obj2) { | |
10658 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10659 | if (!SWIG_IsOK(ecode3)) { | |
10660 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'"); | |
10661 | } | |
10662 | arg3 = static_cast< int >(val3); | |
10663 | } | |
10664 | { | |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10666 | result = (bool)(arg1)->MoveDown(arg2,arg3); | |
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | { | |
10671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10672 | } | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj = 0; | |
10681 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10682 | int arg2 = (int) 0 ; | |
10683 | bool result; | |
10684 | void *argp1 = 0 ; | |
10685 | int res1 = 0 ; | |
10686 | int val2 ; | |
10687 | int ecode2 = 0 ; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | PyObject * obj1 = 0 ; | |
10690 | char * kwnames[] = { | |
10691 | (char *) "self",(char *) "flags", NULL | |
10692 | }; | |
10693 | ||
10694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10696 | if (!SWIG_IsOK(res1)) { | |
10697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10698 | } | |
10699 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10700 | if (obj1) { | |
10701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10702 | if (!SWIG_IsOK(ecode2)) { | |
10703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'"); | |
10704 | } | |
10705 | arg2 = static_cast< int >(val2); | |
10706 | } | |
10707 | { | |
10708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10709 | result = (bool)(arg1)->MoveToLineEnd(arg2); | |
10710 | wxPyEndAllowThreads(__tstate); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | } | |
10713 | { | |
10714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10715 | } | |
10716 | return resultobj; | |
10717 | fail: | |
10718 | return NULL; | |
10719 | } | |
10720 | ||
10721 | ||
10722 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10723 | PyObject *resultobj = 0; | |
10724 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10725 | int arg2 = (int) 0 ; | |
10726 | bool result; | |
10727 | void *argp1 = 0 ; | |
10728 | int res1 = 0 ; | |
10729 | int val2 ; | |
10730 | int ecode2 = 0 ; | |
10731 | PyObject * obj0 = 0 ; | |
10732 | PyObject * obj1 = 0 ; | |
10733 | char * kwnames[] = { | |
10734 | (char *) "self",(char *) "flags", NULL | |
10735 | }; | |
10736 | ||
10737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10739 | if (!SWIG_IsOK(res1)) { | |
10740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10741 | } | |
10742 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10743 | if (obj1) { | |
10744 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10745 | if (!SWIG_IsOK(ecode2)) { | |
10746 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'"); | |
10747 | } | |
10748 | arg2 = static_cast< int >(val2); | |
10749 | } | |
10750 | { | |
10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10752 | result = (bool)(arg1)->MoveToLineStart(arg2); | |
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | { | |
10757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10758 | } | |
10759 | return resultobj; | |
10760 | fail: | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
10765 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10766 | PyObject *resultobj = 0; | |
10767 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10768 | int arg2 = (int) 0 ; | |
10769 | bool result; | |
10770 | void *argp1 = 0 ; | |
10771 | int res1 = 0 ; | |
10772 | int val2 ; | |
10773 | int ecode2 = 0 ; | |
10774 | PyObject * obj0 = 0 ; | |
10775 | PyObject * obj1 = 0 ; | |
10776 | char * kwnames[] = { | |
10777 | (char *) "self",(char *) "flags", NULL | |
10778 | }; | |
10779 | ||
10780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10782 | if (!SWIG_IsOK(res1)) { | |
10783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10784 | } | |
10785 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10786 | if (obj1) { | |
10787 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10788 | if (!SWIG_IsOK(ecode2)) { | |
10789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'"); | |
10790 | } | |
10791 | arg2 = static_cast< int >(val2); | |
10792 | } | |
10793 | { | |
10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10795 | result = (bool)(arg1)->MoveToParagraphEnd(arg2); | |
10796 | wxPyEndAllowThreads(__tstate); | |
10797 | if (PyErr_Occurred()) SWIG_fail; | |
10798 | } | |
10799 | { | |
10800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10801 | } | |
10802 | return resultobj; | |
10803 | fail: | |
10804 | return NULL; | |
10805 | } | |
10806 | ||
10807 | ||
10808 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10809 | PyObject *resultobj = 0; | |
10810 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10811 | int arg2 = (int) 0 ; | |
10812 | bool result; | |
10813 | void *argp1 = 0 ; | |
10814 | int res1 = 0 ; | |
10815 | int val2 ; | |
10816 | int ecode2 = 0 ; | |
10817 | PyObject * obj0 = 0 ; | |
10818 | PyObject * obj1 = 0 ; | |
10819 | char * kwnames[] = { | |
10820 | (char *) "self",(char *) "flags", NULL | |
10821 | }; | |
10822 | ||
10823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10825 | if (!SWIG_IsOK(res1)) { | |
10826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10827 | } | |
10828 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10829 | if (obj1) { | |
10830 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10831 | if (!SWIG_IsOK(ecode2)) { | |
10832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'"); | |
10833 | } | |
10834 | arg2 = static_cast< int >(val2); | |
10835 | } | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | result = (bool)(arg1)->MoveToParagraphStart(arg2); | |
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
10842 | { | |
10843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10844 | } | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj = 0; | |
10853 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10854 | int arg2 = (int) 0 ; | |
10855 | bool result; | |
10856 | void *argp1 = 0 ; | |
10857 | int res1 = 0 ; | |
10858 | int val2 ; | |
10859 | int ecode2 = 0 ; | |
10860 | PyObject * obj0 = 0 ; | |
10861 | PyObject * obj1 = 0 ; | |
10862 | char * kwnames[] = { | |
10863 | (char *) "self",(char *) "flags", NULL | |
10864 | }; | |
10865 | ||
10866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail; | |
10867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10868 | if (!SWIG_IsOK(res1)) { | |
10869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10870 | } | |
10871 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10872 | if (obj1) { | |
10873 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10874 | if (!SWIG_IsOK(ecode2)) { | |
10875 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'"); | |
10876 | } | |
10877 | arg2 = static_cast< int >(val2); | |
10878 | } | |
10879 | { | |
10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10881 | result = (bool)(arg1)->MoveHome(arg2); | |
10882 | wxPyEndAllowThreads(__tstate); | |
10883 | if (PyErr_Occurred()) SWIG_fail; | |
10884 | } | |
10885 | { | |
10886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10887 | } | |
10888 | return resultobj; | |
10889 | fail: | |
10890 | return NULL; | |
10891 | } | |
10892 | ||
10893 | ||
10894 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10895 | PyObject *resultobj = 0; | |
10896 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10897 | int arg2 = (int) 0 ; | |
10898 | bool result; | |
10899 | void *argp1 = 0 ; | |
10900 | int res1 = 0 ; | |
10901 | int val2 ; | |
10902 | int ecode2 = 0 ; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | PyObject * obj1 = 0 ; | |
10905 | char * kwnames[] = { | |
10906 | (char *) "self",(char *) "flags", NULL | |
10907 | }; | |
10908 | ||
10909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10911 | if (!SWIG_IsOK(res1)) { | |
10912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10913 | } | |
10914 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10915 | if (obj1) { | |
10916 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10917 | if (!SWIG_IsOK(ecode2)) { | |
10918 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'"); | |
10919 | } | |
10920 | arg2 = static_cast< int >(val2); | |
10921 | } | |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | result = (bool)(arg1)->MoveEnd(arg2); | |
10925 | wxPyEndAllowThreads(__tstate); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | { | |
10929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10930 | } | |
10931 | return resultobj; | |
10932 | fail: | |
10933 | return NULL; | |
10934 | } | |
10935 | ||
10936 | ||
10937 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10938 | PyObject *resultobj = 0; | |
10939 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10940 | int arg2 = (int) 1 ; | |
10941 | int arg3 = (int) 0 ; | |
10942 | bool result; | |
10943 | void *argp1 = 0 ; | |
10944 | int res1 = 0 ; | |
10945 | int val2 ; | |
10946 | int ecode2 = 0 ; | |
10947 | int val3 ; | |
10948 | int ecode3 = 0 ; | |
10949 | PyObject * obj0 = 0 ; | |
10950 | PyObject * obj1 = 0 ; | |
10951 | PyObject * obj2 = 0 ; | |
10952 | char * kwnames[] = { | |
10953 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10954 | }; | |
10955 | ||
10956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10958 | if (!SWIG_IsOK(res1)) { | |
10959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10960 | } | |
10961 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10962 | if (obj1) { | |
10963 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10964 | if (!SWIG_IsOK(ecode2)) { | |
10965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'"); | |
10966 | } | |
10967 | arg2 = static_cast< int >(val2); | |
10968 | } | |
10969 | if (obj2) { | |
10970 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10971 | if (!SWIG_IsOK(ecode3)) { | |
10972 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'"); | |
10973 | } | |
10974 | arg3 = static_cast< int >(val3); | |
10975 | } | |
10976 | { | |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10978 | result = (bool)(arg1)->PageUp(arg2,arg3); | |
10979 | wxPyEndAllowThreads(__tstate); | |
10980 | if (PyErr_Occurred()) SWIG_fail; | |
10981 | } | |
10982 | { | |
10983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10984 | } | |
10985 | return resultobj; | |
10986 | fail: | |
10987 | return NULL; | |
10988 | } | |
10989 | ||
10990 | ||
10991 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10992 | PyObject *resultobj = 0; | |
10993 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10994 | int arg2 = (int) 1 ; | |
10995 | int arg3 = (int) 0 ; | |
10996 | bool result; | |
10997 | void *argp1 = 0 ; | |
10998 | int res1 = 0 ; | |
10999 | int val2 ; | |
11000 | int ecode2 = 0 ; | |
11001 | int val3 ; | |
11002 | int ecode3 = 0 ; | |
11003 | PyObject * obj0 = 0 ; | |
11004 | PyObject * obj1 = 0 ; | |
11005 | PyObject * obj2 = 0 ; | |
11006 | char * kwnames[] = { | |
11007 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11008 | }; | |
11009 | ||
11010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11012 | if (!SWIG_IsOK(res1)) { | |
11013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11014 | } | |
11015 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11016 | if (obj1) { | |
11017 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11018 | if (!SWIG_IsOK(ecode2)) { | |
11019 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'"); | |
11020 | } | |
11021 | arg2 = static_cast< int >(val2); | |
11022 | } | |
11023 | if (obj2) { | |
11024 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11025 | if (!SWIG_IsOK(ecode3)) { | |
11026 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'"); | |
11027 | } | |
11028 | arg3 = static_cast< int >(val3); | |
11029 | } | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (bool)(arg1)->PageDown(arg2,arg3); | |
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
11036 | { | |
11037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11038 | } | |
11039 | return resultobj; | |
11040 | fail: | |
11041 | return NULL; | |
11042 | } | |
11043 | ||
11044 | ||
11045 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11046 | PyObject *resultobj = 0; | |
11047 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11048 | int arg2 = (int) 1 ; | |
11049 | int arg3 = (int) 0 ; | |
11050 | bool result; | |
11051 | void *argp1 = 0 ; | |
11052 | int res1 = 0 ; | |
11053 | int val2 ; | |
11054 | int ecode2 = 0 ; | |
11055 | int val3 ; | |
11056 | int ecode3 = 0 ; | |
11057 | PyObject * obj0 = 0 ; | |
11058 | PyObject * obj1 = 0 ; | |
11059 | PyObject * obj2 = 0 ; | |
11060 | char * kwnames[] = { | |
11061 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11062 | }; | |
11063 | ||
11064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11066 | if (!SWIG_IsOK(res1)) { | |
11067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11068 | } | |
11069 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11070 | if (obj1) { | |
11071 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11072 | if (!SWIG_IsOK(ecode2)) { | |
11073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'"); | |
11074 | } | |
11075 | arg2 = static_cast< int >(val2); | |
11076 | } | |
11077 | if (obj2) { | |
11078 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11079 | if (!SWIG_IsOK(ecode3)) { | |
11080 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'"); | |
11081 | } | |
11082 | arg3 = static_cast< int >(val3); | |
11083 | } | |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | result = (bool)(arg1)->WordLeft(arg2,arg3); | |
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | { | |
11091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11092 | } | |
11093 | return resultobj; | |
11094 | fail: | |
11095 | return NULL; | |
11096 | } | |
11097 | ||
11098 | ||
11099 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11100 | PyObject *resultobj = 0; | |
11101 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11102 | int arg2 = (int) 1 ; | |
11103 | int arg3 = (int) 0 ; | |
11104 | bool result; | |
11105 | void *argp1 = 0 ; | |
11106 | int res1 = 0 ; | |
11107 | int val2 ; | |
11108 | int ecode2 = 0 ; | |
11109 | int val3 ; | |
11110 | int ecode3 = 0 ; | |
11111 | PyObject * obj0 = 0 ; | |
11112 | PyObject * obj1 = 0 ; | |
11113 | PyObject * obj2 = 0 ; | |
11114 | char * kwnames[] = { | |
11115 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11116 | }; | |
11117 | ||
11118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11120 | if (!SWIG_IsOK(res1)) { | |
11121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11122 | } | |
11123 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11124 | if (obj1) { | |
11125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11126 | if (!SWIG_IsOK(ecode2)) { | |
11127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'"); | |
11128 | } | |
11129 | arg2 = static_cast< int >(val2); | |
11130 | } | |
11131 | if (obj2) { | |
11132 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11133 | if (!SWIG_IsOK(ecode3)) { | |
11134 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'"); | |
11135 | } | |
11136 | arg3 = static_cast< int >(val3); | |
11137 | } | |
11138 | { | |
11139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11140 | result = (bool)(arg1)->WordRight(arg2,arg3); | |
11141 | wxPyEndAllowThreads(__tstate); | |
11142 | if (PyErr_Occurred()) SWIG_fail; | |
11143 | } | |
11144 | { | |
11145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11146 | } | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11154 | PyObject *resultobj = 0; | |
11155 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11156 | wxRichTextBuffer *result = 0 ; | |
11157 | void *argp1 = 0 ; | |
11158 | int res1 = 0 ; | |
11159 | PyObject *swig_obj[1] ; | |
11160 | ||
11161 | if (!args) SWIG_fail; | |
11162 | swig_obj[0] = args; | |
11163 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11164 | if (!SWIG_IsOK(res1)) { | |
11165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11166 | } | |
11167 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11168 | { | |
11169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11170 | { | |
11171 | wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer(); | |
11172 | result = (wxRichTextBuffer *) &_result_ref; | |
11173 | } | |
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 ); | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11185 | PyObject *resultobj = 0; | |
11186 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11187 | wxString *arg2 = 0 ; | |
11188 | bool result; | |
11189 | void *argp1 = 0 ; | |
11190 | int res1 = 0 ; | |
11191 | bool temp2 = false ; | |
11192 | PyObject * obj0 = 0 ; | |
11193 | PyObject * obj1 = 0 ; | |
11194 | char * kwnames[] = { | |
11195 | (char *) "self",(char *) "cmdName", NULL | |
11196 | }; | |
11197 | ||
11198 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail; | |
11199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11200 | if (!SWIG_IsOK(res1)) { | |
11201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11202 | } | |
11203 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11204 | { | |
11205 | arg2 = wxString_in_helper(obj1); | |
11206 | if (arg2 == NULL) SWIG_fail; | |
11207 | temp2 = true; | |
11208 | } | |
11209 | { | |
11210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11211 | result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2); | |
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | { | |
11216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11217 | } | |
11218 | { | |
11219 | if (temp2) | |
11220 | delete arg2; | |
11221 | } | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | { | |
11225 | if (temp2) | |
11226 | delete arg2; | |
11227 | } | |
11228 | return NULL; | |
11229 | } | |
11230 | ||
11231 | ||
11232 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11233 | PyObject *resultobj = 0; | |
11234 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11235 | bool result; | |
11236 | void *argp1 = 0 ; | |
11237 | int res1 = 0 ; | |
11238 | PyObject *swig_obj[1] ; | |
11239 | ||
11240 | if (!args) SWIG_fail; | |
11241 | swig_obj[0] = args; | |
11242 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11243 | if (!SWIG_IsOK(res1)) { | |
11244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11245 | } | |
11246 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11247 | { | |
11248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11249 | result = (bool)(arg1)->EndBatchUndo(); | |
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
11253 | { | |
11254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11255 | } | |
11256 | return resultobj; | |
11257 | fail: | |
11258 | return NULL; | |
11259 | } | |
11260 | ||
11261 | ||
11262 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11263 | PyObject *resultobj = 0; | |
11264 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11265 | bool result; | |
11266 | void *argp1 = 0 ; | |
11267 | int res1 = 0 ; | |
11268 | PyObject *swig_obj[1] ; | |
11269 | ||
11270 | if (!args) SWIG_fail; | |
11271 | swig_obj[0] = args; | |
11272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11273 | if (!SWIG_IsOK(res1)) { | |
11274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11275 | } | |
11276 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11277 | { | |
11278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11279 | result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo(); | |
11280 | wxPyEndAllowThreads(__tstate); | |
11281 | if (PyErr_Occurred()) SWIG_fail; | |
11282 | } | |
11283 | { | |
11284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11285 | } | |
11286 | return resultobj; | |
11287 | fail: | |
11288 | return NULL; | |
11289 | } | |
11290 | ||
11291 | ||
11292 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11293 | PyObject *resultobj = 0; | |
11294 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11295 | bool result; | |
11296 | void *argp1 = 0 ; | |
11297 | int res1 = 0 ; | |
11298 | PyObject *swig_obj[1] ; | |
11299 | ||
11300 | if (!args) SWIG_fail; | |
11301 | swig_obj[0] = args; | |
11302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11303 | if (!SWIG_IsOK(res1)) { | |
11304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11305 | } | |
11306 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11307 | { | |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11309 | result = (bool)(arg1)->BeginSuppressUndo(); | |
11310 | wxPyEndAllowThreads(__tstate); | |
11311 | if (PyErr_Occurred()) SWIG_fail; | |
11312 | } | |
11313 | { | |
11314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11315 | } | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
11322 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11323 | PyObject *resultobj = 0; | |
11324 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11325 | bool result; | |
11326 | void *argp1 = 0 ; | |
11327 | int res1 = 0 ; | |
11328 | PyObject *swig_obj[1] ; | |
11329 | ||
11330 | if (!args) SWIG_fail; | |
11331 | swig_obj[0] = args; | |
11332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11333 | if (!SWIG_IsOK(res1)) { | |
11334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11335 | } | |
11336 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11337 | { | |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | result = (bool)(arg1)->EndSuppressUndo(); | |
11340 | wxPyEndAllowThreads(__tstate); | |
11341 | if (PyErr_Occurred()) SWIG_fail; | |
11342 | } | |
11343 | { | |
11344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11345 | } | |
11346 | return resultobj; | |
11347 | fail: | |
11348 | return NULL; | |
11349 | } | |
11350 | ||
11351 | ||
11352 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11353 | PyObject *resultobj = 0; | |
11354 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11355 | bool result; | |
11356 | void *argp1 = 0 ; | |
11357 | int res1 = 0 ; | |
11358 | PyObject *swig_obj[1] ; | |
11359 | ||
11360 | if (!args) SWIG_fail; | |
11361 | swig_obj[0] = args; | |
11362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11363 | if (!SWIG_IsOK(res1)) { | |
11364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11365 | } | |
11366 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11367 | { | |
11368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11369 | result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo(); | |
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | { | |
11374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11375 | } | |
11376 | return resultobj; | |
11377 | fail: | |
11378 | return NULL; | |
11379 | } | |
11380 | ||
11381 | ||
11382 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11383 | PyObject *resultobj = 0; | |
11384 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11385 | wxRichTextRange *arg2 = 0 ; | |
11386 | wxRichTextAttr *arg3 = 0 ; | |
11387 | bool result; | |
11388 | void *argp1 = 0 ; | |
11389 | int res1 = 0 ; | |
11390 | wxRichTextRange temp2 ; | |
11391 | void *argp3 = 0 ; | |
11392 | int res3 = 0 ; | |
11393 | PyObject * obj0 = 0 ; | |
11394 | PyObject * obj1 = 0 ; | |
11395 | PyObject * obj2 = 0 ; | |
11396 | char * kwnames[] = { | |
11397 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11398 | }; | |
11399 | ||
11400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11402 | if (!SWIG_IsOK(res1)) { | |
11403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11404 | } | |
11405 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11406 | { | |
11407 | arg2 = &temp2; | |
11408 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11409 | } | |
11410 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11411 | if (!SWIG_IsOK(res3)) { | |
11412 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11413 | } | |
11414 | if (!argp3) { | |
11415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11416 | } | |
11417 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11418 | { | |
11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11420 | result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11421 | wxPyEndAllowThreads(__tstate); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | } | |
11424 | { | |
11425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11426 | } | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11434 | PyObject *resultobj = 0; | |
11435 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11436 | wxRichTextRange *arg2 = 0 ; | |
11437 | wxRichTextAttr *arg3 = 0 ; | |
11438 | bool result; | |
11439 | void *argp1 = 0 ; | |
11440 | int res1 = 0 ; | |
11441 | wxRichTextRange temp2 ; | |
11442 | void *argp3 = 0 ; | |
11443 | int res3 = 0 ; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | PyObject * obj1 = 0 ; | |
11446 | PyObject * obj2 = 0 ; | |
11447 | char * kwnames[] = { | |
11448 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11449 | }; | |
11450 | ||
11451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11453 | if (!SWIG_IsOK(res1)) { | |
11454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11455 | } | |
11456 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11457 | { | |
11458 | arg2 = &temp2; | |
11459 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11460 | } | |
11461 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11462 | if (!SWIG_IsOK(res3)) { | |
11463 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11464 | } | |
11465 | if (!argp3) { | |
11466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11467 | } | |
11468 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11469 | { | |
11470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11471 | result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | { | |
11476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11477 | } | |
11478 | return resultobj; | |
11479 | fail: | |
11480 | return NULL; | |
11481 | } | |
11482 | ||
11483 | ||
11484 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11485 | PyObject *resultobj = 0; | |
11486 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11487 | bool result; | |
11488 | void *argp1 = 0 ; | |
11489 | int res1 = 0 ; | |
11490 | PyObject *swig_obj[1] ; | |
11491 | ||
11492 | if (!args) SWIG_fail; | |
11493 | swig_obj[0] = args; | |
11494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11495 | if (!SWIG_IsOK(res1)) { | |
11496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11497 | } | |
11498 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | result = (bool)(arg1)->IsSelectionBold(); | |
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | { | |
11506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11507 | } | |
11508 | return resultobj; | |
11509 | fail: | |
11510 | return NULL; | |
11511 | } | |
11512 | ||
11513 | ||
11514 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11515 | PyObject *resultobj = 0; | |
11516 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11517 | bool result; | |
11518 | void *argp1 = 0 ; | |
11519 | int res1 = 0 ; | |
11520 | PyObject *swig_obj[1] ; | |
11521 | ||
11522 | if (!args) SWIG_fail; | |
11523 | swig_obj[0] = args; | |
11524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11525 | if (!SWIG_IsOK(res1)) { | |
11526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11527 | } | |
11528 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11529 | { | |
11530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11531 | result = (bool)(arg1)->IsSelectionItalics(); | |
11532 | wxPyEndAllowThreads(__tstate); | |
11533 | if (PyErr_Occurred()) SWIG_fail; | |
11534 | } | |
11535 | { | |
11536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11537 | } | |
11538 | return resultobj; | |
11539 | fail: | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
11544 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11545 | PyObject *resultobj = 0; | |
11546 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11547 | bool result; | |
11548 | void *argp1 = 0 ; | |
11549 | int res1 = 0 ; | |
11550 | PyObject *swig_obj[1] ; | |
11551 | ||
11552 | if (!args) SWIG_fail; | |
11553 | swig_obj[0] = args; | |
11554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11555 | if (!SWIG_IsOK(res1)) { | |
11556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11557 | } | |
11558 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (bool)(arg1)->IsSelectionUnderlined(); | |
11562 | wxPyEndAllowThreads(__tstate); | |
11563 | if (PyErr_Occurred()) SWIG_fail; | |
11564 | } | |
11565 | { | |
11566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11567 | } | |
11568 | return resultobj; | |
11569 | fail: | |
11570 | return NULL; | |
11571 | } | |
11572 | ||
11573 | ||
11574 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11575 | PyObject *resultobj = 0; | |
11576 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11577 | wxTextAttrAlignment arg2 ; | |
11578 | bool result; | |
11579 | void *argp1 = 0 ; | |
11580 | int res1 = 0 ; | |
11581 | int val2 ; | |
11582 | int ecode2 = 0 ; | |
11583 | PyObject * obj0 = 0 ; | |
11584 | PyObject * obj1 = 0 ; | |
11585 | char * kwnames[] = { | |
11586 | (char *) "self",(char *) "alignment", NULL | |
11587 | }; | |
11588 | ||
11589 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail; | |
11590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11591 | if (!SWIG_IsOK(res1)) { | |
11592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11593 | } | |
11594 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11595 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11596 | if (!SWIG_IsOK(ecode2)) { | |
11597 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11598 | } | |
11599 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11600 | { | |
11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11602 | result = (bool)(arg1)->IsSelectionAligned(arg2); | |
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11608 | } | |
11609 | return resultobj; | |
11610 | fail: | |
11611 | return NULL; | |
11612 | } | |
11613 | ||
11614 | ||
11615 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11616 | PyObject *resultobj = 0; | |
11617 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11618 | bool result; | |
11619 | void *argp1 = 0 ; | |
11620 | int res1 = 0 ; | |
11621 | PyObject *swig_obj[1] ; | |
11622 | ||
11623 | if (!args) SWIG_fail; | |
11624 | swig_obj[0] = args; | |
11625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11626 | if (!SWIG_IsOK(res1)) { | |
11627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11628 | } | |
11629 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11630 | { | |
11631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11632 | result = (bool)(arg1)->ApplyBoldToSelection(); | |
11633 | wxPyEndAllowThreads(__tstate); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | } | |
11636 | { | |
11637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11638 | } | |
11639 | return resultobj; | |
11640 | fail: | |
11641 | return NULL; | |
11642 | } | |
11643 | ||
11644 | ||
11645 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11646 | PyObject *resultobj = 0; | |
11647 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11648 | bool result; | |
11649 | void *argp1 = 0 ; | |
11650 | int res1 = 0 ; | |
11651 | PyObject *swig_obj[1] ; | |
11652 | ||
11653 | if (!args) SWIG_fail; | |
11654 | swig_obj[0] = args; | |
11655 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11656 | if (!SWIG_IsOK(res1)) { | |
11657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11658 | } | |
11659 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11660 | { | |
11661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11662 | result = (bool)(arg1)->ApplyItalicToSelection(); | |
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
11666 | { | |
11667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11668 | } | |
11669 | return resultobj; | |
11670 | fail: | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
11675 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11676 | PyObject *resultobj = 0; | |
11677 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11678 | bool result; | |
11679 | void *argp1 = 0 ; | |
11680 | int res1 = 0 ; | |
11681 | PyObject *swig_obj[1] ; | |
11682 | ||
11683 | if (!args) SWIG_fail; | |
11684 | swig_obj[0] = args; | |
11685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11686 | if (!SWIG_IsOK(res1)) { | |
11687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11688 | } | |
11689 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11690 | { | |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11692 | result = (bool)(arg1)->ApplyUnderlineToSelection(); | |
11693 | wxPyEndAllowThreads(__tstate); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | } | |
11696 | { | |
11697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11698 | } | |
11699 | return resultobj; | |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
11705 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11706 | PyObject *resultobj = 0; | |
11707 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11708 | wxTextAttrAlignment arg2 ; | |
11709 | bool result; | |
11710 | void *argp1 = 0 ; | |
11711 | int res1 = 0 ; | |
11712 | int val2 ; | |
11713 | int ecode2 = 0 ; | |
11714 | PyObject * obj0 = 0 ; | |
11715 | PyObject * obj1 = 0 ; | |
11716 | char * kwnames[] = { | |
11717 | (char *) "self",(char *) "alignment", NULL | |
11718 | }; | |
11719 | ||
11720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
11721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11722 | if (!SWIG_IsOK(res1)) { | |
11723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11724 | } | |
11725 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11726 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11727 | if (!SWIG_IsOK(ecode2)) { | |
11728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11729 | } | |
11730 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11731 | { | |
11732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11733 | result = (bool)(arg1)->ApplyAlignmentToSelection(arg2); | |
11734 | wxPyEndAllowThreads(__tstate); | |
11735 | if (PyErr_Occurred()) SWIG_fail; | |
11736 | } | |
11737 | { | |
11738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11739 | } | |
11740 | return resultobj; | |
11741 | fail: | |
11742 | return NULL; | |
11743 | } | |
11744 | ||
11745 | ||
11746 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11747 | PyObject *resultobj = 0; | |
11748 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11749 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ; | |
11750 | void *argp1 = 0 ; | |
11751 | int res1 = 0 ; | |
11752 | void *argp2 = 0 ; | |
11753 | int res2 = 0 ; | |
11754 | PyObject * obj0 = 0 ; | |
11755 | PyObject * obj1 = 0 ; | |
11756 | char * kwnames[] = { | |
11757 | (char *) "self",(char *) "styleSheet", NULL | |
11758 | }; | |
11759 | ||
11760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11762 | if (!SWIG_IsOK(res1)) { | |
11763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11764 | } | |
11765 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11766 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11767 | if (!SWIG_IsOK(res2)) { | |
11768 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11769 | } | |
11770 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11771 | { | |
11772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11773 | (arg1)->SetStyleSheet(arg2); | |
11774 | wxPyEndAllowThreads(__tstate); | |
11775 | if (PyErr_Occurred()) SWIG_fail; | |
11776 | } | |
11777 | resultobj = SWIG_Py_Void(); | |
11778 | return resultobj; | |
11779 | fail: | |
11780 | return NULL; | |
11781 | } | |
11782 | ||
11783 | ||
11784 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11785 | PyObject *resultobj = 0; | |
11786 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11787 | wxRichTextStyleSheet *result = 0 ; | |
11788 | void *argp1 = 0 ; | |
11789 | int res1 = 0 ; | |
11790 | PyObject *swig_obj[1] ; | |
11791 | ||
11792 | if (!args) SWIG_fail; | |
11793 | swig_obj[0] = args; | |
11794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11795 | if (!SWIG_IsOK(res1)) { | |
11796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11797 | } | |
11798 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11799 | { | |
11800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11801 | result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet(); | |
11802 | wxPyEndAllowThreads(__tstate); | |
11803 | if (PyErr_Occurred()) SWIG_fail; | |
11804 | } | |
11805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11806 | return resultobj; | |
11807 | fail: | |
11808 | return NULL; | |
11809 | } | |
11810 | ||
11811 | ||
11812 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11813 | PyObject *resultobj = 0; | |
11814 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11815 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) NULL ; | |
11816 | bool result; | |
11817 | void *argp1 = 0 ; | |
11818 | int res1 = 0 ; | |
11819 | void *argp2 = 0 ; | |
11820 | int res2 = 0 ; | |
11821 | PyObject * obj0 = 0 ; | |
11822 | PyObject * obj1 = 0 ; | |
11823 | char * kwnames[] = { | |
11824 | (char *) "self",(char *) "styleSheet", NULL | |
11825 | }; | |
11826 | ||
11827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_ApplyStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11829 | if (!SWIG_IsOK(res1)) { | |
11830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11831 | } | |
11832 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11833 | if (obj1) { | |
11834 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11835 | if (!SWIG_IsOK(res2)) { | |
11836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11837 | } | |
11838 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11839 | } | |
11840 | { | |
11841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11842 | result = (bool)(arg1)->ApplyStyleSheet(arg2); | |
11843 | wxPyEndAllowThreads(__tstate); | |
11844 | if (PyErr_Occurred()) SWIG_fail; | |
11845 | } | |
11846 | { | |
11847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11848 | } | |
11849 | return resultobj; | |
11850 | fail: | |
11851 | return NULL; | |
11852 | } | |
11853 | ||
11854 | ||
11855 | SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11856 | PyObject *obj; | |
11857 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11858 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj)); | |
11859 | return SWIG_Py_Void(); | |
11860 | } | |
11861 | ||
11862 | SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11863 | return SWIG_Python_InitShadowInstance(args); | |
11864 | } | |
11865 | ||
11866 | SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11867 | PyObject *resultobj = 0; | |
11868 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11869 | int arg2 = (int) 0 ; | |
11870 | wxRichTextEvent *result = 0 ; | |
11871 | int val1 ; | |
11872 | int ecode1 = 0 ; | |
11873 | int val2 ; | |
11874 | int ecode2 = 0 ; | |
11875 | PyObject * obj0 = 0 ; | |
11876 | PyObject * obj1 = 0 ; | |
11877 | char * kwnames[] = { | |
11878 | (char *) "commandType",(char *) "winid", NULL | |
11879 | }; | |
11880 | ||
11881 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11882 | if (obj0) { | |
11883 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11884 | if (!SWIG_IsOK(ecode1)) { | |
11885 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
11886 | } | |
11887 | arg1 = static_cast< wxEventType >(val1); | |
11888 | } | |
11889 | if (obj1) { | |
11890 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11891 | if (!SWIG_IsOK(ecode2)) { | |
11892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'"); | |
11893 | } | |
11894 | arg2 = static_cast< int >(val2); | |
11895 | } | |
11896 | { | |
11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11898 | result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2); | |
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 ); | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
11909 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11910 | PyObject *resultobj = 0; | |
11911 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11912 | int result; | |
11913 | void *argp1 = 0 ; | |
11914 | int res1 = 0 ; | |
11915 | PyObject *swig_obj[1] ; | |
11916 | ||
11917 | if (!args) SWIG_fail; | |
11918 | swig_obj[0] = args; | |
11919 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11920 | if (!SWIG_IsOK(res1)) { | |
11921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11922 | } | |
11923 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | result = (int)((wxRichTextEvent const *)arg1)->GetIndex(); | |
11927 | wxPyEndAllowThreads(__tstate); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
11930 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11931 | return resultobj; | |
11932 | fail: | |
11933 | return NULL; | |
11934 | } | |
11935 | ||
11936 | ||
11937 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11938 | PyObject *resultobj = 0; | |
11939 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11940 | int arg2 ; | |
11941 | void *argp1 = 0 ; | |
11942 | int res1 = 0 ; | |
11943 | int val2 ; | |
11944 | int ecode2 = 0 ; | |
11945 | PyObject * obj0 = 0 ; | |
11946 | PyObject * obj1 = 0 ; | |
11947 | char * kwnames[] = { | |
11948 | (char *) "self",(char *) "n", NULL | |
11949 | }; | |
11950 | ||
11951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
11952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11953 | if (!SWIG_IsOK(res1)) { | |
11954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11955 | } | |
11956 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11957 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11958 | if (!SWIG_IsOK(ecode2)) { | |
11959 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
11960 | } | |
11961 | arg2 = static_cast< int >(val2); | |
11962 | { | |
11963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11964 | (arg1)->SetIndex(arg2); | |
11965 | wxPyEndAllowThreads(__tstate); | |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
11967 | } | |
11968 | resultobj = SWIG_Py_Void(); | |
11969 | return resultobj; | |
11970 | fail: | |
11971 | return NULL; | |
11972 | } | |
11973 | ||
11974 | ||
11975 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11976 | PyObject *resultobj = 0; | |
11977 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11978 | int result; | |
11979 | void *argp1 = 0 ; | |
11980 | int res1 = 0 ; | |
11981 | PyObject *swig_obj[1] ; | |
11982 | ||
11983 | if (!args) SWIG_fail; | |
11984 | swig_obj[0] = args; | |
11985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11986 | if (!SWIG_IsOK(res1)) { | |
11987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11988 | } | |
11989 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11990 | { | |
11991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11992 | result = (int)((wxRichTextEvent const *)arg1)->GetFlags(); | |
11993 | wxPyEndAllowThreads(__tstate); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11997 | return resultobj; | |
11998 | fail: | |
11999 | return NULL; | |
12000 | } | |
12001 | ||
12002 | ||
12003 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12004 | PyObject *resultobj = 0; | |
12005 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
12006 | int arg2 ; | |
12007 | void *argp1 = 0 ; | |
12008 | int res1 = 0 ; | |
12009 | int val2 ; | |
12010 | int ecode2 = 0 ; | |
12011 | PyObject * obj0 = 0 ; | |
12012 | PyObject * obj1 = 0 ; | |
12013 | char * kwnames[] = { | |
12014 | (char *) "self",(char *) "flags", NULL | |
12015 | }; | |
12016 | ||
12017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
12019 | if (!SWIG_IsOK(res1)) { | |
12020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
12021 | } | |
12022 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
12023 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12024 | if (!SWIG_IsOK(ecode2)) { | |
12025 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12026 | } | |
12027 | arg2 = static_cast< int >(val2); | |
12028 | { | |
12029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12030 | (arg1)->SetFlags(arg2); | |
12031 | wxPyEndAllowThreads(__tstate); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | } | |
12034 | resultobj = SWIG_Py_Void(); | |
12035 | return resultobj; | |
12036 | fail: | |
12037 | return NULL; | |
12038 | } | |
12039 | ||
12040 | ||
12041 | SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12042 | PyObject *obj; | |
12043 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12044 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj)); | |
12045 | return SWIG_Py_Void(); | |
12046 | } | |
12047 | ||
12048 | SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12049 | return SWIG_Python_InitShadowInstance(args); | |
12050 | } | |
12051 | ||
12052 | static PyMethodDef SwigMethods[] = { | |
12053 | { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12054 | { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL}, | |
12055 | { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12056 | { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12057 | { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12058 | { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12059 | { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12060 | { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL}, | |
12061 | { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12062 | { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL}, | |
12063 | { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12064 | { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12065 | { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12066 | { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12067 | { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL}, | |
12068 | { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL}, | |
12069 | { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL}, | |
12070 | { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL}, | |
12071 | { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL}, | |
12072 | { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12073 | { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL}, | |
12074 | { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL}, | |
12075 | { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12076 | { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12077 | { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12078 | { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12079 | { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12080 | { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12081 | { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12082 | { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12083 | { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12084 | { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12085 | { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12086 | { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12087 | { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12088 | { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12089 | { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12090 | { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12091 | { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12092 | { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12093 | { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12094 | { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12095 | { (char *)"RichTextAttr_SetBulletText", (PyCFunction) _wrap_RichTextAttr_SetBulletText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12096 | { (char *)"RichTextAttr_SetBulletFont", (PyCFunction) _wrap_RichTextAttr_SetBulletFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12097 | { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL}, | |
12098 | { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL}, | |
12099 | { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL}, | |
12100 | { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL}, | |
12101 | { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL}, | |
12102 | { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL}, | |
12103 | { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL}, | |
12104 | { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL}, | |
12105 | { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL}, | |
12106 | { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL}, | |
12107 | { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL}, | |
12108 | { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL}, | |
12109 | { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL}, | |
12110 | { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL}, | |
12111 | { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL}, | |
12112 | { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL}, | |
12113 | { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL}, | |
12114 | { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL}, | |
12115 | { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL}, | |
12116 | { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL}, | |
12117 | { (char *)"RichTextAttr_GetBulletText", (PyCFunction)_wrap_RichTextAttr_GetBulletText, METH_O, NULL}, | |
12118 | { (char *)"RichTextAttr_GetBulletFont", (PyCFunction)_wrap_RichTextAttr_GetBulletFont, METH_O, NULL}, | |
12119 | { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL}, | |
12120 | { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL}, | |
12121 | { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL}, | |
12122 | { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL}, | |
12123 | { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL}, | |
12124 | { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL}, | |
12125 | { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL}, | |
12126 | { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL}, | |
12127 | { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL}, | |
12128 | { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL}, | |
12129 | { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL}, | |
12130 | { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL}, | |
12131 | { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL}, | |
12132 | { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL}, | |
12133 | { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL}, | |
12134 | { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL}, | |
12135 | { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL}, | |
12136 | { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL}, | |
12137 | { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL}, | |
12138 | { (char *)"RichTextAttr_HasBulletText", (PyCFunction)_wrap_RichTextAttr_HasBulletText, METH_O, NULL}, | |
12139 | { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12140 | { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL}, | |
12141 | { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL}, | |
12142 | { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL}, | |
12143 | { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL}, | |
12144 | { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL}, | |
12145 | { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12146 | { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL}, | |
12147 | { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12148 | { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL}, | |
12149 | { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12150 | { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12151 | { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12152 | { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12153 | { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL}, | |
12154 | { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL}, | |
12155 | { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL}, | |
12156 | { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL}, | |
12157 | { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL}, | |
12158 | { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL}, | |
12159 | { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL}, | |
12160 | { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL}, | |
12161 | { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12162 | { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12163 | { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL}, | |
12164 | { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL}, | |
12165 | { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12166 | { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12167 | { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12168 | { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12169 | { (char *)"RichTextCtrl_SetHandlerFlags", (PyCFunction) _wrap_RichTextCtrl_SetHandlerFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12170 | { (char *)"RichTextCtrl_GetHandlerFlags", (PyCFunction)_wrap_RichTextCtrl_GetHandlerFlags, METH_O, NULL}, | |
12171 | { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL}, | |
12172 | { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL}, | |
12173 | { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12174 | { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12175 | { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12176 | { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12177 | { (char *)"RichTextCtrl_SetStyleEx", (PyCFunction) _wrap_RichTextCtrl_SetStyleEx, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12178 | { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12179 | { (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12180 | { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12181 | { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL}, | |
12182 | { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12183 | { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12184 | { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12185 | { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12186 | { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12187 | { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL}, | |
12188 | { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL}, | |
12189 | { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL}, | |
12190 | { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL}, | |
12191 | { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL}, | |
12192 | { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL}, | |
12193 | { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL}, | |
12194 | { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL}, | |
12195 | { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL}, | |
12196 | { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL}, | |
12197 | { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL}, | |
12198 | { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL}, | |
12199 | { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12200 | { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
12201 | { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL}, | |
12202 | { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL}, | |
12203 | { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12204 | { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL}, | |
12205 | { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12206 | { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL}, | |
12207 | { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12208 | { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12209 | { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12210 | { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12211 | { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL}, | |
12212 | { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12213 | { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL}, | |
12214 | { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL}, | |
12215 | { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL}, | |
12216 | { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL}, | |
12217 | { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL}, | |
12218 | { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL}, | |
12219 | { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL}, | |
12220 | { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL}, | |
12221 | { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12222 | { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL}, | |
12223 | { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12224 | { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL}, | |
12225 | { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12226 | { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL}, | |
12227 | { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12228 | { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL}, | |
12229 | { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12230 | { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL}, | |
12231 | { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12232 | { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL}, | |
12233 | { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12234 | { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL}, | |
12235 | { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12236 | { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL}, | |
12237 | { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12238 | { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL}, | |
12239 | { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12240 | { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL}, | |
12241 | { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12242 | { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL}, | |
12243 | { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12244 | { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL}, | |
12245 | { (char *)"RichTextCtrl_BeginListStyle", (PyCFunction) _wrap_RichTextCtrl_BeginListStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12246 | { (char *)"RichTextCtrl_EndListStyle", (PyCFunction)_wrap_RichTextCtrl_EndListStyle, METH_O, NULL}, | |
12247 | { (char *)"RichTextCtrl_BeginURL", (PyCFunction) _wrap_RichTextCtrl_BeginURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12248 | { (char *)"RichTextCtrl_EndURL", (PyCFunction)_wrap_RichTextCtrl_EndURL, METH_O, NULL}, | |
12249 | { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL}, | |
12250 | { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL}, | |
12251 | { (char *)"RichTextCtrl_SelectWord", (PyCFunction) _wrap_RichTextCtrl_SelectWord, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12252 | { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL}, | |
12253 | { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12254 | { (char *)"RichTextCtrl_GetInternalSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetInternalSelectionRange, METH_O, NULL}, | |
12255 | { (char *)"RichTextCtrl_SetInternalSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetInternalSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12256 | { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12257 | { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12258 | { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12259 | { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12260 | { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12261 | { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12262 | { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12263 | { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12264 | { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12265 | { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12266 | { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12267 | { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12268 | { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12269 | { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12270 | { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12271 | { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12272 | { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12273 | { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12274 | { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL}, | |
12275 | { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12276 | { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL}, | |
12277 | { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL}, | |
12278 | { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL}, | |
12279 | { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL}, | |
12280 | { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL}, | |
12281 | { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12282 | { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12283 | { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL}, | |
12284 | { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL}, | |
12285 | { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL}, | |
12286 | { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12287 | { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL}, | |
12288 | { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL}, | |
12289 | { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL}, | |
12290 | { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12291 | { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12292 | { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL}, | |
12293 | { (char *)"RichTextCtrl_ApplyStyleSheet", (PyCFunction) _wrap_RichTextCtrl_ApplyStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12294 | { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL}, | |
12295 | { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL}, | |
12296 | { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12297 | { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL}, | |
12298 | { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12299 | { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL}, | |
12300 | { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12301 | { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL}, | |
12302 | { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL}, | |
12303 | { NULL, NULL, 0, NULL } | |
12304 | }; | |
12305 | ||
12306 | ||
12307 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
12308 | ||
12309 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
12310 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
12311 | } | |
12312 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
12313 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12314 | } | |
12315 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
12316 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12317 | } | |
12318 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
12319 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12320 | } | |
12321 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
12322 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12323 | } | |
12324 | static void *_p_wxSimpleHtmlListBoxTo_p_wxPanel(void *x) { | |
12325 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
12326 | } | |
12327 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
12328 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
12329 | } | |
12330 | static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) { | |
12331 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12332 | } | |
12333 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
12334 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12335 | } | |
12336 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
12337 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
12338 | } | |
12339 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
12340 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12341 | } | |
12342 | static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) { | |
12343 | return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12344 | } | |
12345 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
12346 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12347 | } | |
12348 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
12349 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12350 | } | |
12351 | static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) { | |
12352 | return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12353 | } | |
12354 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
12355 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12356 | } | |
12357 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
12358 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12359 | } | |
12360 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
12361 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12362 | } | |
12363 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
12364 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
12365 | } | |
12366 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
12367 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
12368 | } | |
12369 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
12370 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12371 | } | |
12372 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
12373 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12374 | } | |
12375 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
12376 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12377 | } | |
12378 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { | |
12379 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12380 | } | |
12381 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { | |
12382 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12383 | } | |
12384 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
12385 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12386 | } | |
12387 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
12388 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12389 | } | |
12390 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
12391 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12392 | } | |
12393 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
12394 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12395 | } | |
12396 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
12397 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
12398 | } | |
12399 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
12400 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
12401 | } | |
12402 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
12403 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12404 | } | |
12405 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
12406 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
12407 | } | |
12408 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
12409 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12410 | } | |
12411 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
12412 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
12413 | } | |
12414 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
12415 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12416 | } | |
12417 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
12418 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
12419 | } | |
12420 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
12421 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
12422 | } | |
12423 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
12424 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
12425 | } | |
12426 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
12427 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
12428 | } | |
12429 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
12430 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
12431 | } | |
12432 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
12433 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
12434 | } | |
12435 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
12436 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12437 | } | |
12438 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
12439 | return (void *)((wxWindow *) ((wxControl *) x)); | |
12440 | } | |
12441 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
12442 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12443 | } | |
12444 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
12445 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12446 | } | |
12447 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
12448 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12449 | } | |
12450 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
12451 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
12452 | } | |
12453 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
12454 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
12455 | } | |
12456 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
12457 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12458 | } | |
12459 | static void *_p_wxSimpleHtmlListBoxTo_p_wxWindow(void *x) { | |
12460 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
12461 | } | |
12462 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
12463 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12464 | } | |
12465 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
12466 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12467 | } | |
12468 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
12469 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
12470 | } | |
12471 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
12472 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12473 | } | |
12474 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
12475 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
12476 | } | |
12477 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
12478 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12479 | } | |
12480 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
12481 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12482 | } | |
12483 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
12484 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12485 | } | |
12486 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
12487 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
12488 | } | |
12489 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
12490 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12491 | } | |
12492 | static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) { | |
12493 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12494 | } | |
12495 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
12496 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
12497 | } | |
12498 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
12499 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
12500 | } | |
12501 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
12502 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
12503 | } | |
12504 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
12505 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
12506 | } | |
12507 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
12508 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
12509 | } | |
12510 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
12511 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
12512 | } | |
12513 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
12514 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12515 | } | |
12516 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
12517 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
12518 | } | |
12519 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
12520 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
12521 | } | |
12522 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
12523 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12524 | } | |
12525 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
12526 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12527 | } | |
12528 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { | |
12529 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12530 | } | |
12531 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
12532 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
12533 | } | |
12534 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
12535 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
12536 | } | |
12537 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
12538 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
12539 | } | |
12540 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
12541 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12542 | } | |
12543 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
12544 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
12545 | } | |
12546 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
12547 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
12548 | } | |
12549 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
12550 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
12551 | } | |
12552 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
12553 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
12554 | } | |
12555 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
12556 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
12557 | } | |
12558 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
12559 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
12560 | } | |
12561 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
12562 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
12563 | } | |
12564 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
12565 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
12566 | } | |
12567 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
12568 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
12569 | } | |
12570 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { | |
12571 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12572 | } | |
12573 | static void *_p_wxRichTextEventTo_p_wxEvent(void *x) { | |
12574 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12575 | } | |
12576 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
12577 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12578 | } | |
12579 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
12580 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
12581 | } | |
12582 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
12583 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
12584 | } | |
12585 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
12586 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
12587 | } | |
12588 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
12589 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
12590 | } | |
12591 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
12592 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
12593 | } | |
12594 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
12595 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
12596 | } | |
12597 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
12598 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12599 | } | |
12600 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
12601 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
12602 | } | |
12603 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
12604 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
12605 | } | |
12606 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
12607 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
12608 | } | |
12609 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
12610 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
12611 | } | |
12612 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
12613 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12614 | } | |
12615 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
12616 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12617 | } | |
12618 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
12619 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
12620 | } | |
12621 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
12622 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
12623 | } | |
12624 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
12625 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
12626 | } | |
12627 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
12628 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
12629 | } | |
12630 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
12631 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
12632 | } | |
12633 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
12634 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
12635 | } | |
12636 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
12637 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12638 | } | |
12639 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
12640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12641 | } | |
12642 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
12643 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
12644 | } | |
12645 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
12646 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
12647 | } | |
12648 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
12649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
12650 | } | |
12651 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
12652 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
12653 | } | |
12654 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
12655 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
12656 | } | |
12657 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
12658 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
12659 | } | |
12660 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
12661 | return (void *)((wxObject *) ((wxSizer *) x)); | |
12662 | } | |
12663 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
12664 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
12665 | } | |
12666 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
12667 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12668 | } | |
12669 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
12670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
12671 | } | |
12672 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
12673 | return (void *)((wxObject *) ((wxEvent *) x)); | |
12674 | } | |
12675 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
12676 | return (void *)((wxObject *) ((wxFontData *) x)); | |
12677 | } | |
12678 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
12679 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
12680 | } | |
12681 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
12682 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
12683 | } | |
12684 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
12685 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
12686 | } | |
12687 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
12688 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
12689 | } | |
12690 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
12691 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
12692 | } | |
12693 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { | |
12694 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
12695 | } | |
12696 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
12697 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12698 | } | |
12699 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { | |
12700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12701 | } | |
12702 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
12703 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
12704 | } | |
12705 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
12706 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
12707 | } | |
12708 | static void *_p_wxRichTextEventTo_p_wxObject(void *x) { | |
12709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12710 | } | |
12711 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
12712 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
12713 | } | |
12714 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
12715 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
12716 | } | |
12717 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
12718 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
12719 | } | |
12720 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
12721 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
12722 | } | |
12723 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
12724 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12725 | } | |
12726 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
12727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
12728 | } | |
12729 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
12730 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
12731 | } | |
12732 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
12733 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12734 | } | |
12735 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
12736 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
12737 | } | |
12738 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
12739 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
12740 | } | |
12741 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
12742 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
12743 | } | |
12744 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
12745 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12746 | } | |
12747 | static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) { | |
12748 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12749 | } | |
12750 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
12751 | return (void *)((wxObject *) ((wxColourData *) x)); | |
12752 | } | |
12753 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
12754 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
12755 | } | |
12756 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
12757 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12758 | } | |
12759 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
12760 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
12761 | } | |
12762 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
12763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12764 | } | |
12765 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
12766 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12767 | } | |
12768 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
12769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12770 | } | |
12771 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
12772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12773 | } | |
12774 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
12775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12776 | } | |
12777 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { | |
12778 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12779 | } | |
12780 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { | |
12781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12782 | } | |
12783 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
12784 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12785 | } | |
12786 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
12787 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12788 | } | |
12789 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
12790 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12791 | } | |
12792 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
12793 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
12794 | } | |
12795 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
12796 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
12797 | } | |
12798 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
12799 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
12800 | } | |
12801 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
12802 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
12803 | } | |
12804 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
12805 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
12806 | } | |
12807 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
12808 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12809 | } | |
12810 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
12811 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
12812 | } | |
12813 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
12814 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
12815 | } | |
12816 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
12817 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
12818 | } | |
12819 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
12820 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
12821 | } | |
12822 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
12823 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
12824 | } | |
12825 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
12826 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
12827 | } | |
12828 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
12829 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
12830 | } | |
12831 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
12832 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
12833 | } | |
12834 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
12835 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
12836 | } | |
12837 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
12838 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
12839 | } | |
12840 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
12841 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
12842 | } | |
12843 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
12844 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
12845 | } | |
12846 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
12847 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
12848 | } | |
12849 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
12850 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
12851 | } | |
12852 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
12853 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
12854 | } | |
12855 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
12856 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
12857 | } | |
12858 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
12859 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
12860 | } | |
12861 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
12862 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
12863 | } | |
12864 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
12865 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
12866 | } | |
12867 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { | |
12868 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
12869 | } | |
12870 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
12871 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
12872 | } | |
12873 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { | |
12874 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12875 | } | |
12876 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
12877 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
12878 | } | |
12879 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
12880 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12881 | } | |
12882 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
12883 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12884 | } | |
12885 | static void *_p_wxSimpleHtmlListBoxTo_p_wxObject(void *x) { | |
12886 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
12887 | } | |
12888 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
12889 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
12890 | } | |
12891 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
12892 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
12893 | } | |
12894 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
12895 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12896 | } | |
12897 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
12898 | return (void *)((wxObject *) ((wxImage *) x)); | |
12899 | } | |
12900 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
12901 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
12902 | } | |
12903 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
12904 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
12905 | } | |
12906 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
12907 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
12908 | } | |
12909 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
12910 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
12911 | } | |
12912 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
12913 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
12914 | } | |
12915 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
12916 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12917 | } | |
12918 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
12919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12920 | } | |
12921 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
12922 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
12923 | } | |
12924 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
12925 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
12926 | } | |
12927 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
12928 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
12929 | } | |
12930 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
12931 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
12932 | } | |
12933 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
12934 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
12935 | } | |
12936 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
12937 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
12938 | } | |
12939 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
12940 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
12941 | } | |
12942 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
12943 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
12944 | } | |
12945 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
12946 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
12947 | } | |
12948 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
12949 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
12950 | } | |
12951 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
12952 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12953 | } | |
12954 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
12955 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
12956 | } | |
12957 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
12958 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12959 | } | |
12960 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
12961 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
12962 | } | |
12963 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
12964 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12965 | } | |
12966 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
12967 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
12968 | } | |
12969 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
12970 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12971 | } | |
12972 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
12973 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
12974 | } | |
12975 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
12976 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
12977 | } | |
12978 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
12979 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
12980 | } | |
12981 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
12982 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
12983 | } | |
12984 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
12985 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
12986 | } | |
12987 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
12988 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12989 | } | |
12990 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
12991 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12992 | } | |
12993 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
12994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12995 | } | |
12996 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
12997 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); | |
12998 | } | |
12999 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
13000 | return (void *)((wxObject *) ((wxPrintDialog *) x)); | |
13001 | } | |
13002 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
13003 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
13004 | } | |
13005 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
13006 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
13007 | } | |
13008 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
13009 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
13010 | } | |
13011 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
13012 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
13013 | } | |
13014 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
13015 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
13016 | } | |
13017 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
13018 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
13019 | } | |
13020 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
13021 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
13022 | } | |
13023 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
13024 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
13025 | } | |
13026 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
13027 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
13028 | } | |
13029 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
13030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
13031 | } | |
13032 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
13033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
13034 | } | |
13035 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
13036 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
13037 | } | |
13038 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
13039 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
13040 | } | |
13041 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
13042 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
13043 | } | |
13044 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
13045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
13046 | } | |
13047 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
13048 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
13049 | } | |
13050 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
13051 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
13052 | } | |
13053 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
13054 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
13055 | } | |
13056 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
13057 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
13058 | } | |
13059 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
13060 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
13061 | } | |
13062 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
13063 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
13064 | } | |
13065 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
13066 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
13067 | } | |
13068 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
13069 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
13070 | } | |
13071 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
13072 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
13073 | } | |
13074 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
13075 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
13076 | } | |
13077 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
13078 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
13079 | } | |
13080 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
13081 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
13082 | } | |
13083 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
13084 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
13085 | } | |
13086 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
13087 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
13088 | } | |
13089 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
13090 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
13091 | } | |
13092 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { | |
13093 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
13094 | } | |
13095 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { | |
13096 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
13097 | } | |
13098 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
13099 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
13100 | } | |
13101 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
13102 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
13103 | } | |
13104 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
13105 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
13106 | } | |
13107 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
13108 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
13109 | } | |
13110 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
13111 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
13112 | } | |
13113 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13114 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
13115 | } | |
13116 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
13117 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
13118 | } | |
13119 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
13120 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
13121 | } | |
13122 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
13123 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
13124 | } | |
13125 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
13126 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
13127 | } | |
13128 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
13129 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
13130 | } | |
13131 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
13132 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
13133 | } | |
13134 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
13135 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
13136 | } | |
13137 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
13138 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
13139 | } | |
13140 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13141 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
13142 | } | |
13143 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
13144 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
13145 | } | |
13146 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
13147 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
13148 | } | |
13149 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13150 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
13151 | } | |
13152 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
13153 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
13154 | } | |
13155 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
13156 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
13157 | } | |
13158 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
13159 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
13160 | } | |
13161 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
13162 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
13163 | } | |
13164 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
13165 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
13166 | } | |
13167 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
13168 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
13169 | } | |
13170 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
13171 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
13172 | } | |
13173 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
13174 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
13175 | } | |
13176 | static void *_p_wxSimpleHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
13177 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *)(wxPyHtmlListBox *) ((wxSimpleHtmlListBox *) x)); | |
13178 | } | |
13179 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
13180 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
13181 | } | |
13182 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
13183 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
13184 | } | |
13185 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
13186 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
13187 | } | |
13188 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
13189 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
13190 | } | |
13191 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { | |
13192 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
13193 | } | |
13194 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
13195 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
13196 | } | |
13197 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
13198 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
13199 | } | |
13200 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
13201 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
13202 | } | |
13203 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
13204 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
13205 | } | |
13206 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
13207 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
13208 | } | |
13209 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
13210 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
13211 | } | |
13212 | static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) { | |
13213 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
13214 | } | |
13215 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
13216 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
13217 | } | |
13218 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
13219 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
13220 | } | |
13221 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
13222 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
13223 | } | |
13224 | static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) { | |
13225 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
13226 | } | |
13227 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { | |
13228 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
13229 | } | |
13230 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
13231 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
13232 | } | |
13233 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
13234 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
13235 | } | |
13236 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
13237 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
13238 | } | |
13239 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
13240 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
13241 | } | |
13242 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
13243 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
13244 | } | |
13245 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
13246 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
13247 | } | |
13248 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
13249 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
13250 | } | |
13251 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
13252 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
13253 | } | |
13254 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
13255 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
13256 | } | |
13257 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
13258 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0}; | |
13259 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
13260 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
13261 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
13262 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
13263 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
13264 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
13265 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
13266 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; | |
13267 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
13268 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
13269 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0}; | |
13270 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
13271 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0}; | |
13272 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
13273 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
13274 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
13275 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
13276 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
13277 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
13278 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
13279 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0}; | |
13280 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
13281 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
13282 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
13283 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
13284 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
13285 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
13286 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
13287 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
13288 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
13289 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
13290 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; | |
13291 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0}; | |
13292 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
13293 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
13294 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
13295 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
13296 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
13297 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
13298 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
13299 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
13300 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
13301 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
13302 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
13303 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
13304 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
13305 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
13306 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
13307 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0}; | |
13308 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
13309 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
13310 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
13311 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
13312 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0}; | |
13313 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
13314 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0}; | |
13315 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0}; | |
13316 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0}; | |
13317 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
13318 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
13319 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
13320 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", 0, 0, 0, 0, 0}; | |
13321 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0}; | |
13322 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0}; | |
13323 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0}; | |
13324 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0}; | |
13325 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0}; | |
13326 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0}; | |
13327 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0}; | |
13328 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0}; | |
13329 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0}; | |
13330 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0}; | |
13331 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0}; | |
13332 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0}; | |
13333 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0}; | |
13334 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0}; | |
13335 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0}; | |
13336 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0}; | |
13337 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0}; | |
13338 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0}; | |
13339 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0}; | |
13340 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0}; | |
13341 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0}; | |
13342 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0}; | |
13343 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
13344 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0}; | |
13345 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
13346 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
13347 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0}; | |
13348 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0}; | |
13349 | static swig_type_info _swigt__p_wxSimpleHtmlListBox = {"_p_wxSimpleHtmlListBox", 0, 0, 0, 0, 0}; | |
13350 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0}; | |
13351 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0}; | |
13352 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0}; | |
13353 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0}; | |
13354 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0}; | |
13355 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0}; | |
13356 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0}; | |
13357 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0}; | |
13358 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0}; | |
13359 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0}; | |
13360 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
13361 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0}; | |
13362 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
13363 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
13364 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
13365 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
13366 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
13367 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; | |
13368 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; | |
13369 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
13370 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
13371 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
13372 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
13373 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
13374 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0}; | |
13375 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0}; | |
13376 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
13377 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
13378 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0}; | |
13379 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
13380 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0}; | |
13381 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
13382 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0}; | |
13383 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0}; | |
13384 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
13385 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
13386 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
13387 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
13388 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
13389 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
13390 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
13391 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
13392 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
13393 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
13394 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
13395 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
13396 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
13397 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
13398 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; | |
13399 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
13400 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; | |
13401 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0}; | |
13402 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0}; | |
13403 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0}; | |
13404 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0}; | |
13405 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0}; | |
13406 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
13407 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0}; | |
13408 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0}; | |
13409 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; | |
13410 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
13411 | static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0}; | |
13412 | static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0}; | |
13413 | static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0}; | |
13414 | static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0}; | |
13415 | static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0}; | |
13416 | static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0}; | |
13417 | static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0}; | |
13418 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
13419 | static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0}; | |
13420 | static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0}; | |
13421 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
13422 | ||
13423 | static swig_type_info *swig_type_initial[] = { | |
13424 | &_swigt__p_char, | |
13425 | &_swigt__p_form_ops_t, | |
13426 | &_swigt__p_int, | |
13427 | &_swigt__p_long, | |
13428 | &_swigt__p_unsigned_char, | |
13429 | &_swigt__p_unsigned_int, | |
13430 | &_swigt__p_unsigned_long, | |
13431 | &_swigt__p_wxANIHandler, | |
13432 | &_swigt__p_wxAcceleratorTable, | |
13433 | &_swigt__p_wxActivateEvent, | |
13434 | &_swigt__p_wxArrayInt, | |
13435 | &_swigt__p_wxBMPHandler, | |
13436 | &_swigt__p_wxBitmap, | |
13437 | &_swigt__p_wxBoxSizer, | |
13438 | &_swigt__p_wxCURHandler, | |
13439 | &_swigt__p_wxCalculateLayoutEvent, | |
13440 | &_swigt__p_wxChar, | |
13441 | &_swigt__p_wxChildFocusEvent, | |
13442 | &_swigt__p_wxClipboardTextEvent, | |
13443 | &_swigt__p_wxCloseEvent, | |
13444 | &_swigt__p_wxColour, | |
13445 | &_swigt__p_wxColourData, | |
13446 | &_swigt__p_wxColourDialog, | |
13447 | &_swigt__p_wxCommandEvent, | |
13448 | &_swigt__p_wxContextMenuEvent, | |
13449 | &_swigt__p_wxControl, | |
13450 | &_swigt__p_wxControlWithItems, | |
13451 | &_swigt__p_wxDateEvent, | |
13452 | &_swigt__p_wxDialog, | |
13453 | &_swigt__p_wxDirDialog, | |
13454 | &_swigt__p_wxDisplayChangedEvent, | |
13455 | &_swigt__p_wxDropFilesEvent, | |
13456 | &_swigt__p_wxDuplexMode, | |
13457 | &_swigt__p_wxEraseEvent, | |
13458 | &_swigt__p_wxEvent, | |
13459 | &_swigt__p_wxEvtHandler, | |
13460 | &_swigt__p_wxFSFile, | |
13461 | &_swigt__p_wxFileDialog, | |
13462 | &_swigt__p_wxFileSystem, | |
13463 | &_swigt__p_wxFindDialogEvent, | |
13464 | &_swigt__p_wxFindReplaceData, | |
13465 | &_swigt__p_wxFindReplaceDialog, | |
13466 | &_swigt__p_wxFlexGridSizer, | |
13467 | &_swigt__p_wxFocusEvent, | |
13468 | &_swigt__p_wxFont, | |
13469 | &_swigt__p_wxFontData, | |
13470 | &_swigt__p_wxFontDialog, | |
13471 | &_swigt__p_wxFrame, | |
13472 | &_swigt__p_wxGBSizerItem, | |
13473 | &_swigt__p_wxGIFHandler, | |
13474 | &_swigt__p_wxGridBagSizer, | |
13475 | &_swigt__p_wxGridSizer, | |
13476 | &_swigt__p_wxICOHandler, | |
13477 | &_swigt__p_wxIconizeEvent, | |
13478 | &_swigt__p_wxIdleEvent, | |
13479 | &_swigt__p_wxImage, | |
13480 | &_swigt__p_wxImageHandler, | |
13481 | &_swigt__p_wxIndividualLayoutConstraint, | |
13482 | &_swigt__p_wxInitDialogEvent, | |
13483 | &_swigt__p_wxJPEGHandler, | |
13484 | &_swigt__p_wxKeyEvent, | |
13485 | &_swigt__p_wxLayoutAlgorithm, | |
13486 | &_swigt__p_wxLayoutConstraints, | |
13487 | &_swigt__p_wxMDIChildFrame, | |
13488 | &_swigt__p_wxMDIClientWindow, | |
13489 | &_swigt__p_wxMDIParentFrame, | |
13490 | &_swigt__p_wxMaximizeEvent, | |
13491 | &_swigt__p_wxMenu, | |
13492 | &_swigt__p_wxMenuBar, | |
13493 | &_swigt__p_wxMenuEvent, | |
13494 | &_swigt__p_wxMenuItem, | |
13495 | &_swigt__p_wxMessageDialog, | |
13496 | &_swigt__p_wxMiniFrame, | |
13497 | &_swigt__p_wxMouseCaptureChangedEvent, | |
13498 | &_swigt__p_wxMouseCaptureLostEvent, | |
13499 | &_swigt__p_wxMouseEvent, | |
13500 | &_swigt__p_wxMoveEvent, | |
13501 | &_swigt__p_wxMultiChoiceDialog, | |
13502 | &_swigt__p_wxNavigationKeyEvent, | |
13503 | &_swigt__p_wxNcPaintEvent, | |
13504 | &_swigt__p_wxNotifyEvent, | |
13505 | &_swigt__p_wxNumberEntryDialog, | |
13506 | &_swigt__p_wxObject, | |
13507 | &_swigt__p_wxPCXHandler, | |
13508 | &_swigt__p_wxPNGHandler, | |
13509 | &_swigt__p_wxPNMHandler, | |
13510 | &_swigt__p_wxPageSetupDialog, | |
13511 | &_swigt__p_wxPageSetupDialogData, | |
13512 | &_swigt__p_wxPaintEvent, | |
13513 | &_swigt__p_wxPaletteChangedEvent, | |
13514 | &_swigt__p_wxPanel, | |
13515 | &_swigt__p_wxPaperSize, | |
13516 | &_swigt__p_wxPasswordEntryDialog, | |
13517 | &_swigt__p_wxPopupWindow, | |
13518 | &_swigt__p_wxPreviewCanvas, | |
13519 | &_swigt__p_wxPreviewControlBar, | |
13520 | &_swigt__p_wxPreviewFrame, | |
13521 | &_swigt__p_wxPrintData, | |
13522 | &_swigt__p_wxPrintDialog, | |
13523 | &_swigt__p_wxPrintDialogData, | |
13524 | &_swigt__p_wxPrintPreview, | |
13525 | &_swigt__p_wxPrinter, | |
13526 | &_swigt__p_wxProgressDialog, | |
13527 | &_swigt__p_wxPyApp, | |
13528 | &_swigt__p_wxPyCommandEvent, | |
13529 | &_swigt__p_wxPyEvent, | |
13530 | &_swigt__p_wxPyHtmlListBox, | |
13531 | &_swigt__p_wxPyImageHandler, | |
13532 | &_swigt__p_wxPyPanel, | |
13533 | &_swigt__p_wxPyPopupTransientWindow, | |
13534 | &_swigt__p_wxPyPreviewControlBar, | |
13535 | &_swigt__p_wxPyPreviewFrame, | |
13536 | &_swigt__p_wxPyPrintPreview, | |
13537 | &_swigt__p_wxPyPrintout, | |
13538 | &_swigt__p_wxPyScrolledWindow, | |
13539 | &_swigt__p_wxPySizer, | |
13540 | &_swigt__p_wxPyTaskBarIcon, | |
13541 | &_swigt__p_wxPyVListBox, | |
13542 | &_swigt__p_wxPyVScrolledWindow, | |
13543 | &_swigt__p_wxPyValidator, | |
13544 | &_swigt__p_wxPyWindow, | |
13545 | &_swigt__p_wxQueryLayoutInfoEvent, | |
13546 | &_swigt__p_wxQueryNewPaletteEvent, | |
13547 | &_swigt__p_wxRichTextAttr, | |
13548 | &_swigt__p_wxRichTextBuffer, | |
13549 | &_swigt__p_wxRichTextCtrl, | |
13550 | &_swigt__p_wxRichTextEvent, | |
13551 | &_swigt__p_wxRichTextImageBlock, | |
13552 | &_swigt__p_wxRichTextRange, | |
13553 | &_swigt__p_wxRichTextStyleSheet, | |
13554 | &_swigt__p_wxSashEvent, | |
13555 | &_swigt__p_wxSashLayoutWindow, | |
13556 | &_swigt__p_wxSashWindow, | |
13557 | &_swigt__p_wxScrollEvent, | |
13558 | &_swigt__p_wxScrollWinEvent, | |
13559 | &_swigt__p_wxScrolledWindow, | |
13560 | &_swigt__p_wxSetCursorEvent, | |
13561 | &_swigt__p_wxShowEvent, | |
13562 | &_swigt__p_wxSimpleHtmlListBox, | |
13563 | &_swigt__p_wxSingleChoiceDialog, | |
13564 | &_swigt__p_wxSizeEvent, | |
13565 | &_swigt__p_wxSizer, | |
13566 | &_swigt__p_wxSizerItem, | |
13567 | &_swigt__p_wxSplashScreen, | |
13568 | &_swigt__p_wxSplashScreenWindow, | |
13569 | &_swigt__p_wxSplitterEvent, | |
13570 | &_swigt__p_wxSplitterWindow, | |
13571 | &_swigt__p_wxStaticBoxSizer, | |
13572 | &_swigt__p_wxStatusBar, | |
13573 | &_swigt__p_wxStdDialogButtonSizer, | |
13574 | &_swigt__p_wxSysColourChangedEvent, | |
13575 | &_swigt__p_wxTGAHandler, | |
13576 | &_swigt__p_wxTIFFHandler, | |
13577 | &_swigt__p_wxTaskBarIconEvent, | |
13578 | &_swigt__p_wxTextCoord, | |
13579 | &_swigt__p_wxTextCtrlHitTestResult, | |
13580 | &_swigt__p_wxTextEntryDialog, | |
13581 | &_swigt__p_wxTipWindow, | |
13582 | &_swigt__p_wxTopLevelWindow, | |
13583 | &_swigt__p_wxUpdateUIEvent, | |
13584 | &_swigt__p_wxValidator, | |
13585 | &_swigt__p_wxWindow, | |
13586 | &_swigt__p_wxWindowCreateEvent, | |
13587 | &_swigt__p_wxWindowDestroyEvent, | |
13588 | &_swigt__p_wxXPMHandler, | |
13589 | }; | |
13590 | ||
13591 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13592 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
13593 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13594 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13595 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13596 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13597 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13598 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
13599 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
13600 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
13601 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
13602 | static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13603 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13604 | static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13605 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13606 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13607 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13608 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13609 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13610 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13611 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13612 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13613 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13614 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; | |
13615 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
13616 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13617 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13618 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13619 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13620 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13621 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13622 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13623 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13624 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13625 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13626 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13627 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13628 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13629 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13630 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13631 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13632 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13633 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13634 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13635 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13636 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13637 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13638 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13639 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13640 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13641 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13642 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13643 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13644 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13645 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13646 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; | |
13647 | static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; | |
13648 | static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13649 | static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
13650 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13651 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13652 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13653 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = {{&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13654 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13655 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13656 | static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13657 | static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13658 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13659 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13660 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13661 | static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13662 | static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13663 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13664 | static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13665 | static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13666 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13667 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13668 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13669 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13670 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13671 | static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13672 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13673 | static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13674 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13675 | static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13676 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
13677 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13678 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
13679 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
13680 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
13681 | static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13682 | static swig_cast_info _swigc__p_wxSimpleHtmlListBox[] = {{&_swigt__p_wxSimpleHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13683 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13684 | static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13685 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13686 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13687 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
13688 | static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13689 | static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13690 | static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13691 | static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13692 | static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13693 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
13694 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13695 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; | |
13696 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
13697 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
13698 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13699 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; | |
13700 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
13701 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
13702 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
13703 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13704 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13705 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13706 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13707 | static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; | |
13708 | static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
13709 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13710 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13711 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
13712 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
13713 | static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; | |
13714 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13715 | static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
13716 | static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
13717 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
13718 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13719 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13720 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13721 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13722 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13723 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13724 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13725 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13726 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13727 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13728 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13729 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13730 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13731 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13732 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
13733 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13734 | static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; | |
13735 | static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13736 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13737 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13738 | static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13739 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
13740 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13741 | static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13742 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; | |
13743 | static swig_cast_info _swigc__p_wxPanel[] = { {&_swigt__p_wxPanel, 0, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxPanel, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0},{0, 0, 0, 0}}; | |
13744 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
13745 | static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
13746 | static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
13747 | static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
13748 | static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13749 | static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}}; | |
13750 | static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}}; | |
13751 | static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}}; | |
13752 | static swig_cast_info _swigc__p_wxScrolledWindow[] = { {&_swigt__p_wxScrolledWindow, 0, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxScrolledWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0},{0, 0, 0, 0}}; | |
13753 | static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}}; | |
13754 | static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}}; | |
13755 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSimpleHtmlListBox, _p_wxSimpleHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; | |
13756 | ||
13757 | static swig_cast_info *swig_cast_initial[] = { | |
13758 | _swigc__p_char, | |
13759 | _swigc__p_form_ops_t, | |
13760 | _swigc__p_int, | |
13761 | _swigc__p_long, | |
13762 | _swigc__p_unsigned_char, | |
13763 | _swigc__p_unsigned_int, | |
13764 | _swigc__p_unsigned_long, | |
13765 | _swigc__p_wxANIHandler, | |
13766 | _swigc__p_wxAcceleratorTable, | |
13767 | _swigc__p_wxActivateEvent, | |
13768 | _swigc__p_wxArrayInt, | |
13769 | _swigc__p_wxBMPHandler, | |
13770 | _swigc__p_wxBitmap, | |
13771 | _swigc__p_wxBoxSizer, | |
13772 | _swigc__p_wxCURHandler, | |
13773 | _swigc__p_wxCalculateLayoutEvent, | |
13774 | _swigc__p_wxChar, | |
13775 | _swigc__p_wxChildFocusEvent, | |
13776 | _swigc__p_wxClipboardTextEvent, | |
13777 | _swigc__p_wxCloseEvent, | |
13778 | _swigc__p_wxColour, | |
13779 | _swigc__p_wxColourData, | |
13780 | _swigc__p_wxColourDialog, | |
13781 | _swigc__p_wxCommandEvent, | |
13782 | _swigc__p_wxContextMenuEvent, | |
13783 | _swigc__p_wxControl, | |
13784 | _swigc__p_wxControlWithItems, | |
13785 | _swigc__p_wxDateEvent, | |
13786 | _swigc__p_wxDialog, | |
13787 | _swigc__p_wxDirDialog, | |
13788 | _swigc__p_wxDisplayChangedEvent, | |
13789 | _swigc__p_wxDropFilesEvent, | |
13790 | _swigc__p_wxDuplexMode, | |
13791 | _swigc__p_wxEraseEvent, | |
13792 | _swigc__p_wxEvent, | |
13793 | _swigc__p_wxEvtHandler, | |
13794 | _swigc__p_wxFSFile, | |
13795 | _swigc__p_wxFileDialog, | |
13796 | _swigc__p_wxFileSystem, | |
13797 | _swigc__p_wxFindDialogEvent, | |
13798 | _swigc__p_wxFindReplaceData, | |
13799 | _swigc__p_wxFindReplaceDialog, | |
13800 | _swigc__p_wxFlexGridSizer, | |
13801 | _swigc__p_wxFocusEvent, | |
13802 | _swigc__p_wxFont, | |
13803 | _swigc__p_wxFontData, | |
13804 | _swigc__p_wxFontDialog, | |
13805 | _swigc__p_wxFrame, | |
13806 | _swigc__p_wxGBSizerItem, | |
13807 | _swigc__p_wxGIFHandler, | |
13808 | _swigc__p_wxGridBagSizer, | |
13809 | _swigc__p_wxGridSizer, | |
13810 | _swigc__p_wxICOHandler, | |
13811 | _swigc__p_wxIconizeEvent, | |
13812 | _swigc__p_wxIdleEvent, | |
13813 | _swigc__p_wxImage, | |
13814 | _swigc__p_wxImageHandler, | |
13815 | _swigc__p_wxIndividualLayoutConstraint, | |
13816 | _swigc__p_wxInitDialogEvent, | |
13817 | _swigc__p_wxJPEGHandler, | |
13818 | _swigc__p_wxKeyEvent, | |
13819 | _swigc__p_wxLayoutAlgorithm, | |
13820 | _swigc__p_wxLayoutConstraints, | |
13821 | _swigc__p_wxMDIChildFrame, | |
13822 | _swigc__p_wxMDIClientWindow, | |
13823 | _swigc__p_wxMDIParentFrame, | |
13824 | _swigc__p_wxMaximizeEvent, | |
13825 | _swigc__p_wxMenu, | |
13826 | _swigc__p_wxMenuBar, | |
13827 | _swigc__p_wxMenuEvent, | |
13828 | _swigc__p_wxMenuItem, | |
13829 | _swigc__p_wxMessageDialog, | |
13830 | _swigc__p_wxMiniFrame, | |
13831 | _swigc__p_wxMouseCaptureChangedEvent, | |
13832 | _swigc__p_wxMouseCaptureLostEvent, | |
13833 | _swigc__p_wxMouseEvent, | |
13834 | _swigc__p_wxMoveEvent, | |
13835 | _swigc__p_wxMultiChoiceDialog, | |
13836 | _swigc__p_wxNavigationKeyEvent, | |
13837 | _swigc__p_wxNcPaintEvent, | |
13838 | _swigc__p_wxNotifyEvent, | |
13839 | _swigc__p_wxNumberEntryDialog, | |
13840 | _swigc__p_wxObject, | |
13841 | _swigc__p_wxPCXHandler, | |
13842 | _swigc__p_wxPNGHandler, | |
13843 | _swigc__p_wxPNMHandler, | |
13844 | _swigc__p_wxPageSetupDialog, | |
13845 | _swigc__p_wxPageSetupDialogData, | |
13846 | _swigc__p_wxPaintEvent, | |
13847 | _swigc__p_wxPaletteChangedEvent, | |
13848 | _swigc__p_wxPanel, | |
13849 | _swigc__p_wxPaperSize, | |
13850 | _swigc__p_wxPasswordEntryDialog, | |
13851 | _swigc__p_wxPopupWindow, | |
13852 | _swigc__p_wxPreviewCanvas, | |
13853 | _swigc__p_wxPreviewControlBar, | |
13854 | _swigc__p_wxPreviewFrame, | |
13855 | _swigc__p_wxPrintData, | |
13856 | _swigc__p_wxPrintDialog, | |
13857 | _swigc__p_wxPrintDialogData, | |
13858 | _swigc__p_wxPrintPreview, | |
13859 | _swigc__p_wxPrinter, | |
13860 | _swigc__p_wxProgressDialog, | |
13861 | _swigc__p_wxPyApp, | |
13862 | _swigc__p_wxPyCommandEvent, | |
13863 | _swigc__p_wxPyEvent, | |
13864 | _swigc__p_wxPyHtmlListBox, | |
13865 | _swigc__p_wxPyImageHandler, | |
13866 | _swigc__p_wxPyPanel, | |
13867 | _swigc__p_wxPyPopupTransientWindow, | |
13868 | _swigc__p_wxPyPreviewControlBar, | |
13869 | _swigc__p_wxPyPreviewFrame, | |
13870 | _swigc__p_wxPyPrintPreview, | |
13871 | _swigc__p_wxPyPrintout, | |
13872 | _swigc__p_wxPyScrolledWindow, | |
13873 | _swigc__p_wxPySizer, | |
13874 | _swigc__p_wxPyTaskBarIcon, | |
13875 | _swigc__p_wxPyVListBox, | |
13876 | _swigc__p_wxPyVScrolledWindow, | |
13877 | _swigc__p_wxPyValidator, | |
13878 | _swigc__p_wxPyWindow, | |
13879 | _swigc__p_wxQueryLayoutInfoEvent, | |
13880 | _swigc__p_wxQueryNewPaletteEvent, | |
13881 | _swigc__p_wxRichTextAttr, | |
13882 | _swigc__p_wxRichTextBuffer, | |
13883 | _swigc__p_wxRichTextCtrl, | |
13884 | _swigc__p_wxRichTextEvent, | |
13885 | _swigc__p_wxRichTextImageBlock, | |
13886 | _swigc__p_wxRichTextRange, | |
13887 | _swigc__p_wxRichTextStyleSheet, | |
13888 | _swigc__p_wxSashEvent, | |
13889 | _swigc__p_wxSashLayoutWindow, | |
13890 | _swigc__p_wxSashWindow, | |
13891 | _swigc__p_wxScrollEvent, | |
13892 | _swigc__p_wxScrollWinEvent, | |
13893 | _swigc__p_wxScrolledWindow, | |
13894 | _swigc__p_wxSetCursorEvent, | |
13895 | _swigc__p_wxShowEvent, | |
13896 | _swigc__p_wxSimpleHtmlListBox, | |
13897 | _swigc__p_wxSingleChoiceDialog, | |
13898 | _swigc__p_wxSizeEvent, | |
13899 | _swigc__p_wxSizer, | |
13900 | _swigc__p_wxSizerItem, | |
13901 | _swigc__p_wxSplashScreen, | |
13902 | _swigc__p_wxSplashScreenWindow, | |
13903 | _swigc__p_wxSplitterEvent, | |
13904 | _swigc__p_wxSplitterWindow, | |
13905 | _swigc__p_wxStaticBoxSizer, | |
13906 | _swigc__p_wxStatusBar, | |
13907 | _swigc__p_wxStdDialogButtonSizer, | |
13908 | _swigc__p_wxSysColourChangedEvent, | |
13909 | _swigc__p_wxTGAHandler, | |
13910 | _swigc__p_wxTIFFHandler, | |
13911 | _swigc__p_wxTaskBarIconEvent, | |
13912 | _swigc__p_wxTextCoord, | |
13913 | _swigc__p_wxTextCtrlHitTestResult, | |
13914 | _swigc__p_wxTextEntryDialog, | |
13915 | _swigc__p_wxTipWindow, | |
13916 | _swigc__p_wxTopLevelWindow, | |
13917 | _swigc__p_wxUpdateUIEvent, | |
13918 | _swigc__p_wxValidator, | |
13919 | _swigc__p_wxWindow, | |
13920 | _swigc__p_wxWindowCreateEvent, | |
13921 | _swigc__p_wxWindowDestroyEvent, | |
13922 | _swigc__p_wxXPMHandler, | |
13923 | }; | |
13924 | ||
13925 | ||
13926 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
13927 | ||
13928 | static swig_const_info swig_const_table[] = { | |
13929 | {0, 0, 0, 0.0, 0, 0}}; | |
13930 | ||
13931 | #ifdef __cplusplus | |
13932 | } | |
13933 | #endif | |
13934 | /* ----------------------------------------------------------------------------- | |
13935 | * Type initialization: | |
13936 | * This problem is tough by the requirement that no dynamic | |
13937 | * memory is used. Also, since swig_type_info structures store pointers to | |
13938 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
13939 | * to swig_type_info structures, we need some lookup code at initialization. | |
13940 | * The idea is that swig generates all the structures that are needed. | |
13941 | * The runtime then collects these partially filled structures. | |
13942 | * The SWIG_InitializeModule function takes these initial arrays out of | |
13943 | * swig_module, and does all the lookup, filling in the swig_module.types | |
13944 | * array with the correct data and linking the correct swig_cast_info | |
13945 | * structures together. | |
13946 | * | |
13947 | * The generated swig_type_info structures are assigned staticly to an initial | |
13948 | * array. We just loop though that array, and handle each type individually. | |
13949 | * First we lookup if this type has been already loaded, and if so, use the | |
13950 | * loaded structure instead of the generated one. Then we have to fill in the | |
13951 | * cast linked list. The cast data is initially stored in something like a | |
13952 | * two-dimensional array. Each row corresponds to a type (there are the same | |
13953 | * number of rows as there are in the swig_type_initial array). Each entry in | |
13954 | * a column is one of the swig_cast_info structures for that type. | |
13955 | * The cast_initial array is actually an array of arrays, because each row has | |
13956 | * a variable number of columns. So to actually build the cast linked list, | |
13957 | * we find the array of casts associated with the type, and loop through it | |
13958 | * adding the casts to the list. The one last trick we need to do is making | |
13959 | * sure the type pointer in the swig_cast_info struct is correct. | |
13960 | * | |
13961 | * First off, we lookup the cast->type name to see if it is already loaded. | |
13962 | * There are three cases to handle: | |
13963 | * 1) If the cast->type has already been loaded AND the type we are adding | |
13964 | * casting info to has not been loaded (it is in this module), THEN we | |
13965 | * replace the cast->type pointer with the type pointer that has already | |
13966 | * been loaded. | |
13967 | * 2) If BOTH types (the one we are adding casting info to, and the | |
13968 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
13969 | * the previous module so we just ignore it. | |
13970 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
13971 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
13972 | * be correct. | |
13973 | * ----------------------------------------------------------------------------- */ | |
13974 | ||
13975 | #ifdef __cplusplus | |
13976 | extern "C" { | |
13977 | #if 0 | |
13978 | } /* c-mode */ | |
13979 | #endif | |
13980 | #endif | |
13981 | ||
13982 | #if 0 | |
13983 | #define SWIGRUNTIME_DEBUG | |
13984 | #endif | |
13985 | ||
13986 | SWIGRUNTIME void | |
13987 | SWIG_InitializeModule(void *clientdata) { | |
13988 | size_t i; | |
13989 | swig_module_info *module_head; | |
13990 | static int init_run = 0; | |
13991 | ||
13992 | clientdata = clientdata; | |
13993 | ||
13994 | if (init_run) return; | |
13995 | init_run = 1; | |
13996 | ||
13997 | /* Initialize the swig_module */ | |
13998 | swig_module.type_initial = swig_type_initial; | |
13999 | swig_module.cast_initial = swig_cast_initial; | |
14000 | ||
14001 | /* Try and load any already created modules */ | |
14002 | module_head = SWIG_GetModule(clientdata); | |
14003 | if (module_head) { | |
14004 | swig_module.next = module_head->next; | |
14005 | module_head->next = &swig_module; | |
14006 | } else { | |
14007 | /* This is the first module loaded */ | |
14008 | swig_module.next = &swig_module; | |
14009 | SWIG_SetModule(clientdata, &swig_module); | |
14010 | } | |
14011 | ||
14012 | /* Now work on filling in swig_module.types */ | |
14013 | #ifdef SWIGRUNTIME_DEBUG | |
14014 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
14015 | #endif | |
14016 | for (i = 0; i < swig_module.size; ++i) { | |
14017 | swig_type_info *type = 0; | |
14018 | swig_type_info *ret; | |
14019 | swig_cast_info *cast; | |
14020 | ||
14021 | #ifdef SWIGRUNTIME_DEBUG | |
14022 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14023 | #endif | |
14024 | ||
14025 | /* if there is another module already loaded */ | |
14026 | if (swig_module.next != &swig_module) { | |
14027 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
14028 | } | |
14029 | if (type) { | |
14030 | /* Overwrite clientdata field */ | |
14031 | #ifdef SWIGRUNTIME_DEBUG | |
14032 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
14033 | #endif | |
14034 | if (swig_module.type_initial[i]->clientdata) { | |
14035 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
14036 | #ifdef SWIGRUNTIME_DEBUG | |
14037 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
14038 | #endif | |
14039 | } | |
14040 | } else { | |
14041 | type = swig_module.type_initial[i]; | |
14042 | } | |
14043 | ||
14044 | /* Insert casting types */ | |
14045 | cast = swig_module.cast_initial[i]; | |
14046 | while (cast->type) { | |
14047 | /* Don't need to add information already in the list */ | |
14048 | ret = 0; | |
14049 | #ifdef SWIGRUNTIME_DEBUG | |
14050 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
14051 | #endif | |
14052 | if (swig_module.next != &swig_module) { | |
14053 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
14054 | #ifdef SWIGRUNTIME_DEBUG | |
14055 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
14056 | #endif | |
14057 | } | |
14058 | if (ret) { | |
14059 | if (type == swig_module.type_initial[i]) { | |
14060 | #ifdef SWIGRUNTIME_DEBUG | |
14061 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
14062 | #endif | |
14063 | cast->type = ret; | |
14064 | ret = 0; | |
14065 | } else { | |
14066 | /* Check for casting already in the list */ | |
14067 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
14068 | #ifdef SWIGRUNTIME_DEBUG | |
14069 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
14070 | #endif | |
14071 | if (!ocast) ret = 0; | |
14072 | } | |
14073 | } | |
14074 | ||
14075 | if (!ret) { | |
14076 | #ifdef SWIGRUNTIME_DEBUG | |
14077 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
14078 | #endif | |
14079 | if (type->cast) { | |
14080 | type->cast->prev = cast; | |
14081 | cast->next = type->cast; | |
14082 | } | |
14083 | type->cast = cast; | |
14084 | } | |
14085 | cast++; | |
14086 | } | |
14087 | /* Set entry in modules->types array equal to the type */ | |
14088 | swig_module.types[i] = type; | |
14089 | } | |
14090 | swig_module.types[i] = 0; | |
14091 | ||
14092 | #ifdef SWIGRUNTIME_DEBUG | |
14093 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14094 | for (i = 0; i < swig_module.size; ++i) { | |
14095 | int j = 0; | |
14096 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
14097 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14098 | while (cast->type) { | |
14099 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
14100 | cast++; | |
14101 | ++j; | |
14102 | } | |
14103 | printf("---- Total casts: %d\n",j); | |
14104 | } | |
14105 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14106 | #endif | |
14107 | } | |
14108 | ||
14109 | /* This function will propagate the clientdata field of type to | |
14110 | * any new swig_type_info structures that have been added into the list | |
14111 | * of equivalent types. It is like calling | |
14112 | * SWIG_TypeClientData(type, clientdata) a second time. | |
14113 | */ | |
14114 | SWIGRUNTIME void | |
14115 | SWIG_PropagateClientData(void) { | |
14116 | size_t i; | |
14117 | swig_cast_info *equiv; | |
14118 | static int init_run = 0; | |
14119 | ||
14120 | if (init_run) return; | |
14121 | init_run = 1; | |
14122 | ||
14123 | for (i = 0; i < swig_module.size; i++) { | |
14124 | if (swig_module.types[i]->clientdata) { | |
14125 | equiv = swig_module.types[i]->cast; | |
14126 | while (equiv) { | |
14127 | if (!equiv->converter) { | |
14128 | if (equiv->type && !equiv->type->clientdata) | |
14129 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
14130 | } | |
14131 | equiv = equiv->next; | |
14132 | } | |
14133 | } | |
14134 | } | |
14135 | } | |
14136 | ||
14137 | #ifdef __cplusplus | |
14138 | #if 0 | |
14139 | { | |
14140 | /* c-mode */ | |
14141 | #endif | |
14142 | } | |
14143 | #endif | |
14144 | ||
14145 | ||
14146 | ||
14147 | #ifdef __cplusplus | |
14148 | extern "C" { | |
14149 | #endif | |
14150 | ||
14151 | /* Python-specific SWIG API */ | |
14152 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
14153 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
14154 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
14155 | ||
14156 | /* ----------------------------------------------------------------------------- | |
14157 | * global variable support code. | |
14158 | * ----------------------------------------------------------------------------- */ | |
14159 | ||
14160 | typedef struct swig_globalvar { | |
14161 | char *name; /* Name of global variable */ | |
14162 | PyObject *(*get_attr)(void); /* Return the current value */ | |
14163 | int (*set_attr)(PyObject *); /* Set the value */ | |
14164 | struct swig_globalvar *next; | |
14165 | } swig_globalvar; | |
14166 | ||
14167 | typedef struct swig_varlinkobject { | |
14168 | PyObject_HEAD | |
14169 | swig_globalvar *vars; | |
14170 | } swig_varlinkobject; | |
14171 | ||
14172 | SWIGINTERN PyObject * | |
14173 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
14174 | return PyString_FromString("<Swig global variables>"); | |
14175 | } | |
14176 | ||
14177 | SWIGINTERN PyObject * | |
14178 | swig_varlink_str(swig_varlinkobject *v) { | |
14179 | PyObject *str = PyString_FromString("("); | |
14180 | swig_globalvar *var; | |
14181 | for (var = v->vars; var; var=var->next) { | |
14182 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
14183 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
14184 | } | |
14185 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
14186 | return str; | |
14187 | } | |
14188 | ||
14189 | SWIGINTERN int | |
14190 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
14191 | PyObject *str = swig_varlink_str(v); | |
14192 | fprintf(fp,"Swig global variables "); | |
14193 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
14194 | Py_DECREF(str); | |
14195 | return 0; | |
14196 | } | |
14197 | ||
14198 | SWIGINTERN void | |
14199 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
14200 | swig_globalvar *var = v->vars; | |
14201 | while (var) { | |
14202 | swig_globalvar *n = var->next; | |
14203 | free(var->name); | |
14204 | free(var); | |
14205 | var = n; | |
14206 | } | |
14207 | } | |
14208 | ||
14209 | SWIGINTERN PyObject * | |
14210 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
14211 | PyObject *res = NULL; | |
14212 | swig_globalvar *var = v->vars; | |
14213 | while (var) { | |
14214 | if (strcmp(var->name,n) == 0) { | |
14215 | res = (*var->get_attr)(); | |
14216 | break; | |
14217 | } | |
14218 | var = var->next; | |
14219 | } | |
14220 | if (res == NULL && !PyErr_Occurred()) { | |
14221 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
14222 | } | |
14223 | return res; | |
14224 | } | |
14225 | ||
14226 | SWIGINTERN int | |
14227 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
14228 | int res = 1; | |
14229 | swig_globalvar *var = v->vars; | |
14230 | while (var) { | |
14231 | if (strcmp(var->name,n) == 0) { | |
14232 | res = (*var->set_attr)(p); | |
14233 | break; | |
14234 | } | |
14235 | var = var->next; | |
14236 | } | |
14237 | if (res == 1 && !PyErr_Occurred()) { | |
14238 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
14239 | } | |
14240 | return res; | |
14241 | } | |
14242 | ||
14243 | SWIGINTERN PyTypeObject* | |
14244 | swig_varlink_type(void) { | |
14245 | static char varlink__doc__[] = "Swig var link object"; | |
14246 | static PyTypeObject varlink_type; | |
14247 | static int type_init = 0; | |
14248 | if (!type_init) { | |
14249 | const PyTypeObject tmp | |
14250 | = { | |
14251 | PyObject_HEAD_INIT(NULL) | |
14252 | 0, /* Number of items in variable part (ob_size) */ | |
14253 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
14254 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
14255 | 0, /* Itemsize (tp_itemsize) */ | |
14256 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
14257 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
14258 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
14259 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
14260 | 0, /* tp_compare */ | |
14261 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
14262 | 0, /* tp_as_number */ | |
14263 | 0, /* tp_as_sequence */ | |
14264 | 0, /* tp_as_mapping */ | |
14265 | 0, /* tp_hash */ | |
14266 | 0, /* tp_call */ | |
14267 | (reprfunc)swig_varlink_str, /* tp_str */ | |
14268 | 0, /* tp_getattro */ | |
14269 | 0, /* tp_setattro */ | |
14270 | 0, /* tp_as_buffer */ | |
14271 | 0, /* tp_flags */ | |
14272 | varlink__doc__, /* tp_doc */ | |
14273 | 0, /* tp_traverse */ | |
14274 | 0, /* tp_clear */ | |
14275 | 0, /* tp_richcompare */ | |
14276 | 0, /* tp_weaklistoffset */ | |
14277 | #if PY_VERSION_HEX >= 0x02020000 | |
14278 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
14279 | #endif | |
14280 | #if PY_VERSION_HEX >= 0x02030000 | |
14281 | 0, /* tp_del */ | |
14282 | #endif | |
14283 | #ifdef COUNT_ALLOCS | |
14284 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
14285 | #endif | |
14286 | }; | |
14287 | varlink_type = tmp; | |
14288 | varlink_type.ob_type = &PyType_Type; | |
14289 | type_init = 1; | |
14290 | } | |
14291 | return &varlink_type; | |
14292 | } | |
14293 | ||
14294 | /* Create a variable linking object for use later */ | |
14295 | SWIGINTERN PyObject * | |
14296 | SWIG_Python_newvarlink(void) { | |
14297 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
14298 | if (result) { | |
14299 | result->vars = 0; | |
14300 | } | |
14301 | return ((PyObject*) result); | |
14302 | } | |
14303 | ||
14304 | SWIGINTERN void | |
14305 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
14306 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
14307 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
14308 | if (gv) { | |
14309 | size_t size = strlen(name)+1; | |
14310 | gv->name = (char *)malloc(size); | |
14311 | if (gv->name) { | |
14312 | strncpy(gv->name,name,size); | |
14313 | gv->get_attr = get_attr; | |
14314 | gv->set_attr = set_attr; | |
14315 | gv->next = v->vars; | |
14316 | } | |
14317 | } | |
14318 | v->vars = gv; | |
14319 | } | |
14320 | ||
14321 | SWIGINTERN PyObject * | |
14322 | SWIG_globals() { | |
14323 | static PyObject *_SWIG_globals = 0; | |
14324 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
14325 | return _SWIG_globals; | |
14326 | } | |
14327 | ||
14328 | /* ----------------------------------------------------------------------------- | |
14329 | * constants/methods manipulation | |
14330 | * ----------------------------------------------------------------------------- */ | |
14331 | ||
14332 | /* Install Constants */ | |
14333 | SWIGINTERN void | |
14334 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
14335 | PyObject *obj = 0; | |
14336 | size_t i; | |
14337 | for (i = 0; constants[i].type; ++i) { | |
14338 | switch(constants[i].type) { | |
14339 | case SWIG_PY_POINTER: | |
14340 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
14341 | break; | |
14342 | case SWIG_PY_BINARY: | |
14343 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
14344 | break; | |
14345 | default: | |
14346 | obj = 0; | |
14347 | break; | |
14348 | } | |
14349 | if (obj) { | |
14350 | PyDict_SetItemString(d, constants[i].name, obj); | |
14351 | Py_DECREF(obj); | |
14352 | } | |
14353 | } | |
14354 | } | |
14355 | ||
14356 | /* -----------------------------------------------------------------------------*/ | |
14357 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14358 | /* -----------------------------------------------------------------------------*/ | |
14359 | ||
14360 | SWIGINTERN void | |
14361 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
14362 | swig_const_info *const_table, | |
14363 | swig_type_info **types, | |
14364 | swig_type_info **types_initial) { | |
14365 | size_t i; | |
14366 | for (i = 0; methods[i].ml_name; ++i) { | |
14367 | const char *c = methods[i].ml_doc; | |
14368 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
14369 | int j; | |
14370 | swig_const_info *ci = 0; | |
14371 | const char *name = c + 10; | |
14372 | for (j = 0; const_table[j].type; ++j) { | |
14373 | if (strncmp(const_table[j].name, name, | |
14374 | strlen(const_table[j].name)) == 0) { | |
14375 | ci = &(const_table[j]); | |
14376 | break; | |
14377 | } | |
14378 | } | |
14379 | if (ci) { | |
14380 | size_t shift = (ci->ptype) - types; | |
14381 | swig_type_info *ty = types_initial[shift]; | |
14382 | size_t ldoc = (c - methods[i].ml_doc); | |
14383 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
14384 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
14385 | if (ndoc) { | |
14386 | char *buff = ndoc; | |
14387 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
14388 | if (ptr) { | |
14389 | strncpy(buff, methods[i].ml_doc, ldoc); | |
14390 | buff += ldoc; | |
14391 | strncpy(buff, "swig_ptr: ", 10); | |
14392 | buff += 10; | |
14393 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
14394 | methods[i].ml_doc = ndoc; | |
14395 | } | |
14396 | } | |
14397 | } | |
14398 | } | |
14399 | } | |
14400 | } | |
14401 | ||
14402 | #ifdef __cplusplus | |
14403 | } | |
14404 | #endif | |
14405 | ||
14406 | /* -----------------------------------------------------------------------------* | |
14407 | * Partial Init method | |
14408 | * -----------------------------------------------------------------------------*/ | |
14409 | ||
14410 | #ifdef __cplusplus | |
14411 | extern "C" | |
14412 | #endif | |
14413 | SWIGEXPORT void SWIG_init(void) { | |
14414 | PyObject *m, *d; | |
14415 | ||
14416 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14417 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
14418 | ||
14419 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
14420 | d = PyModule_GetDict(m); | |
14421 | ||
14422 | SWIG_InitializeModule(0); | |
14423 | SWIG_InstallConstants(d,swig_const_table); | |
14424 | ||
14425 | ||
14426 | SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0))); | |
14427 | SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY))); | |
14428 | SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE))); | |
14429 | SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN))); | |
14430 | SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN))); | |
14431 | SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN))); | |
14432 | SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED))); | |
14433 | SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED))); | |
14434 | SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED))); | |
14435 | SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS))); | |
14436 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY))); | |
14437 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT))); | |
14438 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML))); | |
14439 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML))); | |
14440 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF))); | |
14441 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF))); | |
14442 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH))); | |
14443 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT))); | |
14444 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH))); | |
14445 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT))); | |
14446 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE))); | |
14447 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE))); | |
14448 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER))); | |
14449 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON))); | |
14450 | SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED))); | |
14451 | SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED))); | |
14452 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_NONE))); | |
14453 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_WITH_UNDO",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_WITH_UNDO))); | |
14454 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_OPTIMIZE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_OPTIMIZE))); | |
14455 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY))); | |
14456 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_CHARACTERS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY))); | |
14457 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE))); | |
14458 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE))); | |
14459 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); | |
14460 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
14461 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
14462 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
14463 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
14464 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
14465 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
14466 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
14467 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
14468 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
14469 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
14470 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
14471 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER))); | |
14472 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE))); | |
14473 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING))); | |
14474 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME))); | |
14475 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME))); | |
14476 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE))); | |
14477 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER))); | |
14478 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE))); | |
14479 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC))); | |
14480 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER))); | |
14481 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER))); | |
14482 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER))); | |
14483 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER))); | |
14484 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL))); | |
14485 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP))); | |
14486 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES))); | |
14487 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD))); | |
14488 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL))); | |
14489 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF))); | |
14490 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE))); | |
14491 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
14492 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
14493 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
14494 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
14495 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
14496 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
14497 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
14498 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set); | |
14499 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set); | |
14500 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER))); | |
14501 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH))); | |
14502 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL))); | |
14503 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED)); | |
14504 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED)); | |
14505 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK)); | |
14506 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK)); | |
14507 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK)); | |
14508 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK)); | |
14509 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN)); | |
14510 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING)); | |
14511 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED)); | |
14512 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING)); | |
14513 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED)); | |
14514 | ||
14515 | wxRichTextModuleInit(); | |
14516 | ||
14517 | } | |
14518 |