]>
Commit | Line | Data |
---|---|---|
06810ecf RD |
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 | ||
4f89b6b7 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
06810ecf RD |
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 */ | |
4f89b6b7 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
06810ecf RD |
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] | |
92515dfc RD |
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] | |
34e0a3bb RD |
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_wxSingleChoiceDialog swig_types[138] | |
2605 | #define SWIGTYPE_p_wxSizeEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSizer swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizerItem swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSplashScreen swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterEvent swig_types[144] | |
2611 | #define SWIGTYPE_p_wxSplitterWindow swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStatusBar swig_types[147] | |
2614 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148] | |
2615 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149] | |
580080c5 RD |
2616 | #define SWIGTYPE_p_wxTGAHandler swig_types[150] |
2617 | #define SWIGTYPE_p_wxTIFFHandler swig_types[151] | |
2618 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[152] | |
2619 | #define SWIGTYPE_p_wxTextCoord swig_types[153] | |
2620 | #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[154] | |
2621 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[155] | |
2622 | #define SWIGTYPE_p_wxTipWindow swig_types[156] | |
2623 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[157] | |
2624 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[158] | |
2625 | #define SWIGTYPE_p_wxValidator swig_types[159] | |
2626 | #define SWIGTYPE_p_wxWindow swig_types[160] | |
2627 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[161] | |
2628 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[162] | |
2629 | #define SWIGTYPE_p_wxXPMHandler swig_types[163] | |
2630 | static swig_type_info *swig_types[165]; | |
2631 | static swig_module_info swig_module = {swig_types, 164, 0, 0, 0, 0}; | |
06810ecf RD |
2632 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2633 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
2634 | ||
2635 | /* -------- TYPES TABLE (END) -------- */ | |
2636 | ||
2637 | #if (PY_VERSION_HEX <= 0x02000000) | |
2638 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2639 | # error "This python version requires to use swig with the '-classic' option" | |
2640 | # endif | |
2641 | #endif | |
2642 | #if (PY_VERSION_HEX <= 0x02020000) | |
2643 | # error "This python version requires to use swig with the '-nomodern' option" | |
2644 | #endif | |
2645 | #if (PY_VERSION_HEX <= 0x02020000) | |
2646 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2647 | #endif | |
2648 | #ifndef METH_O | |
2649 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2650 | #endif | |
2651 | ||
2652 | /*----------------------------------------------- | |
2653 | @(target):= _richtext.so | |
2654 | ------------------------------------------------*/ | |
2655 | #define SWIG_init init_richtext | |
2656 | ||
2657 | #define SWIG_name "_richtext" | |
2658 | ||
2659 | #define SWIGVERSION 0x010329 | |
2660 | ||
2661 | ||
2662 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) | |
2663 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
2664 | ||
2665 | ||
2666 | #include <stdexcept> | |
2667 | ||
2668 | ||
2669 | namespace swig { | |
2670 | class PyObject_ptr { | |
2671 | protected: | |
2672 | PyObject *_obj; | |
2673 | ||
2674 | public: | |
2675 | PyObject_ptr() :_obj(0) | |
2676 | { | |
2677 | } | |
2678 | ||
2679 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2680 | { | |
2681 | Py_XINCREF(_obj); | |
2682 | } | |
2683 | ||
2684 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2685 | { | |
2686 | if (initial_ref) Py_XINCREF(_obj); | |
2687 | } | |
2688 | ||
2689 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2690 | { | |
2691 | Py_XINCREF(item._obj); | |
2692 | Py_XDECREF(_obj); | |
2693 | _obj = item._obj; | |
2694 | return *this; | |
2695 | } | |
2696 | ||
2697 | ~PyObject_ptr() | |
2698 | { | |
2699 | Py_XDECREF(_obj); | |
2700 | } | |
2701 | ||
2702 | operator PyObject *() const | |
2703 | { | |
2704 | return _obj; | |
2705 | } | |
2706 | ||
2707 | PyObject *operator->() const | |
2708 | { | |
2709 | return _obj; | |
2710 | } | |
2711 | }; | |
2712 | } | |
2713 | ||
2714 | ||
2715 | namespace swig { | |
2716 | struct PyObject_var : PyObject_ptr { | |
2717 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2718 | ||
2719 | PyObject_var & operator = (PyObject* obj) | |
2720 | { | |
2721 | Py_XDECREF(_obj); | |
2722 | _obj = obj; | |
2723 | return *this; | |
2724 | } | |
2725 | }; | |
2726 | } | |
2727 | ||
2728 | ||
2729 | #include "wx/wxPython/wxPython.h" | |
2730 | #include "wx/wxPython/pyclasses.h" | |
2731 | #include "wx/wxPython/printfw.h" | |
2732 | #include "wx/wxPython/twoitem.h" | |
2733 | ||
2734 | #include <wx/richtext/richtextctrl.h> | |
2735 | ||
2736 | ||
2737 | class wxEffects; | |
2738 | class wxBufferedDC; | |
2739 | class wxBufferedPaintDC; | |
2740 | class wxMetaFile; | |
2741 | class wxMetaFileDC; | |
2742 | class wxPrinterDC; | |
2743 | ||
2744 | ||
2745 | ||
2746 | #define SWIG_From_long PyInt_FromLong | |
2747 | ||
2748 | ||
2749 | SWIGINTERNINLINE PyObject * | |
2750 | SWIG_From_int (int value) | |
2751 | { | |
2752 | return SWIG_From_long (value); | |
2753 | } | |
2754 | ||
2755 | static const wxString wxPyEmptyString(wxEmptyString); | |
2756 | ||
2757 | ||
2758 | bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj) | |
2759 | { | |
2760 | if (source == Py_None) { | |
2761 | **obj = wxRICHTEXT_NONE; | |
2762 | return true; | |
2763 | } | |
2764 | return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange")); | |
2765 | } | |
2766 | ||
2767 | ||
2768 | SWIGINTERN int | |
2769 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2770 | { | |
2771 | if (PyNumber_Check(obj)) { | |
2772 | if (val) *val = PyInt_AsLong(obj); | |
2773 | return SWIG_OK; | |
2774 | } | |
2775 | return SWIG_TypeError; | |
2776 | } | |
2777 | ||
2778 | SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){ | |
2779 | wxRichTextRange temp, *obj = &temp; | |
2780 | if ( other == Py_None ) return false; | |
2781 | if ( ! wxRichTextRange_helper(other, &obj) ) { | |
2782 | PyErr_Clear(); | |
2783 | return false; | |
2784 | } | |
2785 | return self->operator==(*obj); | |
2786 | } | |
2787 | SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){ | |
2788 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2789 | PyObject* tup = PyTuple_New(2); | |
2790 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart())); | |
2791 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd())); | |
2792 | wxPyEndBlockThreads(blocked); | |
2793 | return tup; | |
2794 | } | |
2795 | ||
2796 | wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL); | |
2797 | wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE); | |
2798 | ||
2799 | ||
2800 | #include <limits.h> | |
2801 | #ifndef LLONG_MIN | |
2802 | # define LLONG_MIN LONG_LONG_MIN | |
2803 | #endif | |
2804 | #ifndef LLONG_MAX | |
2805 | # define LLONG_MAX LONG_LONG_MAX | |
2806 | #endif | |
2807 | #ifndef ULLONG_MAX | |
2808 | # define ULLONG_MAX ULONG_LONG_MAX | |
2809 | #endif | |
2810 | ||
2811 | ||
2812 | SWIGINTERN int | |
2813 | SWIG_AsVal_int (PyObject * obj, int *val) | |
2814 | { | |
2815 | long v; | |
2816 | int res = SWIG_AsVal_long (obj, &v); | |
2817 | if (SWIG_IsOK(res)) { | |
2818 | if ((v < INT_MIN || v > INT_MAX)) { | |
2819 | return SWIG_OverflowError; | |
2820 | } else { | |
2821 | if (val) *val = static_cast< int >(v); | |
2822 | } | |
2823 | } | |
2824 | return res; | |
2825 | } | |
2826 | ||
2827 | ||
2828 | SWIGINTERN int | |
2829 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2830 | { | |
2831 | if (obj == Py_True) { | |
2832 | if (val) *val = true; | |
2833 | return SWIG_OK; | |
2834 | } else if (obj == Py_False) { | |
2835 | if (val) *val = false; | |
2836 | return SWIG_OK; | |
2837 | } else { | |
2838 | long v = 0; | |
2839 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2840 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2841 | return res; | |
2842 | } | |
2843 | } | |
2844 | ||
2845 | ||
2846 | SWIGINTERN int | |
2847 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) | |
2848 | { | |
2849 | long v = 0; | |
2850 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
2851 | return SWIG_TypeError; | |
2852 | } | |
2853 | else if (val) | |
2854 | *val = (unsigned long)v; | |
2855 | return SWIG_OK; | |
2856 | } | |
2857 | ||
06810ecf RD |
2858 | #ifdef __cplusplus |
2859 | extern "C" { | |
2860 | #endif | |
2861 | SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2862 | PyObject *resultobj = 0; | |
2863 | long arg1 = (long) 0 ; | |
2864 | long arg2 = (long) 0 ; | |
2865 | wxRichTextRange *result = 0 ; | |
2866 | long val1 ; | |
2867 | int ecode1 = 0 ; | |
2868 | long val2 ; | |
2869 | int ecode2 = 0 ; | |
2870 | PyObject * obj0 = 0 ; | |
2871 | PyObject * obj1 = 0 ; | |
2872 | char * kwnames[] = { | |
2873 | (char *) "start",(char *) "end", NULL | |
2874 | }; | |
2875 | ||
2876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
2877 | if (obj0) { | |
2878 | ecode1 = SWIG_AsVal_long(obj0, &val1); | |
2879 | if (!SWIG_IsOK(ecode1)) { | |
2880 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'"); | |
2881 | } | |
2882 | arg1 = static_cast< long >(val1); | |
2883 | } | |
2884 | if (obj1) { | |
2885 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
2886 | if (!SWIG_IsOK(ecode2)) { | |
2887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'"); | |
2888 | } | |
2889 | arg2 = static_cast< long >(val2); | |
2890 | } | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2); | |
2894 | wxPyEndAllowThreads(__tstate); | |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
2896 | } | |
2897 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 ); | |
2898 | return resultobj; | |
2899 | fail: | |
2900 | return NULL; | |
2901 | } | |
2902 | ||
2903 | ||
2904 | SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
2905 | PyObject *resultobj = 0; | |
2906 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2907 | void *argp1 = 0 ; | |
2908 | int res1 = 0 ; | |
2909 | PyObject *swig_obj[1] ; | |
2910 | ||
2911 | if (!args) SWIG_fail; | |
2912 | swig_obj[0] = args; | |
2913 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 ); | |
2914 | if (!SWIG_IsOK(res1)) { | |
2915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
2916 | } | |
2917 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2918 | { | |
2919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2920 | delete arg1; | |
2921 | ||
2922 | wxPyEndAllowThreads(__tstate); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
2925 | resultobj = SWIG_Py_Void(); | |
2926 | return resultobj; | |
2927 | fail: | |
2928 | return NULL; | |
2929 | } | |
2930 | ||
2931 | ||
2932 | SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2933 | PyObject *resultobj = 0; | |
2934 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2935 | PyObject *arg2 = (PyObject *) 0 ; | |
2936 | bool result; | |
2937 | void *argp1 = 0 ; | |
2938 | int res1 = 0 ; | |
2939 | PyObject * obj0 = 0 ; | |
2940 | PyObject * obj1 = 0 ; | |
2941 | char * kwnames[] = { | |
2942 | (char *) "self",(char *) "other", NULL | |
2943 | }; | |
2944 | ||
2945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
2946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
2947 | if (!SWIG_IsOK(res1)) { | |
2948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
2949 | } | |
2950 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2951 | arg2 = obj1; | |
2952 | { | |
2953 | result = (bool)wxRichTextRange___eq__(arg1,arg2); | |
2954 | if (PyErr_Occurred()) SWIG_fail; | |
2955 | } | |
2956 | { | |
2957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2958 | } | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
2965 | SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
2966 | PyObject *resultobj = 0; | |
2967 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
2968 | wxRichTextRange *arg2 = 0 ; | |
2969 | wxRichTextRange result; | |
2970 | void *argp1 = 0 ; | |
2971 | int res1 = 0 ; | |
2972 | wxRichTextRange temp2 ; | |
2973 | PyObject * obj0 = 0 ; | |
2974 | PyObject * obj1 = 0 ; | |
2975 | char * kwnames[] = { | |
2976 | (char *) "self",(char *) "range", NULL | |
2977 | }; | |
2978 | ||
2979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail; | |
2980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
2981 | if (!SWIG_IsOK(res1)) { | |
2982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
2983 | } | |
2984 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
2985 | { | |
2986 | arg2 = &temp2; | |
2987 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
2988 | } | |
2989 | { | |
2990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2991 | result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2); | |
2992 | wxPyEndAllowThreads(__tstate); | |
2993 | if (PyErr_Occurred()) SWIG_fail; | |
2994 | } | |
2995 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
2996 | return resultobj; | |
2997 | fail: | |
2998 | return NULL; | |
2999 | } | |
3000 | ||
3001 | ||
3002 | SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3003 | PyObject *resultobj = 0; | |
3004 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3005 | wxRichTextRange *arg2 = 0 ; | |
3006 | wxRichTextRange result; | |
3007 | void *argp1 = 0 ; | |
3008 | int res1 = 0 ; | |
3009 | wxRichTextRange temp2 ; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | PyObject * obj1 = 0 ; | |
3012 | char * kwnames[] = { | |
3013 | (char *) "self",(char *) "range", NULL | |
3014 | }; | |
3015 | ||
3016 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail; | |
3017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3018 | if (!SWIG_IsOK(res1)) { | |
3019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3020 | } | |
3021 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3022 | { | |
3023 | arg2 = &temp2; | |
3024 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3025 | } | |
3026 | { | |
3027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3028 | result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2); | |
3029 | wxPyEndAllowThreads(__tstate); | |
3030 | if (PyErr_Occurred()) SWIG_fail; | |
3031 | } | |
3032 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
3033 | return resultobj; | |
3034 | fail: | |
3035 | return NULL; | |
3036 | } | |
3037 | ||
3038 | ||
3039 | SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3040 | PyObject *resultobj = 0; | |
3041 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3042 | long arg2 ; | |
3043 | long arg3 ; | |
3044 | void *argp1 = 0 ; | |
3045 | int res1 = 0 ; | |
3046 | long val2 ; | |
3047 | int ecode2 = 0 ; | |
3048 | long val3 ; | |
3049 | int ecode3 = 0 ; | |
3050 | PyObject * obj0 = 0 ; | |
3051 | PyObject * obj1 = 0 ; | |
3052 | PyObject * obj2 = 0 ; | |
3053 | char * kwnames[] = { | |
3054 | (char *) "self",(char *) "start",(char *) "end", NULL | |
3055 | }; | |
3056 | ||
3057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3059 | if (!SWIG_IsOK(res1)) { | |
3060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3061 | } | |
3062 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3063 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3064 | if (!SWIG_IsOK(ecode2)) { | |
3065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'"); | |
3066 | } | |
3067 | arg2 = static_cast< long >(val2); | |
3068 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
3069 | if (!SWIG_IsOK(ecode3)) { | |
3070 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'"); | |
3071 | } | |
3072 | arg3 = static_cast< long >(val3); | |
3073 | { | |
3074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3075 | (arg1)->SetRange(arg2,arg3); | |
3076 | wxPyEndAllowThreads(__tstate); | |
3077 | if (PyErr_Occurred()) SWIG_fail; | |
3078 | } | |
3079 | resultobj = SWIG_Py_Void(); | |
3080 | return resultobj; | |
3081 | fail: | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
3086 | SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3087 | PyObject *resultobj = 0; | |
3088 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3089 | long arg2 ; | |
3090 | void *argp1 = 0 ; | |
3091 | int res1 = 0 ; | |
3092 | long val2 ; | |
3093 | int ecode2 = 0 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | PyObject * obj1 = 0 ; | |
3096 | char * kwnames[] = { | |
3097 | (char *) "self",(char *) "start", NULL | |
3098 | }; | |
3099 | ||
3100 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
3101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3102 | if (!SWIG_IsOK(res1)) { | |
3103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3104 | } | |
3105 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3106 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3107 | if (!SWIG_IsOK(ecode2)) { | |
3108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'"); | |
3109 | } | |
3110 | arg2 = static_cast< long >(val2); | |
3111 | { | |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | (arg1)->SetStart(arg2); | |
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) SWIG_fail; | |
3116 | } | |
3117 | resultobj = SWIG_Py_Void(); | |
3118 | return resultobj; | |
3119 | fail: | |
3120 | return NULL; | |
3121 | } | |
3122 | ||
3123 | ||
3124 | SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3125 | PyObject *resultobj = 0; | |
3126 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3127 | long result; | |
3128 | void *argp1 = 0 ; | |
3129 | int res1 = 0 ; | |
3130 | PyObject *swig_obj[1] ; | |
3131 | ||
3132 | if (!args) SWIG_fail; | |
3133 | swig_obj[0] = args; | |
3134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3135 | if (!SWIG_IsOK(res1)) { | |
3136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3137 | } | |
3138 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3139 | { | |
3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3141 | result = (long)((wxRichTextRange const *)arg1)->GetStart(); | |
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
3145 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3146 | return resultobj; | |
3147 | fail: | |
3148 | return NULL; | |
3149 | } | |
3150 | ||
3151 | ||
3152 | SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3153 | PyObject *resultobj = 0; | |
3154 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3155 | long arg2 ; | |
3156 | void *argp1 = 0 ; | |
3157 | int res1 = 0 ; | |
3158 | long val2 ; | |
3159 | int ecode2 = 0 ; | |
3160 | PyObject * obj0 = 0 ; | |
3161 | PyObject * obj1 = 0 ; | |
3162 | char * kwnames[] = { | |
3163 | (char *) "self",(char *) "end", NULL | |
3164 | }; | |
3165 | ||
3166 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
3167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3168 | if (!SWIG_IsOK(res1)) { | |
3169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3170 | } | |
3171 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3172 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3173 | if (!SWIG_IsOK(ecode2)) { | |
3174 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'"); | |
3175 | } | |
3176 | arg2 = static_cast< long >(val2); | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | (arg1)->SetEnd(arg2); | |
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | resultobj = SWIG_Py_Void(); | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
3190 | SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3191 | PyObject *resultobj = 0; | |
3192 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3193 | long result; | |
3194 | void *argp1 = 0 ; | |
3195 | int res1 = 0 ; | |
3196 | PyObject *swig_obj[1] ; | |
3197 | ||
3198 | if (!args) SWIG_fail; | |
3199 | swig_obj[0] = args; | |
3200 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3201 | if (!SWIG_IsOK(res1)) { | |
3202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3203 | } | |
3204 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | result = (long)((wxRichTextRange const *)arg1)->GetEnd(); | |
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
3211 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3212 | return resultobj; | |
3213 | fail: | |
3214 | return NULL; | |
3215 | } | |
3216 | ||
3217 | ||
3218 | SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3219 | PyObject *resultobj = 0; | |
3220 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3221 | wxRichTextRange *arg2 = 0 ; | |
3222 | bool result; | |
3223 | void *argp1 = 0 ; | |
3224 | int res1 = 0 ; | |
3225 | wxRichTextRange temp2 ; | |
3226 | PyObject * obj0 = 0 ; | |
3227 | PyObject * obj1 = 0 ; | |
3228 | char * kwnames[] = { | |
3229 | (char *) "self",(char *) "range", NULL | |
3230 | }; | |
3231 | ||
3232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail; | |
3233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3234 | if (!SWIG_IsOK(res1)) { | |
3235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3236 | } | |
3237 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3238 | { | |
3239 | arg2 = &temp2; | |
3240 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3241 | } | |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2); | |
3245 | wxPyEndAllowThreads(__tstate); | |
3246 | if (PyErr_Occurred()) SWIG_fail; | |
3247 | } | |
3248 | { | |
3249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3250 | } | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
3257 | SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3258 | PyObject *resultobj = 0; | |
3259 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3260 | wxRichTextRange *arg2 = 0 ; | |
3261 | bool result; | |
3262 | void *argp1 = 0 ; | |
3263 | int res1 = 0 ; | |
3264 | wxRichTextRange temp2 ; | |
3265 | PyObject * obj0 = 0 ; | |
3266 | PyObject * obj1 = 0 ; | |
3267 | char * kwnames[] = { | |
3268 | (char *) "self",(char *) "range", NULL | |
3269 | }; | |
3270 | ||
3271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail; | |
3272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3273 | if (!SWIG_IsOK(res1)) { | |
3274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3275 | } | |
3276 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3277 | { | |
3278 | arg2 = &temp2; | |
3279 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3280 | } | |
3281 | { | |
3282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3283 | result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2); | |
3284 | wxPyEndAllowThreads(__tstate); | |
3285 | if (PyErr_Occurred()) SWIG_fail; | |
3286 | } | |
3287 | { | |
3288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3289 | } | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj = 0; | |
3298 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3299 | long arg2 ; | |
3300 | bool result; | |
3301 | void *argp1 = 0 ; | |
3302 | int res1 = 0 ; | |
3303 | long val2 ; | |
3304 | int ecode2 = 0 ; | |
3305 | PyObject * obj0 = 0 ; | |
3306 | PyObject * obj1 = 0 ; | |
3307 | char * kwnames[] = { | |
3308 | (char *) "self",(char *) "pos", NULL | |
3309 | }; | |
3310 | ||
3311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail; | |
3312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3313 | if (!SWIG_IsOK(res1)) { | |
3314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3315 | } | |
3316 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3317 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
3318 | if (!SWIG_IsOK(ecode2)) { | |
3319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'"); | |
3320 | } | |
3321 | arg2 = static_cast< long >(val2); | |
3322 | { | |
3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3324 | result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2); | |
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | { | |
3329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3330 | } | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj = 0; | |
3339 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3340 | wxRichTextRange *arg2 = 0 ; | |
3341 | bool result; | |
3342 | void *argp1 = 0 ; | |
3343 | int res1 = 0 ; | |
3344 | wxRichTextRange temp2 ; | |
3345 | PyObject * obj0 = 0 ; | |
3346 | PyObject * obj1 = 0 ; | |
3347 | char * kwnames[] = { | |
3348 | (char *) "self",(char *) "range", NULL | |
3349 | }; | |
3350 | ||
3351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail; | |
3352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3353 | if (!SWIG_IsOK(res1)) { | |
3354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3355 | } | |
3356 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3357 | { | |
3358 | arg2 = &temp2; | |
3359 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
3360 | } | |
3361 | { | |
3362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3363 | result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2); | |
3364 | wxPyEndAllowThreads(__tstate); | |
3365 | if (PyErr_Occurred()) SWIG_fail; | |
3366 | } | |
3367 | { | |
3368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3369 | } | |
3370 | return resultobj; | |
3371 | fail: | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
3376 | SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3377 | PyObject *resultobj = 0; | |
3378 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3379 | long result; | |
3380 | void *argp1 = 0 ; | |
3381 | int res1 = 0 ; | |
3382 | PyObject *swig_obj[1] ; | |
3383 | ||
3384 | if (!args) SWIG_fail; | |
3385 | swig_obj[0] = args; | |
3386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3387 | if (!SWIG_IsOK(res1)) { | |
3388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'"); | |
3389 | } | |
3390 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3391 | { | |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | result = (long)((wxRichTextRange const *)arg1)->GetLength(); | |
3394 | wxPyEndAllowThreads(__tstate); | |
3395 | if (PyErr_Occurred()) SWIG_fail; | |
3396 | } | |
3397 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
3398 | return resultobj; | |
3399 | fail: | |
3400 | return NULL; | |
3401 | } | |
3402 | ||
3403 | ||
3404 | SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3405 | PyObject *resultobj = 0; | |
3406 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3407 | void *argp1 = 0 ; | |
3408 | int res1 = 0 ; | |
3409 | PyObject *swig_obj[1] ; | |
3410 | ||
3411 | if (!args) SWIG_fail; | |
3412 | swig_obj[0] = args; | |
3413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3414 | if (!SWIG_IsOK(res1)) { | |
3415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3416 | } | |
3417 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | (arg1)->Swap(); | |
3421 | wxPyEndAllowThreads(__tstate); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | resultobj = SWIG_Py_Void(); | |
3425 | return resultobj; | |
3426 | fail: | |
3427 | return NULL; | |
3428 | } | |
3429 | ||
3430 | ||
3431 | SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3432 | PyObject *resultobj = 0; | |
3433 | wxRichTextRange *arg1 = (wxRichTextRange *) 0 ; | |
3434 | PyObject *result = 0 ; | |
3435 | void *argp1 = 0 ; | |
3436 | int res1 = 0 ; | |
3437 | PyObject *swig_obj[1] ; | |
3438 | ||
3439 | if (!args) SWIG_fail; | |
3440 | swig_obj[0] = args; | |
3441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
3442 | if (!SWIG_IsOK(res1)) { | |
3443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'"); | |
3444 | } | |
3445 | arg1 = reinterpret_cast< wxRichTextRange * >(argp1); | |
3446 | { | |
3447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3448 | result = (PyObject *)wxRichTextRange_Get(arg1); | |
3449 | wxPyEndAllowThreads(__tstate); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | } | |
3452 | resultobj = result; | |
3453 | return resultobj; | |
3454 | fail: | |
3455 | return NULL; | |
3456 | } | |
3457 | ||
3458 | ||
3459 | SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3460 | PyObject *obj; | |
3461 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3462 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj)); | |
3463 | return SWIG_Py_Void(); | |
3464 | } | |
3465 | ||
3466 | SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3467 | return SWIG_Python_InitShadowInstance(args); | |
3468 | } | |
3469 | ||
3470 | SWIGINTERN int RICHTEXT_ALL_set(PyObject *) { | |
3471 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only."); | |
3472 | return 1; | |
3473 | } | |
3474 | ||
3475 | ||
3476 | SWIGINTERN PyObject *RICHTEXT_ALL_get(void) { | |
3477 | PyObject *pyobj = 0; | |
3478 | ||
3479 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3480 | return pyobj; | |
3481 | } | |
3482 | ||
3483 | ||
3484 | SWIGINTERN int RICHTEXT_NONE_set(PyObject *) { | |
3485 | SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only."); | |
3486 | return 1; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | SWIGINTERN PyObject *RICHTEXT_NONE_get(void) { | |
3491 | PyObject *pyobj = 0; | |
3492 | ||
3493 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 ); | |
3494 | return pyobj; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3499 | PyObject *resultobj = 0; | |
3500 | wxColour const &arg1_defvalue = wxNullColour ; | |
3501 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
3502 | wxColour const &arg2_defvalue = wxNullColour ; | |
3503 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3504 | wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
3505 | wxRichTextAttr *result = 0 ; | |
3506 | wxColour temp1 ; | |
3507 | wxColour temp2 ; | |
3508 | int val3 ; | |
3509 | int ecode3 = 0 ; | |
3510 | PyObject * obj0 = 0 ; | |
3511 | PyObject * obj1 = 0 ; | |
3512 | PyObject * obj2 = 0 ; | |
3513 | char * kwnames[] = { | |
3514 | (char *) "colText",(char *) "colBack",(char *) "alignment", NULL | |
3515 | }; | |
3516 | ||
3517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3518 | if (obj0) { | |
3519 | { | |
3520 | arg1 = &temp1; | |
3521 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
3522 | } | |
3523 | } | |
3524 | if (obj1) { | |
3525 | { | |
3526 | arg2 = &temp2; | |
3527 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3528 | } | |
3529 | } | |
3530 | if (obj2) { | |
3531 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3532 | if (!SWIG_IsOK(ecode3)) { | |
3533 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'"); | |
3534 | } | |
3535 | arg3 = static_cast< wxTextAttrAlignment >(val3); | |
3536 | } | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3); | |
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 ); | |
3544 | return resultobj; | |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3551 | PyObject *resultobj = 0; | |
3552 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3553 | void *argp1 = 0 ; | |
3554 | int res1 = 0 ; | |
3555 | PyObject *swig_obj[1] ; | |
3556 | ||
3557 | if (!args) SWIG_fail; | |
3558 | swig_obj[0] = args; | |
3559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 ); | |
3560 | if (!SWIG_IsOK(res1)) { | |
3561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3562 | } | |
3563 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3564 | { | |
3565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3566 | delete arg1; | |
3567 | ||
3568 | wxPyEndAllowThreads(__tstate); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | } | |
3571 | resultobj = SWIG_Py_Void(); | |
3572 | return resultobj; | |
3573 | fail: | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
3578 | SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3579 | PyObject *resultobj = 0; | |
3580 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
92515dfc | 3581 | wxFont result; |
06810ecf RD |
3582 | void *argp1 = 0 ; |
3583 | int res1 = 0 ; | |
3584 | PyObject *swig_obj[1] ; | |
3585 | ||
3586 | if (!args) SWIG_fail; | |
3587 | swig_obj[0] = args; | |
3588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3589 | if (!SWIG_IsOK(res1)) { | |
3590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
3591 | } | |
3592 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3593 | { | |
3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3595 | result = ((wxRichTextAttr const *)arg1)->CreateFont(); | |
3596 | wxPyEndAllowThreads(__tstate); | |
3597 | if (PyErr_Occurred()) SWIG_fail; | |
3598 | } | |
3599 | resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
3600 | return resultobj; | |
3601 | fail: | |
3602 | return NULL; | |
3603 | } | |
3604 | ||
3605 | ||
3606 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3607 | PyObject *resultobj = 0; | |
3608 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3609 | wxFont *arg2 = 0 ; | |
3610 | bool result; | |
3611 | void *argp1 = 0 ; | |
3612 | int res1 = 0 ; | |
3613 | void *argp2 = 0 ; | |
3614 | int res2 = 0 ; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | PyObject * obj1 = 0 ; | |
3617 | char * kwnames[] = { | |
3618 | (char *) "self",(char *) "font", NULL | |
3619 | }; | |
3620 | ||
3621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail; | |
3622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3623 | if (!SWIG_IsOK(res1)) { | |
3624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3625 | } | |
3626 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3627 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
3628 | if (!SWIG_IsOK(res2)) { | |
3629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3630 | } | |
3631 | if (!argp2) { | |
3632 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
3633 | } | |
3634 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
3635 | { | |
3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3637 | result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2); | |
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | { | |
3642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3643 | } | |
3644 | return resultobj; | |
3645 | fail: | |
3646 | return NULL; | |
3647 | } | |
3648 | ||
3649 | ||
3650 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3651 | PyObject *resultobj = 0; | |
3652 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3653 | wxColour *arg2 = 0 ; | |
3654 | void *argp1 = 0 ; | |
3655 | int res1 = 0 ; | |
3656 | wxColour temp2 ; | |
3657 | PyObject * obj0 = 0 ; | |
3658 | PyObject * obj1 = 0 ; | |
3659 | char * kwnames[] = { | |
3660 | (char *) "self",(char *) "colText", NULL | |
3661 | }; | |
3662 | ||
3663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3665 | if (!SWIG_IsOK(res1)) { | |
3666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3667 | } | |
3668 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3669 | { | |
3670 | arg2 = &temp2; | |
3671 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3672 | } | |
3673 | { | |
3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3675 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
3676 | wxPyEndAllowThreads(__tstate); | |
3677 | if (PyErr_Occurred()) SWIG_fail; | |
3678 | } | |
3679 | resultobj = SWIG_Py_Void(); | |
3680 | return resultobj; | |
3681 | fail: | |
3682 | return NULL; | |
3683 | } | |
3684 | ||
3685 | ||
3686 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3687 | PyObject *resultobj = 0; | |
3688 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3689 | wxColour *arg2 = 0 ; | |
3690 | void *argp1 = 0 ; | |
3691 | int res1 = 0 ; | |
3692 | wxColour temp2 ; | |
3693 | PyObject * obj0 = 0 ; | |
3694 | PyObject * obj1 = 0 ; | |
3695 | char * kwnames[] = { | |
3696 | (char *) "self",(char *) "colBack", NULL | |
3697 | }; | |
3698 | ||
3699 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
3700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3701 | if (!SWIG_IsOK(res1)) { | |
3702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3703 | } | |
3704 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3705 | { | |
3706 | arg2 = &temp2; | |
3707 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3708 | } | |
3709 | { | |
3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3711 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
3712 | wxPyEndAllowThreads(__tstate); | |
3713 | if (PyErr_Occurred()) SWIG_fail; | |
3714 | } | |
3715 | resultobj = SWIG_Py_Void(); | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | return NULL; | |
3719 | } | |
3720 | ||
3721 | ||
3722 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3723 | PyObject *resultobj = 0; | |
3724 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3725 | wxTextAttrAlignment arg2 ; | |
3726 | void *argp1 = 0 ; | |
3727 | int res1 = 0 ; | |
3728 | int val2 ; | |
3729 | int ecode2 = 0 ; | |
3730 | PyObject * obj0 = 0 ; | |
3731 | PyObject * obj1 = 0 ; | |
3732 | char * kwnames[] = { | |
3733 | (char *) "self",(char *) "alignment", NULL | |
3734 | }; | |
3735 | ||
3736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
3737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3738 | if (!SWIG_IsOK(res1)) { | |
3739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3740 | } | |
3741 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3743 | if (!SWIG_IsOK(ecode2)) { | |
3744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
3745 | } | |
3746 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
3747 | { | |
3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3749 | (arg1)->SetAlignment(arg2); | |
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | resultobj = SWIG_Py_Void(); | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3761 | PyObject *resultobj = 0; | |
3762 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3763 | wxArrayInt *arg2 = 0 ; | |
3764 | void *argp1 = 0 ; | |
3765 | int res1 = 0 ; | |
3766 | bool temp2 = false ; | |
3767 | PyObject * obj0 = 0 ; | |
3768 | PyObject * obj1 = 0 ; | |
3769 | char * kwnames[] = { | |
3770 | (char *) "self",(char *) "tabs", NULL | |
3771 | }; | |
3772 | ||
3773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail; | |
3774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3775 | if (!SWIG_IsOK(res1)) { | |
3776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3777 | } | |
3778 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3779 | { | |
3780 | if (! PySequence_Check(obj1)) { | |
3781 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
3782 | SWIG_fail; | |
3783 | } | |
3784 | arg2 = new wxArrayInt; | |
3785 | temp2 = true; | |
3786 | int i, len=PySequence_Length(obj1); | |
3787 | for (i=0; i<len; i++) { | |
3788 | PyObject* item = PySequence_GetItem(obj1, i); | |
3789 | PyObject* number = PyNumber_Int(item); | |
3790 | arg2->Add(PyInt_AS_LONG(number)); | |
3791 | Py_DECREF(item); | |
3792 | Py_DECREF(number); | |
3793 | } | |
3794 | } | |
3795 | { | |
3796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3797 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) SWIG_fail; | |
3800 | } | |
3801 | resultobj = SWIG_Py_Void(); | |
3802 | { | |
3803 | if (temp2) delete arg2; | |
3804 | } | |
3805 | return resultobj; | |
3806 | fail: | |
3807 | { | |
3808 | if (temp2) delete arg2; | |
3809 | } | |
3810 | return NULL; | |
3811 | } | |
3812 | ||
3813 | ||
3814 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3815 | PyObject *resultobj = 0; | |
3816 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3817 | int arg2 ; | |
3818 | int arg3 = (int) 0 ; | |
3819 | void *argp1 = 0 ; | |
3820 | int res1 = 0 ; | |
3821 | int val2 ; | |
3822 | int ecode2 = 0 ; | |
3823 | int val3 ; | |
3824 | int ecode3 = 0 ; | |
3825 | PyObject * obj0 = 0 ; | |
3826 | PyObject * obj1 = 0 ; | |
3827 | PyObject * obj2 = 0 ; | |
3828 | char * kwnames[] = { | |
3829 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
3830 | }; | |
3831 | ||
3832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
3833 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3834 | if (!SWIG_IsOK(res1)) { | |
3835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3836 | } | |
3837 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3838 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3839 | if (!SWIG_IsOK(ecode2)) { | |
3840 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
3841 | } | |
3842 | arg2 = static_cast< int >(val2); | |
3843 | if (obj2) { | |
3844 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
3845 | if (!SWIG_IsOK(ecode3)) { | |
3846 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
3847 | } | |
3848 | arg3 = static_cast< int >(val3); | |
3849 | } | |
3850 | { | |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3852 | (arg1)->SetLeftIndent(arg2,arg3); | |
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | resultobj = SWIG_Py_Void(); | |
3857 | return resultobj; | |
3858 | fail: | |
3859 | return NULL; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3864 | PyObject *resultobj = 0; | |
3865 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3866 | int arg2 ; | |
3867 | void *argp1 = 0 ; | |
3868 | int res1 = 0 ; | |
3869 | int val2 ; | |
3870 | int ecode2 = 0 ; | |
3871 | PyObject * obj0 = 0 ; | |
3872 | PyObject * obj1 = 0 ; | |
3873 | char * kwnames[] = { | |
3874 | (char *) "self",(char *) "indent", NULL | |
3875 | }; | |
3876 | ||
3877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
3878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3879 | if (!SWIG_IsOK(res1)) { | |
3880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3881 | } | |
3882 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3884 | if (!SWIG_IsOK(ecode2)) { | |
3885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
3886 | } | |
3887 | arg2 = static_cast< int >(val2); | |
3888 | { | |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3890 | (arg1)->SetRightIndent(arg2); | |
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | resultobj = SWIG_Py_Void(); | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
3901 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3902 | PyObject *resultobj = 0; | |
3903 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3904 | int arg2 ; | |
3905 | void *argp1 = 0 ; | |
3906 | int res1 = 0 ; | |
3907 | int val2 ; | |
3908 | int ecode2 = 0 ; | |
3909 | PyObject * obj0 = 0 ; | |
3910 | PyObject * obj1 = 0 ; | |
3911 | char * kwnames[] = { | |
3912 | (char *) "self",(char *) "pointSize", NULL | |
3913 | }; | |
3914 | ||
3915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
3916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3917 | if (!SWIG_IsOK(res1)) { | |
3918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3919 | } | |
3920 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3921 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3922 | if (!SWIG_IsOK(ecode2)) { | |
3923 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'"); | |
3924 | } | |
3925 | arg2 = static_cast< int >(val2); | |
3926 | { | |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | (arg1)->SetFontSize(arg2); | |
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) SWIG_fail; | |
3931 | } | |
3932 | resultobj = SWIG_Py_Void(); | |
3933 | return resultobj; | |
3934 | fail: | |
3935 | return NULL; | |
3936 | } | |
3937 | ||
3938 | ||
3939 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3940 | PyObject *resultobj = 0; | |
3941 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3942 | int arg2 ; | |
3943 | void *argp1 = 0 ; | |
3944 | int res1 = 0 ; | |
3945 | int val2 ; | |
3946 | int ecode2 = 0 ; | |
3947 | PyObject * obj0 = 0 ; | |
3948 | PyObject * obj1 = 0 ; | |
3949 | char * kwnames[] = { | |
3950 | (char *) "self",(char *) "fontStyle", NULL | |
3951 | }; | |
3952 | ||
3953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
3954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3955 | if (!SWIG_IsOK(res1)) { | |
3956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3957 | } | |
3958 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3959 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3960 | if (!SWIG_IsOK(ecode2)) { | |
3961 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'"); | |
3962 | } | |
3963 | arg2 = static_cast< int >(val2); | |
3964 | { | |
3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3966 | (arg1)->SetFontStyle(arg2); | |
3967 | wxPyEndAllowThreads(__tstate); | |
3968 | if (PyErr_Occurred()) SWIG_fail; | |
3969 | } | |
3970 | resultobj = SWIG_Py_Void(); | |
3971 | return resultobj; | |
3972 | fail: | |
3973 | return NULL; | |
3974 | } | |
3975 | ||
3976 | ||
3977 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3978 | PyObject *resultobj = 0; | |
3979 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
3980 | int arg2 ; | |
3981 | void *argp1 = 0 ; | |
3982 | int res1 = 0 ; | |
3983 | int val2 ; | |
3984 | int ecode2 = 0 ; | |
3985 | PyObject * obj0 = 0 ; | |
3986 | PyObject * obj1 = 0 ; | |
3987 | char * kwnames[] = { | |
3988 | (char *) "self",(char *) "fontWeight", NULL | |
3989 | }; | |
3990 | ||
3991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
3992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
3993 | if (!SWIG_IsOK(res1)) { | |
3994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
3995 | } | |
3996 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
3997 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
3998 | if (!SWIG_IsOK(ecode2)) { | |
3999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'"); | |
4000 | } | |
4001 | arg2 = static_cast< int >(val2); | |
4002 | { | |
4003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4004 | (arg1)->SetFontWeight(arg2); | |
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | resultobj = SWIG_Py_Void(); | |
4009 | return resultobj; | |
4010 | fail: | |
4011 | return NULL; | |
4012 | } | |
4013 | ||
4014 | ||
4015 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4016 | PyObject *resultobj = 0; | |
4017 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4018 | wxString *arg2 = 0 ; | |
4019 | void *argp1 = 0 ; | |
4020 | int res1 = 0 ; | |
4021 | bool temp2 = false ; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | PyObject * obj1 = 0 ; | |
4024 | char * kwnames[] = { | |
4025 | (char *) "self",(char *) "faceName", NULL | |
4026 | }; | |
4027 | ||
4028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4030 | if (!SWIG_IsOK(res1)) { | |
4031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4032 | } | |
4033 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4034 | { | |
4035 | arg2 = wxString_in_helper(obj1); | |
4036 | if (arg2 == NULL) SWIG_fail; | |
4037 | temp2 = true; | |
4038 | } | |
4039 | { | |
4040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4041 | (arg1)->SetFontFaceName((wxString const &)*arg2); | |
4042 | wxPyEndAllowThreads(__tstate); | |
4043 | if (PyErr_Occurred()) SWIG_fail; | |
4044 | } | |
4045 | resultobj = SWIG_Py_Void(); | |
4046 | { | |
4047 | if (temp2) | |
4048 | delete arg2; | |
4049 | } | |
4050 | return resultobj; | |
4051 | fail: | |
4052 | { | |
4053 | if (temp2) | |
4054 | delete arg2; | |
4055 | } | |
4056 | return NULL; | |
4057 | } | |
4058 | ||
4059 | ||
4060 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj = 0; | |
4062 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4063 | bool arg2 ; | |
4064 | void *argp1 = 0 ; | |
4065 | int res1 = 0 ; | |
4066 | bool val2 ; | |
4067 | int ecode2 = 0 ; | |
4068 | PyObject * obj0 = 0 ; | |
4069 | PyObject * obj1 = 0 ; | |
4070 | char * kwnames[] = { | |
4071 | (char *) "self",(char *) "underlined", NULL | |
4072 | }; | |
4073 | ||
4074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
4075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4076 | if (!SWIG_IsOK(res1)) { | |
4077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4078 | } | |
4079 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4080 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4081 | if (!SWIG_IsOK(ecode2)) { | |
4082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
4083 | } | |
4084 | arg2 = static_cast< bool >(val2); | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | (arg1)->SetFontUnderlined(arg2); | |
4088 | wxPyEndAllowThreads(__tstate); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | } | |
4091 | resultobj = SWIG_Py_Void(); | |
4092 | return resultobj; | |
4093 | fail: | |
4094 | return NULL; | |
4095 | } | |
4096 | ||
4097 | ||
4098 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4099 | PyObject *resultobj = 0; | |
4100 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4101 | long arg2 ; | |
4102 | void *argp1 = 0 ; | |
4103 | int res1 = 0 ; | |
4104 | long val2 ; | |
4105 | int ecode2 = 0 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | PyObject * obj1 = 0 ; | |
4108 | char * kwnames[] = { | |
4109 | (char *) "self",(char *) "flags", NULL | |
4110 | }; | |
4111 | ||
4112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
4113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4114 | if (!SWIG_IsOK(res1)) { | |
4115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4116 | } | |
4117 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4118 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4119 | if (!SWIG_IsOK(ecode2)) { | |
4120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'"); | |
4121 | } | |
4122 | arg2 = static_cast< long >(val2); | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | (arg1)->SetFlags(arg2); | |
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | resultobj = SWIG_Py_Void(); | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4137 | PyObject *resultobj = 0; | |
4138 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4139 | wxString *arg2 = 0 ; | |
4140 | void *argp1 = 0 ; | |
4141 | int res1 = 0 ; | |
4142 | bool temp2 = false ; | |
4143 | PyObject * obj0 = 0 ; | |
4144 | PyObject * obj1 = 0 ; | |
4145 | char * kwnames[] = { | |
4146 | (char *) "self",(char *) "name", NULL | |
4147 | }; | |
4148 | ||
4149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4151 | if (!SWIG_IsOK(res1)) { | |
4152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4153 | } | |
4154 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4155 | { | |
4156 | arg2 = wxString_in_helper(obj1); | |
4157 | if (arg2 == NULL) SWIG_fail; | |
4158 | temp2 = true; | |
4159 | } | |
4160 | { | |
4161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4162 | (arg1)->SetCharacterStyleName((wxString const &)*arg2); | |
4163 | wxPyEndAllowThreads(__tstate); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
4166 | resultobj = SWIG_Py_Void(); | |
4167 | { | |
4168 | if (temp2) | |
4169 | delete arg2; | |
4170 | } | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | { | |
4174 | if (temp2) | |
4175 | delete arg2; | |
4176 | } | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4182 | PyObject *resultobj = 0; | |
4183 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4184 | wxString *arg2 = 0 ; | |
4185 | void *argp1 = 0 ; | |
4186 | int res1 = 0 ; | |
4187 | bool temp2 = false ; | |
4188 | PyObject * obj0 = 0 ; | |
4189 | PyObject * obj1 = 0 ; | |
4190 | char * kwnames[] = { | |
4191 | (char *) "self",(char *) "name", NULL | |
4192 | }; | |
4193 | ||
4194 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4196 | if (!SWIG_IsOK(res1)) { | |
4197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4198 | } | |
4199 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4200 | { | |
4201 | arg2 = wxString_in_helper(obj1); | |
4202 | if (arg2 == NULL) SWIG_fail; | |
4203 | temp2 = true; | |
4204 | } | |
4205 | { | |
4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4207 | (arg1)->SetParagraphStyleName((wxString const &)*arg2); | |
4208 | wxPyEndAllowThreads(__tstate); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | } | |
4211 | resultobj = SWIG_Py_Void(); | |
4212 | { | |
4213 | if (temp2) | |
4214 | delete arg2; | |
4215 | } | |
4216 | return resultobj; | |
4217 | fail: | |
4218 | { | |
4219 | if (temp2) | |
4220 | delete arg2; | |
4221 | } | |
4222 | return NULL; | |
4223 | } | |
4224 | ||
4225 | ||
4226 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4227 | PyObject *resultobj = 0; | |
4228 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4229 | int arg2 ; | |
4230 | void *argp1 = 0 ; | |
4231 | int res1 = 0 ; | |
4232 | int val2 ; | |
4233 | int ecode2 = 0 ; | |
4234 | PyObject * obj0 = 0 ; | |
4235 | PyObject * obj1 = 0 ; | |
4236 | char * kwnames[] = { | |
4237 | (char *) "self",(char *) "spacing", NULL | |
4238 | }; | |
4239 | ||
4240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail; | |
4241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4242 | if (!SWIG_IsOK(res1)) { | |
4243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4244 | } | |
4245 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4247 | if (!SWIG_IsOK(ecode2)) { | |
4248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'"); | |
4249 | } | |
4250 | arg2 = static_cast< int >(val2); | |
4251 | { | |
4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4253 | (arg1)->SetParagraphSpacingAfter(arg2); | |
4254 | wxPyEndAllowThreads(__tstate); | |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | resultobj = SWIG_Py_Void(); | |
4258 | return resultobj; | |
4259 | fail: | |
4260 | return NULL; | |
4261 | } | |
4262 | ||
4263 | ||
4264 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4265 | PyObject *resultobj = 0; | |
4266 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4267 | int arg2 ; | |
4268 | void *argp1 = 0 ; | |
4269 | int res1 = 0 ; | |
4270 | int val2 ; | |
4271 | int ecode2 = 0 ; | |
4272 | PyObject * obj0 = 0 ; | |
4273 | PyObject * obj1 = 0 ; | |
4274 | char * kwnames[] = { | |
4275 | (char *) "self",(char *) "spacing", NULL | |
4276 | }; | |
4277 | ||
4278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail; | |
4279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4280 | if (!SWIG_IsOK(res1)) { | |
4281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4282 | } | |
4283 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4285 | if (!SWIG_IsOK(ecode2)) { | |
4286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'"); | |
4287 | } | |
4288 | arg2 = static_cast< int >(val2); | |
4289 | { | |
4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4291 | (arg1)->SetParagraphSpacingBefore(arg2); | |
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4295 | resultobj = SWIG_Py_Void(); | |
4296 | return resultobj; | |
4297 | fail: | |
4298 | return NULL; | |
4299 | } | |
4300 | ||
4301 | ||
4302 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4303 | PyObject *resultobj = 0; | |
4304 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4305 | int arg2 ; | |
4306 | void *argp1 = 0 ; | |
4307 | int res1 = 0 ; | |
4308 | int val2 ; | |
4309 | int ecode2 = 0 ; | |
4310 | PyObject * obj0 = 0 ; | |
4311 | PyObject * obj1 = 0 ; | |
4312 | char * kwnames[] = { | |
4313 | (char *) "self",(char *) "spacing", NULL | |
4314 | }; | |
4315 | ||
4316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
4317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4318 | if (!SWIG_IsOK(res1)) { | |
4319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4320 | } | |
4321 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4322 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4323 | if (!SWIG_IsOK(ecode2)) { | |
4324 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
4325 | } | |
4326 | arg2 = static_cast< int >(val2); | |
4327 | { | |
4328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4329 | (arg1)->SetLineSpacing(arg2); | |
4330 | wxPyEndAllowThreads(__tstate); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | resultobj = SWIG_Py_Void(); | |
4334 | return resultobj; | |
4335 | fail: | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj = 0; | |
4342 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4343 | int arg2 ; | |
4344 | void *argp1 = 0 ; | |
4345 | int res1 = 0 ; | |
4346 | int val2 ; | |
4347 | int ecode2 = 0 ; | |
4348 | PyObject * obj0 = 0 ; | |
4349 | PyObject * obj1 = 0 ; | |
4350 | char * kwnames[] = { | |
4351 | (char *) "self",(char *) "style", NULL | |
4352 | }; | |
4353 | ||
4354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
4355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4356 | if (!SWIG_IsOK(res1)) { | |
4357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4358 | } | |
4359 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4361 | if (!SWIG_IsOK(ecode2)) { | |
4362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'"); | |
4363 | } | |
4364 | arg2 = static_cast< int >(val2); | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | (arg1)->SetBulletStyle(arg2); | |
4368 | wxPyEndAllowThreads(__tstate); | |
4369 | if (PyErr_Occurred()) SWIG_fail; | |
4370 | } | |
4371 | resultobj = SWIG_Py_Void(); | |
4372 | return resultobj; | |
4373 | fail: | |
4374 | return NULL; | |
4375 | } | |
4376 | ||
4377 | ||
4378 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4379 | PyObject *resultobj = 0; | |
4380 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4381 | int arg2 ; | |
4382 | void *argp1 = 0 ; | |
4383 | int res1 = 0 ; | |
4384 | int val2 ; | |
4385 | int ecode2 = 0 ; | |
4386 | PyObject * obj0 = 0 ; | |
4387 | PyObject * obj1 = 0 ; | |
4388 | char * kwnames[] = { | |
4389 | (char *) "self",(char *) "n", NULL | |
4390 | }; | |
4391 | ||
4392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail; | |
4393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4394 | if (!SWIG_IsOK(res1)) { | |
4395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4396 | } | |
4397 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4398 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4399 | if (!SWIG_IsOK(ecode2)) { | |
4400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'"); | |
4401 | } | |
4402 | arg2 = static_cast< int >(val2); | |
4403 | { | |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4405 | (arg1)->SetBulletNumber(arg2); | |
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4409 | resultobj = SWIG_Py_Void(); | |
4410 | return resultobj; | |
4411 | fail: | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
70d7cb34 | 4416 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
06810ecf RD |
4417 | PyObject *resultobj = 0; |
4418 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4419 | wxChar arg2 ; | |
4420 | void *argp1 = 0 ; | |
4421 | int res1 = 0 ; | |
4422 | void *argp2 ; | |
4423 | int res2 = 0 ; | |
4424 | PyObject * obj0 = 0 ; | |
4425 | PyObject * obj1 = 0 ; | |
4426 | char * kwnames[] = { | |
4427 | (char *) "self",(char *) "symbol", NULL | |
4428 | }; | |
4429 | ||
70d7cb34 | 4430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletText",kwnames,&obj0,&obj1)) SWIG_fail; |
06810ecf RD |
4431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); |
4432 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 4433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); |
06810ecf RD |
4434 | } |
4435 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4436 | { | |
4437 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0); | |
4438 | if (!SWIG_IsOK(res2)) { | |
70d7cb34 | 4439 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'"); |
06810ecf RD |
4440 | } |
4441 | if (!argp2) { | |
70d7cb34 | 4442 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletText" "', expected argument " "2"" of type '" "wxChar""'"); |
06810ecf RD |
4443 | } else { |
4444 | wxChar * temp = reinterpret_cast< wxChar * >(argp2); | |
4445 | arg2 = *temp; | |
4446 | if (SWIG_IsNewObj(res2)) delete temp; | |
4447 | } | |
4448 | } | |
4449 | { | |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70d7cb34 | 4451 | (arg1)->SetBulletText(arg2); |
06810ecf RD |
4452 | wxPyEndAllowThreads(__tstate); |
4453 | if (PyErr_Occurred()) SWIG_fail; | |
4454 | } | |
4455 | resultobj = SWIG_Py_Void(); | |
4456 | return resultobj; | |
4457 | fail: | |
4458 | return NULL; | |
4459 | } | |
4460 | ||
4461 | ||
b39fe951 RD |
4462 | SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4463 | PyObject *resultobj = 0; | |
4464 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4465 | wxString *arg2 = 0 ; | |
4466 | void *argp1 = 0 ; | |
4467 | int res1 = 0 ; | |
4468 | bool temp2 = false ; | |
4469 | PyObject * obj0 = 0 ; | |
4470 | PyObject * obj1 = 0 ; | |
4471 | char * kwnames[] = { | |
4472 | (char *) "self",(char *) "bulletFont", NULL | |
4473 | }; | |
4474 | ||
4475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
4476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4477 | if (!SWIG_IsOK(res1)) { | |
4478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr *""'"); | |
4479 | } | |
4480 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4481 | { | |
4482 | arg2 = wxString_in_helper(obj1); | |
4483 | if (arg2 == NULL) SWIG_fail; | |
4484 | temp2 = true; | |
4485 | } | |
4486 | { | |
4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4488 | (arg1)->SetBulletFont((wxString const &)*arg2); | |
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | resultobj = SWIG_Py_Void(); | |
4493 | { | |
4494 | if (temp2) | |
4495 | delete arg2; | |
4496 | } | |
4497 | return resultobj; | |
4498 | fail: | |
4499 | { | |
4500 | if (temp2) | |
4501 | delete arg2; | |
4502 | } | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
06810ecf RD |
4507 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4508 | PyObject *resultobj = 0; | |
4509 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4510 | wxColour *result = 0 ; | |
4511 | void *argp1 = 0 ; | |
4512 | int res1 = 0 ; | |
4513 | PyObject *swig_obj[1] ; | |
4514 | ||
4515 | if (!args) SWIG_fail; | |
4516 | swig_obj[0] = args; | |
4517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4518 | if (!SWIG_IsOK(res1)) { | |
4519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4520 | } | |
4521 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4522 | { | |
4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4524 | { | |
4525 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour(); | |
4526 | result = (wxColour *) &_result_ref; | |
4527 | } | |
4528 | wxPyEndAllowThreads(__tstate); | |
4529 | if (PyErr_Occurred()) SWIG_fail; | |
4530 | } | |
4531 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4532 | return resultobj; | |
4533 | fail: | |
4534 | return NULL; | |
4535 | } | |
4536 | ||
4537 | ||
4538 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4539 | PyObject *resultobj = 0; | |
4540 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4541 | wxColour *result = 0 ; | |
4542 | void *argp1 = 0 ; | |
4543 | int res1 = 0 ; | |
4544 | PyObject *swig_obj[1] ; | |
4545 | ||
4546 | if (!args) SWIG_fail; | |
4547 | swig_obj[0] = args; | |
4548 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4549 | if (!SWIG_IsOK(res1)) { | |
4550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4551 | } | |
4552 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4553 | { | |
4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4555 | { | |
4556 | wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour(); | |
4557 | result = (wxColour *) &_result_ref; | |
4558 | } | |
4559 | wxPyEndAllowThreads(__tstate); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | } | |
4562 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4570 | PyObject *resultobj = 0; | |
4571 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4572 | wxTextAttrAlignment result; | |
4573 | void *argp1 = 0 ; | |
4574 | int res1 = 0 ; | |
4575 | PyObject *swig_obj[1] ; | |
4576 | ||
4577 | if (!args) SWIG_fail; | |
4578 | swig_obj[0] = args; | |
4579 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4580 | if (!SWIG_IsOK(res1)) { | |
4581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4582 | } | |
4583 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment(); | |
4587 | wxPyEndAllowThreads(__tstate); | |
4588 | if (PyErr_Occurred()) SWIG_fail; | |
4589 | } | |
4590 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4591 | return resultobj; | |
4592 | fail: | |
4593 | return NULL; | |
4594 | } | |
4595 | ||
4596 | ||
4597 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4598 | PyObject *resultobj = 0; | |
4599 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4600 | wxArrayInt *result = 0 ; | |
4601 | void *argp1 = 0 ; | |
4602 | int res1 = 0 ; | |
4603 | PyObject *swig_obj[1] ; | |
4604 | ||
4605 | if (!args) SWIG_fail; | |
4606 | swig_obj[0] = args; | |
4607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4608 | if (!SWIG_IsOK(res1)) { | |
4609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4610 | } | |
4611 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4612 | { | |
4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4614 | { | |
4615 | wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs(); | |
4616 | result = (wxArrayInt *) &_result_ref; | |
4617 | } | |
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | { | |
b39fe951 | 4622 | resultobj = wxArrayInt2PyList_helper(*result); |
06810ecf RD |
4623 | } |
4624 | return resultobj; | |
4625 | fail: | |
4626 | return NULL; | |
4627 | } | |
4628 | ||
4629 | ||
4630 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4631 | PyObject *resultobj = 0; | |
4632 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4633 | long result; | |
4634 | void *argp1 = 0 ; | |
4635 | int res1 = 0 ; | |
4636 | PyObject *swig_obj[1] ; | |
4637 | ||
4638 | if (!args) SWIG_fail; | |
4639 | swig_obj[0] = args; | |
4640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4641 | if (!SWIG_IsOK(res1)) { | |
4642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4643 | } | |
4644 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4645 | { | |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4647 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent(); | |
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
4650 | } | |
4651 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
4658 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4659 | PyObject *resultobj = 0; | |
4660 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4661 | long result; | |
4662 | void *argp1 = 0 ; | |
4663 | int res1 = 0 ; | |
4664 | PyObject *swig_obj[1] ; | |
4665 | ||
4666 | if (!args) SWIG_fail; | |
4667 | swig_obj[0] = args; | |
4668 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4669 | if (!SWIG_IsOK(res1)) { | |
4670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4671 | } | |
4672 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4673 | { | |
4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4675 | result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent(); | |
4676 | wxPyEndAllowThreads(__tstate); | |
4677 | if (PyErr_Occurred()) SWIG_fail; | |
4678 | } | |
4679 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4680 | return resultobj; | |
4681 | fail: | |
4682 | return NULL; | |
4683 | } | |
4684 | ||
4685 | ||
4686 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4687 | PyObject *resultobj = 0; | |
4688 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4689 | long result; | |
4690 | void *argp1 = 0 ; | |
4691 | int res1 = 0 ; | |
4692 | PyObject *swig_obj[1] ; | |
4693 | ||
4694 | if (!args) SWIG_fail; | |
4695 | swig_obj[0] = args; | |
4696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4697 | if (!SWIG_IsOK(res1)) { | |
4698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4699 | } | |
4700 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4701 | { | |
4702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4703 | result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent(); | |
4704 | wxPyEndAllowThreads(__tstate); | |
4705 | if (PyErr_Occurred()) SWIG_fail; | |
4706 | } | |
4707 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4708 | return resultobj; | |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4715 | PyObject *resultobj = 0; | |
4716 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4717 | long result; | |
4718 | void *argp1 = 0 ; | |
4719 | int res1 = 0 ; | |
4720 | PyObject *swig_obj[1] ; | |
4721 | ||
4722 | if (!args) SWIG_fail; | |
4723 | swig_obj[0] = args; | |
4724 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4725 | if (!SWIG_IsOK(res1)) { | |
4726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4727 | } | |
4728 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4729 | { | |
4730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4731 | result = (long)((wxRichTextAttr const *)arg1)->GetFlags(); | |
4732 | wxPyEndAllowThreads(__tstate); | |
4733 | if (PyErr_Occurred()) SWIG_fail; | |
4734 | } | |
4735 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
4742 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4743 | PyObject *resultobj = 0; | |
4744 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4745 | int result; | |
4746 | void *argp1 = 0 ; | |
4747 | int res1 = 0 ; | |
4748 | PyObject *swig_obj[1] ; | |
4749 | ||
4750 | if (!args) SWIG_fail; | |
4751 | swig_obj[0] = args; | |
4752 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4753 | if (!SWIG_IsOK(res1)) { | |
4754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4755 | } | |
4756 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4757 | { | |
4758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4759 | result = (int)((wxRichTextAttr const *)arg1)->GetFontSize(); | |
4760 | wxPyEndAllowThreads(__tstate); | |
4761 | if (PyErr_Occurred()) SWIG_fail; | |
4762 | } | |
4763 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4764 | return resultobj; | |
4765 | fail: | |
4766 | return NULL; | |
4767 | } | |
4768 | ||
4769 | ||
4770 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4771 | PyObject *resultobj = 0; | |
4772 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4773 | int result; | |
4774 | void *argp1 = 0 ; | |
4775 | int res1 = 0 ; | |
4776 | PyObject *swig_obj[1] ; | |
4777 | ||
4778 | if (!args) SWIG_fail; | |
4779 | swig_obj[0] = args; | |
4780 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4781 | if (!SWIG_IsOK(res1)) { | |
4782 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4783 | } | |
4784 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4785 | { | |
4786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4787 | result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle(); | |
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
4791 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4799 | PyObject *resultobj = 0; | |
4800 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4801 | int result; | |
4802 | void *argp1 = 0 ; | |
4803 | int res1 = 0 ; | |
4804 | PyObject *swig_obj[1] ; | |
4805 | ||
4806 | if (!args) SWIG_fail; | |
4807 | swig_obj[0] = args; | |
4808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4809 | if (!SWIG_IsOK(res1)) { | |
4810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4811 | } | |
4812 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight(); | |
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4819 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
4826 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4827 | PyObject *resultobj = 0; | |
4828 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4829 | bool result; | |
4830 | void *argp1 = 0 ; | |
4831 | int res1 = 0 ; | |
4832 | PyObject *swig_obj[1] ; | |
4833 | ||
4834 | if (!args) SWIG_fail; | |
4835 | swig_obj[0] = args; | |
4836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4837 | if (!SWIG_IsOK(res1)) { | |
4838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4839 | } | |
4840 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4841 | { | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined(); | |
4844 | wxPyEndAllowThreads(__tstate); | |
4845 | if (PyErr_Occurred()) SWIG_fail; | |
4846 | } | |
4847 | { | |
4848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4849 | } | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
4856 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4857 | PyObject *resultobj = 0; | |
4858 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4859 | wxString *result = 0 ; | |
4860 | void *argp1 = 0 ; | |
4861 | int res1 = 0 ; | |
4862 | PyObject *swig_obj[1] ; | |
4863 | ||
4864 | if (!args) SWIG_fail; | |
4865 | swig_obj[0] = args; | |
4866 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4867 | if (!SWIG_IsOK(res1)) { | |
4868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4869 | } | |
4870 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | { | |
4874 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName(); | |
4875 | result = (wxString *) &_result_ref; | |
4876 | } | |
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
4880 | { | |
4881 | #if wxUSE_UNICODE | |
4882 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4883 | #else | |
4884 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4885 | #endif | |
4886 | } | |
4887 | return resultobj; | |
4888 | fail: | |
4889 | return NULL; | |
4890 | } | |
4891 | ||
4892 | ||
4893 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4894 | PyObject *resultobj = 0; | |
4895 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4896 | wxString *result = 0 ; | |
4897 | void *argp1 = 0 ; | |
4898 | int res1 = 0 ; | |
4899 | PyObject *swig_obj[1] ; | |
4900 | ||
4901 | if (!args) SWIG_fail; | |
4902 | swig_obj[0] = args; | |
4903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4904 | if (!SWIG_IsOK(res1)) { | |
4905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4906 | } | |
4907 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4908 | { | |
4909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4910 | { | |
4911 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName(); | |
4912 | result = (wxString *) &_result_ref; | |
4913 | } | |
4914 | wxPyEndAllowThreads(__tstate); | |
4915 | if (PyErr_Occurred()) SWIG_fail; | |
4916 | } | |
4917 | { | |
4918 | #if wxUSE_UNICODE | |
4919 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4920 | #else | |
4921 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4922 | #endif | |
4923 | } | |
4924 | return resultobj; | |
4925 | fail: | |
4926 | return NULL; | |
4927 | } | |
4928 | ||
4929 | ||
4930 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4931 | PyObject *resultobj = 0; | |
4932 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4933 | wxString *result = 0 ; | |
4934 | void *argp1 = 0 ; | |
4935 | int res1 = 0 ; | |
4936 | PyObject *swig_obj[1] ; | |
4937 | ||
4938 | if (!args) SWIG_fail; | |
4939 | swig_obj[0] = args; | |
4940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4941 | if (!SWIG_IsOK(res1)) { | |
4942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4943 | } | |
4944 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4945 | { | |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | { | |
4948 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName(); | |
4949 | result = (wxString *) &_result_ref; | |
4950 | } | |
4951 | wxPyEndAllowThreads(__tstate); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | } | |
4954 | { | |
4955 | #if wxUSE_UNICODE | |
4956 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4957 | #else | |
4958 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4959 | #endif | |
4960 | } | |
4961 | return resultobj; | |
4962 | fail: | |
4963 | return NULL; | |
4964 | } | |
4965 | ||
4966 | ||
4967 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4968 | PyObject *resultobj = 0; | |
4969 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4970 | int result; | |
4971 | void *argp1 = 0 ; | |
4972 | int res1 = 0 ; | |
4973 | PyObject *swig_obj[1] ; | |
4974 | ||
4975 | if (!args) SWIG_fail; | |
4976 | swig_obj[0] = args; | |
4977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
4978 | if (!SWIG_IsOK(res1)) { | |
4979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
4980 | } | |
4981 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter(); | |
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4996 | PyObject *resultobj = 0; | |
4997 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
4998 | int result; | |
4999 | void *argp1 = 0 ; | |
5000 | int res1 = 0 ; | |
5001 | PyObject *swig_obj[1] ; | |
5002 | ||
5003 | if (!args) SWIG_fail; | |
5004 | swig_obj[0] = args; | |
5005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5006 | if (!SWIG_IsOK(res1)) { | |
5007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5008 | } | |
5009 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore(); | |
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5017 | return resultobj; | |
5018 | fail: | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5024 | PyObject *resultobj = 0; | |
5025 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5026 | int result; | |
5027 | void *argp1 = 0 ; | |
5028 | int res1 = 0 ; | |
5029 | PyObject *swig_obj[1] ; | |
5030 | ||
5031 | if (!args) SWIG_fail; | |
5032 | swig_obj[0] = args; | |
5033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5034 | if (!SWIG_IsOK(res1)) { | |
5035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5036 | } | |
5037 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5038 | { | |
5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5040 | result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing(); | |
5041 | wxPyEndAllowThreads(__tstate); | |
5042 | if (PyErr_Occurred()) SWIG_fail; | |
5043 | } | |
5044 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5045 | return resultobj; | |
5046 | fail: | |
5047 | return NULL; | |
5048 | } | |
5049 | ||
5050 | ||
5051 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5052 | PyObject *resultobj = 0; | |
5053 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5054 | int result; | |
5055 | void *argp1 = 0 ; | |
5056 | int res1 = 0 ; | |
5057 | PyObject *swig_obj[1] ; | |
5058 | ||
5059 | if (!args) SWIG_fail; | |
5060 | swig_obj[0] = args; | |
5061 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5062 | if (!SWIG_IsOK(res1)) { | |
5063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5064 | } | |
5065 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5066 | { | |
5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5068 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle(); | |
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5080 | PyObject *resultobj = 0; | |
5081 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5082 | int result; | |
5083 | void *argp1 = 0 ; | |
5084 | int res1 = 0 ; | |
5085 | PyObject *swig_obj[1] ; | |
5086 | ||
5087 | if (!args) SWIG_fail; | |
5088 | swig_obj[0] = args; | |
5089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5090 | if (!SWIG_IsOK(res1)) { | |
5091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5092 | } | |
5093 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5094 | { | |
5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5096 | result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber(); | |
5097 | wxPyEndAllowThreads(__tstate); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | } | |
5100 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5101 | return resultobj; | |
5102 | fail: | |
5103 | return NULL; | |
5104 | } | |
5105 | ||
5106 | ||
70d7cb34 | 5107 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
06810ecf RD |
5108 | PyObject *resultobj = 0; |
5109 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
70d7cb34 | 5110 | wxString *result = 0 ; |
06810ecf RD |
5111 | void *argp1 = 0 ; |
5112 | int res1 = 0 ; | |
5113 | PyObject *swig_obj[1] ; | |
5114 | ||
5115 | if (!args) SWIG_fail; | |
5116 | swig_obj[0] = args; | |
5117 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5118 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 5119 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); |
06810ecf RD |
5120 | } |
5121 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5122 | { | |
5123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70d7cb34 RD |
5124 | { |
5125 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletText(); | |
5126 | result = (wxString *) &_result_ref; | |
5127 | } | |
06810ecf RD |
5128 | wxPyEndAllowThreads(__tstate); |
5129 | if (PyErr_Occurred()) SWIG_fail; | |
5130 | } | |
70d7cb34 RD |
5131 | { |
5132 | #if wxUSE_UNICODE | |
5133 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5134 | #else | |
5135 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5136 | #endif | |
5137 | } | |
06810ecf RD |
5138 | return resultobj; |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
b39fe951 RD |
5144 | SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5145 | PyObject *resultobj = 0; | |
5146 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5147 | wxString *result = 0 ; | |
5148 | void *argp1 = 0 ; | |
5149 | int res1 = 0 ; | |
5150 | PyObject *swig_obj[1] ; | |
5151 | ||
5152 | if (!args) SWIG_fail; | |
5153 | swig_obj[0] = args; | |
5154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5155 | if (!SWIG_IsOK(res1)) { | |
5156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5157 | } | |
5158 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5159 | { | |
5160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5161 | { | |
5162 | wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletFont(); | |
5163 | result = (wxString *) &_result_ref; | |
5164 | } | |
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | { | |
5169 | #if wxUSE_UNICODE | |
5170 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5171 | #else | |
5172 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5173 | #endif | |
5174 | } | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
06810ecf RD |
5181 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5182 | PyObject *resultobj = 0; | |
5183 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5184 | bool result; | |
5185 | void *argp1 = 0 ; | |
5186 | int res1 = 0 ; | |
5187 | PyObject *swig_obj[1] ; | |
5188 | ||
5189 | if (!args) SWIG_fail; | |
5190 | swig_obj[0] = args; | |
5191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5192 | if (!SWIG_IsOK(res1)) { | |
5193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5194 | } | |
5195 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour(); | |
5199 | wxPyEndAllowThreads(__tstate); | |
5200 | if (PyErr_Occurred()) SWIG_fail; | |
5201 | } | |
5202 | { | |
5203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5204 | } | |
5205 | return resultobj; | |
5206 | fail: | |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
5211 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5212 | PyObject *resultobj = 0; | |
5213 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5214 | bool result; | |
5215 | void *argp1 = 0 ; | |
5216 | int res1 = 0 ; | |
5217 | PyObject *swig_obj[1] ; | |
5218 | ||
5219 | if (!args) SWIG_fail; | |
5220 | swig_obj[0] = args; | |
5221 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5222 | if (!SWIG_IsOK(res1)) { | |
5223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5224 | } | |
5225 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5226 | { | |
5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5228 | result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour(); | |
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | { | |
5233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5234 | } | |
5235 | return resultobj; | |
5236 | fail: | |
5237 | return NULL; | |
5238 | } | |
5239 | ||
5240 | ||
5241 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5242 | PyObject *resultobj = 0; | |
5243 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5244 | bool result; | |
5245 | void *argp1 = 0 ; | |
5246 | int res1 = 0 ; | |
5247 | PyObject *swig_obj[1] ; | |
5248 | ||
5249 | if (!args) SWIG_fail; | |
5250 | swig_obj[0] = args; | |
5251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5252 | if (!SWIG_IsOK(res1)) { | |
5253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5254 | } | |
5255 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5256 | { | |
5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5258 | result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment(); | |
5259 | wxPyEndAllowThreads(__tstate); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
5262 | { | |
5263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5264 | } | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | return NULL; | |
5268 | } | |
5269 | ||
5270 | ||
5271 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5272 | PyObject *resultobj = 0; | |
5273 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5274 | bool result; | |
5275 | void *argp1 = 0 ; | |
5276 | int res1 = 0 ; | |
5277 | PyObject *swig_obj[1] ; | |
5278 | ||
5279 | if (!args) SWIG_fail; | |
5280 | swig_obj[0] = args; | |
5281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5282 | if (!SWIG_IsOK(res1)) { | |
5283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5284 | } | |
5285 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5286 | { | |
5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5288 | result = (bool)((wxRichTextAttr const *)arg1)->HasTabs(); | |
5289 | wxPyEndAllowThreads(__tstate); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | } | |
5292 | { | |
5293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5294 | } | |
5295 | return resultobj; | |
5296 | fail: | |
5297 | return NULL; | |
5298 | } | |
5299 | ||
5300 | ||
5301 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5302 | PyObject *resultobj = 0; | |
5303 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5304 | bool result; | |
5305 | void *argp1 = 0 ; | |
5306 | int res1 = 0 ; | |
5307 | PyObject *swig_obj[1] ; | |
5308 | ||
5309 | if (!args) SWIG_fail; | |
5310 | swig_obj[0] = args; | |
5311 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5312 | if (!SWIG_IsOK(res1)) { | |
5313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5314 | } | |
5315 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5316 | { | |
5317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5318 | result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent(); | |
5319 | wxPyEndAllowThreads(__tstate); | |
5320 | if (PyErr_Occurred()) SWIG_fail; | |
5321 | } | |
5322 | { | |
5323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5324 | } | |
5325 | return resultobj; | |
5326 | fail: | |
5327 | return NULL; | |
5328 | } | |
5329 | ||
5330 | ||
5331 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5332 | PyObject *resultobj = 0; | |
5333 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5334 | bool result; | |
5335 | void *argp1 = 0 ; | |
5336 | int res1 = 0 ; | |
5337 | PyObject *swig_obj[1] ; | |
5338 | ||
5339 | if (!args) SWIG_fail; | |
5340 | swig_obj[0] = args; | |
5341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5342 | if (!SWIG_IsOK(res1)) { | |
5343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5344 | } | |
5345 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5346 | { | |
5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5348 | result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent(); | |
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | { | |
5353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5354 | } | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5362 | PyObject *resultobj = 0; | |
5363 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5364 | bool result; | |
5365 | void *argp1 = 0 ; | |
5366 | int res1 = 0 ; | |
5367 | PyObject *swig_obj[1] ; | |
5368 | ||
5369 | if (!args) SWIG_fail; | |
5370 | swig_obj[0] = args; | |
5371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5372 | if (!SWIG_IsOK(res1)) { | |
5373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5374 | } | |
5375 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5376 | { | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | result = (bool)((wxRichTextAttr const *)arg1)->HasWeight(); | |
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
5382 | { | |
5383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5384 | } | |
5385 | return resultobj; | |
5386 | fail: | |
5387 | return NULL; | |
5388 | } | |
5389 | ||
5390 | ||
5391 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5392 | PyObject *resultobj = 0; | |
5393 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5394 | bool result; | |
5395 | void *argp1 = 0 ; | |
5396 | int res1 = 0 ; | |
5397 | PyObject *swig_obj[1] ; | |
5398 | ||
5399 | if (!args) SWIG_fail; | |
5400 | swig_obj[0] = args; | |
5401 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5402 | if (!SWIG_IsOK(res1)) { | |
5403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5404 | } | |
5405 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5406 | { | |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | result = (bool)((wxRichTextAttr const *)arg1)->HasSize(); | |
5409 | wxPyEndAllowThreads(__tstate); | |
5410 | if (PyErr_Occurred()) SWIG_fail; | |
5411 | } | |
5412 | { | |
5413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5414 | } | |
5415 | return resultobj; | |
5416 | fail: | |
5417 | return NULL; | |
5418 | } | |
5419 | ||
5420 | ||
5421 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5422 | PyObject *resultobj = 0; | |
5423 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5424 | bool result; | |
5425 | void *argp1 = 0 ; | |
5426 | int res1 = 0 ; | |
5427 | PyObject *swig_obj[1] ; | |
5428 | ||
5429 | if (!args) SWIG_fail; | |
5430 | swig_obj[0] = args; | |
5431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5432 | if (!SWIG_IsOK(res1)) { | |
5433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5434 | } | |
5435 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (bool)((wxRichTextAttr const *)arg1)->HasItalic(); | |
5439 | wxPyEndAllowThreads(__tstate); | |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
5441 | } | |
5442 | { | |
5443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5444 | } | |
5445 | return resultobj; | |
5446 | fail: | |
5447 | return NULL; | |
5448 | } | |
5449 | ||
5450 | ||
5451 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5452 | PyObject *resultobj = 0; | |
5453 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5454 | bool result; | |
5455 | void *argp1 = 0 ; | |
5456 | int res1 = 0 ; | |
5457 | PyObject *swig_obj[1] ; | |
5458 | ||
5459 | if (!args) SWIG_fail; | |
5460 | swig_obj[0] = args; | |
5461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5462 | if (!SWIG_IsOK(res1)) { | |
5463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5464 | } | |
5465 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5466 | { | |
5467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5468 | result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined(); | |
5469 | wxPyEndAllowThreads(__tstate); | |
5470 | if (PyErr_Occurred()) SWIG_fail; | |
5471 | } | |
5472 | { | |
5473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5474 | } | |
5475 | return resultobj; | |
5476 | fail: | |
5477 | return NULL; | |
5478 | } | |
5479 | ||
5480 | ||
5481 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5482 | PyObject *resultobj = 0; | |
5483 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5484 | bool result; | |
5485 | void *argp1 = 0 ; | |
5486 | int res1 = 0 ; | |
5487 | PyObject *swig_obj[1] ; | |
5488 | ||
5489 | if (!args) SWIG_fail; | |
5490 | swig_obj[0] = args; | |
5491 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5492 | if (!SWIG_IsOK(res1)) { | |
5493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5494 | } | |
5495 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5496 | { | |
5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5498 | result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName(); | |
5499 | wxPyEndAllowThreads(__tstate); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5504 | } | |
5505 | return resultobj; | |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
5511 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5512 | PyObject *resultobj = 0; | |
5513 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5514 | bool result; | |
5515 | void *argp1 = 0 ; | |
5516 | int res1 = 0 ; | |
5517 | PyObject *swig_obj[1] ; | |
5518 | ||
5519 | if (!args) SWIG_fail; | |
5520 | swig_obj[0] = args; | |
5521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5522 | if (!SWIG_IsOK(res1)) { | |
5523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5524 | } | |
5525 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | result = (bool)((wxRichTextAttr const *)arg1)->HasFont(); | |
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
5532 | { | |
5533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5534 | } | |
5535 | return resultobj; | |
5536 | fail: | |
5537 | return NULL; | |
5538 | } | |
5539 | ||
5540 | ||
5541 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5542 | PyObject *resultobj = 0; | |
5543 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5544 | bool result; | |
5545 | void *argp1 = 0 ; | |
5546 | int res1 = 0 ; | |
5547 | PyObject *swig_obj[1] ; | |
5548 | ||
5549 | if (!args) SWIG_fail; | |
5550 | swig_obj[0] = args; | |
5551 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5552 | if (!SWIG_IsOK(res1)) { | |
5553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5554 | } | |
5555 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5556 | { | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter(); | |
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
5562 | { | |
5563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5564 | } | |
5565 | return resultobj; | |
5566 | fail: | |
5567 | return NULL; | |
5568 | } | |
5569 | ||
5570 | ||
5571 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5572 | PyObject *resultobj = 0; | |
5573 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5574 | bool result; | |
5575 | void *argp1 = 0 ; | |
5576 | int res1 = 0 ; | |
5577 | PyObject *swig_obj[1] ; | |
5578 | ||
5579 | if (!args) SWIG_fail; | |
5580 | swig_obj[0] = args; | |
5581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5582 | if (!SWIG_IsOK(res1)) { | |
5583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5584 | } | |
5585 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore(); | |
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | { | |
5593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5594 | } | |
5595 | return resultobj; | |
5596 | fail: | |
5597 | return NULL; | |
5598 | } | |
5599 | ||
5600 | ||
5601 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5602 | PyObject *resultobj = 0; | |
5603 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5604 | bool result; | |
5605 | void *argp1 = 0 ; | |
5606 | int res1 = 0 ; | |
5607 | PyObject *swig_obj[1] ; | |
5608 | ||
5609 | if (!args) SWIG_fail; | |
5610 | swig_obj[0] = args; | |
5611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5612 | if (!SWIG_IsOK(res1)) { | |
5613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5614 | } | |
5615 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing(); | |
5619 | wxPyEndAllowThreads(__tstate); | |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
5621 | } | |
5622 | { | |
5623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5624 | } | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5632 | PyObject *resultobj = 0; | |
5633 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5634 | bool result; | |
5635 | void *argp1 = 0 ; | |
5636 | int res1 = 0 ; | |
5637 | PyObject *swig_obj[1] ; | |
5638 | ||
5639 | if (!args) SWIG_fail; | |
5640 | swig_obj[0] = args; | |
5641 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5642 | if (!SWIG_IsOK(res1)) { | |
5643 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5644 | } | |
5645 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5646 | { | |
5647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5648 | result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName(); | |
5649 | wxPyEndAllowThreads(__tstate); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
5652 | { | |
5653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5654 | } | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | return NULL; | |
5658 | } | |
5659 | ||
5660 | ||
5661 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5662 | PyObject *resultobj = 0; | |
5663 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5664 | bool result; | |
5665 | void *argp1 = 0 ; | |
5666 | int res1 = 0 ; | |
5667 | PyObject *swig_obj[1] ; | |
5668 | ||
5669 | if (!args) SWIG_fail; | |
5670 | swig_obj[0] = args; | |
5671 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5672 | if (!SWIG_IsOK(res1)) { | |
5673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5674 | } | |
5675 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5676 | { | |
5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5678 | result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName(); | |
5679 | wxPyEndAllowThreads(__tstate); | |
5680 | if (PyErr_Occurred()) SWIG_fail; | |
5681 | } | |
5682 | { | |
5683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5684 | } | |
5685 | return resultobj; | |
5686 | fail: | |
5687 | return NULL; | |
5688 | } | |
5689 | ||
5690 | ||
5691 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5692 | PyObject *resultobj = 0; | |
5693 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5694 | bool result; | |
5695 | void *argp1 = 0 ; | |
5696 | int res1 = 0 ; | |
5697 | PyObject *swig_obj[1] ; | |
5698 | ||
5699 | if (!args) SWIG_fail; | |
5700 | swig_obj[0] = args; | |
5701 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5702 | if (!SWIG_IsOK(res1)) { | |
5703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5704 | } | |
5705 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5706 | { | |
5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5708 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle(); | |
5709 | wxPyEndAllowThreads(__tstate); | |
5710 | if (PyErr_Occurred()) SWIG_fail; | |
5711 | } | |
5712 | { | |
5713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5714 | } | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5722 | PyObject *resultobj = 0; | |
5723 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5724 | bool result; | |
5725 | void *argp1 = 0 ; | |
5726 | int res1 = 0 ; | |
5727 | PyObject *swig_obj[1] ; | |
5728 | ||
5729 | if (!args) SWIG_fail; | |
5730 | swig_obj[0] = args; | |
5731 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5732 | if (!SWIG_IsOK(res1)) { | |
5733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5734 | } | |
5735 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5736 | { | |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber(); | |
5739 | wxPyEndAllowThreads(__tstate); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | } | |
5742 | { | |
5743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5744 | } | |
5745 | return resultobj; | |
5746 | fail: | |
5747 | return NULL; | |
5748 | } | |
5749 | ||
5750 | ||
70d7cb34 | 5751 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
06810ecf RD |
5752 | PyObject *resultobj = 0; |
5753 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5754 | bool result; | |
5755 | void *argp1 = 0 ; | |
5756 | int res1 = 0 ; | |
5757 | PyObject *swig_obj[1] ; | |
5758 | ||
5759 | if (!args) SWIG_fail; | |
5760 | swig_obj[0] = args; | |
5761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5762 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 5763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletText" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); |
06810ecf RD |
5764 | } |
5765 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5766 | { | |
5767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70d7cb34 | 5768 | result = (bool)((wxRichTextAttr const *)arg1)->HasBulletText(); |
06810ecf RD |
5769 | wxPyEndAllowThreads(__tstate); |
5770 | if (PyErr_Occurred()) SWIG_fail; | |
5771 | } | |
5772 | { | |
5773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5774 | } | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
5781 | SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5782 | PyObject *resultobj = 0; | |
5783 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5784 | long arg2 ; | |
5785 | bool result; | |
5786 | void *argp1 = 0 ; | |
5787 | int res1 = 0 ; | |
5788 | long val2 ; | |
5789 | int ecode2 = 0 ; | |
5790 | PyObject * obj0 = 0 ; | |
5791 | PyObject * obj1 = 0 ; | |
5792 | char * kwnames[] = { | |
5793 | (char *) "self",(char *) "flag", NULL | |
5794 | }; | |
5795 | ||
5796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail; | |
5797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5798 | if (!SWIG_IsOK(res1)) { | |
5799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5800 | } | |
5801 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5802 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
5803 | if (!SWIG_IsOK(ecode2)) { | |
5804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'"); | |
5805 | } | |
5806 | arg2 = static_cast< long >(val2); | |
5807 | { | |
5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5809 | result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2); | |
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | { | |
5814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5815 | } | |
5816 | return resultobj; | |
5817 | fail: | |
5818 | return NULL; | |
5819 | } | |
5820 | ||
5821 | ||
5822 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5823 | PyObject *resultobj = 0; | |
5824 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5825 | bool result; | |
5826 | void *argp1 = 0 ; | |
5827 | int res1 = 0 ; | |
5828 | PyObject *swig_obj[1] ; | |
5829 | ||
5830 | if (!args) SWIG_fail; | |
5831 | swig_obj[0] = args; | |
5832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5833 | if (!SWIG_IsOK(res1)) { | |
5834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5835 | } | |
5836 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5837 | { | |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle(); | |
5840 | wxPyEndAllowThreads(__tstate); | |
5841 | if (PyErr_Occurred()) SWIG_fail; | |
5842 | } | |
5843 | { | |
5844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5845 | } | |
5846 | return resultobj; | |
5847 | fail: | |
5848 | return NULL; | |
5849 | } | |
5850 | ||
5851 | ||
5852 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5853 | PyObject *resultobj = 0; | |
5854 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5855 | bool result; | |
5856 | void *argp1 = 0 ; | |
5857 | int res1 = 0 ; | |
5858 | PyObject *swig_obj[1] ; | |
5859 | ||
5860 | if (!args) SWIG_fail; | |
5861 | swig_obj[0] = args; | |
5862 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5863 | if (!SWIG_IsOK(res1)) { | |
5864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5865 | } | |
5866 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5867 | { | |
5868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5869 | result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle(); | |
5870 | wxPyEndAllowThreads(__tstate); | |
5871 | if (PyErr_Occurred()) SWIG_fail; | |
5872 | } | |
5873 | { | |
5874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5875 | } | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
5879 | } | |
5880 | ||
5881 | ||
5882 | SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5883 | PyObject *resultobj = 0; | |
5884 | wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ; | |
5885 | bool result; | |
5886 | void *argp1 = 0 ; | |
5887 | int res1 = 0 ; | |
5888 | PyObject *swig_obj[1] ; | |
5889 | ||
5890 | if (!args) SWIG_fail; | |
5891 | swig_obj[0] = args; | |
5892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 ); | |
5893 | if (!SWIG_IsOK(res1)) { | |
5894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'"); | |
5895 | } | |
5896 | arg1 = reinterpret_cast< wxRichTextAttr * >(argp1); | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | result = (bool)((wxRichTextAttr const *)arg1)->IsDefault(); | |
5900 | wxPyEndAllowThreads(__tstate); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
5902 | } | |
5903 | { | |
5904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5905 | } | |
5906 | return resultobj; | |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
5912 | SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5913 | PyObject *obj; | |
5914 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5915 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj)); | |
5916 | return SWIG_Py_Void(); | |
5917 | } | |
5918 | ||
5919 | SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5920 | return SWIG_Python_InitShadowInstance(args); | |
5921 | } | |
5922 | ||
5923 | SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5924 | PyObject *resultobj = 0; | |
5925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5926 | int arg2 = (int) -1 ; | |
0ef86618 RD |
5927 | wxString const &arg3_defvalue = wxPyEmptyString ; |
5928 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5929 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5930 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5931 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5932 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5933 | long arg6 = (long) wxRE_MULTILINE ; | |
06810ecf RD |
5934 | wxRichTextCtrl *result = 0 ; |
5935 | void *argp1 = 0 ; | |
5936 | int res1 = 0 ; | |
5937 | int val2 ; | |
5938 | int ecode2 = 0 ; | |
0ef86618 RD |
5939 | bool temp3 = false ; |
5940 | wxPoint temp4 ; | |
5941 | wxSize temp5 ; | |
5942 | long val6 ; | |
5943 | int ecode6 = 0 ; | |
06810ecf RD |
5944 | PyObject * obj0 = 0 ; |
5945 | PyObject * obj1 = 0 ; | |
5946 | PyObject * obj2 = 0 ; | |
5947 | PyObject * obj3 = 0 ; | |
5948 | PyObject * obj4 = 0 ; | |
0ef86618 | 5949 | PyObject * obj5 = 0 ; |
06810ecf | 5950 | char * kwnames[] = { |
0ef86618 | 5951 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL |
06810ecf RD |
5952 | }; |
5953 | ||
0ef86618 | 5954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
06810ecf RD |
5955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
5956 | if (!SWIG_IsOK(res1)) { | |
5957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
5958 | } | |
5959 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
5960 | if (obj1) { | |
5961 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5962 | if (!SWIG_IsOK(ecode2)) { | |
5963 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'"); | |
5964 | } | |
5965 | arg2 = static_cast< int >(val2); | |
5966 | } | |
5967 | if (obj2) { | |
5968 | { | |
0ef86618 RD |
5969 | arg3 = wxString_in_helper(obj2); |
5970 | if (arg3 == NULL) SWIG_fail; | |
5971 | temp3 = true; | |
06810ecf RD |
5972 | } |
5973 | } | |
5974 | if (obj3) { | |
5975 | { | |
5976 | arg4 = &temp4; | |
0ef86618 | 5977 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; |
06810ecf RD |
5978 | } |
5979 | } | |
5980 | if (obj4) { | |
0ef86618 RD |
5981 | { |
5982 | arg5 = &temp5; | |
5983 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5984 | } | |
5985 | } | |
5986 | if (obj5) { | |
5987 | ecode6 = SWIG_AsVal_long(obj5, &val6); | |
5988 | if (!SWIG_IsOK(ecode6)) { | |
5989 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'"); | |
06810ecf | 5990 | } |
0ef86618 | 5991 | arg6 = static_cast< long >(val6); |
06810ecf RD |
5992 | } |
5993 | { | |
5994 | if (!wxPyCheckForApp()) SWIG_fail; | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ef86618 | 5996 | result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); |
06810ecf RD |
5997 | wxPyEndAllowThreads(__tstate); |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 ); | |
0ef86618 RD |
6001 | { |
6002 | if (temp3) | |
6003 | delete arg3; | |
6004 | } | |
06810ecf RD |
6005 | return resultobj; |
6006 | fail: | |
0ef86618 RD |
6007 | { |
6008 | if (temp3) | |
6009 | delete arg3; | |
6010 | } | |
06810ecf RD |
6011 | return NULL; |
6012 | } | |
6013 | ||
6014 | ||
6015 | SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6016 | PyObject *resultobj = 0; | |
6017 | wxRichTextCtrl *result = 0 ; | |
6018 | ||
6019 | if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail; | |
6020 | { | |
6021 | if (!wxPyCheckForApp()) SWIG_fail; | |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | result = (wxRichTextCtrl *)new wxRichTextCtrl(); | |
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 ); | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj = 0; | |
6036 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6037 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6038 | int arg3 = (int) -1 ; | |
0ef86618 RD |
6039 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6040 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6041 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6042 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6043 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6044 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6045 | long arg7 = (long) wxRE_MULTILINE ; | |
06810ecf RD |
6046 | bool result; |
6047 | void *argp1 = 0 ; | |
6048 | int res1 = 0 ; | |
6049 | void *argp2 = 0 ; | |
6050 | int res2 = 0 ; | |
6051 | int val3 ; | |
6052 | int ecode3 = 0 ; | |
0ef86618 RD |
6053 | bool temp4 = false ; |
6054 | wxPoint temp5 ; | |
6055 | wxSize temp6 ; | |
6056 | long val7 ; | |
6057 | int ecode7 = 0 ; | |
06810ecf RD |
6058 | PyObject * obj0 = 0 ; |
6059 | PyObject * obj1 = 0 ; | |
6060 | PyObject * obj2 = 0 ; | |
6061 | PyObject * obj3 = 0 ; | |
6062 | PyObject * obj4 = 0 ; | |
6063 | PyObject * obj5 = 0 ; | |
0ef86618 | 6064 | PyObject * obj6 = 0 ; |
06810ecf | 6065 | char * kwnames[] = { |
0ef86618 | 6066 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL |
06810ecf RD |
6067 | }; |
6068 | ||
0ef86618 | 6069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
06810ecf RD |
6070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); |
6071 | if (!SWIG_IsOK(res1)) { | |
6072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6073 | } | |
6074 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6075 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
6076 | if (!SWIG_IsOK(res2)) { | |
6077 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
6078 | } | |
6079 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
6080 | if (obj2) { | |
6081 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6082 | if (!SWIG_IsOK(ecode3)) { | |
6083 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'"); | |
6084 | } | |
6085 | arg3 = static_cast< int >(val3); | |
6086 | } | |
6087 | if (obj3) { | |
6088 | { | |
0ef86618 RD |
6089 | arg4 = wxString_in_helper(obj3); |
6090 | if (arg4 == NULL) SWIG_fail; | |
6091 | temp4 = true; | |
06810ecf RD |
6092 | } |
6093 | } | |
6094 | if (obj4) { | |
6095 | { | |
6096 | arg5 = &temp5; | |
0ef86618 | 6097 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; |
06810ecf RD |
6098 | } |
6099 | } | |
6100 | if (obj5) { | |
0ef86618 RD |
6101 | { |
6102 | arg6 = &temp6; | |
6103 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6104 | } | |
6105 | } | |
6106 | if (obj6) { | |
6107 | ecode7 = SWIG_AsVal_long(obj6, &val7); | |
6108 | if (!SWIG_IsOK(ecode7)) { | |
6109 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'"); | |
06810ecf | 6110 | } |
0ef86618 | 6111 | arg7 = static_cast< long >(val7); |
06810ecf RD |
6112 | } |
6113 | { | |
6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ef86618 | 6115 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7); |
06810ecf RD |
6116 | wxPyEndAllowThreads(__tstate); |
6117 | if (PyErr_Occurred()) SWIG_fail; | |
6118 | } | |
6119 | { | |
6120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6121 | } | |
0ef86618 RD |
6122 | { |
6123 | if (temp4) | |
6124 | delete arg4; | |
6125 | } | |
06810ecf RD |
6126 | return resultobj; |
6127 | fail: | |
0ef86618 RD |
6128 | { |
6129 | if (temp4) | |
6130 | delete arg4; | |
6131 | } | |
06810ecf RD |
6132 | return NULL; |
6133 | } | |
6134 | ||
6135 | ||
6136 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6137 | PyObject *resultobj = 0; | |
6138 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6139 | wxString result; | |
6140 | void *argp1 = 0 ; | |
6141 | int res1 = 0 ; | |
6142 | PyObject *swig_obj[1] ; | |
6143 | ||
6144 | if (!args) SWIG_fail; | |
6145 | swig_obj[0] = args; | |
6146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6147 | if (!SWIG_IsOK(res1)) { | |
6148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6149 | } | |
6150 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | result = ((wxRichTextCtrl const *)arg1)->GetValue(); | |
6154 | wxPyEndAllowThreads(__tstate); | |
6155 | if (PyErr_Occurred()) SWIG_fail; | |
6156 | } | |
6157 | { | |
6158 | #if wxUSE_UNICODE | |
6159 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6160 | #else | |
6161 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6162 | #endif | |
6163 | } | |
6164 | return resultobj; | |
6165 | fail: | |
6166 | return NULL; | |
6167 | } | |
6168 | ||
6169 | ||
6170 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6171 | PyObject *resultobj = 0; | |
6172 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6173 | wxString *arg2 = 0 ; | |
6174 | void *argp1 = 0 ; | |
6175 | int res1 = 0 ; | |
6176 | bool temp2 = false ; | |
6177 | PyObject * obj0 = 0 ; | |
6178 | PyObject * obj1 = 0 ; | |
6179 | char * kwnames[] = { | |
6180 | (char *) "self",(char *) "value", NULL | |
6181 | }; | |
6182 | ||
6183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail; | |
6184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6185 | if (!SWIG_IsOK(res1)) { | |
6186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6187 | } | |
6188 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6189 | { | |
6190 | arg2 = wxString_in_helper(obj1); | |
6191 | if (arg2 == NULL) SWIG_fail; | |
6192 | temp2 = true; | |
6193 | } | |
6194 | { | |
6195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6196 | (arg1)->SetValue((wxString const &)*arg2); | |
6197 | wxPyEndAllowThreads(__tstate); | |
6198 | if (PyErr_Occurred()) SWIG_fail; | |
6199 | } | |
6200 | resultobj = SWIG_Py_Void(); | |
6201 | { | |
6202 | if (temp2) | |
6203 | delete arg2; | |
6204 | } | |
6205 | return resultobj; | |
6206 | fail: | |
6207 | { | |
6208 | if (temp2) | |
6209 | delete arg2; | |
6210 | } | |
6211 | return NULL; | |
6212 | } | |
6213 | ||
6214 | ||
6215 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6216 | PyObject *resultobj = 0; | |
6217 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6218 | long arg2 ; | |
6219 | long arg3 ; | |
6220 | wxString result; | |
6221 | void *argp1 = 0 ; | |
6222 | int res1 = 0 ; | |
6223 | long val2 ; | |
6224 | int ecode2 = 0 ; | |
6225 | long val3 ; | |
6226 | int ecode3 = 0 ; | |
6227 | PyObject * obj0 = 0 ; | |
6228 | PyObject * obj1 = 0 ; | |
6229 | PyObject * obj2 = 0 ; | |
6230 | char * kwnames[] = { | |
6231 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6232 | }; | |
6233 | ||
6234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6236 | if (!SWIG_IsOK(res1)) { | |
6237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6238 | } | |
6239 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6240 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6241 | if (!SWIG_IsOK(ecode2)) { | |
6242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'"); | |
6243 | } | |
6244 | arg2 = static_cast< long >(val2); | |
6245 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6246 | if (!SWIG_IsOK(ecode3)) { | |
6247 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'"); | |
6248 | } | |
6249 | arg3 = static_cast< long >(val3); | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | { | |
6257 | #if wxUSE_UNICODE | |
6258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6259 | #else | |
6260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6261 | #endif | |
6262 | } | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj = 0; | |
6271 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6272 | long arg2 ; | |
6273 | int result; | |
6274 | void *argp1 = 0 ; | |
6275 | int res1 = 0 ; | |
6276 | long val2 ; | |
6277 | int ecode2 = 0 ; | |
6278 | PyObject * obj0 = 0 ; | |
6279 | PyObject * obj1 = 0 ; | |
6280 | char * kwnames[] = { | |
6281 | (char *) "self",(char *) "lineNo", NULL | |
6282 | }; | |
6283 | ||
6284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
6285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6286 | if (!SWIG_IsOK(res1)) { | |
6287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6288 | } | |
6289 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6290 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6291 | if (!SWIG_IsOK(ecode2)) { | |
6292 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'"); | |
6293 | } | |
6294 | arg2 = static_cast< long >(val2); | |
6295 | { | |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6297 | result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2); | |
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) SWIG_fail; | |
6300 | } | |
6301 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
6308 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6309 | PyObject *resultobj = 0; | |
6310 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6311 | long arg2 ; | |
6312 | wxString result; | |
6313 | void *argp1 = 0 ; | |
6314 | int res1 = 0 ; | |
6315 | long val2 ; | |
6316 | int ecode2 = 0 ; | |
6317 | PyObject * obj0 = 0 ; | |
6318 | PyObject * obj1 = 0 ; | |
6319 | char * kwnames[] = { | |
6320 | (char *) "self",(char *) "lineNo", NULL | |
6321 | }; | |
6322 | ||
6323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail; | |
6324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6325 | if (!SWIG_IsOK(res1)) { | |
6326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6327 | } | |
6328 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6329 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6330 | if (!SWIG_IsOK(ecode2)) { | |
6331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'"); | |
6332 | } | |
6333 | arg2 = static_cast< long >(val2); | |
6334 | { | |
6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6336 | result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2); | |
6337 | wxPyEndAllowThreads(__tstate); | |
6338 | if (PyErr_Occurred()) SWIG_fail; | |
6339 | } | |
6340 | { | |
6341 | #if wxUSE_UNICODE | |
6342 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6343 | #else | |
6344 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6345 | #endif | |
6346 | } | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
6353 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6354 | PyObject *resultobj = 0; | |
6355 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6356 | int result; | |
6357 | void *argp1 = 0 ; | |
6358 | int res1 = 0 ; | |
6359 | PyObject *swig_obj[1] ; | |
6360 | ||
6361 | if (!args) SWIG_fail; | |
6362 | swig_obj[0] = args; | |
6363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6364 | if (!SWIG_IsOK(res1)) { | |
6365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6366 | } | |
6367 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines(); | |
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6375 | return resultobj; | |
6376 | fail: | |
6377 | return NULL; | |
6378 | } | |
6379 | ||
6380 | ||
6381 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6382 | PyObject *resultobj = 0; | |
6383 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6384 | bool result; | |
6385 | void *argp1 = 0 ; | |
6386 | int res1 = 0 ; | |
6387 | PyObject *swig_obj[1] ; | |
6388 | ||
6389 | if (!args) SWIG_fail; | |
6390 | swig_obj[0] = args; | |
6391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6392 | if (!SWIG_IsOK(res1)) { | |
6393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6394 | } | |
6395 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6396 | { | |
6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6398 | result = (bool)((wxRichTextCtrl const *)arg1)->IsModified(); | |
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | { | |
6403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6404 | } | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
6411 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6412 | PyObject *resultobj = 0; | |
6413 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6414 | bool result; | |
6415 | void *argp1 = 0 ; | |
6416 | int res1 = 0 ; | |
6417 | PyObject *swig_obj[1] ; | |
6418 | ||
6419 | if (!args) SWIG_fail; | |
6420 | swig_obj[0] = args; | |
6421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6422 | if (!SWIG_IsOK(res1)) { | |
6423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6424 | } | |
6425 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable(); | |
6429 | wxPyEndAllowThreads(__tstate); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
6432 | { | |
6433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6434 | } | |
6435 | return resultobj; | |
6436 | fail: | |
6437 | return NULL; | |
6438 | } | |
6439 | ||
6440 | ||
6441 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6442 | PyObject *resultobj = 0; | |
6443 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6444 | bool result; | |
6445 | void *argp1 = 0 ; | |
6446 | int res1 = 0 ; | |
6447 | PyObject *swig_obj[1] ; | |
6448 | ||
6449 | if (!args) SWIG_fail; | |
6450 | swig_obj[0] = args; | |
6451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6452 | if (!SWIG_IsOK(res1)) { | |
6453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6454 | } | |
6455 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6456 | { | |
6457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6458 | result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine(); | |
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6464 | } | |
6465 | return resultobj; | |
6466 | fail: | |
6467 | return NULL; | |
6468 | } | |
6469 | ||
6470 | ||
6471 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6472 | PyObject *resultobj = 0; | |
6473 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6474 | bool result; | |
6475 | void *argp1 = 0 ; | |
6476 | int res1 = 0 ; | |
6477 | PyObject *swig_obj[1] ; | |
6478 | ||
6479 | if (!args) SWIG_fail; | |
6480 | swig_obj[0] = args; | |
6481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6482 | if (!SWIG_IsOK(res1)) { | |
6483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6484 | } | |
6485 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6486 | { | |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6488 | result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine(); | |
6489 | wxPyEndAllowThreads(__tstate); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
6492 | { | |
6493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6494 | } | |
6495 | return resultobj; | |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
6501 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6502 | PyObject *resultobj = 0; | |
6503 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6504 | long *arg2 = (long *) 0 ; | |
6505 | long *arg3 = (long *) 0 ; | |
6506 | void *argp1 = 0 ; | |
6507 | int res1 = 0 ; | |
6508 | long temp2 ; | |
6509 | int res2 = SWIG_TMPOBJ ; | |
6510 | long temp3 ; | |
6511 | int res3 = SWIG_TMPOBJ ; | |
6512 | PyObject *swig_obj[1] ; | |
6513 | ||
6514 | arg2 = &temp2; | |
6515 | arg3 = &temp3; | |
6516 | if (!args) SWIG_fail; | |
6517 | swig_obj[0] = args; | |
6518 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6519 | if (!SWIG_IsOK(res1)) { | |
6520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6521 | } | |
6522 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6523 | { | |
6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6525 | ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6526 | wxPyEndAllowThreads(__tstate); | |
6527 | if (PyErr_Occurred()) SWIG_fail; | |
6528 | } | |
6529 | resultobj = SWIG_Py_Void(); | |
6530 | if (SWIG_IsTmpObj(res2)) { | |
6531 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2))); | |
6532 | } else { | |
6533 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6534 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags)); | |
6535 | } | |
6536 | if (SWIG_IsTmpObj(res3)) { | |
6537 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
6538 | } else { | |
6539 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
6540 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
6541 | } | |
6542 | return resultobj; | |
6543 | fail: | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
6548 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6549 | PyObject *resultobj = 0; | |
6550 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6551 | wxString result; | |
6552 | void *argp1 = 0 ; | |
6553 | int res1 = 0 ; | |
6554 | PyObject *swig_obj[1] ; | |
6555 | ||
6556 | if (!args) SWIG_fail; | |
6557 | swig_obj[0] = args; | |
6558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6559 | if (!SWIG_IsOK(res1)) { | |
6560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6561 | } | |
6562 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = ((wxRichTextCtrl const *)arg1)->GetStringSelection(); | |
6566 | wxPyEndAllowThreads(__tstate); | |
6567 | if (PyErr_Occurred()) SWIG_fail; | |
6568 | } | |
6569 | { | |
6570 | #if wxUSE_UNICODE | |
6571 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6572 | #else | |
6573 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6574 | #endif | |
6575 | } | |
6576 | return resultobj; | |
6577 | fail: | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
6582 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6583 | PyObject *resultobj = 0; | |
6584 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6585 | wxString result; | |
6586 | void *argp1 = 0 ; | |
6587 | int res1 = 0 ; | |
6588 | PyObject *swig_obj[1] ; | |
6589 | ||
6590 | if (!args) SWIG_fail; | |
6591 | swig_obj[0] = args; | |
6592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6593 | if (!SWIG_IsOK(res1)) { | |
6594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6595 | } | |
6596 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6597 | { | |
6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6599 | result = ((wxRichTextCtrl const *)arg1)->GetFilename(); | |
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | { | |
6604 | #if wxUSE_UNICODE | |
6605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6606 | #else | |
6607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6608 | #endif | |
6609 | } | |
6610 | return resultobj; | |
6611 | fail: | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
6616 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6617 | PyObject *resultobj = 0; | |
6618 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6619 | wxString *arg2 = 0 ; | |
6620 | void *argp1 = 0 ; | |
6621 | int res1 = 0 ; | |
6622 | bool temp2 = false ; | |
6623 | PyObject * obj0 = 0 ; | |
6624 | PyObject * obj1 = 0 ; | |
6625 | char * kwnames[] = { | |
6626 | (char *) "self",(char *) "filename", NULL | |
6627 | }; | |
6628 | ||
6629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail; | |
6630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6631 | if (!SWIG_IsOK(res1)) { | |
6632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6633 | } | |
6634 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6635 | { | |
6636 | arg2 = wxString_in_helper(obj1); | |
6637 | if (arg2 == NULL) SWIG_fail; | |
6638 | temp2 = true; | |
6639 | } | |
6640 | { | |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6642 | (arg1)->SetFilename((wxString const &)*arg2); | |
6643 | wxPyEndAllowThreads(__tstate); | |
6644 | if (PyErr_Occurred()) SWIG_fail; | |
6645 | } | |
6646 | resultobj = SWIG_Py_Void(); | |
6647 | { | |
6648 | if (temp2) | |
6649 | delete arg2; | |
6650 | } | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | { | |
6654 | if (temp2) | |
6655 | delete arg2; | |
6656 | } | |
6657 | return NULL; | |
6658 | } | |
6659 | ||
6660 | ||
6661 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6662 | PyObject *resultobj = 0; | |
6663 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6664 | long arg2 ; | |
6665 | void *argp1 = 0 ; | |
6666 | int res1 = 0 ; | |
6667 | long val2 ; | |
6668 | int ecode2 = 0 ; | |
6669 | PyObject * obj0 = 0 ; | |
6670 | PyObject * obj1 = 0 ; | |
6671 | char * kwnames[] = { | |
6672 | (char *) "self",(char *) "threshold", NULL | |
6673 | }; | |
6674 | ||
6675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail; | |
6676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6677 | if (!SWIG_IsOK(res1)) { | |
6678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6679 | } | |
6680 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6681 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6682 | if (!SWIG_IsOK(ecode2)) { | |
6683 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'"); | |
6684 | } | |
6685 | arg2 = static_cast< long >(val2); | |
6686 | { | |
6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6688 | (arg1)->SetDelayedLayoutThreshold(arg2); | |
6689 | wxPyEndAllowThreads(__tstate); | |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
6692 | resultobj = SWIG_Py_Void(); | |
6693 | return resultobj; | |
6694 | fail: | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
6699 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6700 | PyObject *resultobj = 0; | |
6701 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6702 | long result; | |
6703 | void *argp1 = 0 ; | |
6704 | int res1 = 0 ; | |
6705 | PyObject *swig_obj[1] ; | |
6706 | ||
6707 | if (!args) SWIG_fail; | |
6708 | swig_obj[0] = args; | |
6709 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6710 | if (!SWIG_IsOK(res1)) { | |
6711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
6712 | } | |
6713 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6714 | { | |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold(); | |
6717 | wxPyEndAllowThreads(__tstate); | |
6718 | if (PyErr_Occurred()) SWIG_fail; | |
6719 | } | |
6720 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6721 | return resultobj; | |
6722 | fail: | |
6723 | return NULL; | |
6724 | } | |
6725 | ||
6726 | ||
6727 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6728 | PyObject *resultobj = 0; | |
6729 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6730 | void *argp1 = 0 ; | |
6731 | int res1 = 0 ; | |
6732 | PyObject *swig_obj[1] ; | |
6733 | ||
6734 | if (!args) SWIG_fail; | |
6735 | swig_obj[0] = args; | |
6736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6737 | if (!SWIG_IsOK(res1)) { | |
6738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6739 | } | |
6740 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6741 | { | |
6742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6743 | (arg1)->Clear(); | |
6744 | wxPyEndAllowThreads(__tstate); | |
6745 | if (PyErr_Occurred()) SWIG_fail; | |
6746 | } | |
6747 | resultobj = SWIG_Py_Void(); | |
6748 | return resultobj; | |
6749 | fail: | |
6750 | return NULL; | |
6751 | } | |
6752 | ||
6753 | ||
6754 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6755 | PyObject *resultobj = 0; | |
6756 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6757 | long arg2 ; | |
6758 | long arg3 ; | |
6759 | wxString *arg4 = 0 ; | |
6760 | void *argp1 = 0 ; | |
6761 | int res1 = 0 ; | |
6762 | long val2 ; | |
6763 | int ecode2 = 0 ; | |
6764 | long val3 ; | |
6765 | int ecode3 = 0 ; | |
6766 | bool temp4 = false ; | |
6767 | PyObject * obj0 = 0 ; | |
6768 | PyObject * obj1 = 0 ; | |
6769 | PyObject * obj2 = 0 ; | |
6770 | PyObject * obj3 = 0 ; | |
6771 | char * kwnames[] = { | |
6772 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6773 | }; | |
6774 | ||
6775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6777 | if (!SWIG_IsOK(res1)) { | |
6778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6779 | } | |
6780 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6781 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6782 | if (!SWIG_IsOK(ecode2)) { | |
6783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'"); | |
6784 | } | |
6785 | arg2 = static_cast< long >(val2); | |
6786 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6787 | if (!SWIG_IsOK(ecode3)) { | |
6788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'"); | |
6789 | } | |
6790 | arg3 = static_cast< long >(val3); | |
6791 | { | |
6792 | arg4 = wxString_in_helper(obj3); | |
6793 | if (arg4 == NULL) SWIG_fail; | |
6794 | temp4 = true; | |
6795 | } | |
6796 | { | |
6797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6798 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6799 | wxPyEndAllowThreads(__tstate); | |
6800 | if (PyErr_Occurred()) SWIG_fail; | |
6801 | } | |
6802 | resultobj = SWIG_Py_Void(); | |
6803 | { | |
6804 | if (temp4) | |
6805 | delete arg4; | |
6806 | } | |
6807 | return resultobj; | |
6808 | fail: | |
6809 | { | |
6810 | if (temp4) | |
6811 | delete arg4; | |
6812 | } | |
6813 | return NULL; | |
6814 | } | |
6815 | ||
6816 | ||
6817 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6818 | PyObject *resultobj = 0; | |
6819 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6820 | long arg2 ; | |
6821 | long arg3 ; | |
6822 | void *argp1 = 0 ; | |
6823 | int res1 = 0 ; | |
6824 | long val2 ; | |
6825 | int ecode2 = 0 ; | |
6826 | long val3 ; | |
6827 | int ecode3 = 0 ; | |
6828 | PyObject * obj0 = 0 ; | |
6829 | PyObject * obj1 = 0 ; | |
6830 | PyObject * obj2 = 0 ; | |
6831 | char * kwnames[] = { | |
6832 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6833 | }; | |
6834 | ||
6835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6837 | if (!SWIG_IsOK(res1)) { | |
6838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6839 | } | |
6840 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6841 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6842 | if (!SWIG_IsOK(ecode2)) { | |
6843 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'"); | |
6844 | } | |
6845 | arg2 = static_cast< long >(val2); | |
6846 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
6847 | if (!SWIG_IsOK(ecode3)) { | |
6848 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'"); | |
6849 | } | |
6850 | arg3 = static_cast< long >(val3); | |
6851 | { | |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6853 | (arg1)->Remove(arg2,arg3); | |
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
6857 | resultobj = SWIG_Py_Void(); | |
6858 | return resultobj; | |
6859 | fail: | |
6860 | return NULL; | |
6861 | } | |
6862 | ||
6863 | ||
6864 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6865 | PyObject *resultobj = 0; | |
6866 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6867 | wxString *arg2 = 0 ; | |
6868 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6869 | bool result; | |
6870 | void *argp1 = 0 ; | |
6871 | int res1 = 0 ; | |
6872 | bool temp2 = false ; | |
6873 | int val3 ; | |
6874 | int ecode3 = 0 ; | |
6875 | PyObject * obj0 = 0 ; | |
6876 | PyObject * obj1 = 0 ; | |
6877 | PyObject * obj2 = 0 ; | |
6878 | char * kwnames[] = { | |
6879 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6880 | }; | |
6881 | ||
6882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6884 | if (!SWIG_IsOK(res1)) { | |
6885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6886 | } | |
6887 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6888 | { | |
6889 | arg2 = wxString_in_helper(obj1); | |
6890 | if (arg2 == NULL) SWIG_fail; | |
6891 | temp2 = true; | |
6892 | } | |
6893 | if (obj2) { | |
6894 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6895 | if (!SWIG_IsOK(ecode3)) { | |
6896 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'"); | |
6897 | } | |
6898 | arg3 = static_cast< int >(val3); | |
6899 | } | |
6900 | { | |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
6903 | wxPyEndAllowThreads(__tstate); | |
6904 | if (PyErr_Occurred()) SWIG_fail; | |
6905 | } | |
6906 | { | |
6907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6908 | } | |
6909 | { | |
6910 | if (temp2) | |
6911 | delete arg2; | |
6912 | } | |
6913 | return resultobj; | |
6914 | fail: | |
6915 | { | |
6916 | if (temp2) | |
6917 | delete arg2; | |
6918 | } | |
6919 | return NULL; | |
6920 | } | |
6921 | ||
6922 | ||
6923 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6924 | PyObject *resultobj = 0; | |
6925 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6926 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6927 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6928 | int arg3 = (int) wxRICHTEXT_TYPE_ANY ; | |
6929 | bool result; | |
6930 | void *argp1 = 0 ; | |
6931 | int res1 = 0 ; | |
6932 | bool temp2 = false ; | |
6933 | int val3 ; | |
6934 | int ecode3 = 0 ; | |
6935 | PyObject * obj0 = 0 ; | |
6936 | PyObject * obj1 = 0 ; | |
6937 | PyObject * obj2 = 0 ; | |
6938 | char * kwnames[] = { | |
6939 | (char *) "self",(char *) "file",(char *) "type", NULL | |
6940 | }; | |
6941 | ||
6942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
6944 | if (!SWIG_IsOK(res1)) { | |
6945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
6946 | } | |
6947 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
6948 | if (obj1) { | |
6949 | { | |
6950 | arg2 = wxString_in_helper(obj1); | |
6951 | if (arg2 == NULL) SWIG_fail; | |
6952 | temp2 = true; | |
6953 | } | |
6954 | } | |
6955 | if (obj2) { | |
6956 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6957 | if (!SWIG_IsOK(ecode3)) { | |
6958 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'"); | |
6959 | } | |
6960 | arg3 = static_cast< int >(val3); | |
6961 | } | |
6962 | { | |
6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6964 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | { | |
6969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6970 | } | |
6971 | { | |
6972 | if (temp2) | |
6973 | delete arg2; | |
6974 | } | |
6975 | return resultobj; | |
6976 | fail: | |
6977 | { | |
6978 | if (temp2) | |
6979 | delete arg2; | |
6980 | } | |
6981 | return NULL; | |
6982 | } | |
6983 | ||
6984 | ||
70d7cb34 RD |
6985 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6986 | PyObject *resultobj = 0; | |
6987 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
6988 | int arg2 ; | |
6989 | void *argp1 = 0 ; | |
6990 | int res1 = 0 ; | |
6991 | int val2 ; | |
6992 | int ecode2 = 0 ; | |
6993 | PyObject * obj0 = 0 ; | |
6994 | PyObject * obj1 = 0 ; | |
6995 | char * kwnames[] = { | |
6996 | (char *) "self",(char *) "flags", NULL | |
6997 | }; | |
6998 | ||
6999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetHandlerFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
7000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7001 | if (!SWIG_IsOK(res1)) { | |
7002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7003 | } | |
7004 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7005 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7006 | if (!SWIG_IsOK(ecode2)) { | |
7007 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetHandlerFlags" "', expected argument " "2"" of type '" "int""'"); | |
7008 | } | |
7009 | arg2 = static_cast< int >(val2); | |
7010 | { | |
7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7012 | (arg1)->SetHandlerFlags(arg2); | |
7013 | wxPyEndAllowThreads(__tstate); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
7015 | } | |
7016 | resultobj = SWIG_Py_Void(); | |
7017 | return resultobj; | |
7018 | fail: | |
7019 | return NULL; | |
7020 | } | |
7021 | ||
7022 | ||
7023 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetHandlerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7024 | PyObject *resultobj = 0; | |
7025 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7026 | int result; | |
7027 | void *argp1 = 0 ; | |
7028 | int res1 = 0 ; | |
7029 | PyObject *swig_obj[1] ; | |
7030 | ||
7031 | if (!args) SWIG_fail; | |
7032 | swig_obj[0] = args; | |
7033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7034 | if (!SWIG_IsOK(res1)) { | |
7035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetHandlerFlags" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7036 | } | |
7037 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7038 | { | |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (int)((wxRichTextCtrl const *)arg1)->GetHandlerFlags(); | |
7041 | wxPyEndAllowThreads(__tstate); | |
7042 | if (PyErr_Occurred()) SWIG_fail; | |
7043 | } | |
7044 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7045 | return resultobj; | |
7046 | fail: | |
7047 | return NULL; | |
7048 | } | |
7049 | ||
7050 | ||
06810ecf RD |
7051 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7052 | PyObject *resultobj = 0; | |
7053 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7054 | void *argp1 = 0 ; | |
7055 | int res1 = 0 ; | |
7056 | PyObject *swig_obj[1] ; | |
7057 | ||
7058 | if (!args) SWIG_fail; | |
7059 | swig_obj[0] = args; | |
7060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7061 | if (!SWIG_IsOK(res1)) { | |
7062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7063 | } | |
7064 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7065 | { | |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | (arg1)->MarkDirty(); | |
7068 | wxPyEndAllowThreads(__tstate); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
7071 | resultobj = SWIG_Py_Void(); | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
7078 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7079 | PyObject *resultobj = 0; | |
7080 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7081 | void *argp1 = 0 ; | |
7082 | int res1 = 0 ; | |
7083 | PyObject *swig_obj[1] ; | |
7084 | ||
7085 | if (!args) SWIG_fail; | |
7086 | swig_obj[0] = args; | |
7087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7088 | if (!SWIG_IsOK(res1)) { | |
7089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7090 | } | |
7091 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7092 | { | |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7094 | (arg1)->DiscardEdits(); | |
7095 | wxPyEndAllowThreads(__tstate); | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | } | |
7098 | resultobj = SWIG_Py_Void(); | |
7099 | return resultobj; | |
7100 | fail: | |
7101 | return NULL; | |
7102 | } | |
7103 | ||
7104 | ||
7105 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7106 | PyObject *resultobj = 0; | |
7107 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7108 | unsigned long arg2 ; | |
7109 | void *argp1 = 0 ; | |
7110 | int res1 = 0 ; | |
7111 | unsigned long val2 ; | |
7112 | int ecode2 = 0 ; | |
7113 | PyObject * obj0 = 0 ; | |
7114 | PyObject * obj1 = 0 ; | |
7115 | char * kwnames[] = { | |
7116 | (char *) "self",(char *) "len", NULL | |
7117 | }; | |
7118 | ||
7119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail; | |
7120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7121 | if (!SWIG_IsOK(res1)) { | |
7122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7123 | } | |
7124 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7125 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
7126 | if (!SWIG_IsOK(ecode2)) { | |
7127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'"); | |
7128 | } | |
7129 | arg2 = static_cast< unsigned long >(val2); | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | (arg1)->SetMaxLength(arg2); | |
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | resultobj = SWIG_Py_Void(); | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj = 0; | |
7145 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7146 | wxString *arg2 = 0 ; | |
7147 | void *argp1 = 0 ; | |
7148 | int res1 = 0 ; | |
7149 | bool temp2 = false ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | char * kwnames[] = { | |
7153 | (char *) "self",(char *) "text", NULL | |
7154 | }; | |
7155 | ||
7156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7158 | if (!SWIG_IsOK(res1)) { | |
7159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7160 | } | |
7161 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7162 | { | |
7163 | arg2 = wxString_in_helper(obj1); | |
7164 | if (arg2 == NULL) SWIG_fail; | |
7165 | temp2 = true; | |
7166 | } | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | (arg1)->WriteText((wxString const &)*arg2); | |
7170 | wxPyEndAllowThreads(__tstate); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | } | |
7173 | resultobj = SWIG_Py_Void(); | |
7174 | { | |
7175 | if (temp2) | |
7176 | delete arg2; | |
7177 | } | |
7178 | return resultobj; | |
7179 | fail: | |
7180 | { | |
7181 | if (temp2) | |
7182 | delete arg2; | |
7183 | } | |
7184 | return NULL; | |
7185 | } | |
7186 | ||
7187 | ||
7188 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7189 | PyObject *resultobj = 0; | |
7190 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7191 | wxString *arg2 = 0 ; | |
7192 | void *argp1 = 0 ; | |
7193 | int res1 = 0 ; | |
7194 | bool temp2 = false ; | |
7195 | PyObject * obj0 = 0 ; | |
7196 | PyObject * obj1 = 0 ; | |
7197 | char * kwnames[] = { | |
7198 | (char *) "self",(char *) "text", NULL | |
7199 | }; | |
7200 | ||
7201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail; | |
7202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7203 | if (!SWIG_IsOK(res1)) { | |
7204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7205 | } | |
7206 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7207 | { | |
7208 | arg2 = wxString_in_helper(obj1); | |
7209 | if (arg2 == NULL) SWIG_fail; | |
7210 | temp2 = true; | |
7211 | } | |
7212 | { | |
7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7214 | (arg1)->AppendText((wxString const &)*arg2); | |
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
7217 | } | |
7218 | resultobj = SWIG_Py_Void(); | |
7219 | { | |
7220 | if (temp2) | |
7221 | delete arg2; | |
7222 | } | |
7223 | return resultobj; | |
7224 | fail: | |
7225 | { | |
7226 | if (temp2) | |
7227 | delete arg2; | |
7228 | } | |
7229 | return NULL; | |
7230 | } | |
7231 | ||
7232 | ||
7233 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7234 | PyObject *resultobj = 0; | |
7235 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7236 | wxRichTextRange *arg2 = 0 ; | |
7237 | wxRichTextAttr *arg3 = 0 ; | |
7238 | bool result; | |
7239 | void *argp1 = 0 ; | |
7240 | int res1 = 0 ; | |
7241 | wxRichTextRange temp2 ; | |
7242 | void *argp3 = 0 ; | |
7243 | int res3 = 0 ; | |
7244 | PyObject * obj0 = 0 ; | |
7245 | PyObject * obj1 = 0 ; | |
7246 | PyObject * obj2 = 0 ; | |
7247 | char * kwnames[] = { | |
7248 | (char *) "self",(char *) "range",(char *) "style", NULL | |
7249 | }; | |
7250 | ||
7251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7253 | if (!SWIG_IsOK(res1)) { | |
7254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7255 | } | |
7256 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7257 | { | |
7258 | arg2 = &temp2; | |
7259 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7260 | } | |
7261 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7262 | if (!SWIG_IsOK(res3)) { | |
7263 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7264 | } | |
7265 | if (!argp3) { | |
7266 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7267 | } | |
7268 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7269 | { | |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7271 | result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
7272 | wxPyEndAllowThreads(__tstate); | |
7273 | if (PyErr_Occurred()) SWIG_fail; | |
7274 | } | |
7275 | { | |
7276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7277 | } | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
b39fe951 RD |
7284 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7285 | PyObject *resultobj = 0; | |
7286 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7287 | wxRichTextRange *arg2 = 0 ; | |
7288 | wxRichTextAttr *arg3 = 0 ; | |
7289 | int arg4 = (int) wxRICHTEXT_SETSTYLE_WITH_UNDO ; | |
7290 | bool result; | |
7291 | void *argp1 = 0 ; | |
7292 | int res1 = 0 ; | |
7293 | wxRichTextRange temp2 ; | |
7294 | void *argp3 = 0 ; | |
7295 | int res3 = 0 ; | |
7296 | int val4 ; | |
7297 | int ecode4 = 0 ; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | PyObject * obj1 = 0 ; | |
7300 | PyObject * obj2 = 0 ; | |
7301 | PyObject * obj3 = 0 ; | |
7302 | char * kwnames[] = { | |
7303 | (char *) "self",(char *) "range",(char *) "style",(char *) "flags", NULL | |
7304 | }; | |
7305 | ||
7306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:RichTextCtrl_SetStyleEx",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7308 | if (!SWIG_IsOK(res1)) { | |
7309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7310 | } | |
7311 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7312 | { | |
7313 | arg2 = &temp2; | |
7314 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
7315 | } | |
7316 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7317 | if (!SWIG_IsOK(res3)) { | |
7318 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7319 | } | |
7320 | if (!argp3) { | |
7321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
7322 | } | |
7323 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7324 | if (obj3) { | |
7325 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7326 | if (!SWIG_IsOK(ecode4)) { | |
7327 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "4"" of type '" "int""'"); | |
7328 | } | |
7329 | arg4 = static_cast< int >(val4); | |
7330 | } | |
7331 | { | |
7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7333 | result = (bool)(arg1)->SetStyleEx((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3,arg4); | |
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
7337 | { | |
7338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7339 | } | |
7340 | return resultobj; | |
7341 | fail: | |
7342 | return NULL; | |
7343 | } | |
7344 | ||
7345 | ||
06810ecf RD |
7346 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7347 | PyObject *resultobj = 0; | |
7348 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7349 | long arg2 ; | |
7350 | wxRichTextAttr *arg3 = 0 ; | |
7351 | bool result; | |
7352 | void *argp1 = 0 ; | |
7353 | int res1 = 0 ; | |
7354 | long val2 ; | |
7355 | int ecode2 = 0 ; | |
7356 | void *argp3 = 0 ; | |
7357 | int res3 = 0 ; | |
7358 | PyObject * obj0 = 0 ; | |
7359 | PyObject * obj1 = 0 ; | |
7360 | PyObject * obj2 = 0 ; | |
7361 | char * kwnames[] = { | |
7362 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7363 | }; | |
7364 | ||
7365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7367 | if (!SWIG_IsOK(res1)) { | |
79df624a | 7368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
7369 | } |
7370 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7371 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7372 | if (!SWIG_IsOK(ecode2)) { | |
7373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'"); | |
7374 | } | |
7375 | arg2 = static_cast< long >(val2); | |
7376 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7377 | if (!SWIG_IsOK(res3)) { | |
7378 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7379 | } | |
7380 | if (!argp3) { | |
7381 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7382 | } | |
7383 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7384 | { | |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 7386 | result = (bool)(arg1)->GetStyle(arg2,*arg3); |
06810ecf RD |
7387 | wxPyEndAllowThreads(__tstate); |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
7390 | { | |
7391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7392 | } | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
c2829a8f RD |
7399 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetUncombinedStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7400 | PyObject *resultobj = 0; | |
7401 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7402 | long arg2 ; | |
7403 | wxRichTextAttr *arg3 = 0 ; | |
7404 | bool result; | |
7405 | void *argp1 = 0 ; | |
7406 | int res1 = 0 ; | |
7407 | long val2 ; | |
7408 | int ecode2 = 0 ; | |
7409 | void *argp3 = 0 ; | |
7410 | int res3 = 0 ; | |
7411 | PyObject * obj0 = 0 ; | |
7412 | PyObject * obj1 = 0 ; | |
7413 | PyObject * obj2 = 0 ; | |
7414 | char * kwnames[] = { | |
7415 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7416 | }; | |
7417 | ||
7418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetUncombinedStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7420 | if (!SWIG_IsOK(res1)) { | |
7421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7422 | } | |
7423 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7424 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7425 | if (!SWIG_IsOK(ecode2)) { | |
7426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "2"" of type '" "long""'"); | |
7427 | } | |
7428 | arg2 = static_cast< long >(val2); | |
7429 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 ); | |
7430 | if (!SWIG_IsOK(res3)) { | |
7431 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7432 | } | |
7433 | if (!argp3) { | |
7434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'"); | |
7435 | } | |
7436 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
7437 | { | |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7439 | result = (bool)(arg1)->GetUncombinedStyle(arg2,*arg3); | |
7440 | wxPyEndAllowThreads(__tstate); | |
7441 | if (PyErr_Occurred()) SWIG_fail; | |
7442 | } | |
7443 | { | |
7444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7445 | } | |
7446 | return resultobj; | |
7447 | fail: | |
7448 | return NULL; | |
7449 | } | |
7450 | ||
7451 | ||
06810ecf RD |
7452 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7453 | PyObject *resultobj = 0; | |
7454 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7455 | wxRichTextAttr *arg2 = 0 ; | |
7456 | bool result; | |
7457 | void *argp1 = 0 ; | |
7458 | int res1 = 0 ; | |
7459 | void *argp2 = 0 ; | |
7460 | int res2 = 0 ; | |
7461 | PyObject * obj0 = 0 ; | |
7462 | PyObject * obj1 = 0 ; | |
7463 | char * kwnames[] = { | |
7464 | (char *) "self",(char *) "style", NULL | |
7465 | }; | |
7466 | ||
7467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
7468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7469 | if (!SWIG_IsOK(res1)) { | |
7470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7471 | } | |
7472 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7473 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
7474 | if (!SWIG_IsOK(res2)) { | |
7475 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7476 | } | |
7477 | if (!argp2) { | |
7478 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
7479 | } | |
7480 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
7481 | { | |
7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7483 | result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2); | |
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | { | |
7488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7489 | } | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7497 | PyObject *resultobj = 0; | |
7498 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7499 | wxRichTextAttr result; | |
7500 | void *argp1 = 0 ; | |
7501 | int res1 = 0 ; | |
7502 | PyObject *swig_obj[1] ; | |
7503 | ||
7504 | if (!args) SWIG_fail; | |
7505 | swig_obj[0] = args; | |
7506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7507 | if (!SWIG_IsOK(res1)) { | |
7508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7509 | } | |
7510 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7511 | { | |
7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7513 | result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx(); | |
7514 | wxPyEndAllowThreads(__tstate); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
7516 | } | |
7517 | resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 ); | |
7518 | return resultobj; | |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
7524 | SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7525 | PyObject *resultobj = 0; | |
7526 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7527 | long arg2 ; | |
7528 | long arg3 ; | |
7529 | long result; | |
7530 | void *argp1 = 0 ; | |
7531 | int res1 = 0 ; | |
7532 | long val2 ; | |
7533 | int ecode2 = 0 ; | |
7534 | long val3 ; | |
7535 | int ecode3 = 0 ; | |
7536 | PyObject * obj0 = 0 ; | |
7537 | PyObject * obj1 = 0 ; | |
7538 | PyObject * obj2 = 0 ; | |
7539 | char * kwnames[] = { | |
7540 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7541 | }; | |
7542 | ||
7543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7545 | if (!SWIG_IsOK(res1)) { | |
7546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7547 | } | |
7548 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7549 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7550 | if (!SWIG_IsOK(ecode2)) { | |
7551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'"); | |
7552 | } | |
7553 | arg2 = static_cast< long >(val2); | |
7554 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
7555 | if (!SWIG_IsOK(ecode3)) { | |
7556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'"); | |
7557 | } | |
7558 | arg3 = static_cast< long >(val3); | |
7559 | { | |
7560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7561 | result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7562 | wxPyEndAllowThreads(__tstate); | |
7563 | if (PyErr_Occurred()) SWIG_fail; | |
7564 | } | |
7565 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
7566 | return resultobj; | |
7567 | fail: | |
7568 | return NULL; | |
7569 | } | |
7570 | ||
7571 | ||
7572 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7573 | PyObject *resultobj = 0; | |
7574 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7575 | long arg2 ; | |
7576 | long *arg3 = (long *) 0 ; | |
7577 | long *arg4 = (long *) 0 ; | |
7578 | void *argp1 = 0 ; | |
7579 | int res1 = 0 ; | |
7580 | long val2 ; | |
7581 | int ecode2 = 0 ; | |
7582 | long temp3 ; | |
7583 | int res3 = SWIG_TMPOBJ ; | |
7584 | long temp4 ; | |
7585 | int res4 = SWIG_TMPOBJ ; | |
7586 | PyObject * obj0 = 0 ; | |
7587 | PyObject * obj1 = 0 ; | |
7588 | char * kwnames[] = { | |
7589 | (char *) "self",(char *) "pos", NULL | |
7590 | }; | |
7591 | ||
7592 | arg3 = &temp3; | |
7593 | arg4 = &temp4; | |
7594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail; | |
7595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7596 | if (!SWIG_IsOK(res1)) { | |
7597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7598 | } | |
7599 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7600 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7601 | if (!SWIG_IsOK(ecode2)) { | |
7602 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'"); | |
7603 | } | |
7604 | arg2 = static_cast< long >(val2); | |
7605 | { | |
7606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7607 | ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | } | |
7611 | resultobj = SWIG_Py_Void(); | |
7612 | if (SWIG_IsTmpObj(res3)) { | |
7613 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7614 | } else { | |
7615 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7616 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7617 | } | |
7618 | if (SWIG_IsTmpObj(res4)) { | |
7619 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4))); | |
7620 | } else { | |
7621 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7622 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags)); | |
7623 | } | |
7624 | return resultobj; | |
7625 | fail: | |
7626 | return NULL; | |
7627 | } | |
7628 | ||
7629 | ||
7630 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7631 | PyObject *resultobj = 0; | |
7632 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7633 | long arg2 ; | |
7634 | void *argp1 = 0 ; | |
7635 | int res1 = 0 ; | |
7636 | long val2 ; | |
7637 | int ecode2 = 0 ; | |
7638 | PyObject * obj0 = 0 ; | |
7639 | PyObject * obj1 = 0 ; | |
7640 | char * kwnames[] = { | |
7641 | (char *) "self",(char *) "position", NULL | |
7642 | }; | |
7643 | ||
7644 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail; | |
7645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7646 | if (!SWIG_IsOK(res1)) { | |
7647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7648 | } | |
7649 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7650 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
7651 | if (!SWIG_IsOK(ecode2)) { | |
7652 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'"); | |
7653 | } | |
7654 | arg2 = static_cast< long >(val2); | |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | (arg1)->ShowPosition(arg2); | |
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
7661 | resultobj = SWIG_Py_Void(); | |
7662 | return resultobj; | |
7663 | fail: | |
7664 | return NULL; | |
7665 | } | |
7666 | ||
7667 | ||
7668 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7669 | PyObject *resultobj = 0; | |
7670 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7671 | wxPoint *arg2 = 0 ; | |
7672 | long *arg3 = (long *) 0 ; | |
7673 | wxTextCtrlHitTestResult result; | |
7674 | void *argp1 = 0 ; | |
7675 | int res1 = 0 ; | |
7676 | wxPoint temp2 ; | |
7677 | long temp3 ; | |
7678 | int res3 = SWIG_TMPOBJ ; | |
7679 | PyObject * obj0 = 0 ; | |
7680 | PyObject * obj1 = 0 ; | |
7681 | char * kwnames[] = { | |
7682 | (char *) "self",(char *) "pt", NULL | |
7683 | }; | |
7684 | ||
7685 | arg3 = &temp3; | |
7686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail; | |
7687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7688 | if (!SWIG_IsOK(res1)) { | |
7689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7690 | } | |
7691 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7692 | { | |
7693 | arg2 = &temp2; | |
7694 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7695 | } | |
7696 | { | |
7697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7698 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
7699 | wxPyEndAllowThreads(__tstate); | |
7700 | if (PyErr_Occurred()) SWIG_fail; | |
7701 | } | |
7702 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7703 | if (SWIG_IsTmpObj(res3)) { | |
7704 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3))); | |
7705 | } else { | |
7706 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
7707 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags)); | |
7708 | } | |
7709 | return resultobj; | |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
7715 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7716 | PyObject *resultobj = 0; | |
7717 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7718 | wxPoint *arg2 = 0 ; | |
7719 | wxTextCoord *arg3 = (wxTextCoord *) 0 ; | |
7720 | wxTextCoord *arg4 = (wxTextCoord *) 0 ; | |
7721 | wxTextCtrlHitTestResult result; | |
7722 | void *argp1 = 0 ; | |
7723 | int res1 = 0 ; | |
7724 | wxPoint temp2 ; | |
7725 | void *argp3 = 0 ; | |
7726 | int res3 = 0 ; | |
7727 | void *argp4 = 0 ; | |
7728 | int res4 = 0 ; | |
7729 | PyObject * obj0 = 0 ; | |
7730 | PyObject * obj1 = 0 ; | |
7731 | PyObject * obj2 = 0 ; | |
7732 | PyObject * obj3 = 0 ; | |
7733 | char * kwnames[] = { | |
7734 | (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL | |
7735 | }; | |
7736 | ||
7737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7739 | if (!SWIG_IsOK(res1)) { | |
7740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7741 | } | |
7742 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7743 | { | |
7744 | arg2 = &temp2; | |
7745 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
7746 | } | |
7747 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7748 | if (!SWIG_IsOK(res3)) { | |
7749 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'"); | |
7750 | } | |
7751 | arg3 = reinterpret_cast< wxTextCoord * >(argp3); | |
7752 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 ); | |
7753 | if (!SWIG_IsOK(res4)) { | |
7754 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'"); | |
7755 | } | |
7756 | arg4 = reinterpret_cast< wxTextCoord * >(argp4); | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
7760 | wxPyEndAllowThreads(__tstate); | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | } | |
7763 | resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 ); | |
7764 | return resultobj; | |
7765 | fail: | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
7770 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7771 | PyObject *resultobj = 0; | |
7772 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7773 | void *argp1 = 0 ; | |
7774 | int res1 = 0 ; | |
7775 | PyObject *swig_obj[1] ; | |
7776 | ||
7777 | if (!args) SWIG_fail; | |
7778 | swig_obj[0] = args; | |
7779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7780 | if (!SWIG_IsOK(res1)) { | |
7781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7782 | } | |
7783 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | (arg1)->Copy(); | |
7787 | wxPyEndAllowThreads(__tstate); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | resultobj = SWIG_Py_Void(); | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7798 | PyObject *resultobj = 0; | |
7799 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7800 | void *argp1 = 0 ; | |
7801 | int res1 = 0 ; | |
7802 | PyObject *swig_obj[1] ; | |
7803 | ||
7804 | if (!args) SWIG_fail; | |
7805 | swig_obj[0] = args; | |
7806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7807 | if (!SWIG_IsOK(res1)) { | |
7808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7809 | } | |
7810 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7811 | { | |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7813 | (arg1)->Cut(); | |
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | resultobj = SWIG_Py_Void(); | |
7818 | return resultobj; | |
7819 | fail: | |
7820 | return NULL; | |
7821 | } | |
7822 | ||
7823 | ||
7824 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7825 | PyObject *resultobj = 0; | |
7826 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7827 | void *argp1 = 0 ; | |
7828 | int res1 = 0 ; | |
7829 | PyObject *swig_obj[1] ; | |
7830 | ||
7831 | if (!args) SWIG_fail; | |
7832 | swig_obj[0] = args; | |
7833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7834 | if (!SWIG_IsOK(res1)) { | |
7835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7836 | } | |
7837 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | (arg1)->Paste(); | |
7841 | wxPyEndAllowThreads(__tstate); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | } | |
7844 | resultobj = SWIG_Py_Void(); | |
7845 | return resultobj; | |
7846 | fail: | |
7847 | return NULL; | |
7848 | } | |
7849 | ||
7850 | ||
7851 | SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7852 | PyObject *resultobj = 0; | |
7853 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7854 | void *argp1 = 0 ; | |
7855 | int res1 = 0 ; | |
7856 | PyObject *swig_obj[1] ; | |
7857 | ||
7858 | if (!args) SWIG_fail; | |
7859 | swig_obj[0] = args; | |
7860 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7861 | if (!SWIG_IsOK(res1)) { | |
7862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
7863 | } | |
7864 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7865 | { | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | (arg1)->DeleteSelection(); | |
7868 | wxPyEndAllowThreads(__tstate); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
7870 | } | |
7871 | resultobj = SWIG_Py_Void(); | |
7872 | return resultobj; | |
7873 | fail: | |
7874 | return NULL; | |
7875 | } | |
7876 | ||
7877 | ||
7878 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7879 | PyObject *resultobj = 0; | |
7880 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7881 | bool result; | |
7882 | void *argp1 = 0 ; | |
7883 | int res1 = 0 ; | |
7884 | PyObject *swig_obj[1] ; | |
7885 | ||
7886 | if (!args) SWIG_fail; | |
7887 | swig_obj[0] = args; | |
7888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7889 | if (!SWIG_IsOK(res1)) { | |
7890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7891 | } | |
7892 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7893 | { | |
7894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7895 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy(); | |
7896 | wxPyEndAllowThreads(__tstate); | |
7897 | if (PyErr_Occurred()) SWIG_fail; | |
7898 | } | |
7899 | { | |
7900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7901 | } | |
7902 | return resultobj; | |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
7908 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7909 | PyObject *resultobj = 0; | |
7910 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7911 | bool result; | |
7912 | void *argp1 = 0 ; | |
7913 | int res1 = 0 ; | |
7914 | PyObject *swig_obj[1] ; | |
7915 | ||
7916 | if (!args) SWIG_fail; | |
7917 | swig_obj[0] = args; | |
7918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7919 | if (!SWIG_IsOK(res1)) { | |
7920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7921 | } | |
7922 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7923 | { | |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | result = (bool)((wxRichTextCtrl const *)arg1)->CanCut(); | |
7926 | wxPyEndAllowThreads(__tstate); | |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
7928 | } | |
7929 | { | |
7930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7931 | } | |
7932 | return resultobj; | |
7933 | fail: | |
7934 | return NULL; | |
7935 | } | |
7936 | ||
7937 | ||
7938 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7939 | PyObject *resultobj = 0; | |
7940 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7941 | bool result; | |
7942 | void *argp1 = 0 ; | |
7943 | int res1 = 0 ; | |
7944 | PyObject *swig_obj[1] ; | |
7945 | ||
7946 | if (!args) SWIG_fail; | |
7947 | swig_obj[0] = args; | |
7948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7949 | if (!SWIG_IsOK(res1)) { | |
7950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7951 | } | |
7952 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7953 | { | |
7954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7955 | result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste(); | |
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | { | |
7960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7961 | } | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
7968 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7969 | PyObject *resultobj = 0; | |
7970 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
7971 | bool result; | |
7972 | void *argp1 = 0 ; | |
7973 | int res1 = 0 ; | |
7974 | PyObject *swig_obj[1] ; | |
7975 | ||
7976 | if (!args) SWIG_fail; | |
7977 | swig_obj[0] = args; | |
7978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
7979 | if (!SWIG_IsOK(res1)) { | |
7980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
7981 | } | |
7982 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
7983 | { | |
7984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7985 | result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection(); | |
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | } | |
7989 | { | |
7990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7991 | } | |
7992 | return resultobj; | |
7993 | fail: | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
7998 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7999 | PyObject *resultobj = 0; | |
8000 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8001 | void *argp1 = 0 ; | |
8002 | int res1 = 0 ; | |
8003 | PyObject *swig_obj[1] ; | |
8004 | ||
8005 | if (!args) SWIG_fail; | |
8006 | swig_obj[0] = args; | |
8007 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8008 | if (!SWIG_IsOK(res1)) { | |
8009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8010 | } | |
8011 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8012 | { | |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | (arg1)->Undo(); | |
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | resultobj = SWIG_Py_Void(); | |
8019 | return resultobj; | |
8020 | fail: | |
8021 | return NULL; | |
8022 | } | |
8023 | ||
8024 | ||
8025 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8026 | PyObject *resultobj = 0; | |
8027 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8028 | void *argp1 = 0 ; | |
8029 | int res1 = 0 ; | |
8030 | PyObject *swig_obj[1] ; | |
8031 | ||
8032 | if (!args) SWIG_fail; | |
8033 | swig_obj[0] = args; | |
8034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8035 | if (!SWIG_IsOK(res1)) { | |
8036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8037 | } | |
8038 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8039 | { | |
8040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8041 | (arg1)->Redo(); | |
8042 | wxPyEndAllowThreads(__tstate); | |
8043 | if (PyErr_Occurred()) SWIG_fail; | |
8044 | } | |
8045 | resultobj = SWIG_Py_Void(); | |
8046 | return resultobj; | |
8047 | fail: | |
8048 | return NULL; | |
8049 | } | |
8050 | ||
8051 | ||
8052 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8053 | PyObject *resultobj = 0; | |
8054 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8055 | bool result; | |
8056 | void *argp1 = 0 ; | |
8057 | int res1 = 0 ; | |
8058 | PyObject *swig_obj[1] ; | |
8059 | ||
8060 | if (!args) SWIG_fail; | |
8061 | swig_obj[0] = args; | |
8062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8063 | if (!SWIG_IsOK(res1)) { | |
8064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8065 | } | |
8066 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8067 | { | |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8069 | result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo(); | |
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | { | |
8074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8075 | } | |
8076 | return resultobj; | |
8077 | fail: | |
8078 | return NULL; | |
8079 | } | |
8080 | ||
8081 | ||
8082 | SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8083 | PyObject *resultobj = 0; | |
8084 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8085 | bool result; | |
8086 | void *argp1 = 0 ; | |
8087 | int res1 = 0 ; | |
8088 | PyObject *swig_obj[1] ; | |
8089 | ||
8090 | if (!args) SWIG_fail; | |
8091 | swig_obj[0] = args; | |
8092 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8093 | if (!SWIG_IsOK(res1)) { | |
8094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8095 | } | |
8096 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8097 | { | |
8098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8099 | result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo(); | |
8100 | wxPyEndAllowThreads(__tstate); | |
8101 | if (PyErr_Occurred()) SWIG_fail; | |
8102 | } | |
8103 | { | |
8104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8105 | } | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | return NULL; | |
8109 | } | |
8110 | ||
8111 | ||
8112 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8113 | PyObject *resultobj = 0; | |
8114 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8115 | long arg2 ; | |
8116 | void *argp1 = 0 ; | |
8117 | int res1 = 0 ; | |
8118 | long val2 ; | |
8119 | int ecode2 = 0 ; | |
8120 | PyObject * obj0 = 0 ; | |
8121 | PyObject * obj1 = 0 ; | |
8122 | char * kwnames[] = { | |
8123 | (char *) "self",(char *) "pos", NULL | |
8124 | }; | |
8125 | ||
8126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
8127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8128 | if (!SWIG_IsOK(res1)) { | |
8129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8130 | } | |
8131 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8132 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8133 | if (!SWIG_IsOK(ecode2)) { | |
8134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'"); | |
8135 | } | |
8136 | arg2 = static_cast< long >(val2); | |
8137 | { | |
8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8139 | (arg1)->SetInsertionPoint(arg2); | |
8140 | wxPyEndAllowThreads(__tstate); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
8143 | resultobj = SWIG_Py_Void(); | |
8144 | return resultobj; | |
8145 | fail: | |
8146 | return NULL; | |
8147 | } | |
8148 | ||
8149 | ||
8150 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8151 | PyObject *resultobj = 0; | |
8152 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8153 | void *argp1 = 0 ; | |
8154 | int res1 = 0 ; | |
8155 | PyObject *swig_obj[1] ; | |
8156 | ||
8157 | if (!args) SWIG_fail; | |
8158 | swig_obj[0] = args; | |
8159 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8160 | if (!SWIG_IsOK(res1)) { | |
8161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8162 | } | |
8163 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8164 | { | |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | (arg1)->SetInsertionPointEnd(); | |
8167 | wxPyEndAllowThreads(__tstate); | |
8168 | if (PyErr_Occurred()) SWIG_fail; | |
8169 | } | |
8170 | resultobj = SWIG_Py_Void(); | |
8171 | return resultobj; | |
8172 | fail: | |
8173 | return NULL; | |
8174 | } | |
8175 | ||
8176 | ||
8177 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8178 | PyObject *resultobj = 0; | |
8179 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8180 | long result; | |
8181 | void *argp1 = 0 ; | |
8182 | int res1 = 0 ; | |
8183 | PyObject *swig_obj[1] ; | |
8184 | ||
8185 | if (!args) SWIG_fail; | |
8186 | swig_obj[0] = args; | |
8187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8188 | if (!SWIG_IsOK(res1)) { | |
8189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8190 | } | |
8191 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8192 | { | |
8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8194 | result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint(); | |
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8199 | return resultobj; | |
8200 | fail: | |
8201 | return NULL; | |
8202 | } | |
8203 | ||
8204 | ||
8205 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8206 | PyObject *resultobj = 0; | |
8207 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8208 | long result; | |
8209 | void *argp1 = 0 ; | |
8210 | int res1 = 0 ; | |
8211 | PyObject *swig_obj[1] ; | |
8212 | ||
8213 | if (!args) SWIG_fail; | |
8214 | swig_obj[0] = args; | |
8215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8216 | if (!SWIG_IsOK(res1)) { | |
8217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8218 | } | |
8219 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8220 | { | |
8221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8222 | result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition(); | |
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
8227 | return resultobj; | |
8228 | fail: | |
8229 | return NULL; | |
8230 | } | |
8231 | ||
8232 | ||
8233 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8234 | PyObject *resultobj = 0; | |
8235 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8236 | long arg2 ; | |
8237 | long arg3 ; | |
8238 | void *argp1 = 0 ; | |
8239 | int res1 = 0 ; | |
8240 | long val2 ; | |
8241 | int ecode2 = 0 ; | |
8242 | long val3 ; | |
8243 | int ecode3 = 0 ; | |
8244 | PyObject * obj0 = 0 ; | |
8245 | PyObject * obj1 = 0 ; | |
8246 | PyObject * obj2 = 0 ; | |
8247 | char * kwnames[] = { | |
8248 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8249 | }; | |
8250 | ||
8251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8253 | if (!SWIG_IsOK(res1)) { | |
8254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8255 | } | |
8256 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8257 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
8258 | if (!SWIG_IsOK(ecode2)) { | |
8259 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'"); | |
8260 | } | |
8261 | arg2 = static_cast< long >(val2); | |
8262 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
8263 | if (!SWIG_IsOK(ecode3)) { | |
8264 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'"); | |
8265 | } | |
8266 | arg3 = static_cast< long >(val3); | |
8267 | { | |
8268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8269 | (arg1)->SetSelection(arg2,arg3); | |
8270 | wxPyEndAllowThreads(__tstate); | |
8271 | if (PyErr_Occurred()) SWIG_fail; | |
8272 | } | |
8273 | resultobj = SWIG_Py_Void(); | |
8274 | return resultobj; | |
8275 | fail: | |
8276 | return NULL; | |
8277 | } | |
8278 | ||
8279 | ||
8280 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8281 | PyObject *resultobj = 0; | |
8282 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8283 | void *argp1 = 0 ; | |
8284 | int res1 = 0 ; | |
8285 | PyObject *swig_obj[1] ; | |
8286 | ||
8287 | if (!args) SWIG_fail; | |
8288 | swig_obj[0] = args; | |
8289 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8290 | if (!SWIG_IsOK(res1)) { | |
8291 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8292 | } | |
8293 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | (arg1)->SelectAll(); | |
8297 | wxPyEndAllowThreads(__tstate); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
8300 | resultobj = SWIG_Py_Void(); | |
8301 | return resultobj; | |
8302 | fail: | |
8303 | return NULL; | |
8304 | } | |
8305 | ||
8306 | ||
8307 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8308 | PyObject *resultobj = 0; | |
8309 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8310 | bool arg2 ; | |
8311 | void *argp1 = 0 ; | |
8312 | int res1 = 0 ; | |
8313 | bool val2 ; | |
8314 | int ecode2 = 0 ; | |
8315 | PyObject * obj0 = 0 ; | |
8316 | PyObject * obj1 = 0 ; | |
8317 | char * kwnames[] = { | |
8318 | (char *) "self",(char *) "editable", NULL | |
8319 | }; | |
8320 | ||
8321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail; | |
8322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8323 | if (!SWIG_IsOK(res1)) { | |
8324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8325 | } | |
8326 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8327 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
8328 | if (!SWIG_IsOK(ecode2)) { | |
8329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'"); | |
8330 | } | |
8331 | arg2 = static_cast< bool >(val2); | |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | (arg1)->SetEditable(arg2); | |
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
8338 | resultobj = SWIG_Py_Void(); | |
8339 | return resultobj; | |
8340 | fail: | |
8341 | return NULL; | |
8342 | } | |
8343 | ||
8344 | ||
8345 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8346 | PyObject *resultobj = 0; | |
8347 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8348 | bool result; | |
8349 | void *argp1 = 0 ; | |
8350 | int res1 = 0 ; | |
8351 | PyObject *swig_obj[1] ; | |
8352 | ||
8353 | if (!args) SWIG_fail; | |
8354 | swig_obj[0] = args; | |
8355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8356 | if (!SWIG_IsOK(res1)) { | |
8357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
8358 | } | |
8359 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8360 | { | |
8361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8362 | result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection(); | |
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
8366 | { | |
8367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8368 | } | |
8369 | return resultobj; | |
8370 | fail: | |
8371 | return NULL; | |
8372 | } | |
8373 | ||
8374 | ||
8375 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8376 | PyObject *resultobj = 0; | |
8377 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8378 | wxImage *arg2 = 0 ; | |
8379 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8380 | bool result; | |
8381 | void *argp1 = 0 ; | |
8382 | int res1 = 0 ; | |
8383 | void *argp2 = 0 ; | |
8384 | int res2 = 0 ; | |
8385 | int val3 ; | |
8386 | int ecode3 = 0 ; | |
8387 | PyObject * obj0 = 0 ; | |
8388 | PyObject * obj1 = 0 ; | |
8389 | PyObject * obj2 = 0 ; | |
8390 | char * kwnames[] = { | |
8391 | (char *) "self",(char *) "image",(char *) "bitmapType", NULL | |
8392 | }; | |
8393 | ||
8394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8396 | if (!SWIG_IsOK(res1)) { | |
8397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8398 | } | |
8399 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8400 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
8401 | if (!SWIG_IsOK(res2)) { | |
8402 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8403 | } | |
8404 | if (!argp2) { | |
8405 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
8406 | } | |
8407 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
8408 | if (obj2) { | |
8409 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8410 | if (!SWIG_IsOK(ecode3)) { | |
8411 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'"); | |
8412 | } | |
8413 | arg3 = static_cast< int >(val3); | |
8414 | } | |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3); | |
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | { | |
8422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8423 | } | |
8424 | return resultobj; | |
8425 | fail: | |
8426 | return NULL; | |
8427 | } | |
8428 | ||
8429 | ||
8430 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8431 | PyObject *resultobj = 0; | |
8432 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8433 | wxBitmap *arg2 = 0 ; | |
8434 | int arg3 = (int) wxBITMAP_TYPE_PNG ; | |
8435 | bool result; | |
8436 | void *argp1 = 0 ; | |
8437 | int res1 = 0 ; | |
8438 | void *argp2 = 0 ; | |
8439 | int res2 = 0 ; | |
8440 | int val3 ; | |
8441 | int ecode3 = 0 ; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | PyObject * obj1 = 0 ; | |
8444 | PyObject * obj2 = 0 ; | |
8445 | char * kwnames[] = { | |
8446 | (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL | |
8447 | }; | |
8448 | ||
8449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8451 | if (!SWIG_IsOK(res1)) { | |
8452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8453 | } | |
8454 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8455 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8456 | if (!SWIG_IsOK(res2)) { | |
8457 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8458 | } | |
8459 | if (!argp2) { | |
8460 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
8461 | } | |
8462 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
8463 | if (obj2) { | |
8464 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8465 | if (!SWIG_IsOK(ecode3)) { | |
8466 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'"); | |
8467 | } | |
8468 | arg3 = static_cast< int >(val3); | |
8469 | } | |
8470 | { | |
8471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8472 | result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3); | |
8473 | wxPyEndAllowThreads(__tstate); | |
8474 | if (PyErr_Occurred()) SWIG_fail; | |
8475 | } | |
8476 | { | |
8477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8478 | } | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj = 0; | |
8487 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8488 | wxString *arg2 = 0 ; | |
8489 | int arg3 ; | |
8490 | bool result; | |
8491 | void *argp1 = 0 ; | |
8492 | int res1 = 0 ; | |
8493 | bool temp2 = false ; | |
8494 | int val3 ; | |
8495 | int ecode3 = 0 ; | |
8496 | PyObject * obj0 = 0 ; | |
8497 | PyObject * obj1 = 0 ; | |
8498 | PyObject * obj2 = 0 ; | |
8499 | char * kwnames[] = { | |
8500 | (char *) "self",(char *) "filename",(char *) "bitmapType", NULL | |
8501 | }; | |
8502 | ||
8503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8505 | if (!SWIG_IsOK(res1)) { | |
8506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8507 | } | |
8508 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8509 | { | |
8510 | arg2 = wxString_in_helper(obj1); | |
8511 | if (arg2 == NULL) SWIG_fail; | |
8512 | temp2 = true; | |
8513 | } | |
8514 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8515 | if (!SWIG_IsOK(ecode3)) { | |
8516 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'"); | |
8517 | } | |
8518 | arg3 = static_cast< int >(val3); | |
8519 | { | |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3); | |
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | { | |
8526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8527 | } | |
8528 | { | |
8529 | if (temp2) | |
8530 | delete arg2; | |
8531 | } | |
8532 | return resultobj; | |
8533 | fail: | |
8534 | { | |
8535 | if (temp2) | |
8536 | delete arg2; | |
8537 | } | |
8538 | return NULL; | |
8539 | } | |
8540 | ||
8541 | ||
8542 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8543 | PyObject *resultobj = 0; | |
8544 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8545 | wxRichTextImageBlock *arg2 = 0 ; | |
8546 | bool result; | |
8547 | void *argp1 = 0 ; | |
8548 | int res1 = 0 ; | |
8549 | void *argp2 = 0 ; | |
8550 | int res2 = 0 ; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | PyObject * obj1 = 0 ; | |
8553 | char * kwnames[] = { | |
8554 | (char *) "self",(char *) "imageBlock", NULL | |
8555 | }; | |
8556 | ||
8557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail; | |
8558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8559 | if (!SWIG_IsOK(res1)) { | |
8560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8561 | } | |
8562 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0); | |
8564 | if (!SWIG_IsOK(res2)) { | |
8565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8566 | } | |
8567 | if (!argp2) { | |
8568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'"); | |
8569 | } | |
8570 | arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2); | |
8571 | { | |
8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8573 | result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2); | |
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | { | |
8578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8579 | } | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8587 | PyObject *resultobj = 0; | |
8588 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8589 | bool result; | |
8590 | void *argp1 = 0 ; | |
8591 | int res1 = 0 ; | |
8592 | PyObject *swig_obj[1] ; | |
8593 | ||
8594 | if (!args) SWIG_fail; | |
8595 | swig_obj[0] = args; | |
8596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8597 | if (!SWIG_IsOK(res1)) { | |
8598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8599 | } | |
8600 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8601 | { | |
8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8603 | result = (bool)(arg1)->Newline(); | |
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
8607 | { | |
8608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8609 | } | |
8610 | return resultobj; | |
8611 | fail: | |
8612 | return NULL; | |
8613 | } | |
8614 | ||
8615 | ||
8616 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8617 | PyObject *resultobj = 0; | |
8618 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8619 | wxRichTextAttr *arg2 = 0 ; | |
8620 | void *argp1 = 0 ; | |
8621 | int res1 = 0 ; | |
8622 | void *argp2 = 0 ; | |
8623 | int res2 = 0 ; | |
8624 | PyObject * obj0 = 0 ; | |
8625 | PyObject * obj1 = 0 ; | |
8626 | char * kwnames[] = { | |
8627 | (char *) "self",(char *) "style", NULL | |
8628 | }; | |
8629 | ||
8630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
8631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8632 | if (!SWIG_IsOK(res1)) { | |
8633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8634 | } | |
8635 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8636 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
8637 | if (!SWIG_IsOK(res2)) { | |
8638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8639 | } | |
8640 | if (!argp2) { | |
8641 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'"); | |
8642 | } | |
8643 | arg2 = reinterpret_cast< wxRichTextAttr * >(argp2); | |
8644 | { | |
8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8646 | (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2); | |
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | resultobj = SWIG_Py_Void(); | |
8651 | return resultobj; | |
8652 | fail: | |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
8657 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8658 | PyObject *resultobj = 0; | |
8659 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8660 | bool result; | |
8661 | void *argp1 = 0 ; | |
8662 | int res1 = 0 ; | |
8663 | PyObject *swig_obj[1] ; | |
8664 | ||
8665 | if (!args) SWIG_fail; | |
8666 | swig_obj[0] = args; | |
8667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8668 | if (!SWIG_IsOK(res1)) { | |
8669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8670 | } | |
8671 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8672 | { | |
8673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8674 | result = (bool)(arg1)->EndStyle(); | |
8675 | wxPyEndAllowThreads(__tstate); | |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8677 | } | |
8678 | { | |
8679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8680 | } | |
8681 | return resultobj; | |
8682 | fail: | |
8683 | return NULL; | |
8684 | } | |
8685 | ||
8686 | ||
8687 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8688 | PyObject *resultobj = 0; | |
8689 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8690 | bool result; | |
8691 | void *argp1 = 0 ; | |
8692 | int res1 = 0 ; | |
8693 | PyObject *swig_obj[1] ; | |
8694 | ||
8695 | if (!args) SWIG_fail; | |
8696 | swig_obj[0] = args; | |
8697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8698 | if (!SWIG_IsOK(res1)) { | |
8699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8700 | } | |
8701 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8702 | { | |
8703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8704 | result = (bool)(arg1)->EndAllStyles(); | |
8705 | wxPyEndAllowThreads(__tstate); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | { | |
8709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8710 | } | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | return NULL; | |
8714 | } | |
8715 | ||
8716 | ||
8717 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8718 | PyObject *resultobj = 0; | |
8719 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8720 | bool result; | |
8721 | void *argp1 = 0 ; | |
8722 | int res1 = 0 ; | |
8723 | PyObject *swig_obj[1] ; | |
8724 | ||
8725 | if (!args) SWIG_fail; | |
8726 | swig_obj[0] = args; | |
8727 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8728 | if (!SWIG_IsOK(res1)) { | |
8729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8730 | } | |
8731 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8732 | { | |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | result = (bool)(arg1)->BeginBold(); | |
8735 | wxPyEndAllowThreads(__tstate); | |
8736 | if (PyErr_Occurred()) SWIG_fail; | |
8737 | } | |
8738 | { | |
8739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8740 | } | |
8741 | return resultobj; | |
8742 | fail: | |
8743 | return NULL; | |
8744 | } | |
8745 | ||
8746 | ||
8747 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8748 | PyObject *resultobj = 0; | |
8749 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8750 | bool result; | |
8751 | void *argp1 = 0 ; | |
8752 | int res1 = 0 ; | |
8753 | PyObject *swig_obj[1] ; | |
8754 | ||
8755 | if (!args) SWIG_fail; | |
8756 | swig_obj[0] = args; | |
8757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8758 | if (!SWIG_IsOK(res1)) { | |
8759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8760 | } | |
8761 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = (bool)(arg1)->EndBold(); | |
8765 | wxPyEndAllowThreads(__tstate); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | } | |
8768 | { | |
8769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8770 | } | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
8777 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8778 | PyObject *resultobj = 0; | |
8779 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8780 | bool result; | |
8781 | void *argp1 = 0 ; | |
8782 | int res1 = 0 ; | |
8783 | PyObject *swig_obj[1] ; | |
8784 | ||
8785 | if (!args) SWIG_fail; | |
8786 | swig_obj[0] = args; | |
8787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8788 | if (!SWIG_IsOK(res1)) { | |
8789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8790 | } | |
8791 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8792 | { | |
8793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8794 | result = (bool)(arg1)->BeginItalic(); | |
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | { | |
8799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8800 | } | |
8801 | return resultobj; | |
8802 | fail: | |
8803 | return NULL; | |
8804 | } | |
8805 | ||
8806 | ||
8807 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8808 | PyObject *resultobj = 0; | |
8809 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8810 | bool result; | |
8811 | void *argp1 = 0 ; | |
8812 | int res1 = 0 ; | |
8813 | PyObject *swig_obj[1] ; | |
8814 | ||
8815 | if (!args) SWIG_fail; | |
8816 | swig_obj[0] = args; | |
8817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8818 | if (!SWIG_IsOK(res1)) { | |
8819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8820 | } | |
8821 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | result = (bool)(arg1)->EndItalic(); | |
8825 | wxPyEndAllowThreads(__tstate); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | } | |
8828 | { | |
8829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8830 | } | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | return NULL; | |
8834 | } | |
8835 | ||
8836 | ||
8837 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8838 | PyObject *resultobj = 0; | |
8839 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8840 | bool result; | |
8841 | void *argp1 = 0 ; | |
8842 | int res1 = 0 ; | |
8843 | PyObject *swig_obj[1] ; | |
8844 | ||
8845 | if (!args) SWIG_fail; | |
8846 | swig_obj[0] = args; | |
8847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8848 | if (!SWIG_IsOK(res1)) { | |
8849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8850 | } | |
8851 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8852 | { | |
8853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8854 | result = (bool)(arg1)->BeginUnderline(); | |
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | { | |
8859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8860 | } | |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
8867 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8868 | PyObject *resultobj = 0; | |
8869 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8870 | bool result; | |
8871 | void *argp1 = 0 ; | |
8872 | int res1 = 0 ; | |
8873 | PyObject *swig_obj[1] ; | |
8874 | ||
8875 | if (!args) SWIG_fail; | |
8876 | swig_obj[0] = args; | |
8877 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8878 | if (!SWIG_IsOK(res1)) { | |
8879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8880 | } | |
8881 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8882 | { | |
8883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8884 | result = (bool)(arg1)->EndUnderline(); | |
8885 | wxPyEndAllowThreads(__tstate); | |
8886 | if (PyErr_Occurred()) SWIG_fail; | |
8887 | } | |
8888 | { | |
8889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8890 | } | |
8891 | return resultobj; | |
8892 | fail: | |
8893 | return NULL; | |
8894 | } | |
8895 | ||
8896 | ||
8897 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8898 | PyObject *resultobj = 0; | |
8899 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8900 | int arg2 ; | |
8901 | bool result; | |
8902 | void *argp1 = 0 ; | |
8903 | int res1 = 0 ; | |
8904 | int val2 ; | |
8905 | int ecode2 = 0 ; | |
8906 | PyObject * obj0 = 0 ; | |
8907 | PyObject * obj1 = 0 ; | |
8908 | char * kwnames[] = { | |
8909 | (char *) "self",(char *) "pointSize", NULL | |
8910 | }; | |
8911 | ||
8912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
8913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8914 | if (!SWIG_IsOK(res1)) { | |
8915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8916 | } | |
8917 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8918 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8919 | if (!SWIG_IsOK(ecode2)) { | |
8920 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'"); | |
8921 | } | |
8922 | arg2 = static_cast< int >(val2); | |
8923 | { | |
8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8925 | result = (bool)(arg1)->BeginFontSize(arg2); | |
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | { | |
8930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8931 | } | |
8932 | return resultobj; | |
8933 | fail: | |
8934 | return NULL; | |
8935 | } | |
8936 | ||
8937 | ||
8938 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8939 | PyObject *resultobj = 0; | |
8940 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8941 | bool result; | |
8942 | void *argp1 = 0 ; | |
8943 | int res1 = 0 ; | |
8944 | PyObject *swig_obj[1] ; | |
8945 | ||
8946 | if (!args) SWIG_fail; | |
8947 | swig_obj[0] = args; | |
8948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8949 | if (!SWIG_IsOK(res1)) { | |
8950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8951 | } | |
8952 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8953 | { | |
8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8955 | result = (bool)(arg1)->EndFontSize(); | |
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
8959 | { | |
8960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8961 | } | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | return NULL; | |
8965 | } | |
8966 | ||
8967 | ||
8968 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8969 | PyObject *resultobj = 0; | |
8970 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
8971 | wxFont *arg2 = 0 ; | |
8972 | bool result; | |
8973 | void *argp1 = 0 ; | |
8974 | int res1 = 0 ; | |
8975 | void *argp2 = 0 ; | |
8976 | int res2 = 0 ; | |
8977 | PyObject * obj0 = 0 ; | |
8978 | PyObject * obj1 = 0 ; | |
8979 | char * kwnames[] = { | |
8980 | (char *) "self",(char *) "font", NULL | |
8981 | }; | |
8982 | ||
8983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
8984 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
8985 | if (!SWIG_IsOK(res1)) { | |
8986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
8987 | } | |
8988 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
8989 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
8990 | if (!SWIG_IsOK(res2)) { | |
8991 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8992 | } | |
8993 | if (!argp2) { | |
8994 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
8995 | } | |
8996 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
8997 | { | |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | result = (bool)(arg1)->BeginFont((wxFont const &)*arg2); | |
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | { | |
9004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9005 | } | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
9012 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9013 | PyObject *resultobj = 0; | |
9014 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9015 | bool result; | |
9016 | void *argp1 = 0 ; | |
9017 | int res1 = 0 ; | |
9018 | PyObject *swig_obj[1] ; | |
9019 | ||
9020 | if (!args) SWIG_fail; | |
9021 | swig_obj[0] = args; | |
9022 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9023 | if (!SWIG_IsOK(res1)) { | |
9024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9025 | } | |
9026 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9027 | { | |
9028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9029 | result = (bool)(arg1)->EndFont(); | |
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
9033 | { | |
9034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9035 | } | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj = 0; | |
9044 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9045 | wxColour *arg2 = 0 ; | |
9046 | bool result; | |
9047 | void *argp1 = 0 ; | |
9048 | int res1 = 0 ; | |
9049 | wxColour temp2 ; | |
9050 | PyObject * obj0 = 0 ; | |
9051 | PyObject * obj1 = 0 ; | |
9052 | char * kwnames[] = { | |
9053 | (char *) "self",(char *) "colour", NULL | |
9054 | }; | |
9055 | ||
9056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
9057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9058 | if (!SWIG_IsOK(res1)) { | |
9059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9060 | } | |
9061 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9062 | { | |
9063 | arg2 = &temp2; | |
9064 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9065 | } | |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2); | |
9069 | wxPyEndAllowThreads(__tstate); | |
9070 | if (PyErr_Occurred()) SWIG_fail; | |
9071 | } | |
9072 | { | |
9073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9074 | } | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9082 | PyObject *resultobj = 0; | |
9083 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9084 | bool result; | |
9085 | void *argp1 = 0 ; | |
9086 | int res1 = 0 ; | |
9087 | PyObject *swig_obj[1] ; | |
9088 | ||
9089 | if (!args) SWIG_fail; | |
9090 | swig_obj[0] = args; | |
9091 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9092 | if (!SWIG_IsOK(res1)) { | |
9093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9094 | } | |
9095 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9096 | { | |
9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9098 | result = (bool)(arg1)->EndTextColour(); | |
9099 | wxPyEndAllowThreads(__tstate); | |
9100 | if (PyErr_Occurred()) SWIG_fail; | |
9101 | } | |
9102 | { | |
9103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9104 | } | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
9111 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj = 0; | |
9113 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9114 | wxTextAttrAlignment arg2 ; | |
9115 | bool result; | |
9116 | void *argp1 = 0 ; | |
9117 | int res1 = 0 ; | |
9118 | int val2 ; | |
9119 | int ecode2 = 0 ; | |
9120 | PyObject * obj0 = 0 ; | |
9121 | PyObject * obj1 = 0 ; | |
9122 | char * kwnames[] = { | |
9123 | (char *) "self",(char *) "alignment", NULL | |
9124 | }; | |
9125 | ||
9126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail; | |
9127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9128 | if (!SWIG_IsOK(res1)) { | |
9129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9130 | } | |
9131 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9132 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9133 | if (!SWIG_IsOK(ecode2)) { | |
9134 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
9135 | } | |
9136 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
9137 | { | |
9138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9139 | result = (bool)(arg1)->BeginAlignment(arg2); | |
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
9143 | { | |
9144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9145 | } | |
9146 | return resultobj; | |
9147 | fail: | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
9152 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9153 | PyObject *resultobj = 0; | |
9154 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9155 | bool result; | |
9156 | void *argp1 = 0 ; | |
9157 | int res1 = 0 ; | |
9158 | PyObject *swig_obj[1] ; | |
9159 | ||
9160 | if (!args) SWIG_fail; | |
9161 | swig_obj[0] = args; | |
9162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9163 | if (!SWIG_IsOK(res1)) { | |
9164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9165 | } | |
9166 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9167 | { | |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | result = (bool)(arg1)->EndAlignment(); | |
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
9173 | { | |
9174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9175 | } | |
9176 | return resultobj; | |
9177 | fail: | |
9178 | return NULL; | |
9179 | } | |
9180 | ||
9181 | ||
9182 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9183 | PyObject *resultobj = 0; | |
9184 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9185 | int arg2 ; | |
9186 | int arg3 = (int) 0 ; | |
9187 | bool result; | |
9188 | void *argp1 = 0 ; | |
9189 | int res1 = 0 ; | |
9190 | int val2 ; | |
9191 | int ecode2 = 0 ; | |
9192 | int val3 ; | |
9193 | int ecode3 = 0 ; | |
9194 | PyObject * obj0 = 0 ; | |
9195 | PyObject * obj1 = 0 ; | |
9196 | PyObject * obj2 = 0 ; | |
9197 | char * kwnames[] = { | |
9198 | (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL | |
9199 | }; | |
9200 | ||
9201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9203 | if (!SWIG_IsOK(res1)) { | |
9204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9205 | } | |
9206 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9207 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9208 | if (!SWIG_IsOK(ecode2)) { | |
9209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'"); | |
9210 | } | |
9211 | arg2 = static_cast< int >(val2); | |
9212 | if (obj2) { | |
9213 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9214 | if (!SWIG_IsOK(ecode3)) { | |
9215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'"); | |
9216 | } | |
9217 | arg3 = static_cast< int >(val3); | |
9218 | } | |
9219 | { | |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | result = (bool)(arg1)->BeginLeftIndent(arg2,arg3); | |
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | { | |
9226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9227 | } | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9235 | PyObject *resultobj = 0; | |
9236 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9237 | bool result; | |
9238 | void *argp1 = 0 ; | |
9239 | int res1 = 0 ; | |
9240 | PyObject *swig_obj[1] ; | |
9241 | ||
9242 | if (!args) SWIG_fail; | |
9243 | swig_obj[0] = args; | |
9244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9245 | if (!SWIG_IsOK(res1)) { | |
9246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9247 | } | |
9248 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9249 | { | |
9250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9251 | result = (bool)(arg1)->EndLeftIndent(); | |
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | { | |
9256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
9264 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9265 | PyObject *resultobj = 0; | |
9266 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9267 | int arg2 ; | |
9268 | bool result; | |
9269 | void *argp1 = 0 ; | |
9270 | int res1 = 0 ; | |
9271 | int val2 ; | |
9272 | int ecode2 = 0 ; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | PyObject * obj1 = 0 ; | |
9275 | char * kwnames[] = { | |
9276 | (char *) "self",(char *) "rightIndent", NULL | |
9277 | }; | |
9278 | ||
9279 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail; | |
9280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9281 | if (!SWIG_IsOK(res1)) { | |
9282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9283 | } | |
9284 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9285 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9286 | if (!SWIG_IsOK(ecode2)) { | |
9287 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'"); | |
9288 | } | |
9289 | arg2 = static_cast< int >(val2); | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | result = (bool)(arg1)->BeginRightIndent(arg2); | |
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | { | |
9297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9298 | } | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
9305 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9306 | PyObject *resultobj = 0; | |
9307 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9308 | bool result; | |
9309 | void *argp1 = 0 ; | |
9310 | int res1 = 0 ; | |
9311 | PyObject *swig_obj[1] ; | |
9312 | ||
9313 | if (!args) SWIG_fail; | |
9314 | swig_obj[0] = args; | |
9315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9316 | if (!SWIG_IsOK(res1)) { | |
9317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9318 | } | |
9319 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9320 | { | |
9321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9322 | result = (bool)(arg1)->EndRightIndent(); | |
9323 | wxPyEndAllowThreads(__tstate); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | { | |
9327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9328 | } | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj = 0; | |
9337 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9338 | int arg2 ; | |
9339 | int arg3 ; | |
9340 | bool result; | |
9341 | void *argp1 = 0 ; | |
9342 | int res1 = 0 ; | |
9343 | int val2 ; | |
9344 | int ecode2 = 0 ; | |
9345 | int val3 ; | |
9346 | int ecode3 = 0 ; | |
9347 | PyObject * obj0 = 0 ; | |
9348 | PyObject * obj1 = 0 ; | |
9349 | PyObject * obj2 = 0 ; | |
9350 | char * kwnames[] = { | |
9351 | (char *) "self",(char *) "before",(char *) "after", NULL | |
9352 | }; | |
9353 | ||
9354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9356 | if (!SWIG_IsOK(res1)) { | |
9357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9358 | } | |
9359 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9360 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9361 | if (!SWIG_IsOK(ecode2)) { | |
9362 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9363 | } | |
9364 | arg2 = static_cast< int >(val2); | |
9365 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9366 | if (!SWIG_IsOK(ecode3)) { | |
9367 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'"); | |
9368 | } | |
9369 | arg3 = static_cast< int >(val3); | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3); | |
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | { | |
9377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9378 | } | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
9385 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9386 | PyObject *resultobj = 0; | |
9387 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9388 | bool result; | |
9389 | void *argp1 = 0 ; | |
9390 | int res1 = 0 ; | |
9391 | PyObject *swig_obj[1] ; | |
9392 | ||
9393 | if (!args) SWIG_fail; | |
9394 | swig_obj[0] = args; | |
9395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9396 | if (!SWIG_IsOK(res1)) { | |
9397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9398 | } | |
9399 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9400 | { | |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9402 | result = (bool)(arg1)->EndParagraphSpacing(); | |
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | { | |
9407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9408 | } | |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
9412 | } | |
9413 | ||
9414 | ||
9415 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9416 | PyObject *resultobj = 0; | |
9417 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9418 | int arg2 ; | |
9419 | bool result; | |
9420 | void *argp1 = 0 ; | |
9421 | int res1 = 0 ; | |
9422 | int val2 ; | |
9423 | int ecode2 = 0 ; | |
9424 | PyObject * obj0 = 0 ; | |
9425 | PyObject * obj1 = 0 ; | |
9426 | char * kwnames[] = { | |
9427 | (char *) "self",(char *) "lineSpacing", NULL | |
9428 | }; | |
9429 | ||
9430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail; | |
9431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9432 | if (!SWIG_IsOK(res1)) { | |
9433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9434 | } | |
9435 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9437 | if (!SWIG_IsOK(ecode2)) { | |
9438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'"); | |
9439 | } | |
9440 | arg2 = static_cast< int >(val2); | |
9441 | { | |
9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9443 | result = (bool)(arg1)->BeginLineSpacing(arg2); | |
9444 | wxPyEndAllowThreads(__tstate); | |
9445 | if (PyErr_Occurred()) SWIG_fail; | |
9446 | } | |
9447 | { | |
9448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9449 | } | |
9450 | return resultobj; | |
9451 | fail: | |
9452 | return NULL; | |
9453 | } | |
9454 | ||
9455 | ||
9456 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9457 | PyObject *resultobj = 0; | |
9458 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9459 | bool result; | |
9460 | void *argp1 = 0 ; | |
9461 | int res1 = 0 ; | |
9462 | PyObject *swig_obj[1] ; | |
9463 | ||
9464 | if (!args) SWIG_fail; | |
9465 | swig_obj[0] = args; | |
9466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9467 | if (!SWIG_IsOK(res1)) { | |
9468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9469 | } | |
9470 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9471 | { | |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | result = (bool)(arg1)->EndLineSpacing(); | |
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) SWIG_fail; | |
9476 | } | |
9477 | { | |
9478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9479 | } | |
9480 | return resultobj; | |
9481 | fail: | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj = 0; | |
9488 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9489 | int arg2 ; | |
9490 | int arg3 ; | |
9491 | int arg4 ; | |
9492 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ; | |
9493 | bool result; | |
9494 | void *argp1 = 0 ; | |
9495 | int res1 = 0 ; | |
9496 | int val2 ; | |
9497 | int ecode2 = 0 ; | |
9498 | int val3 ; | |
9499 | int ecode3 = 0 ; | |
9500 | int val4 ; | |
9501 | int ecode4 = 0 ; | |
9502 | int val5 ; | |
9503 | int ecode5 = 0 ; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | PyObject * obj1 = 0 ; | |
9506 | PyObject * obj2 = 0 ; | |
9507 | PyObject * obj3 = 0 ; | |
9508 | PyObject * obj4 = 0 ; | |
9509 | char * kwnames[] = { | |
9510 | (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9511 | }; | |
9512 | ||
9513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9515 | if (!SWIG_IsOK(res1)) { | |
9516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9517 | } | |
9518 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9519 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9520 | if (!SWIG_IsOK(ecode2)) { | |
9521 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'"); | |
9522 | } | |
9523 | arg2 = static_cast< int >(val2); | |
9524 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9525 | if (!SWIG_IsOK(ecode3)) { | |
9526 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'"); | |
9527 | } | |
9528 | arg3 = static_cast< int >(val3); | |
9529 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9530 | if (!SWIG_IsOK(ecode4)) { | |
9531 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'"); | |
9532 | } | |
9533 | arg4 = static_cast< int >(val4); | |
9534 | if (obj4) { | |
9535 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9536 | if (!SWIG_IsOK(ecode5)) { | |
9537 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'"); | |
9538 | } | |
9539 | arg5 = static_cast< int >(val5); | |
9540 | } | |
9541 | { | |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5); | |
9544 | wxPyEndAllowThreads(__tstate); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
9547 | { | |
9548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9549 | } | |
9550 | return resultobj; | |
9551 | fail: | |
9552 | return NULL; | |
9553 | } | |
9554 | ||
9555 | ||
9556 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9557 | PyObject *resultobj = 0; | |
9558 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9559 | bool result; | |
9560 | void *argp1 = 0 ; | |
9561 | int res1 = 0 ; | |
9562 | PyObject *swig_obj[1] ; | |
9563 | ||
9564 | if (!args) SWIG_fail; | |
9565 | swig_obj[0] = args; | |
9566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9567 | if (!SWIG_IsOK(res1)) { | |
9568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9569 | } | |
9570 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9571 | { | |
9572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9573 | result = (bool)(arg1)->EndNumberedBullet(); | |
9574 | wxPyEndAllowThreads(__tstate); | |
9575 | if (PyErr_Occurred()) SWIG_fail; | |
9576 | } | |
9577 | { | |
9578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9579 | } | |
9580 | return resultobj; | |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj = 0; | |
9588 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
70d7cb34 | 9589 | wxString *arg2 = 0 ; |
06810ecf RD |
9590 | int arg3 ; |
9591 | int arg4 ; | |
9592 | int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ; | |
9593 | bool result; | |
9594 | void *argp1 = 0 ; | |
9595 | int res1 = 0 ; | |
70d7cb34 | 9596 | bool temp2 = false ; |
06810ecf RD |
9597 | int val3 ; |
9598 | int ecode3 = 0 ; | |
9599 | int val4 ; | |
9600 | int ecode4 = 0 ; | |
9601 | int val5 ; | |
9602 | int ecode5 = 0 ; | |
9603 | PyObject * obj0 = 0 ; | |
9604 | PyObject * obj1 = 0 ; | |
9605 | PyObject * obj2 = 0 ; | |
9606 | PyObject * obj3 = 0 ; | |
9607 | PyObject * obj4 = 0 ; | |
9608 | char * kwnames[] = { | |
9609 | (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL | |
9610 | }; | |
9611 | ||
9612 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9613 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9614 | if (!SWIG_IsOK(res1)) { | |
9615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9616 | } | |
9617 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
70d7cb34 RD |
9618 | { |
9619 | arg2 = wxString_in_helper(obj1); | |
9620 | if (arg2 == NULL) SWIG_fail; | |
9621 | temp2 = true; | |
9622 | } | |
06810ecf RD |
9623 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
9624 | if (!SWIG_IsOK(ecode3)) { | |
9625 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'"); | |
9626 | } | |
9627 | arg3 = static_cast< int >(val3); | |
9628 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9629 | if (!SWIG_IsOK(ecode4)) { | |
9630 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'"); | |
9631 | } | |
9632 | arg4 = static_cast< int >(val4); | |
9633 | if (obj4) { | |
9634 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
9635 | if (!SWIG_IsOK(ecode5)) { | |
9636 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'"); | |
9637 | } | |
9638 | arg5 = static_cast< int >(val5); | |
9639 | } | |
9640 | { | |
9641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
70d7cb34 | 9642 | result = (bool)(arg1)->BeginSymbolBullet((wxString const &)*arg2,arg3,arg4,arg5); |
06810ecf RD |
9643 | wxPyEndAllowThreads(__tstate); |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | { | |
9647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9648 | } | |
70d7cb34 RD |
9649 | { |
9650 | if (temp2) | |
9651 | delete arg2; | |
9652 | } | |
06810ecf RD |
9653 | return resultobj; |
9654 | fail: | |
70d7cb34 RD |
9655 | { |
9656 | if (temp2) | |
9657 | delete arg2; | |
9658 | } | |
06810ecf RD |
9659 | return NULL; |
9660 | } | |
9661 | ||
9662 | ||
9663 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9664 | PyObject *resultobj = 0; | |
9665 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9666 | bool result; | |
9667 | void *argp1 = 0 ; | |
9668 | int res1 = 0 ; | |
9669 | PyObject *swig_obj[1] ; | |
9670 | ||
9671 | if (!args) SWIG_fail; | |
9672 | swig_obj[0] = args; | |
9673 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9674 | if (!SWIG_IsOK(res1)) { | |
9675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9676 | } | |
9677 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | result = (bool)(arg1)->EndSymbolBullet(); | |
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | { | |
9685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9686 | } | |
9687 | return resultobj; | |
9688 | fail: | |
9689 | return NULL; | |
9690 | } | |
9691 | ||
9692 | ||
9693 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9694 | PyObject *resultobj = 0; | |
9695 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9696 | wxString *arg2 = 0 ; | |
9697 | bool result; | |
9698 | void *argp1 = 0 ; | |
9699 | int res1 = 0 ; | |
9700 | bool temp2 = false ; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | PyObject * obj1 = 0 ; | |
9703 | char * kwnames[] = { | |
9704 | (char *) "self",(char *) "characterStyle", NULL | |
9705 | }; | |
9706 | ||
9707 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9708 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9709 | if (!SWIG_IsOK(res1)) { | |
9710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9711 | } | |
9712 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9713 | { | |
9714 | arg2 = wxString_in_helper(obj1); | |
9715 | if (arg2 == NULL) SWIG_fail; | |
9716 | temp2 = true; | |
9717 | } | |
9718 | { | |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9720 | result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2); | |
9721 | wxPyEndAllowThreads(__tstate); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | { | |
9725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9726 | } | |
9727 | { | |
9728 | if (temp2) | |
9729 | delete arg2; | |
9730 | } | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | { | |
9734 | if (temp2) | |
9735 | delete arg2; | |
9736 | } | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
9741 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9742 | PyObject *resultobj = 0; | |
9743 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9744 | bool result; | |
9745 | void *argp1 = 0 ; | |
9746 | int res1 = 0 ; | |
9747 | PyObject *swig_obj[1] ; | |
9748 | ||
9749 | if (!args) SWIG_fail; | |
9750 | swig_obj[0] = args; | |
9751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9752 | if (!SWIG_IsOK(res1)) { | |
9753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9754 | } | |
9755 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (bool)(arg1)->EndCharacterStyle(); | |
9759 | wxPyEndAllowThreads(__tstate); | |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
9761 | } | |
9762 | { | |
9763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9764 | } | |
9765 | return resultobj; | |
9766 | fail: | |
9767 | return NULL; | |
9768 | } | |
9769 | ||
9770 | ||
9771 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9772 | PyObject *resultobj = 0; | |
9773 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9774 | wxString *arg2 = 0 ; | |
9775 | bool result; | |
9776 | void *argp1 = 0 ; | |
9777 | int res1 = 0 ; | |
9778 | bool temp2 = false ; | |
9779 | PyObject * obj0 = 0 ; | |
9780 | PyObject * obj1 = 0 ; | |
9781 | char * kwnames[] = { | |
9782 | (char *) "self",(char *) "paragraphStyle", NULL | |
9783 | }; | |
9784 | ||
9785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9786 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9787 | if (!SWIG_IsOK(res1)) { | |
9788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9789 | } | |
9790 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9791 | { | |
9792 | arg2 = wxString_in_helper(obj1); | |
9793 | if (arg2 == NULL) SWIG_fail; | |
9794 | temp2 = true; | |
9795 | } | |
9796 | { | |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2); | |
9799 | wxPyEndAllowThreads(__tstate); | |
9800 | if (PyErr_Occurred()) SWIG_fail; | |
9801 | } | |
9802 | { | |
9803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9804 | } | |
9805 | { | |
9806 | if (temp2) | |
9807 | delete arg2; | |
9808 | } | |
9809 | return resultobj; | |
9810 | fail: | |
9811 | { | |
9812 | if (temp2) | |
9813 | delete arg2; | |
9814 | } | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
9819 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9820 | PyObject *resultobj = 0; | |
9821 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9822 | bool result; | |
9823 | void *argp1 = 0 ; | |
9824 | int res1 = 0 ; | |
9825 | PyObject *swig_obj[1] ; | |
9826 | ||
9827 | if (!args) SWIG_fail; | |
9828 | swig_obj[0] = args; | |
9829 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9830 | if (!SWIG_IsOK(res1)) { | |
9831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9832 | } | |
9833 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (bool)(arg1)->EndParagraphStyle(); | |
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
9840 | { | |
9841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9842 | } | |
9843 | return resultobj; | |
9844 | fail: | |
9845 | return NULL; | |
9846 | } | |
9847 | ||
9848 | ||
70d7cb34 RD |
9849 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9850 | PyObject *resultobj = 0; | |
9851 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9852 | wxString *arg2 = 0 ; | |
9853 | int arg3 = (int) 1 ; | |
9854 | int arg4 = (int) 1 ; | |
9855 | bool result; | |
9856 | void *argp1 = 0 ; | |
9857 | int res1 = 0 ; | |
9858 | bool temp2 = false ; | |
9859 | int val3 ; | |
9860 | int ecode3 = 0 ; | |
9861 | int val4 ; | |
9862 | int ecode4 = 0 ; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | PyObject * obj1 = 0 ; | |
9865 | PyObject * obj2 = 0 ; | |
9866 | PyObject * obj3 = 0 ; | |
9867 | char * kwnames[] = { | |
9868 | (char *) "self",(char *) "listStyle",(char *) "level",(char *) "number", NULL | |
9869 | }; | |
9870 | ||
9871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:RichTextCtrl_BeginListStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9873 | if (!SWIG_IsOK(res1)) { | |
9874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9875 | } | |
9876 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9877 | { | |
9878 | arg2 = wxString_in_helper(obj1); | |
9879 | if (arg2 == NULL) SWIG_fail; | |
9880 | temp2 = true; | |
9881 | } | |
9882 | if (obj2) { | |
9883 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9884 | if (!SWIG_IsOK(ecode3)) { | |
9885 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "3"" of type '" "int""'"); | |
9886 | } | |
9887 | arg3 = static_cast< int >(val3); | |
9888 | } | |
9889 | if (obj3) { | |
9890 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9891 | if (!SWIG_IsOK(ecode4)) { | |
9892 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginListStyle" "', expected argument " "4"" of type '" "int""'"); | |
9893 | } | |
9894 | arg4 = static_cast< int >(val4); | |
9895 | } | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | result = (bool)(arg1)->BeginListStyle((wxString const &)*arg2,arg3,arg4); | |
9899 | wxPyEndAllowThreads(__tstate); | |
9900 | if (PyErr_Occurred()) SWIG_fail; | |
9901 | } | |
9902 | { | |
9903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9904 | } | |
9905 | { | |
9906 | if (temp2) | |
9907 | delete arg2; | |
9908 | } | |
9909 | return resultobj; | |
9910 | fail: | |
9911 | { | |
9912 | if (temp2) | |
9913 | delete arg2; | |
9914 | } | |
9915 | return NULL; | |
9916 | } | |
9917 | ||
9918 | ||
9919 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndListStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9920 | PyObject *resultobj = 0; | |
9921 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9922 | bool result; | |
9923 | void *argp1 = 0 ; | |
9924 | int res1 = 0 ; | |
9925 | PyObject *swig_obj[1] ; | |
9926 | ||
9927 | if (!args) SWIG_fail; | |
9928 | swig_obj[0] = args; | |
9929 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9930 | if (!SWIG_IsOK(res1)) { | |
9931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndListStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9932 | } | |
9933 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9934 | { | |
9935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9936 | result = (bool)(arg1)->EndListStyle(); | |
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | { | |
9941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9942 | } | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | return NULL; | |
9946 | } | |
9947 | ||
9948 | ||
9949 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9950 | PyObject *resultobj = 0; | |
9951 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
9952 | wxString *arg2 = 0 ; | |
9953 | wxString const &arg3_defvalue = wxEmptyString ; | |
9954 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9955 | bool result; | |
9956 | void *argp1 = 0 ; | |
9957 | int res1 = 0 ; | |
9958 | bool temp2 = false ; | |
9959 | bool temp3 = false ; | |
9960 | PyObject * obj0 = 0 ; | |
9961 | PyObject * obj1 = 0 ; | |
9962 | PyObject * obj2 = 0 ; | |
9963 | char * kwnames[] = { | |
9964 | (char *) "self",(char *) "url",(char *) "characterStyle", NULL | |
9965 | }; | |
9966 | ||
9967 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginURL",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
9969 | if (!SWIG_IsOK(res1)) { | |
9970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
9971 | } | |
9972 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
9973 | { | |
9974 | arg2 = wxString_in_helper(obj1); | |
9975 | if (arg2 == NULL) SWIG_fail; | |
9976 | temp2 = true; | |
9977 | } | |
9978 | if (obj2) { | |
9979 | { | |
9980 | arg3 = wxString_in_helper(obj2); | |
9981 | if (arg3 == NULL) SWIG_fail; | |
9982 | temp3 = true; | |
9983 | } | |
9984 | } | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (bool)(arg1)->BeginURL((wxString const &)*arg2,(wxString const &)*arg3); | |
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
9991 | { | |
9992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9993 | } | |
9994 | { | |
9995 | if (temp2) | |
9996 | delete arg2; | |
9997 | } | |
9998 | { | |
9999 | if (temp3) | |
10000 | delete arg3; | |
10001 | } | |
10002 | return resultobj; | |
10003 | fail: | |
10004 | { | |
10005 | if (temp2) | |
10006 | delete arg2; | |
10007 | } | |
10008 | { | |
10009 | if (temp3) | |
10010 | delete arg3; | |
10011 | } | |
10012 | return NULL; | |
10013 | } | |
10014 | ||
10015 | ||
10016 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10017 | PyObject *resultobj = 0; | |
10018 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10019 | bool result; | |
10020 | void *argp1 = 0 ; | |
10021 | int res1 = 0 ; | |
10022 | PyObject *swig_obj[1] ; | |
10023 | ||
10024 | if (!args) SWIG_fail; | |
10025 | swig_obj[0] = args; | |
10026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10027 | if (!SWIG_IsOK(res1)) { | |
10028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndURL" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10029 | } | |
10030 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10031 | { | |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = (bool)(arg1)->EndURL(); | |
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
10036 | } | |
10037 | { | |
10038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10039 | } | |
10040 | return resultobj; | |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
06810ecf RD |
10046 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10047 | PyObject *resultobj = 0; | |
10048 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10049 | bool result; | |
10050 | void *argp1 = 0 ; | |
10051 | int res1 = 0 ; | |
10052 | PyObject *swig_obj[1] ; | |
10053 | ||
10054 | if (!args) SWIG_fail; | |
10055 | swig_obj[0] = args; | |
10056 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10057 | if (!SWIG_IsOK(res1)) { | |
10058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10059 | } | |
10060 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10061 | { | |
10062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10063 | result = (bool)(arg1)->SetDefaultStyleToCursorStyle(); | |
10064 | wxPyEndAllowThreads(__tstate); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
10067 | { | |
10068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10077 | PyObject *resultobj = 0; | |
10078 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10079 | void *argp1 = 0 ; | |
10080 | int res1 = 0 ; | |
10081 | PyObject *swig_obj[1] ; | |
10082 | ||
10083 | if (!args) SWIG_fail; | |
10084 | swig_obj[0] = args; | |
10085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10086 | if (!SWIG_IsOK(res1)) { | |
10087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10088 | } | |
10089 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10092 | (arg1)->SelectNone(); | |
10093 | wxPyEndAllowThreads(__tstate); | |
10094 | if (PyErr_Occurred()) SWIG_fail; | |
10095 | } | |
10096 | resultobj = SWIG_Py_Void(); | |
10097 | return resultobj; | |
10098 | fail: | |
10099 | return NULL; | |
10100 | } | |
10101 | ||
10102 | ||
c2829a8f RD |
10103 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10104 | PyObject *resultobj = 0; | |
10105 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10106 | long arg2 ; | |
10107 | bool result; | |
10108 | void *argp1 = 0 ; | |
10109 | int res1 = 0 ; | |
10110 | long val2 ; | |
10111 | int ecode2 = 0 ; | |
10112 | PyObject * obj0 = 0 ; | |
10113 | PyObject * obj1 = 0 ; | |
10114 | char * kwnames[] = { | |
10115 | (char *) "self",(char *) "position", NULL | |
10116 | }; | |
10117 | ||
10118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SelectWord",kwnames,&obj0,&obj1)) SWIG_fail; | |
10119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10120 | if (!SWIG_IsOK(res1)) { | |
10121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10122 | } | |
10123 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10124 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10125 | if (!SWIG_IsOK(ecode2)) { | |
10126 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "2"" of type '" "long""'"); | |
10127 | } | |
10128 | arg2 = static_cast< long >(val2); | |
10129 | { | |
10130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10131 | result = (bool)(arg1)->SelectWord(arg2); | |
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | { | |
10136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10137 | } | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | return NULL; | |
10141 | } | |
10142 | ||
10143 | ||
06810ecf RD |
10144 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10145 | PyObject *resultobj = 0; | |
10146 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
79df624a | 10147 | wxRichTextRange result; |
06810ecf RD |
10148 | void *argp1 = 0 ; |
10149 | int res1 = 0 ; | |
10150 | PyObject *swig_obj[1] ; | |
10151 | ||
10152 | if (!args) SWIG_fail; | |
10153 | swig_obj[0] = args; | |
10154 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10155 | if (!SWIG_IsOK(res1)) { | |
10156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10157 | } | |
10158 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10159 | { | |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 10161 | result = ((wxRichTextCtrl const *)arg1)->GetSelectionRange(); |
06810ecf RD |
10162 | wxPyEndAllowThreads(__tstate); |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
79df624a | 10165 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); |
06810ecf RD |
10166 | return resultobj; |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj = 0; | |
10174 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10175 | wxRichTextRange *arg2 = 0 ; | |
10176 | void *argp1 = 0 ; | |
10177 | int res1 = 0 ; | |
10178 | wxRichTextRange temp2 ; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | PyObject * obj1 = 0 ; | |
10181 | char * kwnames[] = { | |
10182 | (char *) "self",(char *) "range", NULL | |
10183 | }; | |
10184 | ||
10185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
10186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10187 | if (!SWIG_IsOK(res1)) { | |
10188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10189 | } | |
10190 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10191 | { | |
10192 | arg2 = &temp2; | |
10193 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10197 | (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2); | |
10198 | wxPyEndAllowThreads(__tstate); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
10201 | resultobj = SWIG_Py_Void(); | |
10202 | return resultobj; | |
10203 | fail: | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
79df624a RD |
10208 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10209 | PyObject *resultobj = 0; | |
10210 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10211 | wxRichTextRange *result = 0 ; | |
10212 | void *argp1 = 0 ; | |
10213 | int res1 = 0 ; | |
10214 | PyObject *swig_obj[1] ; | |
10215 | ||
10216 | if (!args) SWIG_fail; | |
10217 | swig_obj[0] = args; | |
10218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10219 | if (!SWIG_IsOK(res1)) { | |
10220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
10221 | } | |
10222 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | { | |
10226 | wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetInternalSelectionRange(); | |
10227 | result = (wxRichTextRange *) &_result_ref; | |
10228 | } | |
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
10232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 ); | |
10233 | return resultobj; | |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj = 0; | |
10241 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10242 | wxRichTextRange *arg2 = 0 ; | |
10243 | void *argp1 = 0 ; | |
10244 | int res1 = 0 ; | |
10245 | wxRichTextRange temp2 ; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | PyObject * obj1 = 0 ; | |
10248 | char * kwnames[] = { | |
10249 | (char *) "self",(char *) "range", NULL | |
10250 | }; | |
10251 | ||
10252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInternalSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail; | |
10253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10254 | if (!SWIG_IsOK(res1)) { | |
10255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10256 | } | |
10257 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10258 | { | |
10259 | arg2 = &temp2; | |
10260 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
10261 | } | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | (arg1)->SetInternalSelectionRange((wxRichTextRange const &)*arg2); | |
10265 | wxPyEndAllowThreads(__tstate); | |
10266 | if (PyErr_Occurred()) SWIG_fail; | |
10267 | } | |
10268 | resultobj = SWIG_Py_Void(); | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
06810ecf RD |
10275 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10276 | PyObject *resultobj = 0; | |
10277 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10278 | wxString *arg2 = 0 ; | |
10279 | wxRichTextRange result; | |
10280 | void *argp1 = 0 ; | |
10281 | int res1 = 0 ; | |
10282 | bool temp2 = false ; | |
10283 | PyObject * obj0 = 0 ; | |
10284 | PyObject * obj1 = 0 ; | |
10285 | char * kwnames[] = { | |
10286 | (char *) "self",(char *) "text", NULL | |
10287 | }; | |
10288 | ||
10289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail; | |
10290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10291 | if (!SWIG_IsOK(res1)) { | |
10292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10293 | } | |
10294 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10295 | { | |
10296 | arg2 = wxString_in_helper(obj1); | |
10297 | if (arg2 == NULL) SWIG_fail; | |
10298 | temp2 = true; | |
10299 | } | |
10300 | { | |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | result = (arg1)->AddParagraph((wxString const &)*arg2); | |
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10307 | { | |
10308 | if (temp2) | |
10309 | delete arg2; | |
10310 | } | |
10311 | return resultobj; | |
10312 | fail: | |
10313 | { | |
10314 | if (temp2) | |
10315 | delete arg2; | |
10316 | } | |
10317 | return NULL; | |
10318 | } | |
10319 | ||
10320 | ||
10321 | SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10322 | PyObject *resultobj = 0; | |
10323 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10324 | wxImage *arg2 = 0 ; | |
10325 | wxRichTextRange result; | |
10326 | void *argp1 = 0 ; | |
10327 | int res1 = 0 ; | |
10328 | void *argp2 = 0 ; | |
10329 | int res2 = 0 ; | |
10330 | PyObject * obj0 = 0 ; | |
10331 | PyObject * obj1 = 0 ; | |
10332 | char * kwnames[] = { | |
10333 | (char *) "self",(char *) "image", NULL | |
10334 | }; | |
10335 | ||
10336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
10337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10338 | if (!SWIG_IsOK(res1)) { | |
10339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10340 | } | |
10341 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10342 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0); | |
10343 | if (!SWIG_IsOK(res2)) { | |
10344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10345 | } | |
10346 | if (!argp2) { | |
10347 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'"); | |
10348 | } | |
10349 | arg2 = reinterpret_cast< wxImage * >(argp2); | |
10350 | { | |
10351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10352 | result = (arg1)->AddImage((wxImage const &)*arg2); | |
10353 | wxPyEndAllowThreads(__tstate); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | } | |
10356 | resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 ); | |
10357 | return resultobj; | |
10358 | fail: | |
10359 | return NULL; | |
10360 | } | |
10361 | ||
10362 | ||
10363 | SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10364 | PyObject *resultobj = 0; | |
10365 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10366 | bool arg2 = (bool) false ; | |
10367 | bool result; | |
10368 | void *argp1 = 0 ; | |
10369 | int res1 = 0 ; | |
10370 | bool val2 ; | |
10371 | int ecode2 = 0 ; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | PyObject * obj1 = 0 ; | |
10374 | char * kwnames[] = { | |
10375 | (char *) "self",(char *) "onlyVisibleRect", NULL | |
10376 | }; | |
10377 | ||
10378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail; | |
10379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10380 | if (!SWIG_IsOK(res1)) { | |
10381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10382 | } | |
10383 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10384 | if (obj1) { | |
10385 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
10386 | if (!SWIG_IsOK(ecode2)) { | |
10387 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'"); | |
10388 | } | |
10389 | arg2 = static_cast< bool >(val2); | |
10390 | } | |
10391 | { | |
10392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10393 | result = (bool)(arg1)->LayoutContent(arg2); | |
10394 | wxPyEndAllowThreads(__tstate); | |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
10396 | } | |
10397 | { | |
10398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10399 | } | |
10400 | return resultobj; | |
10401 | fail: | |
10402 | return NULL; | |
10403 | } | |
10404 | ||
10405 | ||
10406 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10407 | PyObject *resultobj = 0; | |
10408 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10409 | long arg2 ; | |
10410 | bool arg3 = (bool) false ; | |
10411 | bool result; | |
10412 | void *argp1 = 0 ; | |
10413 | int res1 = 0 ; | |
10414 | long val2 ; | |
10415 | int ecode2 = 0 ; | |
10416 | bool val3 ; | |
10417 | int ecode3 = 0 ; | |
10418 | PyObject * obj0 = 0 ; | |
10419 | PyObject * obj1 = 0 ; | |
10420 | PyObject * obj2 = 0 ; | |
10421 | char * kwnames[] = { | |
10422 | (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL | |
10423 | }; | |
10424 | ||
10425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10427 | if (!SWIG_IsOK(res1)) { | |
10428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10429 | } | |
10430 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10431 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10432 | if (!SWIG_IsOK(ecode2)) { | |
10433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'"); | |
10434 | } | |
10435 | arg2 = static_cast< long >(val2); | |
10436 | if (obj2) { | |
10437 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
10438 | if (!SWIG_IsOK(ecode3)) { | |
10439 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'"); | |
10440 | } | |
10441 | arg3 = static_cast< bool >(val3); | |
10442 | } | |
10443 | { | |
10444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10445 | result = (bool)(arg1)->MoveCaret(arg2,arg3); | |
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | } | |
10449 | { | |
10450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10451 | } | |
10452 | return resultobj; | |
10453 | fail: | |
10454 | return NULL; | |
10455 | } | |
10456 | ||
10457 | ||
10458 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10459 | PyObject *resultobj = 0; | |
10460 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10461 | int arg2 = (int) 1 ; | |
10462 | int arg3 = (int) 0 ; | |
10463 | bool result; | |
10464 | void *argp1 = 0 ; | |
10465 | int res1 = 0 ; | |
10466 | int val2 ; | |
10467 | int ecode2 = 0 ; | |
10468 | int val3 ; | |
10469 | int ecode3 = 0 ; | |
10470 | PyObject * obj0 = 0 ; | |
10471 | PyObject * obj1 = 0 ; | |
10472 | PyObject * obj2 = 0 ; | |
10473 | char * kwnames[] = { | |
10474 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10475 | }; | |
10476 | ||
10477 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10478 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10479 | if (!SWIG_IsOK(res1)) { | |
10480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10481 | } | |
10482 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10483 | if (obj1) { | |
10484 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10485 | if (!SWIG_IsOK(ecode2)) { | |
10486 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'"); | |
10487 | } | |
10488 | arg2 = static_cast< int >(val2); | |
10489 | } | |
10490 | if (obj2) { | |
10491 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10492 | if (!SWIG_IsOK(ecode3)) { | |
10493 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'"); | |
10494 | } | |
10495 | arg3 = static_cast< int >(val3); | |
10496 | } | |
10497 | { | |
10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10499 | result = (bool)(arg1)->MoveRight(arg2,arg3); | |
10500 | wxPyEndAllowThreads(__tstate); | |
10501 | if (PyErr_Occurred()) SWIG_fail; | |
10502 | } | |
10503 | { | |
10504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10505 | } | |
10506 | return resultobj; | |
10507 | fail: | |
10508 | return NULL; | |
10509 | } | |
10510 | ||
10511 | ||
10512 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10513 | PyObject *resultobj = 0; | |
10514 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10515 | int arg2 = (int) 1 ; | |
10516 | int arg3 = (int) 0 ; | |
10517 | bool result; | |
10518 | void *argp1 = 0 ; | |
10519 | int res1 = 0 ; | |
10520 | int val2 ; | |
10521 | int ecode2 = 0 ; | |
10522 | int val3 ; | |
10523 | int ecode3 = 0 ; | |
10524 | PyObject * obj0 = 0 ; | |
10525 | PyObject * obj1 = 0 ; | |
10526 | PyObject * obj2 = 0 ; | |
10527 | char * kwnames[] = { | |
10528 | (char *) "self",(char *) "noPositions",(char *) "flags", NULL | |
10529 | }; | |
10530 | ||
10531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10533 | if (!SWIG_IsOK(res1)) { | |
10534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10535 | } | |
10536 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10537 | if (obj1) { | |
10538 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10539 | if (!SWIG_IsOK(ecode2)) { | |
10540 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'"); | |
10541 | } | |
10542 | arg2 = static_cast< int >(val2); | |
10543 | } | |
10544 | if (obj2) { | |
10545 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10546 | if (!SWIG_IsOK(ecode3)) { | |
10547 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'"); | |
10548 | } | |
10549 | arg3 = static_cast< int >(val3); | |
10550 | } | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10553 | result = (bool)(arg1)->MoveLeft(arg2,arg3); | |
10554 | wxPyEndAllowThreads(__tstate); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
10557 | { | |
10558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10559 | } | |
10560 | return resultobj; | |
10561 | fail: | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
10566 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10567 | PyObject *resultobj = 0; | |
10568 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10569 | int arg2 = (int) 1 ; | |
10570 | int arg3 = (int) 0 ; | |
10571 | bool result; | |
10572 | void *argp1 = 0 ; | |
10573 | int res1 = 0 ; | |
10574 | int val2 ; | |
10575 | int ecode2 = 0 ; | |
10576 | int val3 ; | |
10577 | int ecode3 = 0 ; | |
10578 | PyObject * obj0 = 0 ; | |
10579 | PyObject * obj1 = 0 ; | |
10580 | PyObject * obj2 = 0 ; | |
10581 | char * kwnames[] = { | |
10582 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10583 | }; | |
10584 | ||
10585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10587 | if (!SWIG_IsOK(res1)) { | |
10588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10589 | } | |
10590 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10591 | if (obj1) { | |
10592 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10593 | if (!SWIG_IsOK(ecode2)) { | |
10594 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'"); | |
10595 | } | |
10596 | arg2 = static_cast< int >(val2); | |
10597 | } | |
10598 | if (obj2) { | |
10599 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10600 | if (!SWIG_IsOK(ecode3)) { | |
10601 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'"); | |
10602 | } | |
10603 | arg3 = static_cast< int >(val3); | |
10604 | } | |
10605 | { | |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = (bool)(arg1)->MoveUp(arg2,arg3); | |
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
10611 | { | |
10612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10613 | } | |
10614 | return resultobj; | |
10615 | fail: | |
10616 | return NULL; | |
10617 | } | |
10618 | ||
10619 | ||
10620 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10621 | PyObject *resultobj = 0; | |
10622 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10623 | int arg2 = (int) 1 ; | |
10624 | int arg3 = (int) 0 ; | |
10625 | bool result; | |
10626 | void *argp1 = 0 ; | |
10627 | int res1 = 0 ; | |
10628 | int val2 ; | |
10629 | int ecode2 = 0 ; | |
10630 | int val3 ; | |
10631 | int ecode3 = 0 ; | |
10632 | PyObject * obj0 = 0 ; | |
10633 | PyObject * obj1 = 0 ; | |
10634 | PyObject * obj2 = 0 ; | |
10635 | char * kwnames[] = { | |
10636 | (char *) "self",(char *) "noLines",(char *) "flags", NULL | |
10637 | }; | |
10638 | ||
10639 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10640 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10641 | if (!SWIG_IsOK(res1)) { | |
10642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10643 | } | |
10644 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10645 | if (obj1) { | |
10646 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10647 | if (!SWIG_IsOK(ecode2)) { | |
10648 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'"); | |
10649 | } | |
10650 | arg2 = static_cast< int >(val2); | |
10651 | } | |
10652 | if (obj2) { | |
10653 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10654 | if (!SWIG_IsOK(ecode3)) { | |
10655 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'"); | |
10656 | } | |
10657 | arg3 = static_cast< int >(val3); | |
10658 | } | |
10659 | { | |
10660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10661 | result = (bool)(arg1)->MoveDown(arg2,arg3); | |
10662 | wxPyEndAllowThreads(__tstate); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | } | |
10665 | { | |
10666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10667 | } | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj = 0; | |
10676 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10677 | int arg2 = (int) 0 ; | |
10678 | bool result; | |
10679 | void *argp1 = 0 ; | |
10680 | int res1 = 0 ; | |
10681 | int val2 ; | |
10682 | int ecode2 = 0 ; | |
10683 | PyObject * obj0 = 0 ; | |
10684 | PyObject * obj1 = 0 ; | |
10685 | char * kwnames[] = { | |
10686 | (char *) "self",(char *) "flags", NULL | |
10687 | }; | |
10688 | ||
10689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10691 | if (!SWIG_IsOK(res1)) { | |
10692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10693 | } | |
10694 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10695 | if (obj1) { | |
10696 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10697 | if (!SWIG_IsOK(ecode2)) { | |
10698 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'"); | |
10699 | } | |
10700 | arg2 = static_cast< int >(val2); | |
10701 | } | |
10702 | { | |
10703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10704 | result = (bool)(arg1)->MoveToLineEnd(arg2); | |
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
10708 | { | |
10709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10710 | } | |
10711 | return resultobj; | |
10712 | fail: | |
10713 | return NULL; | |
10714 | } | |
10715 | ||
10716 | ||
10717 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10718 | PyObject *resultobj = 0; | |
10719 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10720 | int arg2 = (int) 0 ; | |
10721 | bool result; | |
10722 | void *argp1 = 0 ; | |
10723 | int res1 = 0 ; | |
10724 | int val2 ; | |
10725 | int ecode2 = 0 ; | |
10726 | PyObject * obj0 = 0 ; | |
10727 | PyObject * obj1 = 0 ; | |
10728 | char * kwnames[] = { | |
10729 | (char *) "self",(char *) "flags", NULL | |
10730 | }; | |
10731 | ||
10732 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10734 | if (!SWIG_IsOK(res1)) { | |
10735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10736 | } | |
10737 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10738 | if (obj1) { | |
10739 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10740 | if (!SWIG_IsOK(ecode2)) { | |
10741 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'"); | |
10742 | } | |
10743 | arg2 = static_cast< int >(val2); | |
10744 | } | |
10745 | { | |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | result = (bool)(arg1)->MoveToLineStart(arg2); | |
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
10751 | { | |
10752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10753 | } | |
10754 | return resultobj; | |
10755 | fail: | |
10756 | return NULL; | |
10757 | } | |
10758 | ||
10759 | ||
10760 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10761 | PyObject *resultobj = 0; | |
10762 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10763 | int arg2 = (int) 0 ; | |
10764 | bool result; | |
10765 | void *argp1 = 0 ; | |
10766 | int res1 = 0 ; | |
10767 | int val2 ; | |
10768 | int ecode2 = 0 ; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | PyObject * obj1 = 0 ; | |
10771 | char * kwnames[] = { | |
10772 | (char *) "self",(char *) "flags", NULL | |
10773 | }; | |
10774 | ||
10775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10777 | if (!SWIG_IsOK(res1)) { | |
10778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10779 | } | |
10780 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10781 | if (obj1) { | |
10782 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10783 | if (!SWIG_IsOK(ecode2)) { | |
10784 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'"); | |
10785 | } | |
10786 | arg2 = static_cast< int >(val2); | |
10787 | } | |
10788 | { | |
10789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10790 | result = (bool)(arg1)->MoveToParagraphEnd(arg2); | |
10791 | wxPyEndAllowThreads(__tstate); | |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
10793 | } | |
10794 | { | |
10795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10796 | } | |
10797 | return resultobj; | |
10798 | fail: | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
10803 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj = 0; | |
10805 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10806 | int arg2 = (int) 0 ; | |
10807 | bool result; | |
10808 | void *argp1 = 0 ; | |
10809 | int res1 = 0 ; | |
10810 | int val2 ; | |
10811 | int ecode2 = 0 ; | |
10812 | PyObject * obj0 = 0 ; | |
10813 | PyObject * obj1 = 0 ; | |
10814 | char * kwnames[] = { | |
10815 | (char *) "self",(char *) "flags", NULL | |
10816 | }; | |
10817 | ||
10818 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail; | |
10819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10820 | if (!SWIG_IsOK(res1)) { | |
10821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10822 | } | |
10823 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10824 | if (obj1) { | |
10825 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10826 | if (!SWIG_IsOK(ecode2)) { | |
10827 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'"); | |
10828 | } | |
10829 | arg2 = static_cast< int >(val2); | |
10830 | } | |
10831 | { | |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | result = (bool)(arg1)->MoveToParagraphStart(arg2); | |
10834 | wxPyEndAllowThreads(__tstate); | |
10835 | if (PyErr_Occurred()) SWIG_fail; | |
10836 | } | |
10837 | { | |
10838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10839 | } | |
10840 | return resultobj; | |
10841 | fail: | |
10842 | return NULL; | |
10843 | } | |
10844 | ||
10845 | ||
10846 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10847 | PyObject *resultobj = 0; | |
10848 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10849 | int arg2 = (int) 0 ; | |
10850 | bool result; | |
10851 | void *argp1 = 0 ; | |
10852 | int res1 = 0 ; | |
10853 | int val2 ; | |
10854 | int ecode2 = 0 ; | |
10855 | PyObject * obj0 = 0 ; | |
10856 | PyObject * obj1 = 0 ; | |
10857 | char * kwnames[] = { | |
10858 | (char *) "self",(char *) "flags", NULL | |
10859 | }; | |
10860 | ||
10861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail; | |
10862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10863 | if (!SWIG_IsOK(res1)) { | |
10864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10865 | } | |
10866 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10867 | if (obj1) { | |
10868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10869 | if (!SWIG_IsOK(ecode2)) { | |
10870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'"); | |
10871 | } | |
10872 | arg2 = static_cast< int >(val2); | |
10873 | } | |
10874 | { | |
10875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10876 | result = (bool)(arg1)->MoveHome(arg2); | |
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
10880 | { | |
10881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10882 | } | |
10883 | return resultobj; | |
10884 | fail: | |
10885 | return NULL; | |
10886 | } | |
10887 | ||
10888 | ||
10889 | SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10890 | PyObject *resultobj = 0; | |
10891 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10892 | int arg2 = (int) 0 ; | |
10893 | bool result; | |
10894 | void *argp1 = 0 ; | |
10895 | int res1 = 0 ; | |
10896 | int val2 ; | |
10897 | int ecode2 = 0 ; | |
10898 | PyObject * obj0 = 0 ; | |
10899 | PyObject * obj1 = 0 ; | |
10900 | char * kwnames[] = { | |
10901 | (char *) "self",(char *) "flags", NULL | |
10902 | }; | |
10903 | ||
10904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail; | |
10905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10906 | if (!SWIG_IsOK(res1)) { | |
10907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10908 | } | |
10909 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10910 | if (obj1) { | |
10911 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10912 | if (!SWIG_IsOK(ecode2)) { | |
10913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'"); | |
10914 | } | |
10915 | arg2 = static_cast< int >(val2); | |
10916 | } | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | result = (bool)(arg1)->MoveEnd(arg2); | |
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | { | |
10924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10925 | } | |
10926 | return resultobj; | |
10927 | fail: | |
10928 | return NULL; | |
10929 | } | |
10930 | ||
10931 | ||
10932 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10933 | PyObject *resultobj = 0; | |
10934 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10935 | int arg2 = (int) 1 ; | |
10936 | int arg3 = (int) 0 ; | |
10937 | bool result; | |
10938 | void *argp1 = 0 ; | |
10939 | int res1 = 0 ; | |
10940 | int val2 ; | |
10941 | int ecode2 = 0 ; | |
10942 | int val3 ; | |
10943 | int ecode3 = 0 ; | |
10944 | PyObject * obj0 = 0 ; | |
10945 | PyObject * obj1 = 0 ; | |
10946 | PyObject * obj2 = 0 ; | |
10947 | char * kwnames[] = { | |
10948 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
10949 | }; | |
10950 | ||
10951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
10953 | if (!SWIG_IsOK(res1)) { | |
10954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
10955 | } | |
10956 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
10957 | if (obj1) { | |
10958 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10959 | if (!SWIG_IsOK(ecode2)) { | |
10960 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'"); | |
10961 | } | |
10962 | arg2 = static_cast< int >(val2); | |
10963 | } | |
10964 | if (obj2) { | |
10965 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10966 | if (!SWIG_IsOK(ecode3)) { | |
10967 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'"); | |
10968 | } | |
10969 | arg3 = static_cast< int >(val3); | |
10970 | } | |
10971 | { | |
10972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10973 | result = (bool)(arg1)->PageUp(arg2,arg3); | |
10974 | wxPyEndAllowThreads(__tstate); | |
10975 | if (PyErr_Occurred()) SWIG_fail; | |
10976 | } | |
10977 | { | |
10978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10979 | } | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
10986 | SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10987 | PyObject *resultobj = 0; | |
10988 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
10989 | int arg2 = (int) 1 ; | |
10990 | int arg3 = (int) 0 ; | |
10991 | bool result; | |
10992 | void *argp1 = 0 ; | |
10993 | int res1 = 0 ; | |
10994 | int val2 ; | |
10995 | int ecode2 = 0 ; | |
10996 | int val3 ; | |
10997 | int ecode3 = 0 ; | |
10998 | PyObject * obj0 = 0 ; | |
10999 | PyObject * obj1 = 0 ; | |
11000 | PyObject * obj2 = 0 ; | |
11001 | char * kwnames[] = { | |
11002 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11003 | }; | |
11004 | ||
11005 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11006 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11007 | if (!SWIG_IsOK(res1)) { | |
11008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11009 | } | |
11010 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11011 | if (obj1) { | |
11012 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11013 | if (!SWIG_IsOK(ecode2)) { | |
11014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'"); | |
11015 | } | |
11016 | arg2 = static_cast< int >(val2); | |
11017 | } | |
11018 | if (obj2) { | |
11019 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11020 | if (!SWIG_IsOK(ecode3)) { | |
11021 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'"); | |
11022 | } | |
11023 | arg3 = static_cast< int >(val3); | |
11024 | } | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (bool)(arg1)->PageDown(arg2,arg3); | |
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
11031 | { | |
11032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11033 | } | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj = 0; | |
11042 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11043 | int arg2 = (int) 1 ; | |
11044 | int arg3 = (int) 0 ; | |
11045 | bool result; | |
11046 | void *argp1 = 0 ; | |
11047 | int res1 = 0 ; | |
11048 | int val2 ; | |
11049 | int ecode2 = 0 ; | |
11050 | int val3 ; | |
11051 | int ecode3 = 0 ; | |
11052 | PyObject * obj0 = 0 ; | |
11053 | PyObject * obj1 = 0 ; | |
11054 | PyObject * obj2 = 0 ; | |
11055 | char * kwnames[] = { | |
11056 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11057 | }; | |
11058 | ||
11059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11061 | if (!SWIG_IsOK(res1)) { | |
11062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11063 | } | |
11064 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11065 | if (obj1) { | |
11066 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11067 | if (!SWIG_IsOK(ecode2)) { | |
11068 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'"); | |
11069 | } | |
11070 | arg2 = static_cast< int >(val2); | |
11071 | } | |
11072 | if (obj2) { | |
11073 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11074 | if (!SWIG_IsOK(ecode3)) { | |
11075 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'"); | |
11076 | } | |
11077 | arg3 = static_cast< int >(val3); | |
11078 | } | |
11079 | { | |
11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11081 | result = (bool)(arg1)->WordLeft(arg2,arg3); | |
11082 | wxPyEndAllowThreads(__tstate); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
11085 | { | |
11086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11087 | } | |
11088 | return resultobj; | |
11089 | fail: | |
11090 | return NULL; | |
11091 | } | |
11092 | ||
11093 | ||
11094 | SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11095 | PyObject *resultobj = 0; | |
11096 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11097 | int arg2 = (int) 1 ; | |
11098 | int arg3 = (int) 0 ; | |
11099 | bool result; | |
11100 | void *argp1 = 0 ; | |
11101 | int res1 = 0 ; | |
11102 | int val2 ; | |
11103 | int ecode2 = 0 ; | |
11104 | int val3 ; | |
11105 | int ecode3 = 0 ; | |
11106 | PyObject * obj0 = 0 ; | |
11107 | PyObject * obj1 = 0 ; | |
11108 | PyObject * obj2 = 0 ; | |
11109 | char * kwnames[] = { | |
11110 | (char *) "self",(char *) "noPages",(char *) "flags", NULL | |
11111 | }; | |
11112 | ||
11113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11115 | if (!SWIG_IsOK(res1)) { | |
11116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11117 | } | |
11118 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11119 | if (obj1) { | |
11120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11121 | if (!SWIG_IsOK(ecode2)) { | |
11122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'"); | |
11123 | } | |
11124 | arg2 = static_cast< int >(val2); | |
11125 | } | |
11126 | if (obj2) { | |
11127 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11128 | if (!SWIG_IsOK(ecode3)) { | |
11129 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'"); | |
11130 | } | |
11131 | arg3 = static_cast< int >(val3); | |
11132 | } | |
11133 | { | |
11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11135 | result = (bool)(arg1)->WordRight(arg2,arg3); | |
11136 | wxPyEndAllowThreads(__tstate); | |
11137 | if (PyErr_Occurred()) SWIG_fail; | |
11138 | } | |
11139 | { | |
11140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11141 | } | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11149 | PyObject *resultobj = 0; | |
11150 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11151 | wxRichTextBuffer *result = 0 ; | |
11152 | void *argp1 = 0 ; | |
11153 | int res1 = 0 ; | |
11154 | PyObject *swig_obj[1] ; | |
11155 | ||
11156 | if (!args) SWIG_fail; | |
11157 | swig_obj[0] = args; | |
11158 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11159 | if (!SWIG_IsOK(res1)) { | |
11160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11161 | } | |
11162 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11163 | { | |
11164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11165 | { | |
11166 | wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer(); | |
11167 | result = (wxRichTextBuffer *) &_result_ref; | |
11168 | } | |
11169 | wxPyEndAllowThreads(__tstate); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | } | |
11172 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 ); | |
11173 | return resultobj; | |
11174 | fail: | |
11175 | return NULL; | |
11176 | } | |
11177 | ||
11178 | ||
11179 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11180 | PyObject *resultobj = 0; | |
11181 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11182 | wxString *arg2 = 0 ; | |
11183 | bool result; | |
11184 | void *argp1 = 0 ; | |
11185 | int res1 = 0 ; | |
11186 | bool temp2 = false ; | |
11187 | PyObject * obj0 = 0 ; | |
11188 | PyObject * obj1 = 0 ; | |
11189 | char * kwnames[] = { | |
11190 | (char *) "self",(char *) "cmdName", NULL | |
11191 | }; | |
11192 | ||
11193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail; | |
11194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11195 | if (!SWIG_IsOK(res1)) { | |
11196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11197 | } | |
11198 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11199 | { | |
11200 | arg2 = wxString_in_helper(obj1); | |
11201 | if (arg2 == NULL) SWIG_fail; | |
11202 | temp2 = true; | |
11203 | } | |
11204 | { | |
11205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11206 | result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2); | |
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | { | |
11211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11212 | } | |
11213 | { | |
11214 | if (temp2) | |
11215 | delete arg2; | |
11216 | } | |
11217 | return resultobj; | |
11218 | fail: | |
11219 | { | |
11220 | if (temp2) | |
11221 | delete arg2; | |
11222 | } | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11228 | PyObject *resultobj = 0; | |
11229 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11230 | bool result; | |
11231 | void *argp1 = 0 ; | |
11232 | int res1 = 0 ; | |
11233 | PyObject *swig_obj[1] ; | |
11234 | ||
11235 | if (!args) SWIG_fail; | |
11236 | swig_obj[0] = args; | |
11237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11238 | if (!SWIG_IsOK(res1)) { | |
11239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11240 | } | |
11241 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11242 | { | |
11243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11244 | result = (bool)(arg1)->EndBatchUndo(); | |
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | { | |
11249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11250 | } | |
11251 | return resultobj; | |
11252 | fail: | |
11253 | return NULL; | |
11254 | } | |
11255 | ||
11256 | ||
11257 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11258 | PyObject *resultobj = 0; | |
11259 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11260 | bool result; | |
11261 | void *argp1 = 0 ; | |
11262 | int res1 = 0 ; | |
11263 | PyObject *swig_obj[1] ; | |
11264 | ||
11265 | if (!args) SWIG_fail; | |
11266 | swig_obj[0] = args; | |
11267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11268 | if (!SWIG_IsOK(res1)) { | |
11269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11270 | } | |
11271 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11272 | { | |
11273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11274 | result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo(); | |
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | { | |
11279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11280 | } | |
11281 | return resultobj; | |
11282 | fail: | |
11283 | return NULL; | |
11284 | } | |
11285 | ||
11286 | ||
11287 | SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11288 | PyObject *resultobj = 0; | |
11289 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11290 | bool result; | |
11291 | void *argp1 = 0 ; | |
11292 | int res1 = 0 ; | |
11293 | PyObject *swig_obj[1] ; | |
11294 | ||
11295 | if (!args) SWIG_fail; | |
11296 | swig_obj[0] = args; | |
11297 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11298 | if (!SWIG_IsOK(res1)) { | |
11299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11300 | } | |
11301 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11302 | { | |
11303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11304 | result = (bool)(arg1)->BeginSuppressUndo(); | |
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
11308 | { | |
11309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11310 | } | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11318 | PyObject *resultobj = 0; | |
11319 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11320 | bool result; | |
11321 | void *argp1 = 0 ; | |
11322 | int res1 = 0 ; | |
11323 | PyObject *swig_obj[1] ; | |
11324 | ||
11325 | if (!args) SWIG_fail; | |
11326 | swig_obj[0] = args; | |
11327 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11328 | if (!SWIG_IsOK(res1)) { | |
11329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11330 | } | |
11331 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11332 | { | |
11333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11334 | result = (bool)(arg1)->EndSuppressUndo(); | |
11335 | wxPyEndAllowThreads(__tstate); | |
11336 | if (PyErr_Occurred()) SWIG_fail; | |
11337 | } | |
11338 | { | |
11339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11340 | } | |
11341 | return resultobj; | |
11342 | fail: | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11348 | PyObject *resultobj = 0; | |
11349 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11350 | bool result; | |
11351 | void *argp1 = 0 ; | |
11352 | int res1 = 0 ; | |
11353 | PyObject *swig_obj[1] ; | |
11354 | ||
11355 | if (!args) SWIG_fail; | |
11356 | swig_obj[0] = args; | |
11357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11358 | if (!SWIG_IsOK(res1)) { | |
11359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11360 | } | |
11361 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11364 | result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo(); | |
11365 | wxPyEndAllowThreads(__tstate); | |
11366 | if (PyErr_Occurred()) SWIG_fail; | |
11367 | } | |
11368 | { | |
11369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11370 | } | |
11371 | return resultobj; | |
11372 | fail: | |
11373 | return NULL; | |
11374 | } | |
11375 | ||
11376 | ||
11377 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11378 | PyObject *resultobj = 0; | |
11379 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11380 | wxRichTextRange *arg2 = 0 ; | |
11381 | wxRichTextAttr *arg3 = 0 ; | |
11382 | bool result; | |
11383 | void *argp1 = 0 ; | |
11384 | int res1 = 0 ; | |
11385 | wxRichTextRange temp2 ; | |
11386 | void *argp3 = 0 ; | |
11387 | int res3 = 0 ; | |
11388 | PyObject * obj0 = 0 ; | |
11389 | PyObject * obj1 = 0 ; | |
11390 | PyObject * obj2 = 0 ; | |
11391 | char * kwnames[] = { | |
11392 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11393 | }; | |
11394 | ||
11395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11397 | if (!SWIG_IsOK(res1)) { | |
11398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11399 | } | |
11400 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11401 | { | |
11402 | arg2 = &temp2; | |
11403 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11404 | } | |
11405 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11406 | if (!SWIG_IsOK(res3)) { | |
11407 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11408 | } | |
11409 | if (!argp3) { | |
11410 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11411 | } | |
11412 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11413 | { | |
11414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11415 | result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
11419 | { | |
11420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11421 | } | |
11422 | return resultobj; | |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
11428 | SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11429 | PyObject *resultobj = 0; | |
11430 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11431 | wxRichTextRange *arg2 = 0 ; | |
11432 | wxRichTextAttr *arg3 = 0 ; | |
11433 | bool result; | |
11434 | void *argp1 = 0 ; | |
11435 | int res1 = 0 ; | |
11436 | wxRichTextRange temp2 ; | |
11437 | void *argp3 = 0 ; | |
11438 | int res3 = 0 ; | |
11439 | PyObject * obj0 = 0 ; | |
11440 | PyObject * obj1 = 0 ; | |
11441 | PyObject * obj2 = 0 ; | |
11442 | char * kwnames[] = { | |
11443 | (char *) "self",(char *) "range",(char *) "style", NULL | |
11444 | }; | |
11445 | ||
11446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11448 | if (!SWIG_IsOK(res1)) { | |
11449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11450 | } | |
11451 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11452 | { | |
11453 | arg2 = &temp2; | |
11454 | if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail; | |
11455 | } | |
11456 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0); | |
11457 | if (!SWIG_IsOK(res3)) { | |
11458 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11459 | } | |
11460 | if (!argp3) { | |
11461 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'"); | |
11462 | } | |
11463 | arg3 = reinterpret_cast< wxRichTextAttr * >(argp3); | |
11464 | { | |
11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11466 | result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3); | |
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | { | |
11471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11472 | } | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | return NULL; | |
11476 | } | |
11477 | ||
11478 | ||
11479 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11480 | PyObject *resultobj = 0; | |
11481 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11482 | bool result; | |
11483 | void *argp1 = 0 ; | |
11484 | int res1 = 0 ; | |
11485 | PyObject *swig_obj[1] ; | |
11486 | ||
11487 | if (!args) SWIG_fail; | |
11488 | swig_obj[0] = args; | |
11489 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11490 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11492 | } |
11493 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11494 | { | |
11495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11496 | result = (bool)(arg1)->IsSelectionBold(); |
06810ecf RD |
11497 | wxPyEndAllowThreads(__tstate); |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | { | |
11501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11502 | } | |
11503 | return resultobj; | |
11504 | fail: | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
11509 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11510 | PyObject *resultobj = 0; | |
11511 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11512 | bool result; | |
11513 | void *argp1 = 0 ; | |
11514 | int res1 = 0 ; | |
11515 | PyObject *swig_obj[1] ; | |
11516 | ||
11517 | if (!args) SWIG_fail; | |
11518 | swig_obj[0] = args; | |
11519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11520 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11522 | } |
11523 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11524 | { | |
11525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11526 | result = (bool)(arg1)->IsSelectionItalics(); |
06810ecf RD |
11527 | wxPyEndAllowThreads(__tstate); |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | } | |
11530 | { | |
11531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11532 | } | |
11533 | return resultobj; | |
11534 | fail: | |
11535 | return NULL; | |
11536 | } | |
11537 | ||
11538 | ||
11539 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11540 | PyObject *resultobj = 0; | |
11541 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11542 | bool result; | |
11543 | void *argp1 = 0 ; | |
11544 | int res1 = 0 ; | |
11545 | PyObject *swig_obj[1] ; | |
11546 | ||
11547 | if (!args) SWIG_fail; | |
11548 | swig_obj[0] = args; | |
11549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11550 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11552 | } |
11553 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11554 | { | |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11556 | result = (bool)(arg1)->IsSelectionUnderlined(); |
06810ecf RD |
11557 | wxPyEndAllowThreads(__tstate); |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | { | |
11561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11562 | } | |
11563 | return resultobj; | |
11564 | fail: | |
11565 | return NULL; | |
11566 | } | |
11567 | ||
11568 | ||
11569 | SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11570 | PyObject *resultobj = 0; | |
11571 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11572 | wxTextAttrAlignment arg2 ; | |
11573 | bool result; | |
11574 | void *argp1 = 0 ; | |
11575 | int res1 = 0 ; | |
11576 | int val2 ; | |
11577 | int ecode2 = 0 ; | |
11578 | PyObject * obj0 = 0 ; | |
11579 | PyObject * obj1 = 0 ; | |
11580 | char * kwnames[] = { | |
11581 | (char *) "self",(char *) "alignment", NULL | |
11582 | }; | |
11583 | ||
11584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail; | |
11585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11586 | if (!SWIG_IsOK(res1)) { | |
79df624a | 11587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); |
06810ecf RD |
11588 | } |
11589 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11591 | if (!SWIG_IsOK(ecode2)) { | |
11592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11593 | } | |
11594 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11595 | { | |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79df624a | 11597 | result = (bool)(arg1)->IsSelectionAligned(arg2); |
06810ecf RD |
11598 | wxPyEndAllowThreads(__tstate); |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
11601 | { | |
11602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11603 | } | |
11604 | return resultobj; | |
11605 | fail: | |
11606 | return NULL; | |
11607 | } | |
11608 | ||
11609 | ||
11610 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11611 | PyObject *resultobj = 0; | |
11612 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11613 | bool result; | |
11614 | void *argp1 = 0 ; | |
11615 | int res1 = 0 ; | |
11616 | PyObject *swig_obj[1] ; | |
11617 | ||
11618 | if (!args) SWIG_fail; | |
11619 | swig_obj[0] = args; | |
11620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11621 | if (!SWIG_IsOK(res1)) { | |
11622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11623 | } | |
11624 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11625 | { | |
11626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11627 | result = (bool)(arg1)->ApplyBoldToSelection(); | |
11628 | wxPyEndAllowThreads(__tstate); | |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
11630 | } | |
11631 | { | |
11632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11633 | } | |
11634 | return resultobj; | |
11635 | fail: | |
11636 | return NULL; | |
11637 | } | |
11638 | ||
11639 | ||
11640 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11641 | PyObject *resultobj = 0; | |
11642 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11643 | bool result; | |
11644 | void *argp1 = 0 ; | |
11645 | int res1 = 0 ; | |
11646 | PyObject *swig_obj[1] ; | |
11647 | ||
11648 | if (!args) SWIG_fail; | |
11649 | swig_obj[0] = args; | |
11650 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11651 | if (!SWIG_IsOK(res1)) { | |
11652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11653 | } | |
11654 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11655 | { | |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11657 | result = (bool)(arg1)->ApplyItalicToSelection(); | |
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | { | |
11662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11663 | } | |
11664 | return resultobj; | |
11665 | fail: | |
11666 | return NULL; | |
11667 | } | |
11668 | ||
11669 | ||
11670 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11671 | PyObject *resultobj = 0; | |
11672 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11673 | bool result; | |
11674 | void *argp1 = 0 ; | |
11675 | int res1 = 0 ; | |
11676 | PyObject *swig_obj[1] ; | |
11677 | ||
11678 | if (!args) SWIG_fail; | |
11679 | swig_obj[0] = args; | |
11680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11681 | if (!SWIG_IsOK(res1)) { | |
11682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11683 | } | |
11684 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | result = (bool)(arg1)->ApplyUnderlineToSelection(); | |
11688 | wxPyEndAllowThreads(__tstate); | |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
11690 | } | |
11691 | { | |
11692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11693 | } | |
11694 | return resultobj; | |
11695 | fail: | |
11696 | return NULL; | |
11697 | } | |
11698 | ||
11699 | ||
11700 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11701 | PyObject *resultobj = 0; | |
11702 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11703 | wxTextAttrAlignment arg2 ; | |
11704 | bool result; | |
11705 | void *argp1 = 0 ; | |
11706 | int res1 = 0 ; | |
11707 | int val2 ; | |
11708 | int ecode2 = 0 ; | |
11709 | PyObject * obj0 = 0 ; | |
11710 | PyObject * obj1 = 0 ; | |
11711 | char * kwnames[] = { | |
11712 | (char *) "self",(char *) "alignment", NULL | |
11713 | }; | |
11714 | ||
11715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail; | |
11716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11717 | if (!SWIG_IsOK(res1)) { | |
11718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11719 | } | |
11720 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11721 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11722 | if (!SWIG_IsOK(ecode2)) { | |
11723 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'"); | |
11724 | } | |
11725 | arg2 = static_cast< wxTextAttrAlignment >(val2); | |
11726 | { | |
11727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11728 | result = (bool)(arg1)->ApplyAlignmentToSelection(arg2); | |
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | { | |
11733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11734 | } | |
11735 | return resultobj; | |
11736 | fail: | |
11737 | return NULL; | |
11738 | } | |
11739 | ||
11740 | ||
11741 | SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11742 | PyObject *resultobj = 0; | |
11743 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11744 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ; | |
11745 | void *argp1 = 0 ; | |
11746 | int res1 = 0 ; | |
11747 | void *argp2 = 0 ; | |
11748 | int res2 = 0 ; | |
11749 | PyObject * obj0 = 0 ; | |
11750 | PyObject * obj1 = 0 ; | |
11751 | char * kwnames[] = { | |
11752 | (char *) "self",(char *) "styleSheet", NULL | |
11753 | }; | |
11754 | ||
11755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11757 | if (!SWIG_IsOK(res1)) { | |
11758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11759 | } | |
11760 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11761 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11762 | if (!SWIG_IsOK(res2)) { | |
11763 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11764 | } | |
11765 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | (arg1)->SetStyleSheet(arg2); | |
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | resultobj = SWIG_Py_Void(); | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
11779 | SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11780 | PyObject *resultobj = 0; | |
11781 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11782 | wxRichTextStyleSheet *result = 0 ; | |
11783 | void *argp1 = 0 ; | |
11784 | int res1 = 0 ; | |
11785 | PyObject *swig_obj[1] ; | |
11786 | ||
11787 | if (!args) SWIG_fail; | |
11788 | swig_obj[0] = args; | |
11789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11790 | if (!SWIG_IsOK(res1)) { | |
11791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'"); | |
11792 | } | |
11793 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11794 | { | |
11795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11796 | result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet(); | |
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
c2829a8f RD |
11807 | SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11808 | PyObject *resultobj = 0; | |
11809 | wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ; | |
11810 | wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) NULL ; | |
11811 | bool result; | |
11812 | void *argp1 = 0 ; | |
11813 | int res1 = 0 ; | |
11814 | void *argp2 = 0 ; | |
11815 | int res2 = 0 ; | |
11816 | PyObject * obj0 = 0 ; | |
11817 | PyObject * obj1 = 0 ; | |
11818 | char * kwnames[] = { | |
11819 | (char *) "self",(char *) "styleSheet", NULL | |
11820 | }; | |
11821 | ||
11822 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_ApplyStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail; | |
11823 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 ); | |
11824 | if (!SWIG_IsOK(res1)) { | |
11825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'"); | |
11826 | } | |
11827 | arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1); | |
11828 | if (obj1) { | |
11829 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 ); | |
11830 | if (!SWIG_IsOK(res2)) { | |
11831 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'"); | |
11832 | } | |
11833 | arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2); | |
11834 | } | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (bool)(arg1)->ApplyStyleSheet(arg2); | |
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | { | |
11842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11843 | } | |
11844 | return resultobj; | |
11845 | fail: | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
06810ecf RD |
11850 | SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11851 | PyObject *obj; | |
11852 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11853 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj)); | |
11854 | return SWIG_Py_Void(); | |
11855 | } | |
11856 | ||
11857 | SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11858 | return SWIG_Python_InitShadowInstance(args); | |
11859 | } | |
11860 | ||
11861 | SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11862 | PyObject *resultobj = 0; | |
11863 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11864 | int arg2 = (int) 0 ; | |
11865 | wxRichTextEvent *result = 0 ; | |
11866 | int val1 ; | |
11867 | int ecode1 = 0 ; | |
11868 | int val2 ; | |
11869 | int ecode2 = 0 ; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | PyObject * obj1 = 0 ; | |
11872 | char * kwnames[] = { | |
11873 | (char *) "commandType",(char *) "winid", NULL | |
11874 | }; | |
11875 | ||
11876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail; | |
11877 | if (obj0) { | |
11878 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
11879 | if (!SWIG_IsOK(ecode1)) { | |
11880 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'"); | |
11881 | } | |
11882 | arg1 = static_cast< wxEventType >(val1); | |
11883 | } | |
11884 | if (obj1) { | |
11885 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11886 | if (!SWIG_IsOK(ecode2)) { | |
11887 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'"); | |
11888 | } | |
11889 | arg2 = static_cast< int >(val2); | |
11890 | } | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2); | |
11894 | wxPyEndAllowThreads(__tstate); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 ); | |
11898 | return resultobj; | |
11899 | fail: | |
11900 | return NULL; | |
11901 | } | |
11902 | ||
11903 | ||
11904 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11905 | PyObject *resultobj = 0; | |
11906 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11907 | int result; | |
11908 | void *argp1 = 0 ; | |
11909 | int res1 = 0 ; | |
11910 | PyObject *swig_obj[1] ; | |
11911 | ||
11912 | if (!args) SWIG_fail; | |
11913 | swig_obj[0] = args; | |
11914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11915 | if (!SWIG_IsOK(res1)) { | |
11916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11917 | } | |
11918 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11919 | { | |
11920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11921 | result = (int)((wxRichTextEvent const *)arg1)->GetIndex(); | |
11922 | wxPyEndAllowThreads(__tstate); | |
11923 | if (PyErr_Occurred()) SWIG_fail; | |
11924 | } | |
11925 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11926 | return resultobj; | |
11927 | fail: | |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
11932 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11933 | PyObject *resultobj = 0; | |
11934 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11935 | int arg2 ; | |
11936 | void *argp1 = 0 ; | |
11937 | int res1 = 0 ; | |
11938 | int val2 ; | |
11939 | int ecode2 = 0 ; | |
11940 | PyObject * obj0 = 0 ; | |
11941 | PyObject * obj1 = 0 ; | |
11942 | char * kwnames[] = { | |
11943 | (char *) "self",(char *) "n", NULL | |
11944 | }; | |
11945 | ||
11946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
11947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11948 | if (!SWIG_IsOK(res1)) { | |
11949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
11950 | } | |
11951 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11952 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11953 | if (!SWIG_IsOK(ecode2)) { | |
11954 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
11955 | } | |
11956 | arg2 = static_cast< int >(val2); | |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->SetIndex(arg2); | |
11960 | wxPyEndAllowThreads(__tstate); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | resultobj = SWIG_Py_Void(); | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
11970 | SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
11971 | PyObject *resultobj = 0; | |
11972 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
11973 | int result; | |
11974 | void *argp1 = 0 ; | |
11975 | int res1 = 0 ; | |
11976 | PyObject *swig_obj[1] ; | |
11977 | ||
11978 | if (!args) SWIG_fail; | |
11979 | swig_obj[0] = args; | |
11980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
11981 | if (!SWIG_IsOK(res1)) { | |
11982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'"); | |
11983 | } | |
11984 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
11985 | { | |
11986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11987 | result = (int)((wxRichTextEvent const *)arg1)->GetFlags(); | |
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
11991 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11992 | return resultobj; | |
11993 | fail: | |
11994 | return NULL; | |
11995 | } | |
11996 | ||
11997 | ||
11998 | SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11999 | PyObject *resultobj = 0; | |
12000 | wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ; | |
12001 | int arg2 ; | |
12002 | void *argp1 = 0 ; | |
12003 | int res1 = 0 ; | |
12004 | int val2 ; | |
12005 | int ecode2 = 0 ; | |
12006 | PyObject * obj0 = 0 ; | |
12007 | PyObject * obj1 = 0 ; | |
12008 | char * kwnames[] = { | |
12009 | (char *) "self",(char *) "flags", NULL | |
12010 | }; | |
12011 | ||
12012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail; | |
12013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 ); | |
12014 | if (!SWIG_IsOK(res1)) { | |
12015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'"); | |
12016 | } | |
12017 | arg1 = reinterpret_cast< wxRichTextEvent * >(argp1); | |
12018 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12019 | if (!SWIG_IsOK(ecode2)) { | |
12020 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'"); | |
12021 | } | |
12022 | arg2 = static_cast< int >(val2); | |
12023 | { | |
12024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12025 | (arg1)->SetFlags(arg2); | |
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
12029 | resultobj = SWIG_Py_Void(); | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | return NULL; | |
12033 | } | |
12034 | ||
12035 | ||
12036 | SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12037 | PyObject *obj; | |
12038 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12039 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj)); | |
12040 | return SWIG_Py_Void(); | |
12041 | } | |
12042 | ||
12043 | SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
12044 | return SWIG_Python_InitShadowInstance(args); | |
12045 | } | |
12046 | ||
12047 | static PyMethodDef SwigMethods[] = { | |
12048 | { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12049 | { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL}, | |
12050 | { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12051 | { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12052 | { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12053 | { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12054 | { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12055 | { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL}, | |
12056 | { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12057 | { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL}, | |
12058 | { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12059 | { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12060 | { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12061 | { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12062 | { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL}, | |
12063 | { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL}, | |
12064 | { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL}, | |
12065 | { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL}, | |
12066 | { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL}, | |
12067 | { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12068 | { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL}, | |
12069 | { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL}, | |
12070 | { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12071 | { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12072 | { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12073 | { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12074 | { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12075 | { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12076 | { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12077 | { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12078 | { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12079 | { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12080 | { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12081 | { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12082 | { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12083 | { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12084 | { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12085 | { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12086 | { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12087 | { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12088 | { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12089 | { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 12090 | { (char *)"RichTextAttr_SetBulletText", (PyCFunction) _wrap_RichTextAttr_SetBulletText, METH_VARARGS | METH_KEYWORDS, NULL}, |
b39fe951 | 12091 | { (char *)"RichTextAttr_SetBulletFont", (PyCFunction) _wrap_RichTextAttr_SetBulletFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
12092 | { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL}, |
12093 | { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL}, | |
12094 | { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL}, | |
12095 | { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL}, | |
12096 | { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL}, | |
12097 | { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL}, | |
12098 | { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL}, | |
12099 | { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL}, | |
12100 | { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL}, | |
12101 | { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL}, | |
12102 | { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL}, | |
12103 | { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL}, | |
12104 | { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL}, | |
12105 | { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL}, | |
12106 | { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL}, | |
12107 | { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL}, | |
12108 | { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL}, | |
12109 | { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL}, | |
12110 | { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL}, | |
12111 | { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL}, | |
70d7cb34 | 12112 | { (char *)"RichTextAttr_GetBulletText", (PyCFunction)_wrap_RichTextAttr_GetBulletText, METH_O, NULL}, |
b39fe951 | 12113 | { (char *)"RichTextAttr_GetBulletFont", (PyCFunction)_wrap_RichTextAttr_GetBulletFont, METH_O, NULL}, |
06810ecf RD |
12114 | { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL}, |
12115 | { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL}, | |
12116 | { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL}, | |
12117 | { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL}, | |
12118 | { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL}, | |
12119 | { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL}, | |
12120 | { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL}, | |
12121 | { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL}, | |
12122 | { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL}, | |
12123 | { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL}, | |
12124 | { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL}, | |
12125 | { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL}, | |
12126 | { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL}, | |
12127 | { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL}, | |
12128 | { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL}, | |
12129 | { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL}, | |
12130 | { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL}, | |
12131 | { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL}, | |
12132 | { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL}, | |
70d7cb34 | 12133 | { (char *)"RichTextAttr_HasBulletText", (PyCFunction)_wrap_RichTextAttr_HasBulletText, METH_O, NULL}, |
06810ecf RD |
12134 | { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, |
12135 | { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL}, | |
12136 | { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL}, | |
12137 | { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL}, | |
12138 | { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL}, | |
12139 | { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL}, | |
12140 | { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12141 | { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL}, | |
12142 | { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12143 | { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL}, | |
12144 | { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12145 | { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12146 | { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12147 | { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12148 | { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL}, | |
12149 | { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL}, | |
12150 | { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL}, | |
12151 | { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL}, | |
12152 | { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL}, | |
12153 | { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL}, | |
12154 | { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL}, | |
12155 | { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL}, | |
12156 | { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12157 | { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12158 | { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL}, | |
12159 | { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL}, | |
12160 | { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12161 | { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12162 | { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12163 | { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
12164 | { (char *)"RichTextCtrl_SetHandlerFlags", (PyCFunction) _wrap_RichTextCtrl_SetHandlerFlags, METH_VARARGS | METH_KEYWORDS, NULL}, |
12165 | { (char *)"RichTextCtrl_GetHandlerFlags", (PyCFunction)_wrap_RichTextCtrl_GetHandlerFlags, METH_O, NULL}, | |
06810ecf RD |
12166 | { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL}, |
12167 | { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL}, | |
12168 | { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12169 | { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12170 | { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12171 | { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 12172 | { (char *)"RichTextCtrl_SetStyleEx", (PyCFunction) _wrap_RichTextCtrl_SetStyleEx, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf | 12173 | { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
c2829a8f | 12174 | { (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
12175 | { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
12176 | { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL}, | |
12177 | { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12178 | { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12179 | { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12180 | { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12181 | { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12182 | { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL}, | |
12183 | { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL}, | |
12184 | { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL}, | |
12185 | { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL}, | |
12186 | { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL}, | |
12187 | { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL}, | |
12188 | { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL}, | |
12189 | { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL}, | |
12190 | { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL}, | |
12191 | { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL}, | |
12192 | { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL}, | |
12193 | { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL}, | |
12194 | { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12195 | { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL}, | |
12196 | { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL}, | |
12197 | { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL}, | |
12198 | { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12199 | { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL}, | |
12200 | { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12201 | { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL}, | |
12202 | { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12203 | { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12204 | { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12205 | { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12206 | { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL}, | |
12207 | { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12208 | { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL}, | |
12209 | { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL}, | |
12210 | { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL}, | |
12211 | { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL}, | |
12212 | { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL}, | |
12213 | { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL}, | |
12214 | { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL}, | |
12215 | { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL}, | |
12216 | { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12217 | { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL}, | |
12218 | { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12219 | { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL}, | |
12220 | { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12221 | { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL}, | |
12222 | { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12223 | { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL}, | |
12224 | { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12225 | { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL}, | |
12226 | { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12227 | { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL}, | |
12228 | { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12229 | { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL}, | |
12230 | { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12231 | { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL}, | |
12232 | { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12233 | { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL}, | |
12234 | { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12235 | { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL}, | |
12236 | { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12237 | { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL}, | |
12238 | { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12239 | { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL}, | |
70d7cb34 RD |
12240 | { (char *)"RichTextCtrl_BeginListStyle", (PyCFunction) _wrap_RichTextCtrl_BeginListStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
12241 | { (char *)"RichTextCtrl_EndListStyle", (PyCFunction)_wrap_RichTextCtrl_EndListStyle, METH_O, NULL}, | |
12242 | { (char *)"RichTextCtrl_BeginURL", (PyCFunction) _wrap_RichTextCtrl_BeginURL, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12243 | { (char *)"RichTextCtrl_EndURL", (PyCFunction)_wrap_RichTextCtrl_EndURL, METH_O, NULL}, | |
06810ecf RD |
12244 | { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL}, |
12245 | { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL}, | |
c2829a8f | 12246 | { (char *)"RichTextCtrl_SelectWord", (PyCFunction) _wrap_RichTextCtrl_SelectWord, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
12247 | { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL}, |
12248 | { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
79df624a RD |
12249 | { (char *)"RichTextCtrl_GetInternalSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetInternalSelectionRange, METH_O, NULL}, |
12250 | { (char *)"RichTextCtrl_SetInternalSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetInternalSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
06810ecf RD |
12251 | { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL}, |
12252 | { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12253 | { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12254 | { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12255 | { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12256 | { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12257 | { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12258 | { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12259 | { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12260 | { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12261 | { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12262 | { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12263 | { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12264 | { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12265 | { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12266 | { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12267 | { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12268 | { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12269 | { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL}, | |
12270 | { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12271 | { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL}, | |
12272 | { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL}, | |
12273 | { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL}, | |
12274 | { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL}, | |
12275 | { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL}, | |
12276 | { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12277 | { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12278 | { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL}, | |
12279 | { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL}, | |
12280 | { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL}, | |
12281 | { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12282 | { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL}, | |
12283 | { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL}, | |
12284 | { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL}, | |
12285 | { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12286 | { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12287 | { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL}, | |
c2829a8f | 12288 | { (char *)"RichTextCtrl_ApplyStyleSheet", (PyCFunction) _wrap_RichTextCtrl_ApplyStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL}, |
06810ecf RD |
12289 | { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL}, |
12290 | { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL}, | |
12291 | { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12292 | { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL}, | |
12293 | { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12294 | { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL}, | |
12295 | { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
12296 | { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL}, | |
12297 | { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL}, | |
12298 | { NULL, NULL, 0, NULL } | |
12299 | }; | |
12300 | ||
12301 | ||
12302 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
12303 | ||
12304 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
12305 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
12306 | } | |
12307 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
12308 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12309 | } | |
12310 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
12311 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12312 | } | |
12313 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
12314 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12315 | } | |
12316 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
12317 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12318 | } | |
12319 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
12320 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
12321 | } | |
12322 | static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) { | |
12323 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12324 | } | |
12325 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
12326 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12327 | } | |
12328 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
12329 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
12330 | } | |
12331 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
12332 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12333 | } | |
12334 | static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) { | |
12335 | return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12336 | } | |
12337 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
12338 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12339 | } | |
12340 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
12341 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12342 | } | |
12343 | static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) { | |
12344 | return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12345 | } | |
12346 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
12347 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12348 | } | |
12349 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
12350 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12351 | } | |
12352 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
12353 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
12354 | } | |
12355 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
12356 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
12357 | } | |
12358 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
12359 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
12360 | } | |
12361 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
12362 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
12363 | } | |
12364 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
12365 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
12366 | } | |
12367 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
12368 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
12369 | } | |
27e45892 RD |
12370 | static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) { |
12371 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12372 | } | |
06810ecf RD |
12373 | static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) { |
12374 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
12375 | } | |
12376 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
12377 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
12378 | } | |
12379 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
12380 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
12381 | } | |
12382 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
12383 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
12384 | } | |
12385 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
12386 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
12387 | } | |
12388 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
12389 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
12390 | } | |
12391 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
12392 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
12393 | } | |
12394 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
12395 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
12396 | } | |
12397 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
12398 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
12399 | } | |
12400 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
12401 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
12402 | } | |
12403 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
12404 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
12405 | } | |
12406 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
12407 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
12408 | } | |
12409 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
12410 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
12411 | } | |
12412 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
12413 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
12414 | } | |
12415 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
12416 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
12417 | } | |
12418 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
12419 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
12420 | } | |
12421 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
12422 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
12423 | } | |
12424 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
12425 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
12426 | } | |
12427 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
12428 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
12429 | } | |
12430 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
12431 | return (void *)((wxWindow *) ((wxControl *) x)); | |
12432 | } | |
12433 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
12434 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12435 | } | |
12436 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
12437 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
12438 | } | |
12439 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
12440 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12441 | } | |
12442 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
12443 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
12444 | } | |
12445 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
12446 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
12447 | } | |
12448 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
12449 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
12450 | } | |
12451 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
12452 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
12453 | } | |
12454 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
12455 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
12456 | } | |
12457 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
12458 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
12459 | } | |
12460 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
12461 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
12462 | } | |
12463 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
12464 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
12465 | } | |
12466 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
12467 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
12468 | } | |
12469 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
12470 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
12471 | } | |
12472 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
12473 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
12474 | } | |
12475 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
12476 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
12477 | } | |
12478 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
12479 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
12480 | } | |
12481 | static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) { | |
12482 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
12483 | } | |
12484 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
12485 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
12486 | } | |
12487 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
12488 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
12489 | } | |
12490 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
12491 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
12492 | } | |
12493 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
12494 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
12495 | } | |
12496 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
12497 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
12498 | } | |
12499 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
12500 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
12501 | } | |
12502 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
12503 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
12504 | } | |
12505 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
12506 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
12507 | } | |
12508 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
12509 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
12510 | } | |
12511 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
12512 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
12513 | } | |
12514 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
12515 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
12516 | } | |
34e0a3bb RD |
12517 | static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) { |
12518 | return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12519 | } | |
06810ecf RD |
12520 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
12521 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
12522 | } | |
12523 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
12524 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
12525 | } | |
12526 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
12527 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
12528 | } | |
12529 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
12530 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
12531 | } | |
12532 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
12533 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
12534 | } | |
12535 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
12536 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
12537 | } | |
12538 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
12539 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
12540 | } | |
12541 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
12542 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
12543 | } | |
12544 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
12545 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
12546 | } | |
12547 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
12548 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
12549 | } | |
12550 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
12551 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
12552 | } | |
06810ecf RD |
12553 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
12554 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
12555 | } | |
12556 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
12557 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
12558 | } | |
34e0a3bb RD |
12559 | static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) { |
12560 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
12561 | } | |
06810ecf RD |
12562 | static void *_p_wxRichTextEventTo_p_wxEvent(void *x) { |
12563 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
12564 | } | |
12565 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
12566 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
12567 | } | |
12568 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
12569 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
12570 | } | |
12571 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
12572 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
12573 | } | |
12574 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
12575 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
12576 | } | |
12577 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
12578 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
12579 | } | |
12580 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
12581 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
12582 | } | |
12583 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
12584 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
12585 | } | |
12586 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
12587 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
12588 | } | |
12589 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
12590 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
12591 | } | |
12592 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
12593 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
12594 | } | |
12595 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
12596 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
12597 | } | |
12598 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
12599 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
12600 | } | |
12601 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
12602 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
12603 | } | |
12604 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
12605 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
12606 | } | |
12607 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
12608 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
12609 | } | |
12610 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
12611 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
12612 | } | |
12613 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
12614 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
12615 | } | |
12616 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
12617 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
12618 | } | |
92515dfc RD |
12619 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
12620 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
06810ecf | 12621 | } |
92515dfc RD |
12622 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { |
12623 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
06810ecf RD |
12624 | } |
12625 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
12626 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
12627 | } | |
92515dfc RD |
12628 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { |
12629 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
06810ecf | 12630 | } |
92515dfc RD |
12631 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
12632 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
06810ecf | 12633 | } |
34e0a3bb RD |
12634 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
12635 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
12636 | } | |
92515dfc RD |
12637 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
12638 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
06810ecf | 12639 | } |
92515dfc RD |
12640 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { |
12641 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
06810ecf | 12642 | } |
92515dfc RD |
12643 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
12644 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
06810ecf | 12645 | } |
92515dfc RD |
12646 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { |
12647 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
06810ecf | 12648 | } |
92515dfc RD |
12649 | static void *_p_wxSizerTo_p_wxObject(void *x) { |
12650 | return (void *)((wxObject *) ((wxSizer *) x)); | |
06810ecf | 12651 | } |
92515dfc RD |
12652 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { |
12653 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
06810ecf | 12654 | } |
92515dfc RD |
12655 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { |
12656 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
06810ecf | 12657 | } |
92515dfc RD |
12658 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { |
12659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
06810ecf | 12660 | } |
92515dfc RD |
12661 | static void *_p_wxEventTo_p_wxObject(void *x) { |
12662 | return (void *)((wxObject *) ((wxEvent *) x)); | |
06810ecf | 12663 | } |
92515dfc RD |
12664 | static void *_p_wxFontDataTo_p_wxObject(void *x) { |
12665 | return (void *)((wxObject *) ((wxFontData *) x)); | |
06810ecf | 12666 | } |
92515dfc RD |
12667 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { |
12668 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
06810ecf | 12669 | } |
92515dfc RD |
12670 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
12671 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
06810ecf | 12672 | } |
92515dfc RD |
12673 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
12674 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
06810ecf | 12675 | } |
92515dfc RD |
12676 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
12677 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
06810ecf | 12678 | } |
92515dfc RD |
12679 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { |
12680 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
06810ecf | 12681 | } |
92515dfc RD |
12682 | static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) { |
12683 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
06810ecf | 12684 | } |
92515dfc RD |
12685 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { |
12686 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
06810ecf | 12687 | } |
92515dfc RD |
12688 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
12689 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
06810ecf | 12690 | } |
92515dfc RD |
12691 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
12692 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
06810ecf | 12693 | } |
92515dfc RD |
12694 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { |
12695 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
06810ecf | 12696 | } |
92515dfc RD |
12697 | static void *_p_wxRichTextEventTo_p_wxObject(void *x) { |
12698 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
06810ecf | 12699 | } |
92515dfc RD |
12700 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { |
12701 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
06810ecf | 12702 | } |
92515dfc RD |
12703 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { |
12704 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
06810ecf | 12705 | } |
92515dfc RD |
12706 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { |
12707 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
06810ecf | 12708 | } |
92515dfc RD |
12709 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { |
12710 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
06810ecf | 12711 | } |
92515dfc RD |
12712 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { |
12713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
06810ecf RD |
12714 | } |
12715 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
12716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
12717 | } | |
92515dfc RD |
12718 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
12719 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
06810ecf | 12720 | } |
92515dfc RD |
12721 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { |
12722 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
06810ecf | 12723 | } |
92515dfc RD |
12724 | static void *_p_wxFSFileTo_p_wxObject(void *x) { |
12725 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
06810ecf | 12726 | } |
92515dfc RD |
12727 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { |
12728 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
06810ecf | 12729 | } |
92515dfc RD |
12730 | static void *_p_wxPySizerTo_p_wxObject(void *x) { |
12731 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
06810ecf RD |
12732 | } |
12733 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
12734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
12735 | } | |
92515dfc RD |
12736 | static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) { |
12737 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
06810ecf | 12738 | } |
92515dfc RD |
12739 | static void *_p_wxColourDataTo_p_wxObject(void *x) { |
12740 | return (void *)((wxObject *) ((wxColourData *) x)); | |
06810ecf | 12741 | } |
92515dfc RD |
12742 | static void *_p_wxPyEventTo_p_wxObject(void *x) { |
12743 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
06810ecf | 12744 | } |
92515dfc RD |
12745 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { |
12746 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
06810ecf | 12747 | } |
92515dfc RD |
12748 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { |
12749 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
06810ecf RD |
12750 | } |
12751 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
12752 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
12753 | } | |
92515dfc RD |
12754 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { |
12755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
06810ecf | 12756 | } |
92515dfc RD |
12757 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { |
12758 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
06810ecf | 12759 | } |
92515dfc RD |
12760 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { |
12761 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
06810ecf | 12762 | } |
92515dfc RD |
12763 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { |
12764 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
06810ecf | 12765 | } |
92515dfc RD |
12766 | static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) { |
12767 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
06810ecf | 12768 | } |
27e45892 RD |
12769 | static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) { |
12770 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
12771 | } | |
92515dfc RD |
12772 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { |
12773 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
06810ecf | 12774 | } |
92515dfc RD |
12775 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { |
12776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
06810ecf | 12777 | } |
92515dfc RD |
12778 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { |
12779 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
06810ecf | 12780 | } |
92515dfc RD |
12781 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
12782 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
06810ecf | 12783 | } |
92515dfc RD |
12784 | static void *_p_wxPrinterTo_p_wxObject(void *x) { |
12785 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
06810ecf | 12786 | } |
92515dfc RD |
12787 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { |
12788 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
06810ecf | 12789 | } |
92515dfc RD |
12790 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
12791 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
06810ecf | 12792 | } |
92515dfc RD |
12793 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
12794 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
06810ecf | 12795 | } |
92515dfc RD |
12796 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { |
12797 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
06810ecf | 12798 | } |
92515dfc RD |
12799 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { |
12800 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
06810ecf | 12801 | } |
92515dfc RD |
12802 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { |
12803 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
06810ecf | 12804 | } |
92515dfc RD |
12805 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { |
12806 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
06810ecf | 12807 | } |
92515dfc RD |
12808 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { |
12809 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
06810ecf | 12810 | } |
92515dfc RD |
12811 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { |
12812 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
06810ecf | 12813 | } |
92515dfc RD |
12814 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { |
12815 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
06810ecf | 12816 | } |
92515dfc RD |
12817 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
12818 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
06810ecf | 12819 | } |
92515dfc RD |
12820 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { |
12821 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
06810ecf | 12822 | } |
92515dfc RD |
12823 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { |
12824 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
06810ecf | 12825 | } |
92515dfc RD |
12826 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { |
12827 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
06810ecf | 12828 | } |
92515dfc RD |
12829 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { |
12830 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
06810ecf | 12831 | } |
92515dfc RD |
12832 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { |
12833 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
06810ecf | 12834 | } |
92515dfc RD |
12835 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { |
12836 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
06810ecf | 12837 | } |
92515dfc RD |
12838 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { |
12839 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
06810ecf | 12840 | } |
92515dfc RD |
12841 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { |
12842 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
06810ecf | 12843 | } |
92515dfc RD |
12844 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
12845 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
06810ecf | 12846 | } |
92515dfc RD |
12847 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
12848 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
06810ecf RD |
12849 | } |
12850 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
12851 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
12852 | } | |
92515dfc RD |
12853 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
12854 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
06810ecf | 12855 | } |
580080c5 RD |
12856 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
12857 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
12858 | } | |
92515dfc RD |
12859 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
12860 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
06810ecf | 12861 | } |
34e0a3bb RD |
12862 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
12863 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
12864 | } | |
92515dfc RD |
12865 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { |
12866 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
06810ecf | 12867 | } |
92515dfc RD |
12868 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { |
12869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
06810ecf | 12870 | } |
92515dfc RD |
12871 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { |
12872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
06810ecf | 12873 | } |
92515dfc RD |
12874 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
12875 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
06810ecf | 12876 | } |
580080c5 RD |
12877 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
12878 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
12879 | } | |
92515dfc RD |
12880 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { |
12881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
06810ecf | 12882 | } |
92515dfc RD |
12883 | static void *_p_wxImageTo_p_wxObject(void *x) { |
12884 | return (void *)((wxObject *) ((wxImage *) x)); | |
06810ecf | 12885 | } |
92515dfc RD |
12886 | static void *_p_wxFrameTo_p_wxObject(void *x) { |
12887 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
06810ecf | 12888 | } |
92515dfc RD |
12889 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { |
12890 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
06810ecf | 12891 | } |
92515dfc RD |
12892 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
12893 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
06810ecf | 12894 | } |
92515dfc RD |
12895 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { |
12896 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
06810ecf | 12897 | } |
92515dfc RD |
12898 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { |
12899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
06810ecf | 12900 | } |
92515dfc RD |
12901 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { |
12902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
06810ecf | 12903 | } |
92515dfc RD |
12904 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
12905 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
06810ecf | 12906 | } |
92515dfc RD |
12907 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { |
12908 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
06810ecf | 12909 | } |
92515dfc RD |
12910 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { |
12911 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
06810ecf | 12912 | } |
92515dfc RD |
12913 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
12914 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
06810ecf | 12915 | } |
92515dfc RD |
12916 | static void *_p_wxMenuTo_p_wxObject(void *x) { |
12917 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
06810ecf | 12918 | } |
92515dfc RD |
12919 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { |
12920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
12921 | } | |
12922 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
12923 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
06810ecf RD |
12924 | } |
12925 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
12926 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
12927 | } | |
92515dfc RD |
12928 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { |
12929 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
06810ecf | 12930 | } |
92515dfc RD |
12931 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { |
12932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
06810ecf | 12933 | } |
92515dfc RD |
12934 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { |
12935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
06810ecf | 12936 | } |
92515dfc RD |
12937 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { |
12938 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
06810ecf | 12939 | } |
92515dfc RD |
12940 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { |
12941 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
06810ecf | 12942 | } |
92515dfc RD |
12943 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { |
12944 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
06810ecf | 12945 | } |
92515dfc RD |
12946 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { |
12947 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
06810ecf | 12948 | } |
92515dfc RD |
12949 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { |
12950 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
06810ecf | 12951 | } |
92515dfc RD |
12952 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { |
12953 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
06810ecf | 12954 | } |
92515dfc RD |
12955 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { |
12956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
06810ecf | 12957 | } |
92515dfc RD |
12958 | static void *_p_wxSashEventTo_p_wxObject(void *x) { |
12959 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
06810ecf | 12960 | } |
92515dfc RD |
12961 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { |
12962 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
06810ecf | 12963 | } |
92515dfc RD |
12964 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { |
12965 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
06810ecf | 12966 | } |
92515dfc RD |
12967 | static void *_p_wxPanelTo_p_wxObject(void *x) { |
12968 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
06810ecf | 12969 | } |
92515dfc RD |
12970 | static void *_p_wxDialogTo_p_wxObject(void *x) { |
12971 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
06810ecf | 12972 | } |
92515dfc RD |
12973 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { |
12974 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
06810ecf | 12975 | } |
92515dfc RD |
12976 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { |
12977 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
06810ecf | 12978 | } |
92515dfc RD |
12979 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { |
12980 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
06810ecf | 12981 | } |
92515dfc RD |
12982 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { |
12983 | return (void *)((wxObject *) ((wxPageSetupDialog *) x)); | |
06810ecf | 12984 | } |
92515dfc RD |
12985 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { |
12986 | return (void *)((wxObject *) ((wxPrintDialog *) x)); | |
06810ecf | 12987 | } |
92515dfc RD |
12988 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
12989 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
06810ecf | 12990 | } |
92515dfc RD |
12991 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
12992 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
06810ecf | 12993 | } |
92515dfc RD |
12994 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { |
12995 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
06810ecf | 12996 | } |
92515dfc RD |
12997 | static void *_p_wxPyAppTo_p_wxObject(void *x) { |
12998 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
06810ecf | 12999 | } |
92515dfc RD |
13000 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { |
13001 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
06810ecf | 13002 | } |
92515dfc RD |
13003 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { |
13004 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
06810ecf | 13005 | } |
92515dfc RD |
13006 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { |
13007 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
06810ecf | 13008 | } |
92515dfc RD |
13009 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { |
13010 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
06810ecf RD |
13011 | } |
13012 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
13013 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
13014 | } | |
92515dfc RD |
13015 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { |
13016 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
06810ecf | 13017 | } |
92515dfc RD |
13018 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { |
13019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
06810ecf | 13020 | } |
92515dfc RD |
13021 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { |
13022 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
06810ecf RD |
13023 | } |
13024 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
13025 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
13026 | } | |
92515dfc RD |
13027 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { |
13028 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
06810ecf | 13029 | } |
92515dfc RD |
13030 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
13031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
06810ecf | 13032 | } |
92515dfc RD |
13033 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { |
13034 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
13035 | } | |
13036 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
13037 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
13038 | } | |
13039 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
13040 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
13041 | } | |
13042 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
13043 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
06810ecf RD |
13044 | } |
13045 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
13046 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
13047 | } | |
13048 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
13049 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
13050 | } | |
13051 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
13052 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
13053 | } | |
13054 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
13055 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
13056 | } | |
13057 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
13058 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
13059 | } | |
13060 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
13061 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
13062 | } | |
13063 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
13064 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
13065 | } | |
13066 | static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) { | |
13067 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x)); | |
13068 | } | |
13069 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
13070 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
13071 | } | |
13072 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
13073 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
13074 | } | |
13075 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
13076 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
13077 | } | |
13078 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
13079 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
13080 | } | |
27e45892 RD |
13081 | static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) { |
13082 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x)); | |
13083 | } | |
06810ecf RD |
13084 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { |
13085 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
13086 | } | |
13087 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
13088 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
13089 | } | |
13090 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
13091 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
13092 | } | |
13093 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
13094 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
13095 | } | |
13096 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
13097 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
13098 | } | |
13099 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13100 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
13101 | } | |
13102 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
13103 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
13104 | } | |
13105 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
13106 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
13107 | } | |
13108 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
13109 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
13110 | } | |
13111 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
13112 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
13113 | } | |
13114 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
13115 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
13116 | } | |
13117 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
13118 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
13119 | } | |
13120 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
13121 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
13122 | } | |
13123 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
13124 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
13125 | } | |
13126 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13127 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
13128 | } | |
13129 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
13130 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
13131 | } | |
13132 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
13133 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
13134 | } | |
13135 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
13136 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
13137 | } | |
13138 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
13139 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
13140 | } | |
13141 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
13142 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
13143 | } | |
13144 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
13145 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
13146 | } | |
13147 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
13148 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
13149 | } | |
13150 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
13151 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
13152 | } | |
13153 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
13154 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
13155 | } | |
13156 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
13157 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
13158 | } | |
13159 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
13160 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
13161 | } | |
13162 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
13163 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
13164 | } | |
13165 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
13166 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
13167 | } | |
13168 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
13169 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
13170 | } | |
13171 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
13172 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
13173 | } | |
13174 | static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) { | |
13175 | return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x)); | |
13176 | } | |
13177 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
13178 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
13179 | } | |
13180 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
13181 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
13182 | } | |
13183 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
13184 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
13185 | } | |
13186 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
13187 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
13188 | } | |
13189 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
13190 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
13191 | } | |
13192 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
13193 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
13194 | } | |
13195 | static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) { | |
13196 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x)); | |
13197 | } | |
13198 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
13199 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
13200 | } | |
13201 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
13202 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
13203 | } | |
13204 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
13205 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
13206 | } | |
13207 | static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) { | |
13208 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x)); | |
13209 | } | |
13210 | static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) { | |
13211 | return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
13212 | } | |
13213 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
13214 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
13215 | } | |
13216 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
13217 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
13218 | } | |
13219 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
13220 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
13221 | } | |
13222 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
13223 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
13224 | } | |
13225 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
13226 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
13227 | } | |
13228 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
13229 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
13230 | } | |
13231 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
13232 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
13233 | } | |
13234 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
13235 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
13236 | } | |
13237 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
13238 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
13239 | } | |
13240 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; | |
13241 | 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}; | |
13242 | static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0}; | |
13243 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; | |
13244 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
13245 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
13246 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
13247 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0}; | |
13248 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; | |
13249 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; | |
13250 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
13251 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0}; | |
13252 | static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0}; | |
13253 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
13254 | static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0}; | |
13255 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; | |
13256 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; | |
13257 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
13258 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
13259 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
13260 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
13261 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
13262 | static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0}; | |
13263 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
13264 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
13265 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0}; | |
13266 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
13267 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
13268 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
13269 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
13270 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
13271 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
13272 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
34e0a3bb | 13273 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
06810ecf RD |
13274 | static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0}; |
13275 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
13276 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
13277 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
13278 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
13279 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
13280 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
13281 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
13282 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; | |
13283 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
13284 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
13285 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
13286 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
13287 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
13288 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
13289 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
13290 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0}; | |
13291 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
13292 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
13293 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
13294 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
13295 | static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0}; | |
13296 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0}; | |
13297 | static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0}; | |
13298 | static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0}; | |
13299 | static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0}; | |
13300 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
13301 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
13302 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
27e45892 RD |
13303 | static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", 0, 0, 0, 0, 0}; |
13304 | static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0}; | |
06810ecf RD |
13305 | static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0}; |
13306 | static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0}; | |
27e45892 | 13307 | static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0}; |
06810ecf RD |
13308 | static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0}; |
13309 | static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0}; | |
13310 | static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0}; | |
13311 | static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0}; | |
06810ecf | 13312 | static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0}; |
06810ecf RD |
13313 | static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0}; |
13314 | static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0}; | |
13315 | static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0}; | |
13316 | static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0}; | |
13317 | static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0}; | |
13318 | static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0}; | |
13319 | static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0}; | |
13320 | static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0}; | |
27e45892 | 13321 | static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0}; |
06810ecf RD |
13322 | static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0}; |
13323 | static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0}; | |
13324 | static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0}; | |
13325 | static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0}; | |
13326 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
13327 | static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0}; | |
13328 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
13329 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
13330 | static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0}; | |
13331 | static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0}; | |
13332 | static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0}; | |
13333 | static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0}; | |
13334 | static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0}; | |
13335 | static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0}; | |
13336 | static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0}; | |
13337 | static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0}; | |
13338 | static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0}; | |
13339 | static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0}; | |
13340 | static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0}; | |
13341 | static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0}; | |
13342 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
13343 | static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0}; | |
13344 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
13345 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
13346 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0}; | |
13347 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; | |
06810ecf | 13348 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; |
92515dfc | 13349 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 13350 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
92515dfc | 13351 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; |
06810ecf | 13352 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
13353 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; |
13354 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
06810ecf | 13355 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
13356 | static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0}; |
13357 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0}; | |
13358 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
13359 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
13360 | static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0}; | |
06810ecf | 13361 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; |
92515dfc RD |
13362 | static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0}; |
13363 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
13364 | static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0}; | |
13365 | static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0}; | |
13366 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
06810ecf RD |
13367 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
13368 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
13369 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; | |
13370 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; | |
13371 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; | |
13372 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
13373 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 13374 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; |
92515dfc RD |
13375 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; |
13376 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
13377 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
13378 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
13379 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
580080c5 | 13380 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
92515dfc | 13381 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 13382 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
92515dfc RD |
13383 | static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0}; |
13384 | static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0}; | |
13385 | static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0}; | |
13386 | static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0}; | |
13387 | static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0}; | |
13388 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
13389 | static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0}; | |
13390 | static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0}; | |
06810ecf RD |
13391 | static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0}; |
13392 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
13393 | static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0}; | |
13394 | static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0}; | |
13395 | static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0}; | |
13396 | static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0}; | |
13397 | static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0}; | |
13398 | static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0}; | |
13399 | static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0}; | |
13400 | static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0}; | |
13401 | static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0}; | |
13402 | static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0}; | |
13403 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
13404 | ||
13405 | static swig_type_info *swig_type_initial[] = { | |
13406 | &_swigt__p_char, | |
13407 | &_swigt__p_form_ops_t, | |
13408 | &_swigt__p_int, | |
13409 | &_swigt__p_long, | |
13410 | &_swigt__p_unsigned_char, | |
13411 | &_swigt__p_unsigned_int, | |
13412 | &_swigt__p_unsigned_long, | |
13413 | &_swigt__p_wxANIHandler, | |
13414 | &_swigt__p_wxAcceleratorTable, | |
13415 | &_swigt__p_wxActivateEvent, | |
13416 | &_swigt__p_wxArrayInt, | |
13417 | &_swigt__p_wxBMPHandler, | |
13418 | &_swigt__p_wxBitmap, | |
13419 | &_swigt__p_wxBoxSizer, | |
06810ecf RD |
13420 | &_swigt__p_wxCURHandler, |
13421 | &_swigt__p_wxCalculateLayoutEvent, | |
13422 | &_swigt__p_wxChar, | |
13423 | &_swigt__p_wxChildFocusEvent, | |
06810ecf RD |
13424 | &_swigt__p_wxClipboardTextEvent, |
13425 | &_swigt__p_wxCloseEvent, | |
13426 | &_swigt__p_wxColour, | |
13427 | &_swigt__p_wxColourData, | |
13428 | &_swigt__p_wxColourDialog, | |
13429 | &_swigt__p_wxCommandEvent, | |
13430 | &_swigt__p_wxContextMenuEvent, | |
13431 | &_swigt__p_wxControl, | |
13432 | &_swigt__p_wxControlWithItems, | |
06810ecf RD |
13433 | &_swigt__p_wxDateEvent, |
13434 | &_swigt__p_wxDialog, | |
13435 | &_swigt__p_wxDirDialog, | |
13436 | &_swigt__p_wxDisplayChangedEvent, | |
13437 | &_swigt__p_wxDropFilesEvent, | |
13438 | &_swigt__p_wxDuplexMode, | |
06810ecf RD |
13439 | &_swigt__p_wxEraseEvent, |
13440 | &_swigt__p_wxEvent, | |
13441 | &_swigt__p_wxEvtHandler, | |
13442 | &_swigt__p_wxFSFile, | |
13443 | &_swigt__p_wxFileDialog, | |
13444 | &_swigt__p_wxFileSystem, | |
13445 | &_swigt__p_wxFindDialogEvent, | |
13446 | &_swigt__p_wxFindReplaceData, | |
13447 | &_swigt__p_wxFindReplaceDialog, | |
13448 | &_swigt__p_wxFlexGridSizer, | |
13449 | &_swigt__p_wxFocusEvent, | |
13450 | &_swigt__p_wxFont, | |
13451 | &_swigt__p_wxFontData, | |
13452 | &_swigt__p_wxFontDialog, | |
13453 | &_swigt__p_wxFrame, | |
13454 | &_swigt__p_wxGBSizerItem, | |
06810ecf RD |
13455 | &_swigt__p_wxGIFHandler, |
13456 | &_swigt__p_wxGridBagSizer, | |
13457 | &_swigt__p_wxGridSizer, | |
13458 | &_swigt__p_wxICOHandler, | |
06810ecf RD |
13459 | &_swigt__p_wxIconizeEvent, |
13460 | &_swigt__p_wxIdleEvent, | |
13461 | &_swigt__p_wxImage, | |
13462 | &_swigt__p_wxImageHandler, | |
06810ecf RD |
13463 | &_swigt__p_wxIndividualLayoutConstraint, |
13464 | &_swigt__p_wxInitDialogEvent, | |
13465 | &_swigt__p_wxJPEGHandler, | |
13466 | &_swigt__p_wxKeyEvent, | |
13467 | &_swigt__p_wxLayoutAlgorithm, | |
13468 | &_swigt__p_wxLayoutConstraints, | |
13469 | &_swigt__p_wxMDIChildFrame, | |
13470 | &_swigt__p_wxMDIClientWindow, | |
13471 | &_swigt__p_wxMDIParentFrame, | |
06810ecf | 13472 | &_swigt__p_wxMaximizeEvent, |
06810ecf RD |
13473 | &_swigt__p_wxMenu, |
13474 | &_swigt__p_wxMenuBar, | |
13475 | &_swigt__p_wxMenuEvent, | |
13476 | &_swigt__p_wxMenuItem, | |
13477 | &_swigt__p_wxMessageDialog, | |
06810ecf | 13478 | &_swigt__p_wxMiniFrame, |
06810ecf | 13479 | &_swigt__p_wxMouseCaptureChangedEvent, |
34e0a3bb | 13480 | &_swigt__p_wxMouseCaptureLostEvent, |
06810ecf RD |
13481 | &_swigt__p_wxMouseEvent, |
13482 | &_swigt__p_wxMoveEvent, | |
13483 | &_swigt__p_wxMultiChoiceDialog, | |
13484 | &_swigt__p_wxNavigationKeyEvent, | |
13485 | &_swigt__p_wxNcPaintEvent, | |
13486 | &_swigt__p_wxNotifyEvent, | |
27e45892 | 13487 | &_swigt__p_wxNumberEntryDialog, |
06810ecf RD |
13488 | &_swigt__p_wxObject, |
13489 | &_swigt__p_wxPCXHandler, | |
13490 | &_swigt__p_wxPNGHandler, | |
13491 | &_swigt__p_wxPNMHandler, | |
13492 | &_swigt__p_wxPageSetupDialog, | |
13493 | &_swigt__p_wxPageSetupDialogData, | |
06810ecf | 13494 | &_swigt__p_wxPaintEvent, |
06810ecf RD |
13495 | &_swigt__p_wxPaletteChangedEvent, |
13496 | &_swigt__p_wxPanel, | |
13497 | &_swigt__p_wxPaperSize, | |
13498 | &_swigt__p_wxPasswordEntryDialog, | |
06810ecf | 13499 | &_swigt__p_wxPopupWindow, |
06810ecf RD |
13500 | &_swigt__p_wxPreviewCanvas, |
13501 | &_swigt__p_wxPreviewControlBar, | |
13502 | &_swigt__p_wxPreviewFrame, | |
13503 | &_swigt__p_wxPrintData, | |
13504 | &_swigt__p_wxPrintDialog, | |
13505 | &_swigt__p_wxPrintDialogData, | |
13506 | &_swigt__p_wxPrintPreview, | |
13507 | &_swigt__p_wxPrinter, | |
06810ecf RD |
13508 | &_swigt__p_wxProgressDialog, |
13509 | &_swigt__p_wxPyApp, | |
13510 | &_swigt__p_wxPyCommandEvent, | |
13511 | &_swigt__p_wxPyEvent, | |
13512 | &_swigt__p_wxPyHtmlListBox, | |
13513 | &_swigt__p_wxPyImageHandler, | |
13514 | &_swigt__p_wxPyPanel, | |
13515 | &_swigt__p_wxPyPopupTransientWindow, | |
13516 | &_swigt__p_wxPyPreviewControlBar, | |
13517 | &_swigt__p_wxPyPreviewFrame, | |
13518 | &_swigt__p_wxPyPrintPreview, | |
13519 | &_swigt__p_wxPyPrintout, | |
13520 | &_swigt__p_wxPyScrolledWindow, | |
13521 | &_swigt__p_wxPySizer, | |
13522 | &_swigt__p_wxPyTaskBarIcon, | |
13523 | &_swigt__p_wxPyVListBox, | |
13524 | &_swigt__p_wxPyVScrolledWindow, | |
13525 | &_swigt__p_wxPyValidator, | |
13526 | &_swigt__p_wxPyWindow, | |
13527 | &_swigt__p_wxQueryLayoutInfoEvent, | |
13528 | &_swigt__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
13529 | &_swigt__p_wxRichTextAttr, |
13530 | &_swigt__p_wxRichTextBuffer, | |
13531 | &_swigt__p_wxRichTextCtrl, | |
13532 | &_swigt__p_wxRichTextEvent, | |
13533 | &_swigt__p_wxRichTextImageBlock, | |
13534 | &_swigt__p_wxRichTextRange, | |
13535 | &_swigt__p_wxRichTextStyleSheet, | |
13536 | &_swigt__p_wxSashEvent, | |
13537 | &_swigt__p_wxSashLayoutWindow, | |
13538 | &_swigt__p_wxSashWindow, | |
06810ecf RD |
13539 | &_swigt__p_wxScrollEvent, |
13540 | &_swigt__p_wxScrollWinEvent, | |
13541 | &_swigt__p_wxScrolledWindow, | |
13542 | &_swigt__p_wxSetCursorEvent, | |
13543 | &_swigt__p_wxShowEvent, | |
13544 | &_swigt__p_wxSingleChoiceDialog, | |
13545 | &_swigt__p_wxSizeEvent, | |
13546 | &_swigt__p_wxSizer, | |
13547 | &_swigt__p_wxSizerItem, | |
13548 | &_swigt__p_wxSplashScreen, | |
13549 | &_swigt__p_wxSplashScreenWindow, | |
13550 | &_swigt__p_wxSplitterEvent, | |
13551 | &_swigt__p_wxSplitterWindow, | |
13552 | &_swigt__p_wxStaticBoxSizer, | |
13553 | &_swigt__p_wxStatusBar, | |
13554 | &_swigt__p_wxStdDialogButtonSizer, | |
13555 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 13556 | &_swigt__p_wxTGAHandler, |
06810ecf RD |
13557 | &_swigt__p_wxTIFFHandler, |
13558 | &_swigt__p_wxTaskBarIconEvent, | |
13559 | &_swigt__p_wxTextCoord, | |
13560 | &_swigt__p_wxTextCtrlHitTestResult, | |
13561 | &_swigt__p_wxTextEntryDialog, | |
13562 | &_swigt__p_wxTipWindow, | |
13563 | &_swigt__p_wxTopLevelWindow, | |
13564 | &_swigt__p_wxUpdateUIEvent, | |
13565 | &_swigt__p_wxValidator, | |
13566 | &_swigt__p_wxWindow, | |
13567 | &_swigt__p_wxWindowCreateEvent, | |
06810ecf RD |
13568 | &_swigt__p_wxWindowDestroyEvent, |
13569 | &_swigt__p_wxXPMHandler, | |
13570 | }; | |
13571 | ||
13572 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13573 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
13574 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13575 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13576 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
13577 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
13578 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
13579 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
13580 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
13581 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; | |
13582 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
13583 | static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13584 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13585 | static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13586 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13587 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13588 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13589 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13590 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13591 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13592 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13593 | static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13594 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13595 | 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}}; | |
13596 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
13597 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13598 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13599 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13600 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13601 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13602 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13603 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 13604 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13605 | static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}}; |
13606 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13607 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13608 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13609 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13610 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13611 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13612 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13613 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13614 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13615 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13616 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13617 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13618 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13619 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13620 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13621 | static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13622 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13623 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13624 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13625 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13626 | static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 13627 | 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}}; |
06810ecf RD |
13628 | static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}}; |
13629 | static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13630 | static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}}; | |
13631 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13632 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
13633 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 RD |
13634 | static swig_cast_info _swigc__p_wxNumberEntryDialog[] = {{&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13635 | static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf RD |
13636 | static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13637 | static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13638 | static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13639 | static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; |
13640 | static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13641 | static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13642 | static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13643 | static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13644 | static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}}; |
13645 | static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13646 | static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13647 | static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13648 | static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13649 | static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13650 | static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13651 | static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13652 | static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf RD |
13653 | static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}}; |
13654 | static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13655 | static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13656 | static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13657 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
13658 | static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13659 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
13660 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
13661 | static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}}; | |
13662 | static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}}; | |
13663 | static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13664 | static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
13665 | static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13666 | static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}}; | |
13667 | static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
13668 | static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
13669 | static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13670 | static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13671 | static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13672 | static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13673 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
13674 | static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13675 | 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_wxFileDialog, _p_wxFileDialogTo_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_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_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_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_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_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_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}}; |
06810ecf RD |
13676 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
13677 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
13678 | 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}}; | |
06810ecf | 13679 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc | 13680 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 13681 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc | 13682 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; |
06810ecf | 13683 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13684 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; |
13685 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13686 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13687 | static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}}; |
13688 | static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
13689 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13690 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13691 | static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf | 13692 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13693 | static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}}; |
13694 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
13695 | static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}}; | |
13696 | static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}}; | |
13697 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
06810ecf RD |
13698 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13699 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13700 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13701 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13702 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13703 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13704 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13705 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13706 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; |
13707 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13708 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13709 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
13710 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 13711 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc | 13712 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 13713 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
92515dfc RD |
13714 | static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}}; |
13715 | static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13716 | static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}}; | |
13717 | static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13718 | static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}}; | |
13719 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
13720 | static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
13721 | static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 13722 | 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_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}}; |
06810ecf RD |
13723 | 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_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}}; |
13724 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
13725 | static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
13726 | static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}}; | |
13727 | static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
13728 | static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
13729 | static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}}; | |
13730 | static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}}; | |
13731 | static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}}; | |
13732 | 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}}; | |
13733 | static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}}; | |
13734 | static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 13735 | 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_wxTipWindow, _p_wxTipWindowTo_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_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_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}}; |
06810ecf RD |
13736 | |
13737 | static swig_cast_info *swig_cast_initial[] = { | |
13738 | _swigc__p_char, | |
13739 | _swigc__p_form_ops_t, | |
13740 | _swigc__p_int, | |
13741 | _swigc__p_long, | |
13742 | _swigc__p_unsigned_char, | |
13743 | _swigc__p_unsigned_int, | |
13744 | _swigc__p_unsigned_long, | |
13745 | _swigc__p_wxANIHandler, | |
13746 | _swigc__p_wxAcceleratorTable, | |
13747 | _swigc__p_wxActivateEvent, | |
13748 | _swigc__p_wxArrayInt, | |
13749 | _swigc__p_wxBMPHandler, | |
13750 | _swigc__p_wxBitmap, | |
13751 | _swigc__p_wxBoxSizer, | |
06810ecf RD |
13752 | _swigc__p_wxCURHandler, |
13753 | _swigc__p_wxCalculateLayoutEvent, | |
13754 | _swigc__p_wxChar, | |
13755 | _swigc__p_wxChildFocusEvent, | |
06810ecf RD |
13756 | _swigc__p_wxClipboardTextEvent, |
13757 | _swigc__p_wxCloseEvent, | |
13758 | _swigc__p_wxColour, | |
13759 | _swigc__p_wxColourData, | |
13760 | _swigc__p_wxColourDialog, | |
13761 | _swigc__p_wxCommandEvent, | |
13762 | _swigc__p_wxContextMenuEvent, | |
13763 | _swigc__p_wxControl, | |
13764 | _swigc__p_wxControlWithItems, | |
06810ecf RD |
13765 | _swigc__p_wxDateEvent, |
13766 | _swigc__p_wxDialog, | |
13767 | _swigc__p_wxDirDialog, | |
13768 | _swigc__p_wxDisplayChangedEvent, | |
13769 | _swigc__p_wxDropFilesEvent, | |
13770 | _swigc__p_wxDuplexMode, | |
06810ecf RD |
13771 | _swigc__p_wxEraseEvent, |
13772 | _swigc__p_wxEvent, | |
13773 | _swigc__p_wxEvtHandler, | |
13774 | _swigc__p_wxFSFile, | |
13775 | _swigc__p_wxFileDialog, | |
13776 | _swigc__p_wxFileSystem, | |
13777 | _swigc__p_wxFindDialogEvent, | |
13778 | _swigc__p_wxFindReplaceData, | |
13779 | _swigc__p_wxFindReplaceDialog, | |
13780 | _swigc__p_wxFlexGridSizer, | |
13781 | _swigc__p_wxFocusEvent, | |
13782 | _swigc__p_wxFont, | |
13783 | _swigc__p_wxFontData, | |
13784 | _swigc__p_wxFontDialog, | |
13785 | _swigc__p_wxFrame, | |
13786 | _swigc__p_wxGBSizerItem, | |
06810ecf RD |
13787 | _swigc__p_wxGIFHandler, |
13788 | _swigc__p_wxGridBagSizer, | |
13789 | _swigc__p_wxGridSizer, | |
13790 | _swigc__p_wxICOHandler, | |
06810ecf RD |
13791 | _swigc__p_wxIconizeEvent, |
13792 | _swigc__p_wxIdleEvent, | |
13793 | _swigc__p_wxImage, | |
13794 | _swigc__p_wxImageHandler, | |
06810ecf RD |
13795 | _swigc__p_wxIndividualLayoutConstraint, |
13796 | _swigc__p_wxInitDialogEvent, | |
13797 | _swigc__p_wxJPEGHandler, | |
13798 | _swigc__p_wxKeyEvent, | |
13799 | _swigc__p_wxLayoutAlgorithm, | |
13800 | _swigc__p_wxLayoutConstraints, | |
13801 | _swigc__p_wxMDIChildFrame, | |
13802 | _swigc__p_wxMDIClientWindow, | |
13803 | _swigc__p_wxMDIParentFrame, | |
06810ecf | 13804 | _swigc__p_wxMaximizeEvent, |
06810ecf RD |
13805 | _swigc__p_wxMenu, |
13806 | _swigc__p_wxMenuBar, | |
13807 | _swigc__p_wxMenuEvent, | |
13808 | _swigc__p_wxMenuItem, | |
13809 | _swigc__p_wxMessageDialog, | |
06810ecf | 13810 | _swigc__p_wxMiniFrame, |
06810ecf | 13811 | _swigc__p_wxMouseCaptureChangedEvent, |
34e0a3bb | 13812 | _swigc__p_wxMouseCaptureLostEvent, |
06810ecf RD |
13813 | _swigc__p_wxMouseEvent, |
13814 | _swigc__p_wxMoveEvent, | |
13815 | _swigc__p_wxMultiChoiceDialog, | |
13816 | _swigc__p_wxNavigationKeyEvent, | |
13817 | _swigc__p_wxNcPaintEvent, | |
13818 | _swigc__p_wxNotifyEvent, | |
27e45892 | 13819 | _swigc__p_wxNumberEntryDialog, |
06810ecf RD |
13820 | _swigc__p_wxObject, |
13821 | _swigc__p_wxPCXHandler, | |
13822 | _swigc__p_wxPNGHandler, | |
13823 | _swigc__p_wxPNMHandler, | |
13824 | _swigc__p_wxPageSetupDialog, | |
13825 | _swigc__p_wxPageSetupDialogData, | |
06810ecf | 13826 | _swigc__p_wxPaintEvent, |
06810ecf RD |
13827 | _swigc__p_wxPaletteChangedEvent, |
13828 | _swigc__p_wxPanel, | |
13829 | _swigc__p_wxPaperSize, | |
13830 | _swigc__p_wxPasswordEntryDialog, | |
06810ecf | 13831 | _swigc__p_wxPopupWindow, |
06810ecf RD |
13832 | _swigc__p_wxPreviewCanvas, |
13833 | _swigc__p_wxPreviewControlBar, | |
13834 | _swigc__p_wxPreviewFrame, | |
13835 | _swigc__p_wxPrintData, | |
13836 | _swigc__p_wxPrintDialog, | |
13837 | _swigc__p_wxPrintDialogData, | |
13838 | _swigc__p_wxPrintPreview, | |
13839 | _swigc__p_wxPrinter, | |
06810ecf RD |
13840 | _swigc__p_wxProgressDialog, |
13841 | _swigc__p_wxPyApp, | |
13842 | _swigc__p_wxPyCommandEvent, | |
13843 | _swigc__p_wxPyEvent, | |
13844 | _swigc__p_wxPyHtmlListBox, | |
13845 | _swigc__p_wxPyImageHandler, | |
13846 | _swigc__p_wxPyPanel, | |
13847 | _swigc__p_wxPyPopupTransientWindow, | |
13848 | _swigc__p_wxPyPreviewControlBar, | |
13849 | _swigc__p_wxPyPreviewFrame, | |
13850 | _swigc__p_wxPyPrintPreview, | |
13851 | _swigc__p_wxPyPrintout, | |
13852 | _swigc__p_wxPyScrolledWindow, | |
13853 | _swigc__p_wxPySizer, | |
13854 | _swigc__p_wxPyTaskBarIcon, | |
13855 | _swigc__p_wxPyVListBox, | |
13856 | _swigc__p_wxPyVScrolledWindow, | |
13857 | _swigc__p_wxPyValidator, | |
13858 | _swigc__p_wxPyWindow, | |
13859 | _swigc__p_wxQueryLayoutInfoEvent, | |
13860 | _swigc__p_wxQueryNewPaletteEvent, | |
06810ecf RD |
13861 | _swigc__p_wxRichTextAttr, |
13862 | _swigc__p_wxRichTextBuffer, | |
13863 | _swigc__p_wxRichTextCtrl, | |
13864 | _swigc__p_wxRichTextEvent, | |
13865 | _swigc__p_wxRichTextImageBlock, | |
13866 | _swigc__p_wxRichTextRange, | |
13867 | _swigc__p_wxRichTextStyleSheet, | |
13868 | _swigc__p_wxSashEvent, | |
13869 | _swigc__p_wxSashLayoutWindow, | |
13870 | _swigc__p_wxSashWindow, | |
06810ecf RD |
13871 | _swigc__p_wxScrollEvent, |
13872 | _swigc__p_wxScrollWinEvent, | |
13873 | _swigc__p_wxScrolledWindow, | |
13874 | _swigc__p_wxSetCursorEvent, | |
13875 | _swigc__p_wxShowEvent, | |
13876 | _swigc__p_wxSingleChoiceDialog, | |
13877 | _swigc__p_wxSizeEvent, | |
13878 | _swigc__p_wxSizer, | |
13879 | _swigc__p_wxSizerItem, | |
13880 | _swigc__p_wxSplashScreen, | |
13881 | _swigc__p_wxSplashScreenWindow, | |
13882 | _swigc__p_wxSplitterEvent, | |
13883 | _swigc__p_wxSplitterWindow, | |
13884 | _swigc__p_wxStaticBoxSizer, | |
13885 | _swigc__p_wxStatusBar, | |
13886 | _swigc__p_wxStdDialogButtonSizer, | |
13887 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 13888 | _swigc__p_wxTGAHandler, |
06810ecf RD |
13889 | _swigc__p_wxTIFFHandler, |
13890 | _swigc__p_wxTaskBarIconEvent, | |
13891 | _swigc__p_wxTextCoord, | |
13892 | _swigc__p_wxTextCtrlHitTestResult, | |
13893 | _swigc__p_wxTextEntryDialog, | |
13894 | _swigc__p_wxTipWindow, | |
13895 | _swigc__p_wxTopLevelWindow, | |
13896 | _swigc__p_wxUpdateUIEvent, | |
13897 | _swigc__p_wxValidator, | |
13898 | _swigc__p_wxWindow, | |
13899 | _swigc__p_wxWindowCreateEvent, | |
06810ecf RD |
13900 | _swigc__p_wxWindowDestroyEvent, |
13901 | _swigc__p_wxXPMHandler, | |
13902 | }; | |
13903 | ||
13904 | ||
13905 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
13906 | ||
13907 | static swig_const_info swig_const_table[] = { | |
13908 | {0, 0, 0, 0.0, 0, 0}}; | |
13909 | ||
13910 | #ifdef __cplusplus | |
13911 | } | |
13912 | #endif | |
13913 | /* ----------------------------------------------------------------------------- | |
13914 | * Type initialization: | |
13915 | * This problem is tough by the requirement that no dynamic | |
13916 | * memory is used. Also, since swig_type_info structures store pointers to | |
13917 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
13918 | * to swig_type_info structures, we need some lookup code at initialization. | |
13919 | * The idea is that swig generates all the structures that are needed. | |
13920 | * The runtime then collects these partially filled structures. | |
13921 | * The SWIG_InitializeModule function takes these initial arrays out of | |
13922 | * swig_module, and does all the lookup, filling in the swig_module.types | |
13923 | * array with the correct data and linking the correct swig_cast_info | |
13924 | * structures together. | |
13925 | * | |
13926 | * The generated swig_type_info structures are assigned staticly to an initial | |
13927 | * array. We just loop though that array, and handle each type individually. | |
13928 | * First we lookup if this type has been already loaded, and if so, use the | |
13929 | * loaded structure instead of the generated one. Then we have to fill in the | |
13930 | * cast linked list. The cast data is initially stored in something like a | |
13931 | * two-dimensional array. Each row corresponds to a type (there are the same | |
13932 | * number of rows as there are in the swig_type_initial array). Each entry in | |
13933 | * a column is one of the swig_cast_info structures for that type. | |
13934 | * The cast_initial array is actually an array of arrays, because each row has | |
13935 | * a variable number of columns. So to actually build the cast linked list, | |
13936 | * we find the array of casts associated with the type, and loop through it | |
13937 | * adding the casts to the list. The one last trick we need to do is making | |
13938 | * sure the type pointer in the swig_cast_info struct is correct. | |
13939 | * | |
13940 | * First off, we lookup the cast->type name to see if it is already loaded. | |
13941 | * There are three cases to handle: | |
13942 | * 1) If the cast->type has already been loaded AND the type we are adding | |
13943 | * casting info to has not been loaded (it is in this module), THEN we | |
13944 | * replace the cast->type pointer with the type pointer that has already | |
13945 | * been loaded. | |
13946 | * 2) If BOTH types (the one we are adding casting info to, and the | |
13947 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
13948 | * the previous module so we just ignore it. | |
13949 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
13950 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
13951 | * be correct. | |
13952 | * ----------------------------------------------------------------------------- */ | |
13953 | ||
13954 | #ifdef __cplusplus | |
13955 | extern "C" { | |
13956 | #if 0 | |
13957 | } /* c-mode */ | |
13958 | #endif | |
13959 | #endif | |
13960 | ||
13961 | #if 0 | |
13962 | #define SWIGRUNTIME_DEBUG | |
13963 | #endif | |
13964 | ||
13965 | SWIGRUNTIME void | |
13966 | SWIG_InitializeModule(void *clientdata) { | |
13967 | size_t i; | |
13968 | swig_module_info *module_head; | |
13969 | static int init_run = 0; | |
13970 | ||
13971 | clientdata = clientdata; | |
13972 | ||
13973 | if (init_run) return; | |
13974 | init_run = 1; | |
13975 | ||
13976 | /* Initialize the swig_module */ | |
13977 | swig_module.type_initial = swig_type_initial; | |
13978 | swig_module.cast_initial = swig_cast_initial; | |
13979 | ||
13980 | /* Try and load any already created modules */ | |
13981 | module_head = SWIG_GetModule(clientdata); | |
13982 | if (module_head) { | |
13983 | swig_module.next = module_head->next; | |
13984 | module_head->next = &swig_module; | |
13985 | } else { | |
13986 | /* This is the first module loaded */ | |
13987 | swig_module.next = &swig_module; | |
13988 | SWIG_SetModule(clientdata, &swig_module); | |
13989 | } | |
13990 | ||
13991 | /* Now work on filling in swig_module.types */ | |
13992 | #ifdef SWIGRUNTIME_DEBUG | |
13993 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
13994 | #endif | |
13995 | for (i = 0; i < swig_module.size; ++i) { | |
13996 | swig_type_info *type = 0; | |
13997 | swig_type_info *ret; | |
13998 | swig_cast_info *cast; | |
13999 | ||
14000 | #ifdef SWIGRUNTIME_DEBUG | |
14001 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14002 | #endif | |
14003 | ||
14004 | /* if there is another module already loaded */ | |
14005 | if (swig_module.next != &swig_module) { | |
14006 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
14007 | } | |
14008 | if (type) { | |
14009 | /* Overwrite clientdata field */ | |
14010 | #ifdef SWIGRUNTIME_DEBUG | |
14011 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
14012 | #endif | |
14013 | if (swig_module.type_initial[i]->clientdata) { | |
14014 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
14015 | #ifdef SWIGRUNTIME_DEBUG | |
14016 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
14017 | #endif | |
14018 | } | |
14019 | } else { | |
14020 | type = swig_module.type_initial[i]; | |
14021 | } | |
14022 | ||
14023 | /* Insert casting types */ | |
14024 | cast = swig_module.cast_initial[i]; | |
14025 | while (cast->type) { | |
14026 | /* Don't need to add information already in the list */ | |
14027 | ret = 0; | |
14028 | #ifdef SWIGRUNTIME_DEBUG | |
14029 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
14030 | #endif | |
14031 | if (swig_module.next != &swig_module) { | |
14032 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
14033 | #ifdef SWIGRUNTIME_DEBUG | |
14034 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
14035 | #endif | |
14036 | } | |
14037 | if (ret) { | |
14038 | if (type == swig_module.type_initial[i]) { | |
14039 | #ifdef SWIGRUNTIME_DEBUG | |
14040 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
14041 | #endif | |
14042 | cast->type = ret; | |
14043 | ret = 0; | |
14044 | } else { | |
14045 | /* Check for casting already in the list */ | |
14046 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
14047 | #ifdef SWIGRUNTIME_DEBUG | |
14048 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
14049 | #endif | |
14050 | if (!ocast) ret = 0; | |
14051 | } | |
14052 | } | |
14053 | ||
14054 | if (!ret) { | |
14055 | #ifdef SWIGRUNTIME_DEBUG | |
14056 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
14057 | #endif | |
14058 | if (type->cast) { | |
14059 | type->cast->prev = cast; | |
14060 | cast->next = type->cast; | |
14061 | } | |
14062 | type->cast = cast; | |
14063 | } | |
14064 | cast++; | |
14065 | } | |
14066 | /* Set entry in modules->types array equal to the type */ | |
14067 | swig_module.types[i] = type; | |
14068 | } | |
14069 | swig_module.types[i] = 0; | |
14070 | ||
14071 | #ifdef SWIGRUNTIME_DEBUG | |
14072 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14073 | for (i = 0; i < swig_module.size; ++i) { | |
14074 | int j = 0; | |
14075 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
14076 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
14077 | while (cast->type) { | |
14078 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
14079 | cast++; | |
14080 | ++j; | |
14081 | } | |
14082 | printf("---- Total casts: %d\n",j); | |
14083 | } | |
14084 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
14085 | #endif | |
14086 | } | |
14087 | ||
14088 | /* This function will propagate the clientdata field of type to | |
14089 | * any new swig_type_info structures that have been added into the list | |
14090 | * of equivalent types. It is like calling | |
14091 | * SWIG_TypeClientData(type, clientdata) a second time. | |
14092 | */ | |
14093 | SWIGRUNTIME void | |
14094 | SWIG_PropagateClientData(void) { | |
14095 | size_t i; | |
14096 | swig_cast_info *equiv; | |
14097 | static int init_run = 0; | |
14098 | ||
14099 | if (init_run) return; | |
14100 | init_run = 1; | |
14101 | ||
14102 | for (i = 0; i < swig_module.size; i++) { | |
14103 | if (swig_module.types[i]->clientdata) { | |
14104 | equiv = swig_module.types[i]->cast; | |
14105 | while (equiv) { | |
14106 | if (!equiv->converter) { | |
14107 | if (equiv->type && !equiv->type->clientdata) | |
14108 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
14109 | } | |
14110 | equiv = equiv->next; | |
14111 | } | |
14112 | } | |
14113 | } | |
14114 | } | |
14115 | ||
14116 | #ifdef __cplusplus | |
14117 | #if 0 | |
14118 | { | |
14119 | /* c-mode */ | |
14120 | #endif | |
14121 | } | |
14122 | #endif | |
14123 | ||
14124 | ||
14125 | ||
14126 | #ifdef __cplusplus | |
14127 | extern "C" { | |
14128 | #endif | |
14129 | ||
14130 | /* Python-specific SWIG API */ | |
14131 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
14132 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
14133 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
14134 | ||
14135 | /* ----------------------------------------------------------------------------- | |
14136 | * global variable support code. | |
14137 | * ----------------------------------------------------------------------------- */ | |
14138 | ||
14139 | typedef struct swig_globalvar { | |
14140 | char *name; /* Name of global variable */ | |
14141 | PyObject *(*get_attr)(void); /* Return the current value */ | |
14142 | int (*set_attr)(PyObject *); /* Set the value */ | |
14143 | struct swig_globalvar *next; | |
14144 | } swig_globalvar; | |
14145 | ||
14146 | typedef struct swig_varlinkobject { | |
14147 | PyObject_HEAD | |
14148 | swig_globalvar *vars; | |
14149 | } swig_varlinkobject; | |
14150 | ||
14151 | SWIGINTERN PyObject * | |
14152 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
14153 | return PyString_FromString("<Swig global variables>"); | |
14154 | } | |
14155 | ||
14156 | SWIGINTERN PyObject * | |
14157 | swig_varlink_str(swig_varlinkobject *v) { | |
14158 | PyObject *str = PyString_FromString("("); | |
14159 | swig_globalvar *var; | |
14160 | for (var = v->vars; var; var=var->next) { | |
14161 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
14162 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
14163 | } | |
14164 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
14165 | return str; | |
14166 | } | |
14167 | ||
14168 | SWIGINTERN int | |
14169 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
14170 | PyObject *str = swig_varlink_str(v); | |
14171 | fprintf(fp,"Swig global variables "); | |
14172 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
14173 | Py_DECREF(str); | |
14174 | return 0; | |
14175 | } | |
14176 | ||
14177 | SWIGINTERN void | |
14178 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
14179 | swig_globalvar *var = v->vars; | |
14180 | while (var) { | |
14181 | swig_globalvar *n = var->next; | |
14182 | free(var->name); | |
14183 | free(var); | |
14184 | var = n; | |
14185 | } | |
14186 | } | |
14187 | ||
14188 | SWIGINTERN PyObject * | |
14189 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
14190 | PyObject *res = NULL; | |
14191 | swig_globalvar *var = v->vars; | |
14192 | while (var) { | |
14193 | if (strcmp(var->name,n) == 0) { | |
14194 | res = (*var->get_attr)(); | |
14195 | break; | |
14196 | } | |
14197 | var = var->next; | |
14198 | } | |
14199 | if (res == NULL && !PyErr_Occurred()) { | |
14200 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
14201 | } | |
14202 | return res; | |
14203 | } | |
14204 | ||
14205 | SWIGINTERN int | |
14206 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
14207 | int res = 1; | |
14208 | swig_globalvar *var = v->vars; | |
14209 | while (var) { | |
14210 | if (strcmp(var->name,n) == 0) { | |
14211 | res = (*var->set_attr)(p); | |
14212 | break; | |
14213 | } | |
14214 | var = var->next; | |
14215 | } | |
14216 | if (res == 1 && !PyErr_Occurred()) { | |
14217 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
14218 | } | |
14219 | return res; | |
14220 | } | |
14221 | ||
14222 | SWIGINTERN PyTypeObject* | |
14223 | swig_varlink_type(void) { | |
14224 | static char varlink__doc__[] = "Swig var link object"; | |
14225 | static PyTypeObject varlink_type; | |
14226 | static int type_init = 0; | |
14227 | if (!type_init) { | |
14228 | const PyTypeObject tmp | |
14229 | = { | |
14230 | PyObject_HEAD_INIT(NULL) | |
14231 | 0, /* Number of items in variable part (ob_size) */ | |
14232 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
14233 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
14234 | 0, /* Itemsize (tp_itemsize) */ | |
14235 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
14236 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
14237 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
14238 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
14239 | 0, /* tp_compare */ | |
14240 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
14241 | 0, /* tp_as_number */ | |
14242 | 0, /* tp_as_sequence */ | |
14243 | 0, /* tp_as_mapping */ | |
14244 | 0, /* tp_hash */ | |
14245 | 0, /* tp_call */ | |
14246 | (reprfunc)swig_varlink_str, /* tp_str */ | |
14247 | 0, /* tp_getattro */ | |
14248 | 0, /* tp_setattro */ | |
14249 | 0, /* tp_as_buffer */ | |
14250 | 0, /* tp_flags */ | |
14251 | varlink__doc__, /* tp_doc */ | |
14252 | 0, /* tp_traverse */ | |
14253 | 0, /* tp_clear */ | |
14254 | 0, /* tp_richcompare */ | |
14255 | 0, /* tp_weaklistoffset */ | |
14256 | #if PY_VERSION_HEX >= 0x02020000 | |
14257 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
14258 | #endif | |
14259 | #if PY_VERSION_HEX >= 0x02030000 | |
14260 | 0, /* tp_del */ | |
14261 | #endif | |
14262 | #ifdef COUNT_ALLOCS | |
14263 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
14264 | #endif | |
14265 | }; | |
14266 | varlink_type = tmp; | |
14267 | varlink_type.ob_type = &PyType_Type; | |
14268 | type_init = 1; | |
14269 | } | |
14270 | return &varlink_type; | |
14271 | } | |
14272 | ||
14273 | /* Create a variable linking object for use later */ | |
14274 | SWIGINTERN PyObject * | |
14275 | SWIG_Python_newvarlink(void) { | |
14276 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
14277 | if (result) { | |
14278 | result->vars = 0; | |
14279 | } | |
14280 | return ((PyObject*) result); | |
14281 | } | |
14282 | ||
14283 | SWIGINTERN void | |
14284 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
14285 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
14286 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
14287 | if (gv) { | |
14288 | size_t size = strlen(name)+1; | |
14289 | gv->name = (char *)malloc(size); | |
14290 | if (gv->name) { | |
14291 | strncpy(gv->name,name,size); | |
14292 | gv->get_attr = get_attr; | |
14293 | gv->set_attr = set_attr; | |
14294 | gv->next = v->vars; | |
14295 | } | |
14296 | } | |
14297 | v->vars = gv; | |
14298 | } | |
14299 | ||
14300 | SWIGINTERN PyObject * | |
14301 | SWIG_globals() { | |
14302 | static PyObject *_SWIG_globals = 0; | |
14303 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
14304 | return _SWIG_globals; | |
14305 | } | |
14306 | ||
14307 | /* ----------------------------------------------------------------------------- | |
14308 | * constants/methods manipulation | |
14309 | * ----------------------------------------------------------------------------- */ | |
14310 | ||
14311 | /* Install Constants */ | |
14312 | SWIGINTERN void | |
14313 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
14314 | PyObject *obj = 0; | |
14315 | size_t i; | |
14316 | for (i = 0; constants[i].type; ++i) { | |
14317 | switch(constants[i].type) { | |
14318 | case SWIG_PY_POINTER: | |
14319 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
14320 | break; | |
14321 | case SWIG_PY_BINARY: | |
14322 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
14323 | break; | |
14324 | default: | |
14325 | obj = 0; | |
14326 | break; | |
14327 | } | |
14328 | if (obj) { | |
14329 | PyDict_SetItemString(d, constants[i].name, obj); | |
14330 | Py_DECREF(obj); | |
14331 | } | |
14332 | } | |
14333 | } | |
14334 | ||
14335 | /* -----------------------------------------------------------------------------*/ | |
14336 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14337 | /* -----------------------------------------------------------------------------*/ | |
14338 | ||
14339 | SWIGINTERN void | |
14340 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
14341 | swig_const_info *const_table, | |
14342 | swig_type_info **types, | |
14343 | swig_type_info **types_initial) { | |
14344 | size_t i; | |
14345 | for (i = 0; methods[i].ml_name; ++i) { | |
3d6c9062 | 14346 | const char *c = methods[i].ml_doc; |
06810ecf RD |
14347 | if (c && (c = strstr(c, "swig_ptr: "))) { |
14348 | int j; | |
14349 | swig_const_info *ci = 0; | |
3d6c9062 | 14350 | const char *name = c + 10; |
06810ecf RD |
14351 | for (j = 0; const_table[j].type; ++j) { |
14352 | if (strncmp(const_table[j].name, name, | |
14353 | strlen(const_table[j].name)) == 0) { | |
14354 | ci = &(const_table[j]); | |
14355 | break; | |
14356 | } | |
14357 | } | |
14358 | if (ci) { | |
14359 | size_t shift = (ci->ptype) - types; | |
14360 | swig_type_info *ty = types_initial[shift]; | |
14361 | size_t ldoc = (c - methods[i].ml_doc); | |
14362 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
14363 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
14364 | if (ndoc) { | |
14365 | char *buff = ndoc; | |
14366 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
14367 | if (ptr) { | |
14368 | strncpy(buff, methods[i].ml_doc, ldoc); | |
14369 | buff += ldoc; | |
14370 | strncpy(buff, "swig_ptr: ", 10); | |
14371 | buff += 10; | |
14372 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
14373 | methods[i].ml_doc = ndoc; | |
14374 | } | |
14375 | } | |
14376 | } | |
14377 | } | |
14378 | } | |
14379 | } | |
14380 | ||
14381 | #ifdef __cplusplus | |
14382 | } | |
14383 | #endif | |
14384 | ||
14385 | /* -----------------------------------------------------------------------------* | |
14386 | * Partial Init method | |
14387 | * -----------------------------------------------------------------------------*/ | |
14388 | ||
14389 | #ifdef __cplusplus | |
14390 | extern "C" | |
14391 | #endif | |
14392 | SWIGEXPORT void SWIG_init(void) { | |
14393 | PyObject *m, *d; | |
14394 | ||
14395 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
14396 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
14397 | ||
14398 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
14399 | d = PyModule_GetDict(m); | |
14400 | ||
14401 | SWIG_InitializeModule(0); | |
14402 | SWIG_InstallConstants(d,swig_const_table); | |
14403 | ||
14404 | ||
14405 | SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0))); | |
14406 | SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY))); | |
14407 | SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE))); | |
14408 | SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN))); | |
14409 | SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN))); | |
14410 | SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN))); | |
14411 | SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED))); | |
14412 | SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED))); | |
14413 | SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED))); | |
14414 | SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS))); | |
14415 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY))); | |
14416 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT))); | |
14417 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML))); | |
14418 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML))); | |
14419 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF))); | |
14420 | SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF))); | |
14421 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH))); | |
14422 | SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT))); | |
14423 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH))); | |
14424 | SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT))); | |
14425 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE))); | |
14426 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE))); | |
14427 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER))); | |
14428 | SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON))); | |
14429 | SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED))); | |
14430 | SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED))); | |
b39fe951 RD |
14431 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_NONE))); |
14432 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_WITH_UNDO",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_WITH_UNDO))); | |
14433 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_OPTIMIZE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_OPTIMIZE))); | |
14434 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY))); | |
14435 | SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_CHARACTERS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY))); | |
c2829a8f RD |
14436 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE))); |
14437 | SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE))); | |
06810ecf RD |
14438 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR))); |
14439 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
14440 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE))); | |
14441 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE))); | |
14442 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT))); | |
14443 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC))); | |
14444 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE))); | |
14445 | SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT))); | |
14446 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT))); | |
14447 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT))); | |
14448 | SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT))); | |
14449 | SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS))); | |
14450 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER))); | |
14451 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE))); | |
14452 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING))); | |
14453 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME))); | |
14454 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME))); | |
14455 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE))); | |
14456 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER))); | |
06810ecf RD |
14457 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE))); |
14458 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC))); | |
14459 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER))); | |
14460 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER))); | |
14461 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER))); | |
14462 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER))); | |
14463 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL))); | |
14464 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP))); | |
14465 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES))); | |
14466 | SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD))); | |
14467 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL))); | |
14468 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF))); | |
14469 | SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE))); | |
14470 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT))); | |
14471 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT))); | |
14472 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE))); | |
14473 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER))); | |
14474 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT))); | |
14475 | SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
14476 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); | |
14477 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set); | |
14478 | SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set); | |
14479 | SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER))); | |
14480 | SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH))); | |
14481 | SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL))); | |
14482 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED)); | |
14483 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED)); | |
14484 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK)); | |
14485 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK)); | |
14486 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK)); | |
14487 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK)); | |
14488 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN)); | |
70d7cb34 RD |
14489 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGING)); |
14490 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_CHANGED)); | |
14491 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACING)); | |
14492 | PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_STYLESHEET_REPLACED)); | |
06810ecf | 14493 | |
73703a80 | 14494 | wxRichTextModuleInit(); |
06810ecf RD |
14495 | |
14496 | } | |
14497 |