]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/richtext_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / richtext_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_form_ops_t swig_types[1]
2464 #define SWIGTYPE_p_int swig_types[2]
2465 #define SWIGTYPE_p_long swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxArrayInt swig_types[10]
2473 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
2474 #define SWIGTYPE_p_wxBitmap swig_types[12]
2475 #define SWIGTYPE_p_wxBoxSizer swig_types[13]
2476 #define SWIGTYPE_p_wxBrush swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[18]
2481 #define SWIGTYPE_p_wxChar swig_types[19]
2482 #define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
2483 #define SWIGTYPE_p_wxClientDC swig_types[21]
2484 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[22]
2485 #define SWIGTYPE_p_wxCloseEvent swig_types[23]
2486 #define SWIGTYPE_p_wxColour swig_types[24]
2487 #define SWIGTYPE_p_wxColourData swig_types[25]
2488 #define SWIGTYPE_p_wxColourDialog swig_types[26]
2489 #define SWIGTYPE_p_wxCommandEvent swig_types[27]
2490 #define SWIGTYPE_p_wxContextMenuEvent swig_types[28]
2491 #define SWIGTYPE_p_wxControl swig_types[29]
2492 #define SWIGTYPE_p_wxControlWithItems swig_types[30]
2493 #define SWIGTYPE_p_wxCursor swig_types[31]
2494 #define SWIGTYPE_p_wxDC swig_types[32]
2495 #define SWIGTYPE_p_wxDateEvent swig_types[33]
2496 #define SWIGTYPE_p_wxDialog swig_types[34]
2497 #define SWIGTYPE_p_wxDirDialog swig_types[35]
2498 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2499 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2500 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2501 #define SWIGTYPE_p_wxEffects swig_types[39]
2502 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2503 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2504 #define SWIGTYPE_p_wxEvent swig_types[42]
2505 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2506 #define SWIGTYPE_p_wxFSFile swig_types[44]
2507 #define SWIGTYPE_p_wxFileDialog swig_types[45]
2508 #define SWIGTYPE_p_wxFileSystem swig_types[46]
2509 #define SWIGTYPE_p_wxFindDialogEvent swig_types[47]
2510 #define SWIGTYPE_p_wxFindReplaceData swig_types[48]
2511 #define SWIGTYPE_p_wxFindReplaceDialog swig_types[49]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[51]
2514 #define SWIGTYPE_p_wxFont swig_types[52]
2515 #define SWIGTYPE_p_wxFontData swig_types[53]
2516 #define SWIGTYPE_p_wxFontDialog swig_types[54]
2517 #define SWIGTYPE_p_wxFrame swig_types[55]
2518 #define SWIGTYPE_p_wxGBSizerItem swig_types[56]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[57]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[58]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[59]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[60]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[61]
2524 #define SWIGTYPE_p_wxIcon swig_types[62]
2525 #define SWIGTYPE_p_wxIconizeEvent swig_types[63]
2526 #define SWIGTYPE_p_wxIdleEvent swig_types[64]
2527 #define SWIGTYPE_p_wxImage swig_types[65]
2528 #define SWIGTYPE_p_wxImageHandler swig_types[66]
2529 #define SWIGTYPE_p_wxImageList swig_types[67]
2530 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[68]
2531 #define SWIGTYPE_p_wxInitDialogEvent swig_types[69]
2532 #define SWIGTYPE_p_wxJPEGHandler swig_types[70]
2533 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
2534 #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[72]
2535 #define SWIGTYPE_p_wxLayoutConstraints swig_types[73]
2536 #define SWIGTYPE_p_wxMDIChildFrame swig_types[74]
2537 #define SWIGTYPE_p_wxMDIClientWindow swig_types[75]
2538 #define SWIGTYPE_p_wxMDIParentFrame swig_types[76]
2539 #define SWIGTYPE_p_wxMask swig_types[77]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[79]
2542 #define SWIGTYPE_p_wxMenu swig_types[80]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[81]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[82]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[83]
2546 #define SWIGTYPE_p_wxMessageDialog swig_types[84]
2547 #define SWIGTYPE_p_wxMetaFile swig_types[85]
2548 #define SWIGTYPE_p_wxMetaFileDC swig_types[86]
2549 #define SWIGTYPE_p_wxMiniFrame swig_types[87]
2550 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2551 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2552 #define SWIGTYPE_p_wxMouseEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMoveEvent swig_types[91]
2554 #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[92]
2555 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNcPaintEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNotifyEvent swig_types[95]
2558 #define SWIGTYPE_p_wxObject swig_types[96]
2559 #define SWIGTYPE_p_wxPCXHandler swig_types[97]
2560 #define SWIGTYPE_p_wxPNGHandler swig_types[98]
2561 #define SWIGTYPE_p_wxPNMHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPageSetupDialog swig_types[100]
2563 #define SWIGTYPE_p_wxPageSetupDialogData swig_types[101]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[102]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPalette swig_types[104]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[105]
2568 #define SWIGTYPE_p_wxPanel swig_types[106]
2569 #define SWIGTYPE_p_wxPaperSize swig_types[107]
2570 #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[108]
2571 #define SWIGTYPE_p_wxPen swig_types[109]
2572 #define SWIGTYPE_p_wxPopupWindow swig_types[110]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[111]
2574 #define SWIGTYPE_p_wxPreviewCanvas swig_types[112]
2575 #define SWIGTYPE_p_wxPreviewControlBar swig_types[113]
2576 #define SWIGTYPE_p_wxPreviewFrame swig_types[114]
2577 #define SWIGTYPE_p_wxPrintData swig_types[115]
2578 #define SWIGTYPE_p_wxPrintDialog swig_types[116]
2579 #define SWIGTYPE_p_wxPrintDialogData swig_types[117]
2580 #define SWIGTYPE_p_wxPrintPreview swig_types[118]
2581 #define SWIGTYPE_p_wxPrinter swig_types[119]
2582 #define SWIGTYPE_p_wxPrinterDC swig_types[120]
2583 #define SWIGTYPE_p_wxProgressDialog swig_types[121]
2584 #define SWIGTYPE_p_wxPyApp swig_types[122]
2585 #define SWIGTYPE_p_wxPyCommandEvent swig_types[123]
2586 #define SWIGTYPE_p_wxPyEvent swig_types[124]
2587 #define SWIGTYPE_p_wxPyHtmlListBox swig_types[125]
2588 #define SWIGTYPE_p_wxPyImageHandler swig_types[126]
2589 #define SWIGTYPE_p_wxPyPanel swig_types[127]
2590 #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[128]
2591 #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[129]
2592 #define SWIGTYPE_p_wxPyPreviewFrame swig_types[130]
2593 #define SWIGTYPE_p_wxPyPrintPreview swig_types[131]
2594 #define SWIGTYPE_p_wxPyPrintout swig_types[132]
2595 #define SWIGTYPE_p_wxPyScrolledWindow swig_types[133]
2596 #define SWIGTYPE_p_wxPySizer swig_types[134]
2597 #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[135]
2598 #define SWIGTYPE_p_wxPyVListBox swig_types[136]
2599 #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[137]
2600 #define SWIGTYPE_p_wxPyValidator swig_types[138]
2601 #define SWIGTYPE_p_wxPyWindow swig_types[139]
2602 #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[140]
2603 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[141]
2604 #define SWIGTYPE_p_wxRegion swig_types[142]
2605 #define SWIGTYPE_p_wxRegionIterator swig_types[143]
2606 #define SWIGTYPE_p_wxRichTextAttr swig_types[144]
2607 #define SWIGTYPE_p_wxRichTextBuffer swig_types[145]
2608 #define SWIGTYPE_p_wxRichTextCtrl swig_types[146]
2609 #define SWIGTYPE_p_wxRichTextEvent swig_types[147]
2610 #define SWIGTYPE_p_wxRichTextImageBlock swig_types[148]
2611 #define SWIGTYPE_p_wxRichTextRange swig_types[149]
2612 #define SWIGTYPE_p_wxRichTextStyleSheet swig_types[150]
2613 #define SWIGTYPE_p_wxSashEvent swig_types[151]
2614 #define SWIGTYPE_p_wxSashLayoutWindow swig_types[152]
2615 #define SWIGTYPE_p_wxSashWindow swig_types[153]
2616 #define SWIGTYPE_p_wxScreenDC swig_types[154]
2617 #define SWIGTYPE_p_wxScrollEvent swig_types[155]
2618 #define SWIGTYPE_p_wxScrollWinEvent swig_types[156]
2619 #define SWIGTYPE_p_wxScrolledWindow swig_types[157]
2620 #define SWIGTYPE_p_wxSetCursorEvent swig_types[158]
2621 #define SWIGTYPE_p_wxShowEvent swig_types[159]
2622 #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[160]
2623 #define SWIGTYPE_p_wxSizeEvent swig_types[161]
2624 #define SWIGTYPE_p_wxSizer swig_types[162]
2625 #define SWIGTYPE_p_wxSizerItem swig_types[163]
2626 #define SWIGTYPE_p_wxSplashScreen swig_types[164]
2627 #define SWIGTYPE_p_wxSplashScreenWindow swig_types[165]
2628 #define SWIGTYPE_p_wxSplitterEvent swig_types[166]
2629 #define SWIGTYPE_p_wxSplitterWindow swig_types[167]
2630 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[168]
2631 #define SWIGTYPE_p_wxStatusBar swig_types[169]
2632 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[170]
2633 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[171]
2634 #define SWIGTYPE_p_wxTIFFHandler swig_types[172]
2635 #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[173]
2636 #define SWIGTYPE_p_wxTextCoord swig_types[174]
2637 #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[175]
2638 #define SWIGTYPE_p_wxTextEntryDialog swig_types[176]
2639 #define SWIGTYPE_p_wxTipWindow swig_types[177]
2640 #define SWIGTYPE_p_wxTopLevelWindow swig_types[178]
2641 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[179]
2642 #define SWIGTYPE_p_wxValidator swig_types[180]
2643 #define SWIGTYPE_p_wxWindow swig_types[181]
2644 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[182]
2645 #define SWIGTYPE_p_wxWindowDC swig_types[183]
2646 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[184]
2647 #define SWIGTYPE_p_wxXPMHandler swig_types[185]
2648 static swig_type_info *swig_types[187];
2649 static swig_module_info swig_module = {swig_types, 186, 0, 0, 0, 0};
2650 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2651 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2652
2653 /* -------- TYPES TABLE (END) -------- */
2654
2655 #if (PY_VERSION_HEX <= 0x02000000)
2656 # if !defined(SWIG_PYTHON_CLASSIC)
2657 # error "This python version requires to use swig with the '-classic' option"
2658 # endif
2659 #endif
2660 #if (PY_VERSION_HEX <= 0x02020000)
2661 # error "This python version requires to use swig with the '-nomodern' option"
2662 #endif
2663 #if (PY_VERSION_HEX <= 0x02020000)
2664 # error "This python version requires to use swig with the '-nomodernargs' option"
2665 #endif
2666 #ifndef METH_O
2667 # error "This python version requires to use swig with the '-nofastunpack' option"
2668 #endif
2669
2670 /*-----------------------------------------------
2671 @(target):= _richtext.so
2672 ------------------------------------------------*/
2673 #define SWIG_init init_richtext
2674
2675 #define SWIG_name "_richtext"
2676
2677 #define SWIGVERSION 0x010329
2678
2679
2680 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2681 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2682
2683
2684 #include <stdexcept>
2685
2686
2687 namespace swig {
2688 class PyObject_ptr {
2689 protected:
2690 PyObject *_obj;
2691
2692 public:
2693 PyObject_ptr() :_obj(0)
2694 {
2695 }
2696
2697 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2698 {
2699 Py_XINCREF(_obj);
2700 }
2701
2702 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2703 {
2704 if (initial_ref) Py_XINCREF(_obj);
2705 }
2706
2707 PyObject_ptr & operator=(const PyObject_ptr& item)
2708 {
2709 Py_XINCREF(item._obj);
2710 Py_XDECREF(_obj);
2711 _obj = item._obj;
2712 return *this;
2713 }
2714
2715 ~PyObject_ptr()
2716 {
2717 Py_XDECREF(_obj);
2718 }
2719
2720 operator PyObject *() const
2721 {
2722 return _obj;
2723 }
2724
2725 PyObject *operator->() const
2726 {
2727 return _obj;
2728 }
2729 };
2730 }
2731
2732
2733 namespace swig {
2734 struct PyObject_var : PyObject_ptr {
2735 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2736
2737 PyObject_var & operator = (PyObject* obj)
2738 {
2739 Py_XDECREF(_obj);
2740 _obj = obj;
2741 return *this;
2742 }
2743 };
2744 }
2745
2746
2747 #include "wx/wxPython/wxPython.h"
2748 #include "wx/wxPython/pyclasses.h"
2749 #include "wx/wxPython/printfw.h"
2750 #include "wx/wxPython/twoitem.h"
2751
2752 #include <wx/richtext/richtextctrl.h>
2753
2754
2755 class wxEffects;
2756 class wxBufferedDC;
2757 class wxBufferedPaintDC;
2758 class wxMetaFile;
2759 class wxMetaFileDC;
2760 class wxPrinterDC;
2761
2762
2763
2764 #define SWIG_From_long PyInt_FromLong
2765
2766
2767 SWIGINTERNINLINE PyObject *
2768 SWIG_From_int (int value)
2769 {
2770 return SWIG_From_long (value);
2771 }
2772
2773 static const wxString wxPyEmptyString(wxEmptyString);
2774
2775
2776 bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj)
2777 {
2778 if (source == Py_None) {
2779 **obj = wxRICHTEXT_NONE;
2780 return true;
2781 }
2782 return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange"));
2783 }
2784
2785
2786 SWIGINTERN int
2787 SWIG_AsVal_long (PyObject* obj, long* val)
2788 {
2789 if (PyNumber_Check(obj)) {
2790 if (val) *val = PyInt_AsLong(obj);
2791 return SWIG_OK;
2792 }
2793 return SWIG_TypeError;
2794 }
2795
2796 SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){
2797 wxRichTextRange temp, *obj = &temp;
2798 if ( other == Py_None ) return false;
2799 if ( ! wxRichTextRange_helper(other, &obj) ) {
2800 PyErr_Clear();
2801 return false;
2802 }
2803 return self->operator==(*obj);
2804 }
2805 SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){
2806 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2807 PyObject* tup = PyTuple_New(2);
2808 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart()));
2809 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd()));
2810 wxPyEndBlockThreads(blocked);
2811 return tup;
2812 }
2813
2814 wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL);
2815 wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE);
2816
2817
2818 #include <limits.h>
2819 #ifndef LLONG_MIN
2820 # define LLONG_MIN LONG_LONG_MIN
2821 #endif
2822 #ifndef LLONG_MAX
2823 # define LLONG_MAX LONG_LONG_MAX
2824 #endif
2825 #ifndef ULLONG_MAX
2826 # define ULLONG_MAX ULONG_LONG_MAX
2827 #endif
2828
2829
2830 SWIGINTERN int
2831 SWIG_AsVal_int (PyObject * obj, int *val)
2832 {
2833 long v;
2834 int res = SWIG_AsVal_long (obj, &v);
2835 if (SWIG_IsOK(res)) {
2836 if ((v < INT_MIN || v > INT_MAX)) {
2837 return SWIG_OverflowError;
2838 } else {
2839 if (val) *val = static_cast< int >(v);
2840 }
2841 }
2842 return res;
2843 }
2844
2845
2846 SWIGINTERN int
2847 SWIG_AsVal_bool (PyObject *obj, bool *val)
2848 {
2849 if (obj == Py_True) {
2850 if (val) *val = true;
2851 return SWIG_OK;
2852 } else if (obj == Py_False) {
2853 if (val) *val = false;
2854 return SWIG_OK;
2855 } else {
2856 long v = 0;
2857 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2858 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2859 return res;
2860 }
2861 }
2862
2863
2864 SWIGINTERN int
2865 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2866 {
2867 long v = 0;
2868 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2869 return SWIG_TypeError;
2870 }
2871 else if (val)
2872 *val = (unsigned long)v;
2873 return SWIG_OK;
2874 }
2875
2876
2877 SWIGINTERN swig_type_info*
2878 SWIG_pchar_descriptor()
2879 {
2880 static int init = 0;
2881 static swig_type_info* info = 0;
2882 if (!init) {
2883 info = SWIG_TypeQuery("_p_char");
2884 init = 1;
2885 }
2886 return info;
2887 }
2888
2889
2890 SWIGINTERN int
2891 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2892 {
2893 if (PyString_Check(obj)) {
2894 char *cstr; int len;
2895 PyString_AsStringAndSize(obj, &cstr, &len);
2896 if (cptr) {
2897 if (alloc) {
2898 /*
2899 In python the user should not be able to modify the inner
2900 string representation. To warranty that, if you define
2901 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
2902 buffer is always returned.
2903
2904 The default behavior is just to return the pointer value,
2905 so, be careful.
2906 */
2907 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
2908 if (*alloc != SWIG_OLDOBJ)
2909 #else
2910 if (*alloc == SWIG_NEWOBJ)
2911 #endif
2912 {
2913 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
2914 *alloc = SWIG_NEWOBJ;
2915 }
2916 else {
2917 *cptr = cstr;
2918 *alloc = SWIG_OLDOBJ;
2919 }
2920 } else {
2921 *cptr = PyString_AsString(obj);
2922 }
2923 }
2924 if (psize) *psize = len + 1;
2925 return SWIG_OK;
2926 } else {
2927 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2928 if (pchar_descriptor) {
2929 void* vptr = 0;
2930 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
2931 if (cptr) *cptr = (char *) vptr;
2932 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
2933 if (alloc) *alloc = SWIG_OLDOBJ;
2934 return SWIG_OK;
2935 }
2936 }
2937 }
2938 return SWIG_TypeError;
2939 }
2940
2941
2942 SWIGINTERN int
2943 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
2944 {
2945 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
2946 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
2947 if (SWIG_IsOK(res)) {
2948 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
2949 if (csize <= size) {
2950 if (val) {
2951 if (csize) memcpy(val, cptr, csize*sizeof(char));
2952 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
2953 }
2954 if (alloc == SWIG_NEWOBJ) {
2955 delete[] cptr;
2956 res = SWIG_DelNewMask(res);
2957 }
2958 return res;
2959 }
2960 if (alloc == SWIG_NEWOBJ) delete[] cptr;
2961 }
2962 return SWIG_TypeError;
2963 }
2964
2965
2966 SWIGINTERN int
2967 SWIG_AsVal_char (PyObject * obj, char *val)
2968 {
2969 int res = SWIG_AsCharArray(obj, val, 1);
2970 if (!SWIG_IsOK(res)) {
2971 long v;
2972 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
2973 if (SWIG_IsOK(res)) {
2974 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
2975 if (val) *val = static_cast< char >(v);
2976 } else {
2977 res = SWIG_OverflowError;
2978 }
2979 }
2980 }
2981 return res;
2982 }
2983
2984 #ifdef __cplusplus
2985 extern "C" {
2986 #endif
2987 SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj = 0;
2989 long arg1 = (long) 0 ;
2990 long arg2 = (long) 0 ;
2991 wxRichTextRange *result = 0 ;
2992 long val1 ;
2993 int ecode1 = 0 ;
2994 long val2 ;
2995 int ecode2 = 0 ;
2996 PyObject * obj0 = 0 ;
2997 PyObject * obj1 = 0 ;
2998 char * kwnames[] = {
2999 (char *) "start",(char *) "end", NULL
3000 };
3001
3002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail;
3003 if (obj0) {
3004 ecode1 = SWIG_AsVal_long(obj0, &val1);
3005 if (!SWIG_IsOK(ecode1)) {
3006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'");
3007 }
3008 arg1 = static_cast< long >(val1);
3009 }
3010 if (obj1) {
3011 ecode2 = SWIG_AsVal_long(obj1, &val2);
3012 if (!SWIG_IsOK(ecode2)) {
3013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'");
3014 }
3015 arg2 = static_cast< long >(val2);
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2);
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 );
3024 return resultobj;
3025 fail:
3026 return NULL;
3027 }
3028
3029
3030 SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3031 PyObject *resultobj = 0;
3032 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3033 void *argp1 = 0 ;
3034 int res1 = 0 ;
3035 PyObject *swig_obj[1] ;
3036
3037 if (!args) SWIG_fail;
3038 swig_obj[0] = args;
3039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 );
3040 if (!SWIG_IsOK(res1)) {
3041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3042 }
3043 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 delete arg1;
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 resultobj = SWIG_Py_Void();
3052 return resultobj;
3053 fail:
3054 return NULL;
3055 }
3056
3057
3058 SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj = 0;
3060 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3061 PyObject *arg2 = (PyObject *) 0 ;
3062 bool result;
3063 void *argp1 = 0 ;
3064 int res1 = 0 ;
3065 PyObject * obj0 = 0 ;
3066 PyObject * obj1 = 0 ;
3067 char * kwnames[] = {
3068 (char *) "self",(char *) "other", NULL
3069 };
3070
3071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3073 if (!SWIG_IsOK(res1)) {
3074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3075 }
3076 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3077 arg2 = obj1;
3078 {
3079 result = (bool)wxRichTextRange___eq__(arg1,arg2);
3080 if (PyErr_Occurred()) SWIG_fail;
3081 }
3082 {
3083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3084 }
3085 return resultobj;
3086 fail:
3087 return NULL;
3088 }
3089
3090
3091 SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj = 0;
3093 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3094 wxRichTextRange *arg2 = 0 ;
3095 wxRichTextRange result;
3096 void *argp1 = 0 ;
3097 int res1 = 0 ;
3098 wxRichTextRange temp2 ;
3099 PyObject * obj0 = 0 ;
3100 PyObject * obj1 = 0 ;
3101 char * kwnames[] = {
3102 (char *) "self",(char *) "range", NULL
3103 };
3104
3105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
3106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3107 if (!SWIG_IsOK(res1)) {
3108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3109 }
3110 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3111 {
3112 arg2 = &temp2;
3113 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3114 }
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2);
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3122 return resultobj;
3123 fail:
3124 return NULL;
3125 }
3126
3127
3128 SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3129 PyObject *resultobj = 0;
3130 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3131 wxRichTextRange *arg2 = 0 ;
3132 wxRichTextRange result;
3133 void *argp1 = 0 ;
3134 int res1 = 0 ;
3135 wxRichTextRange temp2 ;
3136 PyObject * obj0 = 0 ;
3137 PyObject * obj1 = 0 ;
3138 char * kwnames[] = {
3139 (char *) "self",(char *) "range", NULL
3140 };
3141
3142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail;
3143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3144 if (!SWIG_IsOK(res1)) {
3145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3146 }
3147 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3148 {
3149 arg2 = &temp2;
3150 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3151 }
3152 {
3153 PyThreadState* __tstate = wxPyBeginAllowThreads();
3154 result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2);
3155 wxPyEndAllowThreads(__tstate);
3156 if (PyErr_Occurred()) SWIG_fail;
3157 }
3158 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3159 return resultobj;
3160 fail:
3161 return NULL;
3162 }
3163
3164
3165 SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3166 PyObject *resultobj = 0;
3167 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3168 long arg2 ;
3169 long arg3 ;
3170 void *argp1 = 0 ;
3171 int res1 = 0 ;
3172 long val2 ;
3173 int ecode2 = 0 ;
3174 long val3 ;
3175 int ecode3 = 0 ;
3176 PyObject * obj0 = 0 ;
3177 PyObject * obj1 = 0 ;
3178 PyObject * obj2 = 0 ;
3179 char * kwnames[] = {
3180 (char *) "self",(char *) "start",(char *) "end", NULL
3181 };
3182
3183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3185 if (!SWIG_IsOK(res1)) {
3186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3187 }
3188 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3189 ecode2 = SWIG_AsVal_long(obj1, &val2);
3190 if (!SWIG_IsOK(ecode2)) {
3191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'");
3192 }
3193 arg2 = static_cast< long >(val2);
3194 ecode3 = SWIG_AsVal_long(obj2, &val3);
3195 if (!SWIG_IsOK(ecode3)) {
3196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'");
3197 }
3198 arg3 = static_cast< long >(val3);
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 (arg1)->SetRange(arg2,arg3);
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 resultobj = SWIG_Py_Void();
3206 return resultobj;
3207 fail:
3208 return NULL;
3209 }
3210
3211
3212 SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3213 PyObject *resultobj = 0;
3214 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3215 long arg2 ;
3216 void *argp1 = 0 ;
3217 int res1 = 0 ;
3218 long val2 ;
3219 int ecode2 = 0 ;
3220 PyObject * obj0 = 0 ;
3221 PyObject * obj1 = 0 ;
3222 char * kwnames[] = {
3223 (char *) "self",(char *) "start", NULL
3224 };
3225
3226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail;
3227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3228 if (!SWIG_IsOK(res1)) {
3229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3230 }
3231 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3232 ecode2 = SWIG_AsVal_long(obj1, &val2);
3233 if (!SWIG_IsOK(ecode2)) {
3234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'");
3235 }
3236 arg2 = static_cast< long >(val2);
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 (arg1)->SetStart(arg2);
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 resultobj = SWIG_Py_Void();
3244 return resultobj;
3245 fail:
3246 return NULL;
3247 }
3248
3249
3250 SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3251 PyObject *resultobj = 0;
3252 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3253 long result;
3254 void *argp1 = 0 ;
3255 int res1 = 0 ;
3256 PyObject *swig_obj[1] ;
3257
3258 if (!args) SWIG_fail;
3259 swig_obj[0] = args;
3260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3261 if (!SWIG_IsOK(res1)) {
3262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3263 }
3264 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 result = (long)((wxRichTextRange const *)arg1)->GetStart();
3268 wxPyEndAllowThreads(__tstate);
3269 if (PyErr_Occurred()) SWIG_fail;
3270 }
3271 resultobj = SWIG_From_long(static_cast< long >(result));
3272 return resultobj;
3273 fail:
3274 return NULL;
3275 }
3276
3277
3278 SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3279 PyObject *resultobj = 0;
3280 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3281 long arg2 ;
3282 void *argp1 = 0 ;
3283 int res1 = 0 ;
3284 long val2 ;
3285 int ecode2 = 0 ;
3286 PyObject * obj0 = 0 ;
3287 PyObject * obj1 = 0 ;
3288 char * kwnames[] = {
3289 (char *) "self",(char *) "end", NULL
3290 };
3291
3292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail;
3293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3294 if (!SWIG_IsOK(res1)) {
3295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3296 }
3297 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3298 ecode2 = SWIG_AsVal_long(obj1, &val2);
3299 if (!SWIG_IsOK(ecode2)) {
3300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'");
3301 }
3302 arg2 = static_cast< long >(val2);
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 (arg1)->SetEnd(arg2);
3306 wxPyEndAllowThreads(__tstate);
3307 if (PyErr_Occurred()) SWIG_fail;
3308 }
3309 resultobj = SWIG_Py_Void();
3310 return resultobj;
3311 fail:
3312 return NULL;
3313 }
3314
3315
3316 SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3317 PyObject *resultobj = 0;
3318 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3319 long result;
3320 void *argp1 = 0 ;
3321 int res1 = 0 ;
3322 PyObject *swig_obj[1] ;
3323
3324 if (!args) SWIG_fail;
3325 swig_obj[0] = args;
3326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3327 if (!SWIG_IsOK(res1)) {
3328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3329 }
3330 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3331 {
3332 PyThreadState* __tstate = wxPyBeginAllowThreads();
3333 result = (long)((wxRichTextRange const *)arg1)->GetEnd();
3334 wxPyEndAllowThreads(__tstate);
3335 if (PyErr_Occurred()) SWIG_fail;
3336 }
3337 resultobj = SWIG_From_long(static_cast< long >(result));
3338 return resultobj;
3339 fail:
3340 return NULL;
3341 }
3342
3343
3344 SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3345 PyObject *resultobj = 0;
3346 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3347 wxRichTextRange *arg2 = 0 ;
3348 bool result;
3349 void *argp1 = 0 ;
3350 int res1 = 0 ;
3351 wxRichTextRange temp2 ;
3352 PyObject * obj0 = 0 ;
3353 PyObject * obj1 = 0 ;
3354 char * kwnames[] = {
3355 (char *) "self",(char *) "range", NULL
3356 };
3357
3358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail;
3359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3360 if (!SWIG_IsOK(res1)) {
3361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3362 }
3363 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3364 {
3365 arg2 = &temp2;
3366 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3367 }
3368 {
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2);
3371 wxPyEndAllowThreads(__tstate);
3372 if (PyErr_Occurred()) SWIG_fail;
3373 }
3374 {
3375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3376 }
3377 return resultobj;
3378 fail:
3379 return NULL;
3380 }
3381
3382
3383 SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3384 PyObject *resultobj = 0;
3385 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3386 wxRichTextRange *arg2 = 0 ;
3387 bool result;
3388 void *argp1 = 0 ;
3389 int res1 = 0 ;
3390 wxRichTextRange temp2 ;
3391 PyObject * obj0 = 0 ;
3392 PyObject * obj1 = 0 ;
3393 char * kwnames[] = {
3394 (char *) "self",(char *) "range", NULL
3395 };
3396
3397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail;
3398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3399 if (!SWIG_IsOK(res1)) {
3400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3401 }
3402 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3403 {
3404 arg2 = &temp2;
3405 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3406 }
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2);
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 {
3414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3415 }
3416 return resultobj;
3417 fail:
3418 return NULL;
3419 }
3420
3421
3422 SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj = 0;
3424 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3425 long arg2 ;
3426 bool result;
3427 void *argp1 = 0 ;
3428 int res1 = 0 ;
3429 long val2 ;
3430 int ecode2 = 0 ;
3431 PyObject * obj0 = 0 ;
3432 PyObject * obj1 = 0 ;
3433 char * kwnames[] = {
3434 (char *) "self",(char *) "pos", NULL
3435 };
3436
3437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
3438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3439 if (!SWIG_IsOK(res1)) {
3440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3441 }
3442 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3443 ecode2 = SWIG_AsVal_long(obj1, &val2);
3444 if (!SWIG_IsOK(ecode2)) {
3445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'");
3446 }
3447 arg2 = static_cast< long >(val2);
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2);
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 {
3455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3456 }
3457 return resultobj;
3458 fail:
3459 return NULL;
3460 }
3461
3462
3463 SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3464 PyObject *resultobj = 0;
3465 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3466 wxRichTextRange *arg2 = 0 ;
3467 bool result;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 wxRichTextRange temp2 ;
3471 PyObject * obj0 = 0 ;
3472 PyObject * obj1 = 0 ;
3473 char * kwnames[] = {
3474 (char *) "self",(char *) "range", NULL
3475 };
3476
3477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail;
3478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3479 if (!SWIG_IsOK(res1)) {
3480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3481 }
3482 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3483 {
3484 arg2 = &temp2;
3485 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3486 }
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2);
3490 wxPyEndAllowThreads(__tstate);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 }
3493 {
3494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3495 }
3496 return resultobj;
3497 fail:
3498 return NULL;
3499 }
3500
3501
3502 SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3503 PyObject *resultobj = 0;
3504 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3505 long result;
3506 void *argp1 = 0 ;
3507 int res1 = 0 ;
3508 PyObject *swig_obj[1] ;
3509
3510 if (!args) SWIG_fail;
3511 swig_obj[0] = args;
3512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3513 if (!SWIG_IsOK(res1)) {
3514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3515 }
3516 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3517 {
3518 PyThreadState* __tstate = wxPyBeginAllowThreads();
3519 result = (long)((wxRichTextRange const *)arg1)->GetLength();
3520 wxPyEndAllowThreads(__tstate);
3521 if (PyErr_Occurred()) SWIG_fail;
3522 }
3523 resultobj = SWIG_From_long(static_cast< long >(result));
3524 return resultobj;
3525 fail:
3526 return NULL;
3527 }
3528
3529
3530 SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3531 PyObject *resultobj = 0;
3532 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3533 void *argp1 = 0 ;
3534 int res1 = 0 ;
3535 PyObject *swig_obj[1] ;
3536
3537 if (!args) SWIG_fail;
3538 swig_obj[0] = args;
3539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3540 if (!SWIG_IsOK(res1)) {
3541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3542 }
3543 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 (arg1)->Swap();
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
3550 resultobj = SWIG_Py_Void();
3551 return resultobj;
3552 fail:
3553 return NULL;
3554 }
3555
3556
3557 SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3558 PyObject *resultobj = 0;
3559 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3560 PyObject *result = 0 ;
3561 void *argp1 = 0 ;
3562 int res1 = 0 ;
3563 PyObject *swig_obj[1] ;
3564
3565 if (!args) SWIG_fail;
3566 swig_obj[0] = args;
3567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3568 if (!SWIG_IsOK(res1)) {
3569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3570 }
3571 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3572 {
3573 PyThreadState* __tstate = wxPyBeginAllowThreads();
3574 result = (PyObject *)wxRichTextRange_Get(arg1);
3575 wxPyEndAllowThreads(__tstate);
3576 if (PyErr_Occurred()) SWIG_fail;
3577 }
3578 resultobj = result;
3579 return resultobj;
3580 fail:
3581 return NULL;
3582 }
3583
3584
3585 SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3586 PyObject *obj;
3587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3588 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj));
3589 return SWIG_Py_Void();
3590 }
3591
3592 SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3593 return SWIG_Python_InitShadowInstance(args);
3594 }
3595
3596 SWIGINTERN int RICHTEXT_ALL_set(PyObject *) {
3597 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only.");
3598 return 1;
3599 }
3600
3601
3602 SWIGINTERN PyObject *RICHTEXT_ALL_get(void) {
3603 PyObject *pyobj = 0;
3604
3605 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 );
3606 return pyobj;
3607 }
3608
3609
3610 SWIGINTERN int RICHTEXT_NONE_set(PyObject *) {
3611 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only.");
3612 return 1;
3613 }
3614
3615
3616 SWIGINTERN PyObject *RICHTEXT_NONE_get(void) {
3617 PyObject *pyobj = 0;
3618
3619 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 );
3620 return pyobj;
3621 }
3622
3623
3624 SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3625 PyObject *resultobj = 0;
3626 wxColour const &arg1_defvalue = wxNullColour ;
3627 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
3628 wxColour const &arg2_defvalue = wxNullColour ;
3629 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3630 wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
3631 wxRichTextAttr *result = 0 ;
3632 wxColour temp1 ;
3633 wxColour temp2 ;
3634 int val3 ;
3635 int ecode3 = 0 ;
3636 PyObject * obj0 = 0 ;
3637 PyObject * obj1 = 0 ;
3638 PyObject * obj2 = 0 ;
3639 char * kwnames[] = {
3640 (char *) "colText",(char *) "colBack",(char *) "alignment", NULL
3641 };
3642
3643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3644 if (obj0) {
3645 {
3646 arg1 = &temp1;
3647 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3648 }
3649 }
3650 if (obj1) {
3651 {
3652 arg2 = &temp2;
3653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3654 }
3655 }
3656 if (obj2) {
3657 ecode3 = SWIG_AsVal_int(obj2, &val3);
3658 if (!SWIG_IsOK(ecode3)) {
3659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'");
3660 }
3661 arg3 = static_cast< wxTextAttrAlignment >(val3);
3662 }
3663 {
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3);
3666 wxPyEndAllowThreads(__tstate);
3667 if (PyErr_Occurred()) SWIG_fail;
3668 }
3669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 );
3670 return resultobj;
3671 fail:
3672 return NULL;
3673 }
3674
3675
3676 SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3677 PyObject *resultobj = 0;
3678 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3679 void *argp1 = 0 ;
3680 int res1 = 0 ;
3681 PyObject *swig_obj[1] ;
3682
3683 if (!args) SWIG_fail;
3684 swig_obj[0] = args;
3685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 );
3686 if (!SWIG_IsOK(res1)) {
3687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3688 }
3689 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3690 {
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 delete arg1;
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 resultobj = SWIG_Py_Void();
3698 return resultobj;
3699 fail:
3700 return NULL;
3701 }
3702
3703
3704 SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3705 PyObject *resultobj = 0;
3706 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3707 SwigValueWrapper<wxFont > result;
3708 void *argp1 = 0 ;
3709 int res1 = 0 ;
3710 PyObject *swig_obj[1] ;
3711
3712 if (!args) SWIG_fail;
3713 swig_obj[0] = args;
3714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3715 if (!SWIG_IsOK(res1)) {
3716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
3717 }
3718 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3719 {
3720 PyThreadState* __tstate = wxPyBeginAllowThreads();
3721 result = ((wxRichTextAttr const *)arg1)->CreateFont();
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
3726 return resultobj;
3727 fail:
3728 return NULL;
3729 }
3730
3731
3732 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj = 0;
3734 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3735 wxFont *arg2 = 0 ;
3736 bool result;
3737 void *argp1 = 0 ;
3738 int res1 = 0 ;
3739 void *argp2 = 0 ;
3740 int res2 = 0 ;
3741 PyObject * obj0 = 0 ;
3742 PyObject * obj1 = 0 ;
3743 char * kwnames[] = {
3744 (char *) "self",(char *) "font", NULL
3745 };
3746
3747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail;
3748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3749 if (!SWIG_IsOK(res1)) {
3750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3751 }
3752 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
3754 if (!SWIG_IsOK(res2)) {
3755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3756 }
3757 if (!argp2) {
3758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3759 }
3760 arg2 = reinterpret_cast< wxFont * >(argp2);
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2);
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 {
3768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3769 }
3770 return resultobj;
3771 fail:
3772 return NULL;
3773 }
3774
3775
3776 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3777 PyObject *resultobj = 0;
3778 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3779 wxColour *arg2 = 0 ;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 wxColour temp2 ;
3783 PyObject * obj0 = 0 ;
3784 PyObject * obj1 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "self",(char *) "colText", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
3790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3791 if (!SWIG_IsOK(res1)) {
3792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3793 }
3794 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3795 {
3796 arg2 = &temp2;
3797 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3798 }
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 (arg1)->SetTextColour((wxColour const &)*arg2);
3802 wxPyEndAllowThreads(__tstate);
3803 if (PyErr_Occurred()) SWIG_fail;
3804 }
3805 resultobj = SWIG_Py_Void();
3806 return resultobj;
3807 fail:
3808 return NULL;
3809 }
3810
3811
3812 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3813 PyObject *resultobj = 0;
3814 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3815 wxColour *arg2 = 0 ;
3816 void *argp1 = 0 ;
3817 int res1 = 0 ;
3818 wxColour temp2 ;
3819 PyObject * obj0 = 0 ;
3820 PyObject * obj1 = 0 ;
3821 char * kwnames[] = {
3822 (char *) "self",(char *) "colBack", NULL
3823 };
3824
3825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
3826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3827 if (!SWIG_IsOK(res1)) {
3828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3829 }
3830 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3831 {
3832 arg2 = &temp2;
3833 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3834 }
3835 {
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 }
3841 resultobj = SWIG_Py_Void();
3842 return resultobj;
3843 fail:
3844 return NULL;
3845 }
3846
3847
3848 SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3849 PyObject *resultobj = 0;
3850 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3851 wxTextAttrAlignment arg2 ;
3852 void *argp1 = 0 ;
3853 int res1 = 0 ;
3854 int val2 ;
3855 int ecode2 = 0 ;
3856 PyObject * obj0 = 0 ;
3857 PyObject * obj1 = 0 ;
3858 char * kwnames[] = {
3859 (char *) "self",(char *) "alignment", NULL
3860 };
3861
3862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
3863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3864 if (!SWIG_IsOK(res1)) {
3865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3866 }
3867 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3868 ecode2 = SWIG_AsVal_int(obj1, &val2);
3869 if (!SWIG_IsOK(ecode2)) {
3870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
3871 }
3872 arg2 = static_cast< wxTextAttrAlignment >(val2);
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 (arg1)->SetAlignment(arg2);
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_Py_Void();
3880 return resultobj;
3881 fail:
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj = 0;
3888 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3889 wxArrayInt *arg2 = 0 ;
3890 void *argp1 = 0 ;
3891 int res1 = 0 ;
3892 bool temp2 = false ;
3893 PyObject * obj0 = 0 ;
3894 PyObject * obj1 = 0 ;
3895 char * kwnames[] = {
3896 (char *) "self",(char *) "tabs", NULL
3897 };
3898
3899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
3900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3901 if (!SWIG_IsOK(res1)) {
3902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3903 }
3904 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3905 {
3906 if (! PySequence_Check(obj1)) {
3907 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3908 SWIG_fail;
3909 }
3910 arg2 = new wxArrayInt;
3911 temp2 = true;
3912 int i, len=PySequence_Length(obj1);
3913 for (i=0; i<len; i++) {
3914 PyObject* item = PySequence_GetItem(obj1, i);
3915 PyObject* number = PyNumber_Int(item);
3916 arg2->Add(PyInt_AS_LONG(number));
3917 Py_DECREF(item);
3918 Py_DECREF(number);
3919 }
3920 }
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 (arg1)->SetTabs((wxArrayInt const &)*arg2);
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_Py_Void();
3928 {
3929 if (temp2) delete arg2;
3930 }
3931 return resultobj;
3932 fail:
3933 {
3934 if (temp2) delete arg2;
3935 }
3936 return NULL;
3937 }
3938
3939
3940 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj = 0;
3942 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3943 int arg2 ;
3944 int arg3 = (int) 0 ;
3945 void *argp1 = 0 ;
3946 int res1 = 0 ;
3947 int val2 ;
3948 int ecode2 = 0 ;
3949 int val3 ;
3950 int ecode3 = 0 ;
3951 PyObject * obj0 = 0 ;
3952 PyObject * obj1 = 0 ;
3953 PyObject * obj2 = 0 ;
3954 char * kwnames[] = {
3955 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
3956 };
3957
3958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3960 if (!SWIG_IsOK(res1)) {
3961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3962 }
3963 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3964 ecode2 = SWIG_AsVal_int(obj1, &val2);
3965 if (!SWIG_IsOK(ecode2)) {
3966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
3967 }
3968 arg2 = static_cast< int >(val2);
3969 if (obj2) {
3970 ecode3 = SWIG_AsVal_int(obj2, &val3);
3971 if (!SWIG_IsOK(ecode3)) {
3972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
3973 }
3974 arg3 = static_cast< int >(val3);
3975 }
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 (arg1)->SetLeftIndent(arg2,arg3);
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 }
3982 resultobj = SWIG_Py_Void();
3983 return resultobj;
3984 fail:
3985 return NULL;
3986 }
3987
3988
3989 SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3990 PyObject *resultobj = 0;
3991 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3992 int arg2 ;
3993 void *argp1 = 0 ;
3994 int res1 = 0 ;
3995 int val2 ;
3996 int ecode2 = 0 ;
3997 PyObject * obj0 = 0 ;
3998 PyObject * obj1 = 0 ;
3999 char * kwnames[] = {
4000 (char *) "self",(char *) "indent", NULL
4001 };
4002
4003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
4004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4007 }
4008 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4009 ecode2 = SWIG_AsVal_int(obj1, &val2);
4010 if (!SWIG_IsOK(ecode2)) {
4011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
4012 }
4013 arg2 = static_cast< int >(val2);
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 (arg1)->SetRightIndent(arg2);
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 resultobj = SWIG_Py_Void();
4021 return resultobj;
4022 fail:
4023 return NULL;
4024 }
4025
4026
4027 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4028 PyObject *resultobj = 0;
4029 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4030 int arg2 ;
4031 void *argp1 = 0 ;
4032 int res1 = 0 ;
4033 int val2 ;
4034 int ecode2 = 0 ;
4035 PyObject * obj0 = 0 ;
4036 PyObject * obj1 = 0 ;
4037 char * kwnames[] = {
4038 (char *) "self",(char *) "pointSize", NULL
4039 };
4040
4041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
4042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4043 if (!SWIG_IsOK(res1)) {
4044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4045 }
4046 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4047 ecode2 = SWIG_AsVal_int(obj1, &val2);
4048 if (!SWIG_IsOK(ecode2)) {
4049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'");
4050 }
4051 arg2 = static_cast< int >(val2);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 (arg1)->SetFontSize(arg2);
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_Py_Void();
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4066 PyObject *resultobj = 0;
4067 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4068 int arg2 ;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 int val2 ;
4072 int ecode2 = 0 ;
4073 PyObject * obj0 = 0 ;
4074 PyObject * obj1 = 0 ;
4075 char * kwnames[] = {
4076 (char *) "self",(char *) "fontStyle", NULL
4077 };
4078
4079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4083 }
4084 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4085 ecode2 = SWIG_AsVal_int(obj1, &val2);
4086 if (!SWIG_IsOK(ecode2)) {
4087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'");
4088 }
4089 arg2 = static_cast< int >(val2);
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 (arg1)->SetFontStyle(arg2);
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 resultobj = SWIG_Py_Void();
4097 return resultobj;
4098 fail:
4099 return NULL;
4100 }
4101
4102
4103 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4104 PyObject *resultobj = 0;
4105 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4106 int arg2 ;
4107 void *argp1 = 0 ;
4108 int res1 = 0 ;
4109 int val2 ;
4110 int ecode2 = 0 ;
4111 PyObject * obj0 = 0 ;
4112 PyObject * obj1 = 0 ;
4113 char * kwnames[] = {
4114 (char *) "self",(char *) "fontWeight", NULL
4115 };
4116
4117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail;
4118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4119 if (!SWIG_IsOK(res1)) {
4120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4121 }
4122 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4123 ecode2 = SWIG_AsVal_int(obj1, &val2);
4124 if (!SWIG_IsOK(ecode2)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'");
4126 }
4127 arg2 = static_cast< int >(val2);
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 (arg1)->SetFontWeight(arg2);
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 resultobj = SWIG_Py_Void();
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj = 0;
4143 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4144 wxString *arg2 = 0 ;
4145 void *argp1 = 0 ;
4146 int res1 = 0 ;
4147 bool temp2 = false ;
4148 PyObject * obj0 = 0 ;
4149 PyObject * obj1 = 0 ;
4150 char * kwnames[] = {
4151 (char *) "self",(char *) "faceName", NULL
4152 };
4153
4154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
4155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4156 if (!SWIG_IsOK(res1)) {
4157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4158 }
4159 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4160 {
4161 arg2 = wxString_in_helper(obj1);
4162 if (arg2 == NULL) SWIG_fail;
4163 temp2 = true;
4164 }
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 (arg1)->SetFontFaceName((wxString const &)*arg2);
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_Py_Void();
4172 {
4173 if (temp2)
4174 delete arg2;
4175 }
4176 return resultobj;
4177 fail:
4178 {
4179 if (temp2)
4180 delete arg2;
4181 }
4182 return NULL;
4183 }
4184
4185
4186 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj = 0;
4188 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4189 bool arg2 ;
4190 void *argp1 = 0 ;
4191 int res1 = 0 ;
4192 bool val2 ;
4193 int ecode2 = 0 ;
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 char * kwnames[] = {
4197 (char *) "self",(char *) "underlined", NULL
4198 };
4199
4200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
4201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4202 if (!SWIG_IsOK(res1)) {
4203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4204 }
4205 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4206 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4207 if (!SWIG_IsOK(ecode2)) {
4208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'");
4209 }
4210 arg2 = static_cast< bool >(val2);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 (arg1)->SetFontUnderlined(arg2);
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_Py_Void();
4218 return resultobj;
4219 fail:
4220 return NULL;
4221 }
4222
4223
4224 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4225 PyObject *resultobj = 0;
4226 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4227 long arg2 ;
4228 void *argp1 = 0 ;
4229 int res1 = 0 ;
4230 long val2 ;
4231 int ecode2 = 0 ;
4232 PyObject * obj0 = 0 ;
4233 PyObject * obj1 = 0 ;
4234 char * kwnames[] = {
4235 (char *) "self",(char *) "flags", NULL
4236 };
4237
4238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4240 if (!SWIG_IsOK(res1)) {
4241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4242 }
4243 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4244 ecode2 = SWIG_AsVal_long(obj1, &val2);
4245 if (!SWIG_IsOK(ecode2)) {
4246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
4247 }
4248 arg2 = static_cast< long >(val2);
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->SetFlags(arg2);
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj = 0;
4264 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4265 wxString *arg2 = 0 ;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 bool temp2 = false ;
4269 PyObject * obj0 = 0 ;
4270 PyObject * obj1 = 0 ;
4271 char * kwnames[] = {
4272 (char *) "self",(char *) "name", NULL
4273 };
4274
4275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4279 }
4280 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4281 {
4282 arg2 = wxString_in_helper(obj1);
4283 if (arg2 == NULL) SWIG_fail;
4284 temp2 = true;
4285 }
4286 {
4287 PyThreadState* __tstate = wxPyBeginAllowThreads();
4288 (arg1)->SetCharacterStyleName((wxString const &)*arg2);
4289 wxPyEndAllowThreads(__tstate);
4290 if (PyErr_Occurred()) SWIG_fail;
4291 }
4292 resultobj = SWIG_Py_Void();
4293 {
4294 if (temp2)
4295 delete arg2;
4296 }
4297 return resultobj;
4298 fail:
4299 {
4300 if (temp2)
4301 delete arg2;
4302 }
4303 return NULL;
4304 }
4305
4306
4307 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj = 0;
4309 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4310 wxString *arg2 = 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 bool temp2 = false ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 char * kwnames[] = {
4317 (char *) "self",(char *) "name", NULL
4318 };
4319
4320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4322 if (!SWIG_IsOK(res1)) {
4323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4324 }
4325 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4326 {
4327 arg2 = wxString_in_helper(obj1);
4328 if (arg2 == NULL) SWIG_fail;
4329 temp2 = true;
4330 }
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->SetParagraphStyleName((wxString const &)*arg2);
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_Py_Void();
4338 {
4339 if (temp2)
4340 delete arg2;
4341 }
4342 return resultobj;
4343 fail:
4344 {
4345 if (temp2)
4346 delete arg2;
4347 }
4348 return NULL;
4349 }
4350
4351
4352 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4353 PyObject *resultobj = 0;
4354 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4355 int arg2 ;
4356 void *argp1 = 0 ;
4357 int res1 = 0 ;
4358 int val2 ;
4359 int ecode2 = 0 ;
4360 PyObject * obj0 = 0 ;
4361 PyObject * obj1 = 0 ;
4362 char * kwnames[] = {
4363 (char *) "self",(char *) "spacing", NULL
4364 };
4365
4366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail;
4367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4368 if (!SWIG_IsOK(res1)) {
4369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4370 }
4371 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4372 ecode2 = SWIG_AsVal_int(obj1, &val2);
4373 if (!SWIG_IsOK(ecode2)) {
4374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'");
4375 }
4376 arg2 = static_cast< int >(val2);
4377 {
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 (arg1)->SetParagraphSpacingAfter(arg2);
4380 wxPyEndAllowThreads(__tstate);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 resultobj = SWIG_Py_Void();
4384 return resultobj;
4385 fail:
4386 return NULL;
4387 }
4388
4389
4390 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4391 PyObject *resultobj = 0;
4392 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4393 int arg2 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 int val2 ;
4397 int ecode2 = 0 ;
4398 PyObject * obj0 = 0 ;
4399 PyObject * obj1 = 0 ;
4400 char * kwnames[] = {
4401 (char *) "self",(char *) "spacing", NULL
4402 };
4403
4404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail;
4405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4406 if (!SWIG_IsOK(res1)) {
4407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4408 }
4409 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4410 ecode2 = SWIG_AsVal_int(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'");
4413 }
4414 arg2 = static_cast< int >(val2);
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 (arg1)->SetParagraphSpacingBefore(arg2);
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 resultobj = SWIG_Py_Void();
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj = 0;
4430 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4431 int arg2 ;
4432 void *argp1 = 0 ;
4433 int res1 = 0 ;
4434 int val2 ;
4435 int ecode2 = 0 ;
4436 PyObject * obj0 = 0 ;
4437 PyObject * obj1 = 0 ;
4438 char * kwnames[] = {
4439 (char *) "self",(char *) "spacing", NULL
4440 };
4441
4442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
4443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4446 }
4447 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4448 ecode2 = SWIG_AsVal_int(obj1, &val2);
4449 if (!SWIG_IsOK(ecode2)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'");
4451 }
4452 arg2 = static_cast< int >(val2);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 (arg1)->SetLineSpacing(arg2);
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_Py_Void();
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj = 0;
4468 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4469 int arg2 ;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 int val2 ;
4473 int ecode2 = 0 ;
4474 PyObject * obj0 = 0 ;
4475 PyObject * obj1 = 0 ;
4476 char * kwnames[] = {
4477 (char *) "self",(char *) "style", NULL
4478 };
4479
4480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4482 if (!SWIG_IsOK(res1)) {
4483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4484 }
4485 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4486 ecode2 = SWIG_AsVal_int(obj1, &val2);
4487 if (!SWIG_IsOK(ecode2)) {
4488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'");
4489 }
4490 arg2 = static_cast< int >(val2);
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 (arg1)->SetBulletStyle(arg2);
4494 wxPyEndAllowThreads(__tstate);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 resultobj = SWIG_Py_Void();
4498 return resultobj;
4499 fail:
4500 return NULL;
4501 }
4502
4503
4504 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4505 PyObject *resultobj = 0;
4506 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4507 int arg2 ;
4508 void *argp1 = 0 ;
4509 int res1 = 0 ;
4510 int val2 ;
4511 int ecode2 = 0 ;
4512 PyObject * obj0 = 0 ;
4513 PyObject * obj1 = 0 ;
4514 char * kwnames[] = {
4515 (char *) "self",(char *) "n", NULL
4516 };
4517
4518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail;
4519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4520 if (!SWIG_IsOK(res1)) {
4521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4522 }
4523 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4524 ecode2 = SWIG_AsVal_int(obj1, &val2);
4525 if (!SWIG_IsOK(ecode2)) {
4526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'");
4527 }
4528 arg2 = static_cast< int >(val2);
4529 {
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 (arg1)->SetBulletNumber(arg2);
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 resultobj = SWIG_Py_Void();
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4543 PyObject *resultobj = 0;
4544 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4545 wxChar arg2 ;
4546 void *argp1 = 0 ;
4547 int res1 = 0 ;
4548 void *argp2 ;
4549 int res2 = 0 ;
4550 PyObject * obj0 = 0 ;
4551 PyObject * obj1 = 0 ;
4552 char * kwnames[] = {
4553 (char *) "self",(char *) "symbol", NULL
4554 };
4555
4556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail;
4557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4558 if (!SWIG_IsOK(res1)) {
4559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4560 }
4561 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4562 {
4563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0);
4564 if (!SWIG_IsOK(res2)) {
4565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4566 }
4567 if (!argp2) {
4568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4569 } else {
4570 wxChar * temp = reinterpret_cast< wxChar * >(argp2);
4571 arg2 = *temp;
4572 if (SWIG_IsNewObj(res2)) delete temp;
4573 }
4574 }
4575 {
4576 PyThreadState* __tstate = wxPyBeginAllowThreads();
4577 (arg1)->SetBulletSymbol(arg2);
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 resultobj = SWIG_Py_Void();
4582 return resultobj;
4583 fail:
4584 return NULL;
4585 }
4586
4587
4588 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4589 PyObject *resultobj = 0;
4590 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4591 wxColour *result = 0 ;
4592 void *argp1 = 0 ;
4593 int res1 = 0 ;
4594 PyObject *swig_obj[1] ;
4595
4596 if (!args) SWIG_fail;
4597 swig_obj[0] = args;
4598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4599 if (!SWIG_IsOK(res1)) {
4600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4601 }
4602 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 {
4606 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour();
4607 result = (wxColour *) &_result_ref;
4608 }
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4613 return resultobj;
4614 fail:
4615 return NULL;
4616 }
4617
4618
4619 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4622 wxColour *result = 0 ;
4623 void *argp1 = 0 ;
4624 int res1 = 0 ;
4625 PyObject *swig_obj[1] ;
4626
4627 if (!args) SWIG_fail;
4628 swig_obj[0] = args;
4629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4630 if (!SWIG_IsOK(res1)) {
4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4632 }
4633 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4634 {
4635 PyThreadState* __tstate = wxPyBeginAllowThreads();
4636 {
4637 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour();
4638 result = (wxColour *) &_result_ref;
4639 }
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4644 return resultobj;
4645 fail:
4646 return NULL;
4647 }
4648
4649
4650 SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4651 PyObject *resultobj = 0;
4652 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4653 wxTextAttrAlignment result;
4654 void *argp1 = 0 ;
4655 int res1 = 0 ;
4656 PyObject *swig_obj[1] ;
4657
4658 if (!args) SWIG_fail;
4659 swig_obj[0] = args;
4660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4661 if (!SWIG_IsOK(res1)) {
4662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4663 }
4664 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment();
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 resultobj = SWIG_From_int(static_cast< int >(result));
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4681 wxArrayInt *result = 0 ;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4691 }
4692 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 {
4696 wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs();
4697 result = (wxArrayInt *) &_result_ref;
4698 }
4699 wxPyEndAllowThreads(__tstate);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 {
4703 resultobj = PyList_New(0);
4704 size_t idx;
4705 for (idx = 0; idx < result->GetCount(); idx += 1) {
4706 PyObject* val = PyInt_FromLong( result->Item(idx) );
4707 PyList_Append(resultobj, val);
4708 Py_DECREF(val);
4709 }
4710 }
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4718 PyObject *resultobj = 0;
4719 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4720 long result;
4721 void *argp1 = 0 ;
4722 int res1 = 0 ;
4723 PyObject *swig_obj[1] ;
4724
4725 if (!args) SWIG_fail;
4726 swig_obj[0] = args;
4727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4728 if (!SWIG_IsOK(res1)) {
4729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4730 }
4731 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent();
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 resultobj = SWIG_From_long(static_cast< long >(result));
4739 return resultobj;
4740 fail:
4741 return NULL;
4742 }
4743
4744
4745 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4746 PyObject *resultobj = 0;
4747 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4748 long result;
4749 void *argp1 = 0 ;
4750 int res1 = 0 ;
4751 PyObject *swig_obj[1] ;
4752
4753 if (!args) SWIG_fail;
4754 swig_obj[0] = args;
4755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4756 if (!SWIG_IsOK(res1)) {
4757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4758 }
4759 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent();
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 resultobj = SWIG_From_long(static_cast< long >(result));
4767 return resultobj;
4768 fail:
4769 return NULL;
4770 }
4771
4772
4773 SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4774 PyObject *resultobj = 0;
4775 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4776 long result;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 PyObject *swig_obj[1] ;
4780
4781 if (!args) SWIG_fail;
4782 swig_obj[0] = args;
4783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4786 }
4787 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent();
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_From_long(static_cast< long >(result));
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4804 long result;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4814 }
4815 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (long)((wxRichTextAttr const *)arg1)->GetFlags();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_From_long(static_cast< long >(result));
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4830 PyObject *resultobj = 0;
4831 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4832 int result;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 PyObject *swig_obj[1] ;
4836
4837 if (!args) SWIG_fail;
4838 swig_obj[0] = args;
4839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4840 if (!SWIG_IsOK(res1)) {
4841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4842 }
4843 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (int)((wxRichTextAttr const *)arg1)->GetFontSize();
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_From_int(static_cast< int >(result));
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4858 PyObject *resultobj = 0;
4859 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4860 int result;
4861 void *argp1 = 0 ;
4862 int res1 = 0 ;
4863 PyObject *swig_obj[1] ;
4864
4865 if (!args) SWIG_fail;
4866 swig_obj[0] = args;
4867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4868 if (!SWIG_IsOK(res1)) {
4869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4870 }
4871 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4872 {
4873 PyThreadState* __tstate = wxPyBeginAllowThreads();
4874 result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle();
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_From_int(static_cast< int >(result));
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *resultobj = 0;
4887 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4888 int result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 PyObject *swig_obj[1] ;
4892
4893 if (!args) SWIG_fail;
4894 swig_obj[0] = args;
4895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4898 }
4899 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 resultobj = SWIG_From_int(static_cast< int >(result));
4907 return resultobj;
4908 fail:
4909 return NULL;
4910 }
4911
4912
4913 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4914 PyObject *resultobj = 0;
4915 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4916 bool result;
4917 void *argp1 = 0 ;
4918 int res1 = 0 ;
4919 PyObject *swig_obj[1] ;
4920
4921 if (!args) SWIG_fail;
4922 swig_obj[0] = args;
4923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4924 if (!SWIG_IsOK(res1)) {
4925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4926 }
4927 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined();
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 {
4935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4936 }
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4944 PyObject *resultobj = 0;
4945 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4946 wxString *result = 0 ;
4947 void *argp1 = 0 ;
4948 int res1 = 0 ;
4949 PyObject *swig_obj[1] ;
4950
4951 if (!args) SWIG_fail;
4952 swig_obj[0] = args;
4953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4954 if (!SWIG_IsOK(res1)) {
4955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4956 }
4957 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 {
4961 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName();
4962 result = (wxString *) &_result_ref;
4963 }
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 {
4968 #if wxUSE_UNICODE
4969 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4970 #else
4971 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4972 #endif
4973 }
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4981 PyObject *resultobj = 0;
4982 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4983 wxString *result = 0 ;
4984 void *argp1 = 0 ;
4985 int res1 = 0 ;
4986 PyObject *swig_obj[1] ;
4987
4988 if (!args) SWIG_fail;
4989 swig_obj[0] = args;
4990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4991 if (!SWIG_IsOK(res1)) {
4992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4993 }
4994 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4995 {
4996 PyThreadState* __tstate = wxPyBeginAllowThreads();
4997 {
4998 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName();
4999 result = (wxString *) &_result_ref;
5000 }
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 {
5005 #if wxUSE_UNICODE
5006 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5007 #else
5008 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5009 #endif
5010 }
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5020 wxString *result = 0 ;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5030 }
5031 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 {
5035 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName();
5036 result = (wxString *) &_result_ref;
5037 }
5038 wxPyEndAllowThreads(__tstate);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 {
5042 #if wxUSE_UNICODE
5043 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5044 #else
5045 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5046 #endif
5047 }
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5055 PyObject *resultobj = 0;
5056 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5057 int result;
5058 void *argp1 = 0 ;
5059 int res1 = 0 ;
5060 PyObject *swig_obj[1] ;
5061
5062 if (!args) SWIG_fail;
5063 swig_obj[0] = args;
5064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5065 if (!SWIG_IsOK(res1)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5067 }
5068 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5069 {
5070 PyThreadState* __tstate = wxPyBeginAllowThreads();
5071 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter();
5072 wxPyEndAllowThreads(__tstate);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 resultobj = SWIG_From_int(static_cast< int >(result));
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5083 PyObject *resultobj = 0;
5084 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5085 int result;
5086 void *argp1 = 0 ;
5087 int res1 = 0 ;
5088 PyObject *swig_obj[1] ;
5089
5090 if (!args) SWIG_fail;
5091 swig_obj[0] = args;
5092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5093 if (!SWIG_IsOK(res1)) {
5094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5095 }
5096 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5097 {
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore();
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_From_int(static_cast< int >(result));
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5111 PyObject *resultobj = 0;
5112 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5113 int result;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 PyObject *swig_obj[1] ;
5117
5118 if (!args) SWIG_fail;
5119 swig_obj[0] = args;
5120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5121 if (!SWIG_IsOK(res1)) {
5122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5123 }
5124 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing();
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_From_int(static_cast< int >(result));
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5141 int result;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 PyObject *swig_obj[1] ;
5145
5146 if (!args) SWIG_fail;
5147 swig_obj[0] = args;
5148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5149 if (!SWIG_IsOK(res1)) {
5150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5151 }
5152 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle();
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_From_int(static_cast< int >(result));
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5169 int result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5179 }
5180 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_From_int(static_cast< int >(result));
5188 return resultobj;
5189 fail:
5190 return NULL;
5191 }
5192
5193
5194 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5197 wxChar result;
5198 void *argp1 = 0 ;
5199 int res1 = 0 ;
5200 PyObject *swig_obj[1] ;
5201
5202 if (!args) SWIG_fail;
5203 swig_obj[0] = args;
5204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5205 if (!SWIG_IsOK(res1)) {
5206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5207 }
5208 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol();
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 );
5216 return resultobj;
5217 fail:
5218 return NULL;
5219 }
5220
5221
5222 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5223 PyObject *resultobj = 0;
5224 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5225 bool result;
5226 void *argp1 = 0 ;
5227 int res1 = 0 ;
5228 PyObject *swig_obj[1] ;
5229
5230 if (!args) SWIG_fail;
5231 swig_obj[0] = args;
5232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5233 if (!SWIG_IsOK(res1)) {
5234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5235 }
5236 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour();
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 {
5244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5245 }
5246 return resultobj;
5247 fail:
5248 return NULL;
5249 }
5250
5251
5252 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *resultobj = 0;
5254 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5255 bool result;
5256 void *argp1 = 0 ;
5257 int res1 = 0 ;
5258 PyObject *swig_obj[1] ;
5259
5260 if (!args) SWIG_fail;
5261 swig_obj[0] = args;
5262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5265 }
5266 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour();
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 {
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 }
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5283 PyObject *resultobj = 0;
5284 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5285 bool result;
5286 void *argp1 = 0 ;
5287 int res1 = 0 ;
5288 PyObject *swig_obj[1] ;
5289
5290 if (!args) SWIG_fail;
5291 swig_obj[0] = args;
5292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5295 }
5296 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment();
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 {
5304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5305 }
5306 return resultobj;
5307 fail:
5308 return NULL;
5309 }
5310
5311
5312 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5313 PyObject *resultobj = 0;
5314 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5315 bool result;
5316 void *argp1 = 0 ;
5317 int res1 = 0 ;
5318 PyObject *swig_obj[1] ;
5319
5320 if (!args) SWIG_fail;
5321 swig_obj[0] = args;
5322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5323 if (!SWIG_IsOK(res1)) {
5324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5325 }
5326 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5327 {
5328 PyThreadState* __tstate = wxPyBeginAllowThreads();
5329 result = (bool)((wxRichTextAttr const *)arg1)->HasTabs();
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 {
5334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5335 }
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5343 PyObject *resultobj = 0;
5344 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5345 bool result;
5346 void *argp1 = 0 ;
5347 int res1 = 0 ;
5348 PyObject *swig_obj[1] ;
5349
5350 if (!args) SWIG_fail;
5351 swig_obj[0] = args;
5352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5355 }
5356 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent();
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 return resultobj;
5367 fail:
5368 return NULL;
5369 }
5370
5371
5372 SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5373 PyObject *resultobj = 0;
5374 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5375 bool result;
5376 void *argp1 = 0 ;
5377 int res1 = 0 ;
5378 PyObject *swig_obj[1] ;
5379
5380 if (!args) SWIG_fail;
5381 swig_obj[0] = args;
5382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5383 if (!SWIG_IsOK(res1)) {
5384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5385 }
5386 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent();
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 {
5394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5395 }
5396 return resultobj;
5397 fail:
5398 return NULL;
5399 }
5400
5401
5402 SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5403 PyObject *resultobj = 0;
5404 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5405 bool result;
5406 void *argp1 = 0 ;
5407 int res1 = 0 ;
5408 PyObject *swig_obj[1] ;
5409
5410 if (!args) SWIG_fail;
5411 swig_obj[0] = args;
5412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5415 }
5416 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 result = (bool)((wxRichTextAttr const *)arg1)->HasWeight();
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 {
5424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5425 }
5426 return resultobj;
5427 fail:
5428 return NULL;
5429 }
5430
5431
5432 SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5433 PyObject *resultobj = 0;
5434 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5435 bool result;
5436 void *argp1 = 0 ;
5437 int res1 = 0 ;
5438 PyObject *swig_obj[1] ;
5439
5440 if (!args) SWIG_fail;
5441 swig_obj[0] = args;
5442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5443 if (!SWIG_IsOK(res1)) {
5444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5445 }
5446 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5447 {
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 result = (bool)((wxRichTextAttr const *)arg1)->HasSize();
5450 wxPyEndAllowThreads(__tstate);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 {
5454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5455 }
5456 return resultobj;
5457 fail:
5458 return NULL;
5459 }
5460
5461
5462 SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5463 PyObject *resultobj = 0;
5464 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5465 bool result;
5466 void *argp1 = 0 ;
5467 int res1 = 0 ;
5468 PyObject *swig_obj[1] ;
5469
5470 if (!args) SWIG_fail;
5471 swig_obj[0] = args;
5472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5473 if (!SWIG_IsOK(res1)) {
5474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5475 }
5476 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5477 {
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 result = (bool)((wxRichTextAttr const *)arg1)->HasItalic();
5480 wxPyEndAllowThreads(__tstate);
5481 if (PyErr_Occurred()) SWIG_fail;
5482 }
5483 {
5484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5485 }
5486 return resultobj;
5487 fail:
5488 return NULL;
5489 }
5490
5491
5492 SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5493 PyObject *resultobj = 0;
5494 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5495 bool result;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 PyObject *swig_obj[1] ;
5499
5500 if (!args) SWIG_fail;
5501 swig_obj[0] = args;
5502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5503 if (!SWIG_IsOK(res1)) {
5504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5505 }
5506 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined();
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 {
5514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5515 }
5516 return resultobj;
5517 fail:
5518 return NULL;
5519 }
5520
5521
5522 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5523 PyObject *resultobj = 0;
5524 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5525 bool result;
5526 void *argp1 = 0 ;
5527 int res1 = 0 ;
5528 PyObject *swig_obj[1] ;
5529
5530 if (!args) SWIG_fail;
5531 swig_obj[0] = args;
5532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5533 if (!SWIG_IsOK(res1)) {
5534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5535 }
5536 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName();
5540 wxPyEndAllowThreads(__tstate);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 {
5544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5545 }
5546 return resultobj;
5547 fail:
5548 return NULL;
5549 }
5550
5551
5552 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5553 PyObject *resultobj = 0;
5554 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5555 bool result;
5556 void *argp1 = 0 ;
5557 int res1 = 0 ;
5558 PyObject *swig_obj[1] ;
5559
5560 if (!args) SWIG_fail;
5561 swig_obj[0] = args;
5562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5563 if (!SWIG_IsOK(res1)) {
5564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5565 }
5566 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5567 {
5568 PyThreadState* __tstate = wxPyBeginAllowThreads();
5569 result = (bool)((wxRichTextAttr const *)arg1)->HasFont();
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 {
5574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5575 }
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5583 PyObject *resultobj = 0;
5584 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5585 bool result;
5586 void *argp1 = 0 ;
5587 int res1 = 0 ;
5588 PyObject *swig_obj[1] ;
5589
5590 if (!args) SWIG_fail;
5591 swig_obj[0] = args;
5592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5593 if (!SWIG_IsOK(res1)) {
5594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5595 }
5596 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter();
5600 wxPyEndAllowThreads(__tstate);
5601 if (PyErr_Occurred()) SWIG_fail;
5602 }
5603 {
5604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5605 }
5606 return resultobj;
5607 fail:
5608 return NULL;
5609 }
5610
5611
5612 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5613 PyObject *resultobj = 0;
5614 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5615 bool result;
5616 void *argp1 = 0 ;
5617 int res1 = 0 ;
5618 PyObject *swig_obj[1] ;
5619
5620 if (!args) SWIG_fail;
5621 swig_obj[0] = args;
5622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5623 if (!SWIG_IsOK(res1)) {
5624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5625 }
5626 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore();
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 {
5634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5635 }
5636 return resultobj;
5637 fail:
5638 return NULL;
5639 }
5640
5641
5642 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5643 PyObject *resultobj = 0;
5644 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5645 bool result;
5646 void *argp1 = 0 ;
5647 int res1 = 0 ;
5648 PyObject *swig_obj[1] ;
5649
5650 if (!args) SWIG_fail;
5651 swig_obj[0] = args;
5652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5653 if (!SWIG_IsOK(res1)) {
5654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5655 }
5656 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5657 {
5658 PyThreadState* __tstate = wxPyBeginAllowThreads();
5659 result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing();
5660 wxPyEndAllowThreads(__tstate);
5661 if (PyErr_Occurred()) SWIG_fail;
5662 }
5663 {
5664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5665 }
5666 return resultobj;
5667 fail:
5668 return NULL;
5669 }
5670
5671
5672 SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5673 PyObject *resultobj = 0;
5674 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5675 bool result;
5676 void *argp1 = 0 ;
5677 int res1 = 0 ;
5678 PyObject *swig_obj[1] ;
5679
5680 if (!args) SWIG_fail;
5681 swig_obj[0] = args;
5682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5683 if (!SWIG_IsOK(res1)) {
5684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5685 }
5686 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5687 {
5688 PyThreadState* __tstate = wxPyBeginAllowThreads();
5689 result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName();
5690 wxPyEndAllowThreads(__tstate);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 {
5694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5695 }
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5705 bool result;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5715 }
5716 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName();
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 {
5724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5725 }
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5733 PyObject *resultobj = 0;
5734 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5735 bool result;
5736 void *argp1 = 0 ;
5737 int res1 = 0 ;
5738 PyObject *swig_obj[1] ;
5739
5740 if (!args) SWIG_fail;
5741 swig_obj[0] = args;
5742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5743 if (!SWIG_IsOK(res1)) {
5744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5745 }
5746 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5747 {
5748 PyThreadState* __tstate = wxPyBeginAllowThreads();
5749 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle();
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 {
5754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5755 }
5756 return resultobj;
5757 fail:
5758 return NULL;
5759 }
5760
5761
5762 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *resultobj = 0;
5764 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5765 bool result;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 PyObject *swig_obj[1] ;
5769
5770 if (!args) SWIG_fail;
5771 swig_obj[0] = args;
5772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5773 if (!SWIG_IsOK(res1)) {
5774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5775 }
5776 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5777 {
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber();
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 {
5784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5785 }
5786 return resultobj;
5787 fail:
5788 return NULL;
5789 }
5790
5791
5792 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5793 PyObject *resultobj = 0;
5794 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5795 bool result;
5796 void *argp1 = 0 ;
5797 int res1 = 0 ;
5798 PyObject *swig_obj[1] ;
5799
5800 if (!args) SWIG_fail;
5801 swig_obj[0] = args;
5802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5803 if (!SWIG_IsOK(res1)) {
5804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5805 }
5806 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5807 {
5808 PyThreadState* __tstate = wxPyBeginAllowThreads();
5809 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol();
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_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5823 PyObject *resultobj = 0;
5824 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5825 long arg2 ;
5826 bool result;
5827 void *argp1 = 0 ;
5828 int res1 = 0 ;
5829 long val2 ;
5830 int ecode2 = 0 ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "flag", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5841 }
5842 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5843 ecode2 = SWIG_AsVal_long(obj1, &val2);
5844 if (!SWIG_IsOK(ecode2)) {
5845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
5846 }
5847 arg2 = static_cast< long >(val2);
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 {
5855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5856 }
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5864 PyObject *resultobj = 0;
5865 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5866 bool result;
5867 void *argp1 = 0 ;
5868 int res1 = 0 ;
5869 PyObject *swig_obj[1] ;
5870
5871 if (!args) SWIG_fail;
5872 swig_obj[0] = args;
5873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5874 if (!SWIG_IsOK(res1)) {
5875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5876 }
5877 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle();
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 {
5885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5886 }
5887 return resultobj;
5888 fail:
5889 return NULL;
5890 }
5891
5892
5893 SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5894 PyObject *resultobj = 0;
5895 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5896 bool result;
5897 void *argp1 = 0 ;
5898 int res1 = 0 ;
5899 PyObject *swig_obj[1] ;
5900
5901 if (!args) SWIG_fail;
5902 swig_obj[0] = args;
5903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5904 if (!SWIG_IsOK(res1)) {
5905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5906 }
5907 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle();
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5916 }
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5926 bool result;
5927 void *argp1 = 0 ;
5928 int res1 = 0 ;
5929 PyObject *swig_obj[1] ;
5930
5931 if (!args) SWIG_fail;
5932 swig_obj[0] = args;
5933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5934 if (!SWIG_IsOK(res1)) {
5935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5936 }
5937 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 result = (bool)((wxRichTextAttr const *)arg1)->IsDefault();
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 {
5945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5946 }
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5954 PyObject *obj;
5955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5956 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj));
5957 return SWIG_Py_Void();
5958 }
5959
5960 SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5961 return SWIG_Python_InitShadowInstance(args);
5962 }
5963
5964 SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5965 PyObject *resultobj = 0;
5966 wxWindow *arg1 = (wxWindow *) 0 ;
5967 int arg2 = (int) -1 ;
5968 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5969 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5970 wxSize const &arg4_defvalue = wxDefaultSize ;
5971 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5972 long arg5 = (long) wxRE_MULTILINE ;
5973 wxRichTextCtrl *result = 0 ;
5974 void *argp1 = 0 ;
5975 int res1 = 0 ;
5976 int val2 ;
5977 int ecode2 = 0 ;
5978 wxPoint temp3 ;
5979 wxSize temp4 ;
5980 long val5 ;
5981 int ecode5 = 0 ;
5982 PyObject * obj0 = 0 ;
5983 PyObject * obj1 = 0 ;
5984 PyObject * obj2 = 0 ;
5985 PyObject * obj3 = 0 ;
5986 PyObject * obj4 = 0 ;
5987 char * kwnames[] = {
5988 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
5989 };
5990
5991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
5992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
5995 }
5996 arg1 = reinterpret_cast< wxWindow * >(argp1);
5997 if (obj1) {
5998 ecode2 = SWIG_AsVal_int(obj1, &val2);
5999 if (!SWIG_IsOK(ecode2)) {
6000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'");
6001 }
6002 arg2 = static_cast< int >(val2);
6003 }
6004 if (obj2) {
6005 {
6006 arg3 = &temp3;
6007 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6008 }
6009 }
6010 if (obj3) {
6011 {
6012 arg4 = &temp4;
6013 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6014 }
6015 }
6016 if (obj4) {
6017 ecode5 = SWIG_AsVal_long(obj4, &val5);
6018 if (!SWIG_IsOK(ecode5)) {
6019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_RichTextCtrl" "', expected argument " "5"" of type '" "long""'");
6020 }
6021 arg5 = static_cast< long >(val5);
6022 }
6023 {
6024 if (!wxPyCheckForApp()) SWIG_fail;
6025 PyThreadState* __tstate = wxPyBeginAllowThreads();
6026 result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 );
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6038 PyObject *resultobj = 0;
6039 wxRichTextCtrl *result = 0 ;
6040
6041 if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail;
6042 {
6043 if (!wxPyCheckForApp()) SWIG_fail;
6044 PyThreadState* __tstate = wxPyBeginAllowThreads();
6045 result = (wxRichTextCtrl *)new wxRichTextCtrl();
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 );
6050 return resultobj;
6051 fail:
6052 return NULL;
6053 }
6054
6055
6056 SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj = 0;
6058 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6059 wxWindow *arg2 = (wxWindow *) 0 ;
6060 int arg3 = (int) -1 ;
6061 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6062 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6063 wxSize const &arg5_defvalue = wxDefaultSize ;
6064 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6065 long arg6 = (long) wxRE_MULTILINE ;
6066 bool result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 void *argp2 = 0 ;
6070 int res2 = 0 ;
6071 int val3 ;
6072 int ecode3 = 0 ;
6073 wxPoint temp4 ;
6074 wxSize temp5 ;
6075 long val6 ;
6076 int ecode6 = 0 ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 PyObject * obj2 = 0 ;
6080 PyObject * obj3 = 0 ;
6081 PyObject * obj4 = 0 ;
6082 PyObject * obj5 = 0 ;
6083 char * kwnames[] = {
6084 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
6085 };
6086
6087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6089 if (!SWIG_IsOK(res1)) {
6090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6091 }
6092 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6093 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6094 if (!SWIG_IsOK(res2)) {
6095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6096 }
6097 arg2 = reinterpret_cast< wxWindow * >(argp2);
6098 if (obj2) {
6099 ecode3 = SWIG_AsVal_int(obj2, &val3);
6100 if (!SWIG_IsOK(ecode3)) {
6101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
6102 }
6103 arg3 = static_cast< int >(val3);
6104 }
6105 if (obj3) {
6106 {
6107 arg4 = &temp4;
6108 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6109 }
6110 }
6111 if (obj4) {
6112 {
6113 arg5 = &temp5;
6114 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6115 }
6116 }
6117 if (obj5) {
6118 ecode6 = SWIG_AsVal_long(obj5, &val6);
6119 if (!SWIG_IsOK(ecode6)) {
6120 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RichTextCtrl_Create" "', expected argument " "6"" of type '" "long""'");
6121 }
6122 arg6 = static_cast< long >(val6);
6123 }
6124 {
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 {
6131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6132 }
6133 return resultobj;
6134 fail:
6135 return NULL;
6136 }
6137
6138
6139 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 PyObject *resultobj = 0;
6141 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6142 wxString result;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 PyObject *swig_obj[1] ;
6146
6147 if (!args) SWIG_fail;
6148 swig_obj[0] = args;
6149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6152 }
6153 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6154 {
6155 PyThreadState* __tstate = wxPyBeginAllowThreads();
6156 result = ((wxRichTextCtrl const *)arg1)->GetValue();
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 {
6161 #if wxUSE_UNICODE
6162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6163 #else
6164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6165 #endif
6166 }
6167 return resultobj;
6168 fail:
6169 return NULL;
6170 }
6171
6172
6173 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6174 PyObject *resultobj = 0;
6175 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6176 wxString *arg2 = 0 ;
6177 void *argp1 = 0 ;
6178 int res1 = 0 ;
6179 bool temp2 = false ;
6180 PyObject * obj0 = 0 ;
6181 PyObject * obj1 = 0 ;
6182 char * kwnames[] = {
6183 (char *) "self",(char *) "value", NULL
6184 };
6185
6186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
6187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6188 if (!SWIG_IsOK(res1)) {
6189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6190 }
6191 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6192 {
6193 arg2 = wxString_in_helper(obj1);
6194 if (arg2 == NULL) SWIG_fail;
6195 temp2 = true;
6196 }
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 (arg1)->SetValue((wxString const &)*arg2);
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_Py_Void();
6204 {
6205 if (temp2)
6206 delete arg2;
6207 }
6208 return resultobj;
6209 fail:
6210 {
6211 if (temp2)
6212 delete arg2;
6213 }
6214 return NULL;
6215 }
6216
6217
6218 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj = 0;
6220 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6221 long arg2 ;
6222 long arg3 ;
6223 wxString result;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 long val2 ;
6227 int ecode2 = 0 ;
6228 long val3 ;
6229 int ecode3 = 0 ;
6230 PyObject * obj0 = 0 ;
6231 PyObject * obj1 = 0 ;
6232 PyObject * obj2 = 0 ;
6233 char * kwnames[] = {
6234 (char *) "self",(char *) "from",(char *) "to", NULL
6235 };
6236
6237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6239 if (!SWIG_IsOK(res1)) {
6240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6241 }
6242 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6243 ecode2 = SWIG_AsVal_long(obj1, &val2);
6244 if (!SWIG_IsOK(ecode2)) {
6245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
6246 }
6247 arg2 = static_cast< long >(val2);
6248 ecode3 = SWIG_AsVal_long(obj2, &val3);
6249 if (!SWIG_IsOK(ecode3)) {
6250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
6251 }
6252 arg3 = static_cast< long >(val3);
6253 {
6254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6255 result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3);
6256 wxPyEndAllowThreads(__tstate);
6257 if (PyErr_Occurred()) SWIG_fail;
6258 }
6259 {
6260 #if wxUSE_UNICODE
6261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6262 #else
6263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6264 #endif
6265 }
6266 return resultobj;
6267 fail:
6268 return NULL;
6269 }
6270
6271
6272 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6273 PyObject *resultobj = 0;
6274 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6275 long arg2 ;
6276 int result;
6277 void *argp1 = 0 ;
6278 int res1 = 0 ;
6279 long val2 ;
6280 int ecode2 = 0 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 char * kwnames[] = {
6284 (char *) "self",(char *) "lineNo", NULL
6285 };
6286
6287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
6288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6291 }
6292 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6293 ecode2 = SWIG_AsVal_long(obj1, &val2);
6294 if (!SWIG_IsOK(ecode2)) {
6295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
6296 }
6297 arg2 = static_cast< long >(val2);
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2);
6301 wxPyEndAllowThreads(__tstate);
6302 if (PyErr_Occurred()) SWIG_fail;
6303 }
6304 resultobj = SWIG_From_int(static_cast< int >(result));
6305 return resultobj;
6306 fail:
6307 return NULL;
6308 }
6309
6310
6311 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6312 PyObject *resultobj = 0;
6313 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6314 long arg2 ;
6315 wxString result;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 long val2 ;
6319 int ecode2 = 0 ;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 char * kwnames[] = {
6323 (char *) "self",(char *) "lineNo", NULL
6324 };
6325
6326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
6327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6328 if (!SWIG_IsOK(res1)) {
6329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6330 }
6331 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6332 ecode2 = SWIG_AsVal_long(obj1, &val2);
6333 if (!SWIG_IsOK(ecode2)) {
6334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
6335 }
6336 arg2 = static_cast< long >(val2);
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 {
6344 #if wxUSE_UNICODE
6345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6346 #else
6347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6348 #endif
6349 }
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6359 int result;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 PyObject *swig_obj[1] ;
6363
6364 if (!args) SWIG_fail;
6365 swig_obj[0] = args;
6366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6369 }
6370 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines();
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = SWIG_From_int(static_cast< int >(result));
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6385 PyObject *resultobj = 0;
6386 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6387 bool result;
6388 void *argp1 = 0 ;
6389 int res1 = 0 ;
6390 PyObject *swig_obj[1] ;
6391
6392 if (!args) SWIG_fail;
6393 swig_obj[0] = args;
6394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6395 if (!SWIG_IsOK(res1)) {
6396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6397 }
6398 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 result = (bool)((wxRichTextCtrl const *)arg1)->IsModified();
6402 wxPyEndAllowThreads(__tstate);
6403 if (PyErr_Occurred()) SWIG_fail;
6404 }
6405 {
6406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6407 }
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6415 PyObject *resultobj = 0;
6416 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6417 bool result;
6418 void *argp1 = 0 ;
6419 int res1 = 0 ;
6420 PyObject *swig_obj[1] ;
6421
6422 if (!args) SWIG_fail;
6423 swig_obj[0] = args;
6424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6425 if (!SWIG_IsOK(res1)) {
6426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6427 }
6428 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable();
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6437 }
6438 return resultobj;
6439 fail:
6440 return NULL;
6441 }
6442
6443
6444 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6445 PyObject *resultobj = 0;
6446 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6447 bool result;
6448 void *argp1 = 0 ;
6449 int res1 = 0 ;
6450 PyObject *swig_obj[1] ;
6451
6452 if (!args) SWIG_fail;
6453 swig_obj[0] = args;
6454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6455 if (!SWIG_IsOK(res1)) {
6456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6457 }
6458 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine();
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 {
6466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6467 }
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6507 long *arg2 = (long *) 0 ;
6508 long *arg3 = (long *) 0 ;
6509 void *argp1 = 0 ;
6510 int res1 = 0 ;
6511 long temp2 ;
6512 int res2 = SWIG_TMPOBJ ;
6513 long temp3 ;
6514 int res3 = SWIG_TMPOBJ ;
6515 PyObject *swig_obj[1] ;
6516
6517 arg2 = &temp2;
6518 arg3 = &temp3;
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3);
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 resultobj = SWIG_Py_Void();
6533 if (SWIG_IsTmpObj(res2)) {
6534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6535 } else {
6536 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6538 }
6539 if (SWIG_IsTmpObj(res3)) {
6540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6541 } else {
6542 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6544 }
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6552 PyObject *resultobj = 0;
6553 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6554 wxString result;
6555 void *argp1 = 0 ;
6556 int res1 = 0 ;
6557 PyObject *swig_obj[1] ;
6558
6559 if (!args) SWIG_fail;
6560 swig_obj[0] = args;
6561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6562 if (!SWIG_IsOK(res1)) {
6563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6564 }
6565 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 result = ((wxRichTextCtrl const *)arg1)->GetStringSelection();
6569 wxPyEndAllowThreads(__tstate);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 {
6573 #if wxUSE_UNICODE
6574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6575 #else
6576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6577 #endif
6578 }
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6588 wxString result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = ((wxRichTextCtrl const *)arg1)->GetFilename();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 #if wxUSE_UNICODE
6608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6609 #else
6610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6611 #endif
6612 }
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6620 PyObject *resultobj = 0;
6621 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6622 wxString *arg2 = 0 ;
6623 void *argp1 = 0 ;
6624 int res1 = 0 ;
6625 bool temp2 = false ;
6626 PyObject * obj0 = 0 ;
6627 PyObject * obj1 = 0 ;
6628 char * kwnames[] = {
6629 (char *) "self",(char *) "filename", NULL
6630 };
6631
6632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail;
6633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6634 if (!SWIG_IsOK(res1)) {
6635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6636 }
6637 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6638 {
6639 arg2 = wxString_in_helper(obj1);
6640 if (arg2 == NULL) SWIG_fail;
6641 temp2 = true;
6642 }
6643 {
6644 PyThreadState* __tstate = wxPyBeginAllowThreads();
6645 (arg1)->SetFilename((wxString const &)*arg2);
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 resultobj = SWIG_Py_Void();
6650 {
6651 if (temp2)
6652 delete arg2;
6653 }
6654 return resultobj;
6655 fail:
6656 {
6657 if (temp2)
6658 delete arg2;
6659 }
6660 return NULL;
6661 }
6662
6663
6664 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6665 PyObject *resultobj = 0;
6666 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6667 long arg2 ;
6668 void *argp1 = 0 ;
6669 int res1 = 0 ;
6670 long val2 ;
6671 int ecode2 = 0 ;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674 char * kwnames[] = {
6675 (char *) "self",(char *) "threshold", NULL
6676 };
6677
6678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
6679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6680 if (!SWIG_IsOK(res1)) {
6681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6682 }
6683 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6684 ecode2 = SWIG_AsVal_long(obj1, &val2);
6685 if (!SWIG_IsOK(ecode2)) {
6686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'");
6687 }
6688 arg2 = static_cast< long >(val2);
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 (arg1)->SetDelayedLayoutThreshold(arg2);
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 resultobj = SWIG_Py_Void();
6696 return resultobj;
6697 fail:
6698 return NULL;
6699 }
6700
6701
6702 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6703 PyObject *resultobj = 0;
6704 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6705 long result;
6706 void *argp1 = 0 ;
6707 int res1 = 0 ;
6708 PyObject *swig_obj[1] ;
6709
6710 if (!args) SWIG_fail;
6711 swig_obj[0] = args;
6712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6713 if (!SWIG_IsOK(res1)) {
6714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6715 }
6716 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6717 {
6718 PyThreadState* __tstate = wxPyBeginAllowThreads();
6719 result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold();
6720 wxPyEndAllowThreads(__tstate);
6721 if (PyErr_Occurred()) SWIG_fail;
6722 }
6723 resultobj = SWIG_From_long(static_cast< long >(result));
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6731 PyObject *resultobj = 0;
6732 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6733 void *argp1 = 0 ;
6734 int res1 = 0 ;
6735 PyObject *swig_obj[1] ;
6736
6737 if (!args) SWIG_fail;
6738 swig_obj[0] = args;
6739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6740 if (!SWIG_IsOK(res1)) {
6741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6742 }
6743 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6744 {
6745 PyThreadState* __tstate = wxPyBeginAllowThreads();
6746 (arg1)->Clear();
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) SWIG_fail;
6749 }
6750 resultobj = SWIG_Py_Void();
6751 return resultobj;
6752 fail:
6753 return NULL;
6754 }
6755
6756
6757 SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj = 0;
6759 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6760 long arg2 ;
6761 long arg3 ;
6762 wxString *arg4 = 0 ;
6763 void *argp1 = 0 ;
6764 int res1 = 0 ;
6765 long val2 ;
6766 int ecode2 = 0 ;
6767 long val3 ;
6768 int ecode3 = 0 ;
6769 bool temp4 = false ;
6770 PyObject * obj0 = 0 ;
6771 PyObject * obj1 = 0 ;
6772 PyObject * obj2 = 0 ;
6773 PyObject * obj3 = 0 ;
6774 char * kwnames[] = {
6775 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6776 };
6777
6778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6780 if (!SWIG_IsOK(res1)) {
6781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6782 }
6783 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6784 ecode2 = SWIG_AsVal_long(obj1, &val2);
6785 if (!SWIG_IsOK(ecode2)) {
6786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
6787 }
6788 arg2 = static_cast< long >(val2);
6789 ecode3 = SWIG_AsVal_long(obj2, &val3);
6790 if (!SWIG_IsOK(ecode3)) {
6791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
6792 }
6793 arg3 = static_cast< long >(val3);
6794 {
6795 arg4 = wxString_in_helper(obj3);
6796 if (arg4 == NULL) SWIG_fail;
6797 temp4 = true;
6798 }
6799 {
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 resultobj = SWIG_Py_Void();
6806 {
6807 if (temp4)
6808 delete arg4;
6809 }
6810 return resultobj;
6811 fail:
6812 {
6813 if (temp4)
6814 delete arg4;
6815 }
6816 return NULL;
6817 }
6818
6819
6820 SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj = 0;
6822 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6823 long arg2 ;
6824 long arg3 ;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 long val2 ;
6828 int ecode2 = 0 ;
6829 long val3 ;
6830 int ecode3 = 0 ;
6831 PyObject * obj0 = 0 ;
6832 PyObject * obj1 = 0 ;
6833 PyObject * obj2 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "self",(char *) "from",(char *) "to", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6842 }
6843 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6844 ecode2 = SWIG_AsVal_long(obj1, &val2);
6845 if (!SWIG_IsOK(ecode2)) {
6846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
6847 }
6848 arg2 = static_cast< long >(val2);
6849 ecode3 = SWIG_AsVal_long(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
6852 }
6853 arg3 = static_cast< long >(val3);
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 (arg1)->Remove(arg2,arg3);
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 resultobj = SWIG_Py_Void();
6861 return resultobj;
6862 fail:
6863 return NULL;
6864 }
6865
6866
6867 SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj = 0;
6869 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6870 wxString *arg2 = 0 ;
6871 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6872 bool result;
6873 void *argp1 = 0 ;
6874 int res1 = 0 ;
6875 bool temp2 = false ;
6876 int val3 ;
6877 int ecode3 = 0 ;
6878 PyObject * obj0 = 0 ;
6879 PyObject * obj1 = 0 ;
6880 PyObject * obj2 = 0 ;
6881 char * kwnames[] = {
6882 (char *) "self",(char *) "file",(char *) "type", NULL
6883 };
6884
6885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6887 if (!SWIG_IsOK(res1)) {
6888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6889 }
6890 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6891 {
6892 arg2 = wxString_in_helper(obj1);
6893 if (arg2 == NULL) SWIG_fail;
6894 temp2 = true;
6895 }
6896 if (obj2) {
6897 ecode3 = SWIG_AsVal_int(obj2, &val3);
6898 if (!SWIG_IsOK(ecode3)) {
6899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
6900 }
6901 arg3 = static_cast< int >(val3);
6902 }
6903 {
6904 PyThreadState* __tstate = wxPyBeginAllowThreads();
6905 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6906 wxPyEndAllowThreads(__tstate);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 {
6910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6911 }
6912 {
6913 if (temp2)
6914 delete arg2;
6915 }
6916 return resultobj;
6917 fail:
6918 {
6919 if (temp2)
6920 delete arg2;
6921 }
6922 return NULL;
6923 }
6924
6925
6926 SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj = 0;
6928 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6929 wxString const &arg2_defvalue = wxPyEmptyString ;
6930 wxString *arg2 = (wxString *) &arg2_defvalue ;
6931 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6932 bool result;
6933 void *argp1 = 0 ;
6934 int res1 = 0 ;
6935 bool temp2 = false ;
6936 int val3 ;
6937 int ecode3 = 0 ;
6938 PyObject * obj0 = 0 ;
6939 PyObject * obj1 = 0 ;
6940 PyObject * obj2 = 0 ;
6941 char * kwnames[] = {
6942 (char *) "self",(char *) "file",(char *) "type", NULL
6943 };
6944
6945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6947 if (!SWIG_IsOK(res1)) {
6948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6949 }
6950 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6951 if (obj1) {
6952 {
6953 arg2 = wxString_in_helper(obj1);
6954 if (arg2 == NULL) SWIG_fail;
6955 temp2 = true;
6956 }
6957 }
6958 if (obj2) {
6959 ecode3 = SWIG_AsVal_int(obj2, &val3);
6960 if (!SWIG_IsOK(ecode3)) {
6961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
6962 }
6963 arg3 = static_cast< int >(val3);
6964 }
6965 {
6966 PyThreadState* __tstate = wxPyBeginAllowThreads();
6967 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 {
6975 if (temp2)
6976 delete arg2;
6977 }
6978 return resultobj;
6979 fail:
6980 {
6981 if (temp2)
6982 delete arg2;
6983 }
6984 return NULL;
6985 }
6986
6987
6988 SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6989 PyObject *resultobj = 0;
6990 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6991 void *argp1 = 0 ;
6992 int res1 = 0 ;
6993 PyObject *swig_obj[1] ;
6994
6995 if (!args) SWIG_fail;
6996 swig_obj[0] = args;
6997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6998 if (!SWIG_IsOK(res1)) {
6999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7000 }
7001 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 (arg1)->MarkDirty();
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_Py_Void();
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *resultobj = 0;
7017 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7018 void *argp1 = 0 ;
7019 int res1 = 0 ;
7020 PyObject *swig_obj[1] ;
7021
7022 if (!args) SWIG_fail;
7023 swig_obj[0] = args;
7024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7025 if (!SWIG_IsOK(res1)) {
7026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7027 }
7028 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7029 {
7030 PyThreadState* __tstate = wxPyBeginAllowThreads();
7031 (arg1)->DiscardEdits();
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_Py_Void();
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = 0;
7044 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7045 unsigned long arg2 ;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 unsigned long val2 ;
7049 int ecode2 = 0 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char * kwnames[] = {
7053 (char *) "self",(char *) "len", NULL
7054 };
7055
7056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7060 }
7061 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7062 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
7063 if (!SWIG_IsOK(ecode2)) {
7064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
7065 }
7066 arg2 = static_cast< unsigned long >(val2);
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 (arg1)->SetMaxLength(arg2);
7070 wxPyEndAllowThreads(__tstate);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 resultobj = SWIG_Py_Void();
7074 return resultobj;
7075 fail:
7076 return NULL;
7077 }
7078
7079
7080 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj = 0;
7082 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7083 wxString *arg2 = 0 ;
7084 void *argp1 = 0 ;
7085 int res1 = 0 ;
7086 bool temp2 = false ;
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char * kwnames[] = {
7090 (char *) "self",(char *) "text", NULL
7091 };
7092
7093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
7094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7095 if (!SWIG_IsOK(res1)) {
7096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7097 }
7098 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7099 {
7100 arg2 = wxString_in_helper(obj1);
7101 if (arg2 == NULL) SWIG_fail;
7102 temp2 = true;
7103 }
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 (arg1)->WriteText((wxString const &)*arg2);
7107 wxPyEndAllowThreads(__tstate);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 resultobj = SWIG_Py_Void();
7111 {
7112 if (temp2)
7113 delete arg2;
7114 }
7115 return resultobj;
7116 fail:
7117 {
7118 if (temp2)
7119 delete arg2;
7120 }
7121 return NULL;
7122 }
7123
7124
7125 SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7126 PyObject *resultobj = 0;
7127 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7128 wxString *arg2 = 0 ;
7129 void *argp1 = 0 ;
7130 int res1 = 0 ;
7131 bool temp2 = false ;
7132 PyObject * obj0 = 0 ;
7133 PyObject * obj1 = 0 ;
7134 char * kwnames[] = {
7135 (char *) "self",(char *) "text", NULL
7136 };
7137
7138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
7139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7140 if (!SWIG_IsOK(res1)) {
7141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7142 }
7143 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7144 {
7145 arg2 = wxString_in_helper(obj1);
7146 if (arg2 == NULL) SWIG_fail;
7147 temp2 = true;
7148 }
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 (arg1)->AppendText((wxString const &)*arg2);
7152 wxPyEndAllowThreads(__tstate);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 resultobj = SWIG_Py_Void();
7156 {
7157 if (temp2)
7158 delete arg2;
7159 }
7160 return resultobj;
7161 fail:
7162 {
7163 if (temp2)
7164 delete arg2;
7165 }
7166 return NULL;
7167 }
7168
7169
7170 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj = 0;
7172 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7173 wxRichTextRange *arg2 = 0 ;
7174 wxRichTextAttr *arg3 = 0 ;
7175 bool result;
7176 void *argp1 = 0 ;
7177 int res1 = 0 ;
7178 wxRichTextRange temp2 ;
7179 void *argp3 = 0 ;
7180 int res3 = 0 ;
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 PyObject * obj2 = 0 ;
7184 char * kwnames[] = {
7185 (char *) "self",(char *) "range",(char *) "style", NULL
7186 };
7187
7188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7190 if (!SWIG_IsOK(res1)) {
7191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7192 }
7193 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7194 {
7195 arg2 = &temp2;
7196 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7197 }
7198 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7199 if (!SWIG_IsOK(res3)) {
7200 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7201 }
7202 if (!argp3) {
7203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7204 }
7205 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
7209 wxPyEndAllowThreads(__tstate);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 }
7212 {
7213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7214 }
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj = 0;
7223 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7224 long arg2 ;
7225 wxRichTextAttr *arg3 = 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 long val2 ;
7230 int ecode2 = 0 ;
7231 void *argp3 = 0 ;
7232 int res3 = 0 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 PyObject * obj2 = 0 ;
7236 char * kwnames[] = {
7237 (char *) "self",(char *) "position",(char *) "style", NULL
7238 };
7239
7240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7242 if (!SWIG_IsOK(res1)) {
7243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7244 }
7245 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7246 ecode2 = SWIG_AsVal_long(obj1, &val2);
7247 if (!SWIG_IsOK(ecode2)) {
7248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
7249 }
7250 arg2 = static_cast< long >(val2);
7251 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7252 if (!SWIG_IsOK(res3)) {
7253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7254 }
7255 if (!argp3) {
7256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7257 }
7258 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 result = (bool)((wxRichTextCtrl const *)arg1)->GetStyle(arg2,*arg3);
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 {
7266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7267 }
7268 return resultobj;
7269 fail:
7270 return NULL;
7271 }
7272
7273
7274 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7275 PyObject *resultobj = 0;
7276 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7277 wxRichTextAttr *arg2 = 0 ;
7278 bool result;
7279 void *argp1 = 0 ;
7280 int res1 = 0 ;
7281 void *argp2 = 0 ;
7282 int res2 = 0 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 char * kwnames[] = {
7286 (char *) "self",(char *) "style", NULL
7287 };
7288
7289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
7290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7291 if (!SWIG_IsOK(res1)) {
7292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7293 }
7294 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7296 if (!SWIG_IsOK(res2)) {
7297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7298 }
7299 if (!argp2) {
7300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7301 }
7302 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2);
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 {
7310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7311 }
7312 return resultobj;
7313 fail:
7314 return NULL;
7315 }
7316
7317
7318 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7319 PyObject *resultobj = 0;
7320 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7321 wxRichTextAttr result;
7322 void *argp1 = 0 ;
7323 int res1 = 0 ;
7324 PyObject *swig_obj[1] ;
7325
7326 if (!args) SWIG_fail;
7327 swig_obj[0] = args;
7328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7329 if (!SWIG_IsOK(res1)) {
7330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7331 }
7332 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7333 {
7334 PyThreadState* __tstate = wxPyBeginAllowThreads();
7335 result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx();
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 );
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj = 0;
7348 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7349 long arg2 ;
7350 long arg3 ;
7351 long result;
7352 void *argp1 = 0 ;
7353 int res1 = 0 ;
7354 long val2 ;
7355 int ecode2 = 0 ;
7356 long val3 ;
7357 int ecode3 = 0 ;
7358 PyObject * obj0 = 0 ;
7359 PyObject * obj1 = 0 ;
7360 PyObject * obj2 = 0 ;
7361 char * kwnames[] = {
7362 (char *) "self",(char *) "x",(char *) "y", NULL
7363 };
7364
7365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
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_XYToPosition" "', expected argument " "2"" of type '" "long""'");
7374 }
7375 arg2 = static_cast< long >(val2);
7376 ecode3 = SWIG_AsVal_long(obj2, &val3);
7377 if (!SWIG_IsOK(ecode3)) {
7378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
7379 }
7380 arg3 = static_cast< long >(val3);
7381 {
7382 PyThreadState* __tstate = wxPyBeginAllowThreads();
7383 result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_From_long(static_cast< long >(result));
7388 return resultobj;
7389 fail:
7390 return NULL;
7391 }
7392
7393
7394 SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7395 PyObject *resultobj = 0;
7396 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7397 long arg2 ;
7398 long *arg3 = (long *) 0 ;
7399 long *arg4 = (long *) 0 ;
7400 void *argp1 = 0 ;
7401 int res1 = 0 ;
7402 long val2 ;
7403 int ecode2 = 0 ;
7404 long temp3 ;
7405 int res3 = SWIG_TMPOBJ ;
7406 long temp4 ;
7407 int res4 = SWIG_TMPOBJ ;
7408 PyObject * obj0 = 0 ;
7409 PyObject * obj1 = 0 ;
7410 char * kwnames[] = {
7411 (char *) "self",(char *) "pos", NULL
7412 };
7413
7414 arg3 = &temp3;
7415 arg4 = &temp4;
7416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
7417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7418 if (!SWIG_IsOK(res1)) {
7419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7420 }
7421 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7422 ecode2 = SWIG_AsVal_long(obj1, &val2);
7423 if (!SWIG_IsOK(ecode2)) {
7424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
7425 }
7426 arg2 = static_cast< long >(val2);
7427 {
7428 PyThreadState* __tstate = wxPyBeginAllowThreads();
7429 ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_Py_Void();
7434 if (SWIG_IsTmpObj(res3)) {
7435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7436 } else {
7437 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7439 }
7440 if (SWIG_IsTmpObj(res4)) {
7441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
7442 } else {
7443 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
7445 }
7446 return resultobj;
7447 fail:
7448 return NULL;
7449 }
7450
7451
7452 SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7453 PyObject *resultobj = 0;
7454 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7455 long arg2 ;
7456 void *argp1 = 0 ;
7457 int res1 = 0 ;
7458 long val2 ;
7459 int ecode2 = 0 ;
7460 PyObject * obj0 = 0 ;
7461 PyObject * obj1 = 0 ;
7462 char * kwnames[] = {
7463 (char *) "self",(char *) "position", NULL
7464 };
7465
7466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
7467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7470 }
7471 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7472 ecode2 = SWIG_AsVal_long(obj1, &val2);
7473 if (!SWIG_IsOK(ecode2)) {
7474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
7475 }
7476 arg2 = static_cast< long >(val2);
7477 {
7478 PyThreadState* __tstate = wxPyBeginAllowThreads();
7479 (arg1)->ShowPosition(arg2);
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_Py_Void();
7484 return resultobj;
7485 fail:
7486 return NULL;
7487 }
7488
7489
7490 SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7491 PyObject *resultobj = 0;
7492 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7493 wxPoint *arg2 = 0 ;
7494 long *arg3 = (long *) 0 ;
7495 wxTextCtrlHitTestResult result;
7496 void *argp1 = 0 ;
7497 int res1 = 0 ;
7498 wxPoint temp2 ;
7499 long temp3 ;
7500 int res3 = SWIG_TMPOBJ ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 char * kwnames[] = {
7504 (char *) "self",(char *) "pt", NULL
7505 };
7506
7507 arg3 = &temp3;
7508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
7509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7510 if (!SWIG_IsOK(res1)) {
7511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7512 }
7513 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7514 {
7515 arg2 = &temp2;
7516 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7517 }
7518 {
7519 PyThreadState* __tstate = wxPyBeginAllowThreads();
7520 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
7521 wxPyEndAllowThreads(__tstate);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7525 if (SWIG_IsTmpObj(res3)) {
7526 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7527 } else {
7528 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7529 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7530 }
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj = 0;
7539 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7540 wxPoint *arg2 = 0 ;
7541 wxTextCoord *arg3 = (wxTextCoord *) 0 ;
7542 wxTextCoord *arg4 = (wxTextCoord *) 0 ;
7543 wxTextCtrlHitTestResult result;
7544 void *argp1 = 0 ;
7545 int res1 = 0 ;
7546 wxPoint temp2 ;
7547 void *argp3 = 0 ;
7548 int res3 = 0 ;
7549 void *argp4 = 0 ;
7550 int res4 = 0 ;
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj1 = 0 ;
7553 PyObject * obj2 = 0 ;
7554 PyObject * obj3 = 0 ;
7555 char * kwnames[] = {
7556 (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL
7557 };
7558
7559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7563 }
7564 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7565 {
7566 arg2 = &temp2;
7567 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7568 }
7569 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7570 if (!SWIG_IsOK(res3)) {
7571 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'");
7572 }
7573 arg3 = reinterpret_cast< wxTextCoord * >(argp3);
7574 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7575 if (!SWIG_IsOK(res4)) {
7576 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'");
7577 }
7578 arg4 = reinterpret_cast< wxTextCoord * >(argp4);
7579 {
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7593 PyObject *resultobj = 0;
7594 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7595 void *argp1 = 0 ;
7596 int res1 = 0 ;
7597 PyObject *swig_obj[1] ;
7598
7599 if (!args) SWIG_fail;
7600 swig_obj[0] = args;
7601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7602 if (!SWIG_IsOK(res1)) {
7603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7604 }
7605 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7606 {
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 (arg1)->Copy();
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 resultobj = SWIG_Py_Void();
7613 return resultobj;
7614 fail:
7615 return NULL;
7616 }
7617
7618
7619 SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7620 PyObject *resultobj = 0;
7621 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7622 void *argp1 = 0 ;
7623 int res1 = 0 ;
7624 PyObject *swig_obj[1] ;
7625
7626 if (!args) SWIG_fail;
7627 swig_obj[0] = args;
7628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7631 }
7632 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 (arg1)->Cut();
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 resultobj = SWIG_Py_Void();
7640 return resultobj;
7641 fail:
7642 return NULL;
7643 }
7644
7645
7646 SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7647 PyObject *resultobj = 0;
7648 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7649 void *argp1 = 0 ;
7650 int res1 = 0 ;
7651 PyObject *swig_obj[1] ;
7652
7653 if (!args) SWIG_fail;
7654 swig_obj[0] = args;
7655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7656 if (!SWIG_IsOK(res1)) {
7657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7658 }
7659 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 (arg1)->Paste();
7663 wxPyEndAllowThreads(__tstate);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *resultobj = 0;
7675 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7676 void *argp1 = 0 ;
7677 int res1 = 0 ;
7678 PyObject *swig_obj[1] ;
7679
7680 if (!args) SWIG_fail;
7681 swig_obj[0] = args;
7682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7683 if (!SWIG_IsOK(res1)) {
7684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7685 }
7686 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7687 {
7688 PyThreadState* __tstate = wxPyBeginAllowThreads();
7689 (arg1)->DeleteSelection();
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 resultobj = SWIG_Py_Void();
7694 return resultobj;
7695 fail:
7696 return NULL;
7697 }
7698
7699
7700 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7701 PyObject *resultobj = 0;
7702 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7703 bool result;
7704 void *argp1 = 0 ;
7705 int res1 = 0 ;
7706 PyObject *swig_obj[1] ;
7707
7708 if (!args) SWIG_fail;
7709 swig_obj[0] = args;
7710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7711 if (!SWIG_IsOK(res1)) {
7712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7713 }
7714 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7715 {
7716 PyThreadState* __tstate = wxPyBeginAllowThreads();
7717 result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy();
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 {
7722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7723 }
7724 return resultobj;
7725 fail:
7726 return NULL;
7727 }
7728
7729
7730 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7731 PyObject *resultobj = 0;
7732 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7733 bool result;
7734 void *argp1 = 0 ;
7735 int res1 = 0 ;
7736 PyObject *swig_obj[1] ;
7737
7738 if (!args) SWIG_fail;
7739 swig_obj[0] = args;
7740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7741 if (!SWIG_IsOK(res1)) {
7742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7743 }
7744 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7745 {
7746 PyThreadState* __tstate = wxPyBeginAllowThreads();
7747 result = (bool)((wxRichTextCtrl const *)arg1)->CanCut();
7748 wxPyEndAllowThreads(__tstate);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 {
7752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7753 }
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7761 PyObject *resultobj = 0;
7762 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7763 bool result;
7764 void *argp1 = 0 ;
7765 int res1 = 0 ;
7766 PyObject *swig_obj[1] ;
7767
7768 if (!args) SWIG_fail;
7769 swig_obj[0] = args;
7770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7771 if (!SWIG_IsOK(res1)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7773 }
7774 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7775 {
7776 PyThreadState* __tstate = wxPyBeginAllowThreads();
7777 result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste();
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 {
7782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7783 }
7784 return resultobj;
7785 fail:
7786 return NULL;
7787 }
7788
7789
7790 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7791 PyObject *resultobj = 0;
7792 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7793 bool result;
7794 void *argp1 = 0 ;
7795 int res1 = 0 ;
7796 PyObject *swig_obj[1] ;
7797
7798 if (!args) SWIG_fail;
7799 swig_obj[0] = args;
7800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7801 if (!SWIG_IsOK(res1)) {
7802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7803 }
7804 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7805 {
7806 PyThreadState* __tstate = wxPyBeginAllowThreads();
7807 result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection();
7808 wxPyEndAllowThreads(__tstate);
7809 if (PyErr_Occurred()) SWIG_fail;
7810 }
7811 {
7812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7813 }
7814 return resultobj;
7815 fail:
7816 return NULL;
7817 }
7818
7819
7820 SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7821 PyObject *resultobj = 0;
7822 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7823 void *argp1 = 0 ;
7824 int res1 = 0 ;
7825 PyObject *swig_obj[1] ;
7826
7827 if (!args) SWIG_fail;
7828 swig_obj[0] = args;
7829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7830 if (!SWIG_IsOK(res1)) {
7831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7832 }
7833 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 (arg1)->Undo();
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 resultobj = SWIG_Py_Void();
7841 return resultobj;
7842 fail:
7843 return NULL;
7844 }
7845
7846
7847 SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7848 PyObject *resultobj = 0;
7849 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7850 void *argp1 = 0 ;
7851 int res1 = 0 ;
7852 PyObject *swig_obj[1] ;
7853
7854 if (!args) SWIG_fail;
7855 swig_obj[0] = args;
7856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7857 if (!SWIG_IsOK(res1)) {
7858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7859 }
7860 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7861 {
7862 PyThreadState* __tstate = wxPyBeginAllowThreads();
7863 (arg1)->Redo();
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 resultobj = SWIG_Py_Void();
7868 return resultobj;
7869 fail:
7870 return NULL;
7871 }
7872
7873
7874 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7875 PyObject *resultobj = 0;
7876 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7877 bool result;
7878 void *argp1 = 0 ;
7879 int res1 = 0 ;
7880 PyObject *swig_obj[1] ;
7881
7882 if (!args) SWIG_fail;
7883 swig_obj[0] = args;
7884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7887 }
7888 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo();
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 {
7896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7897 }
7898 return resultobj;
7899 fail:
7900 return NULL;
7901 }
7902
7903
7904 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7905 PyObject *resultobj = 0;
7906 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7907 bool result;
7908 void *argp1 = 0 ;
7909 int res1 = 0 ;
7910 PyObject *swig_obj[1] ;
7911
7912 if (!args) SWIG_fail;
7913 swig_obj[0] = args;
7914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7915 if (!SWIG_IsOK(res1)) {
7916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7917 }
7918 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7919 {
7920 PyThreadState* __tstate = wxPyBeginAllowThreads();
7921 result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo();
7922 wxPyEndAllowThreads(__tstate);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 {
7926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7927 }
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj = 0;
7936 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7937 long arg2 ;
7938 void *argp1 = 0 ;
7939 int res1 = 0 ;
7940 long val2 ;
7941 int ecode2 = 0 ;
7942 PyObject * obj0 = 0 ;
7943 PyObject * obj1 = 0 ;
7944 char * kwnames[] = {
7945 (char *) "self",(char *) "pos", NULL
7946 };
7947
7948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
7949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7952 }
7953 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7954 ecode2 = SWIG_AsVal_long(obj1, &val2);
7955 if (!SWIG_IsOK(ecode2)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
7957 }
7958 arg2 = static_cast< long >(val2);
7959 {
7960 PyThreadState* __tstate = wxPyBeginAllowThreads();
7961 (arg1)->SetInsertionPoint(arg2);
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_Py_Void();
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7973 PyObject *resultobj = 0;
7974 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7975 void *argp1 = 0 ;
7976 int res1 = 0 ;
7977 PyObject *swig_obj[1] ;
7978
7979 if (!args) SWIG_fail;
7980 swig_obj[0] = args;
7981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7982 if (!SWIG_IsOK(res1)) {
7983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7984 }
7985 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7986 {
7987 PyThreadState* __tstate = wxPyBeginAllowThreads();
7988 (arg1)->SetInsertionPointEnd();
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 resultobj = SWIG_Py_Void();
7993 return resultobj;
7994 fail:
7995 return NULL;
7996 }
7997
7998
7999 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8000 PyObject *resultobj = 0;
8001 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8002 long result;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 PyObject *swig_obj[1] ;
8006
8007 if (!args) SWIG_fail;
8008 swig_obj[0] = args;
8009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8012 }
8013 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8014 {
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint();
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_From_long(static_cast< long >(result));
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8030 long result;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033 PyObject *swig_obj[1] ;
8034
8035 if (!args) SWIG_fail;
8036 swig_obj[0] = args;
8037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8038 if (!SWIG_IsOK(res1)) {
8039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8040 }
8041 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition();
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 resultobj = SWIG_From_long(static_cast< long >(result));
8049 return resultobj;
8050 fail:
8051 return NULL;
8052 }
8053
8054
8055 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8056 PyObject *resultobj = 0;
8057 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8058 long arg2 ;
8059 long arg3 ;
8060 void *argp1 = 0 ;
8061 int res1 = 0 ;
8062 long val2 ;
8063 int ecode2 = 0 ;
8064 long val3 ;
8065 int ecode3 = 0 ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 PyObject * obj2 = 0 ;
8069 char * kwnames[] = {
8070 (char *) "self",(char *) "from",(char *) "to", NULL
8071 };
8072
8073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8075 if (!SWIG_IsOK(res1)) {
8076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8077 }
8078 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8079 ecode2 = SWIG_AsVal_long(obj1, &val2);
8080 if (!SWIG_IsOK(ecode2)) {
8081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
8082 }
8083 arg2 = static_cast< long >(val2);
8084 ecode3 = SWIG_AsVal_long(obj2, &val3);
8085 if (!SWIG_IsOK(ecode3)) {
8086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
8087 }
8088 arg3 = static_cast< long >(val3);
8089 {
8090 PyThreadState* __tstate = wxPyBeginAllowThreads();
8091 (arg1)->SetSelection(arg2,arg3);
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = SWIG_Py_Void();
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8103 PyObject *resultobj = 0;
8104 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8105 void *argp1 = 0 ;
8106 int res1 = 0 ;
8107 PyObject *swig_obj[1] ;
8108
8109 if (!args) SWIG_fail;
8110 swig_obj[0] = args;
8111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8112 if (!SWIG_IsOK(res1)) {
8113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8114 }
8115 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8116 {
8117 PyThreadState* __tstate = wxPyBeginAllowThreads();
8118 (arg1)->SelectAll();
8119 wxPyEndAllowThreads(__tstate);
8120 if (PyErr_Occurred()) SWIG_fail;
8121 }
8122 resultobj = SWIG_Py_Void();
8123 return resultobj;
8124 fail:
8125 return NULL;
8126 }
8127
8128
8129 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8130 PyObject *resultobj = 0;
8131 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8132 bool arg2 ;
8133 void *argp1 = 0 ;
8134 int res1 = 0 ;
8135 bool val2 ;
8136 int ecode2 = 0 ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 char * kwnames[] = {
8140 (char *) "self",(char *) "editable", NULL
8141 };
8142
8143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
8144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8147 }
8148 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8149 ecode2 = SWIG_AsVal_bool(obj1, &val2);
8150 if (!SWIG_IsOK(ecode2)) {
8151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
8152 }
8153 arg2 = static_cast< bool >(val2);
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 (arg1)->SetEditable(arg2);
8157 wxPyEndAllowThreads(__tstate);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 }
8160 resultobj = SWIG_Py_Void();
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8168 PyObject *resultobj = 0;
8169 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8170 bool result;
8171 void *argp1 = 0 ;
8172 int res1 = 0 ;
8173 PyObject *swig_obj[1] ;
8174
8175 if (!args) SWIG_fail;
8176 swig_obj[0] = args;
8177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8178 if (!SWIG_IsOK(res1)) {
8179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8180 }
8181 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8182 {
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection();
8185 wxPyEndAllowThreads(__tstate);
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 {
8189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8190 }
8191 return resultobj;
8192 fail:
8193 return NULL;
8194 }
8195
8196
8197 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8198 PyObject *resultobj = 0;
8199 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8200 wxImage *arg2 = 0 ;
8201 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8202 bool result;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 PyObject * obj2 = 0 ;
8212 char * kwnames[] = {
8213 (char *) "self",(char *) "image",(char *) "bitmapType", NULL
8214 };
8215
8216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8218 if (!SWIG_IsOK(res1)) {
8219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8220 }
8221 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
8223 if (!SWIG_IsOK(res2)) {
8224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8225 }
8226 if (!argp2) {
8227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8228 }
8229 arg2 = reinterpret_cast< wxImage * >(argp2);
8230 if (obj2) {
8231 ecode3 = SWIG_AsVal_int(obj2, &val3);
8232 if (!SWIG_IsOK(ecode3)) {
8233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'");
8234 }
8235 arg3 = static_cast< int >(val3);
8236 }
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3);
8240 wxPyEndAllowThreads(__tstate);
8241 if (PyErr_Occurred()) SWIG_fail;
8242 }
8243 {
8244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8245 }
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj = 0;
8254 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8255 wxBitmap *arg2 = 0 ;
8256 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8257 bool result;
8258 void *argp1 = 0 ;
8259 int res1 = 0 ;
8260 void *argp2 = 0 ;
8261 int res2 = 0 ;
8262 int val3 ;
8263 int ecode3 = 0 ;
8264 PyObject * obj0 = 0 ;
8265 PyObject * obj1 = 0 ;
8266 PyObject * obj2 = 0 ;
8267 char * kwnames[] = {
8268 (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL
8269 };
8270
8271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8273 if (!SWIG_IsOK(res1)) {
8274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8275 }
8276 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8278 if (!SWIG_IsOK(res2)) {
8279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8280 }
8281 if (!argp2) {
8282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8283 }
8284 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8285 if (obj2) {
8286 ecode3 = SWIG_AsVal_int(obj2, &val3);
8287 if (!SWIG_IsOK(ecode3)) {
8288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'");
8289 }
8290 arg3 = static_cast< int >(val3);
8291 }
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3);
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 {
8299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8300 }
8301 return resultobj;
8302 fail:
8303 return NULL;
8304 }
8305
8306
8307 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8308 PyObject *resultobj = 0;
8309 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8310 wxString *arg2 = 0 ;
8311 int arg3 ;
8312 bool result;
8313 void *argp1 = 0 ;
8314 int res1 = 0 ;
8315 bool temp2 = false ;
8316 int val3 ;
8317 int ecode3 = 0 ;
8318 PyObject * obj0 = 0 ;
8319 PyObject * obj1 = 0 ;
8320 PyObject * obj2 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "filename",(char *) "bitmapType", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8329 }
8330 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8331 {
8332 arg2 = wxString_in_helper(obj1);
8333 if (arg2 == NULL) SWIG_fail;
8334 temp2 = true;
8335 }
8336 ecode3 = SWIG_AsVal_int(obj2, &val3);
8337 if (!SWIG_IsOK(ecode3)) {
8338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'");
8339 }
8340 arg3 = static_cast< int >(val3);
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3);
8344 wxPyEndAllowThreads(__tstate);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 }
8347 {
8348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8349 }
8350 {
8351 if (temp2)
8352 delete arg2;
8353 }
8354 return resultobj;
8355 fail:
8356 {
8357 if (temp2)
8358 delete arg2;
8359 }
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj = 0;
8366 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8367 wxRichTextImageBlock *arg2 = 0 ;
8368 bool result;
8369 void *argp1 = 0 ;
8370 int res1 = 0 ;
8371 void *argp2 = 0 ;
8372 int res2 = 0 ;
8373 PyObject * obj0 = 0 ;
8374 PyObject * obj1 = 0 ;
8375 char * kwnames[] = {
8376 (char *) "self",(char *) "imageBlock", NULL
8377 };
8378
8379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail;
8380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8381 if (!SWIG_IsOK(res1)) {
8382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8383 }
8384 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0);
8386 if (!SWIG_IsOK(res2)) {
8387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8388 }
8389 if (!argp2) {
8390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8391 }
8392 arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2);
8393 {
8394 PyThreadState* __tstate = wxPyBeginAllowThreads();
8395 result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2);
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 {
8400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8401 }
8402 return resultobj;
8403 fail:
8404 return NULL;
8405 }
8406
8407
8408 SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8409 PyObject *resultobj = 0;
8410 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8411 bool result;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 PyObject *swig_obj[1] ;
8415
8416 if (!args) SWIG_fail;
8417 swig_obj[0] = args;
8418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8419 if (!SWIG_IsOK(res1)) {
8420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8421 }
8422 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (bool)(arg1)->Newline();
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 {
8430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8431 }
8432 return resultobj;
8433 fail:
8434 return NULL;
8435 }
8436
8437
8438 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj = 0;
8440 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8441 wxRichTextAttr *arg2 = 0 ;
8442 void *argp1 = 0 ;
8443 int res1 = 0 ;
8444 void *argp2 = 0 ;
8445 int res2 = 0 ;
8446 PyObject * obj0 = 0 ;
8447 PyObject * obj1 = 0 ;
8448 char * kwnames[] = {
8449 (char *) "self",(char *) "style", NULL
8450 };
8451
8452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail;
8453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8454 if (!SWIG_IsOK(res1)) {
8455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8456 }
8457 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
8459 if (!SWIG_IsOK(res2)) {
8460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8461 }
8462 if (!argp2) {
8463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8464 }
8465 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2);
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 resultobj = SWIG_Py_Void();
8473 return resultobj;
8474 fail:
8475 return NULL;
8476 }
8477
8478
8479 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8480 PyObject *resultobj = 0;
8481 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8482 bool result;
8483 void *argp1 = 0 ;
8484 int res1 = 0 ;
8485 PyObject *swig_obj[1] ;
8486
8487 if (!args) SWIG_fail;
8488 swig_obj[0] = args;
8489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8490 if (!SWIG_IsOK(res1)) {
8491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8492 }
8493 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 result = (bool)(arg1)->EndStyle();
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 {
8501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8502 }
8503 return resultobj;
8504 fail:
8505 return NULL;
8506 }
8507
8508
8509 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8510 PyObject *resultobj = 0;
8511 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8512 bool result;
8513 void *argp1 = 0 ;
8514 int res1 = 0 ;
8515 PyObject *swig_obj[1] ;
8516
8517 if (!args) SWIG_fail;
8518 swig_obj[0] = args;
8519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8520 if (!SWIG_IsOK(res1)) {
8521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8522 }
8523 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8524 {
8525 PyThreadState* __tstate = wxPyBeginAllowThreads();
8526 result = (bool)(arg1)->EndAllStyles();
8527 wxPyEndAllowThreads(__tstate);
8528 if (PyErr_Occurred()) SWIG_fail;
8529 }
8530 {
8531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8532 }
8533 return resultobj;
8534 fail:
8535 return NULL;
8536 }
8537
8538
8539 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8540 PyObject *resultobj = 0;
8541 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8542 bool result;
8543 void *argp1 = 0 ;
8544 int res1 = 0 ;
8545 PyObject *swig_obj[1] ;
8546
8547 if (!args) SWIG_fail;
8548 swig_obj[0] = args;
8549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8550 if (!SWIG_IsOK(res1)) {
8551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8552 }
8553 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8554 {
8555 PyThreadState* __tstate = wxPyBeginAllowThreads();
8556 result = (bool)(arg1)->BeginBold();
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 {
8561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8562 }
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8570 PyObject *resultobj = 0;
8571 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8572 bool result;
8573 void *argp1 = 0 ;
8574 int res1 = 0 ;
8575 PyObject *swig_obj[1] ;
8576
8577 if (!args) SWIG_fail;
8578 swig_obj[0] = args;
8579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8580 if (!SWIG_IsOK(res1)) {
8581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8582 }
8583 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 result = (bool)(arg1)->EndBold();
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8600 PyObject *resultobj = 0;
8601 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8602 bool result;
8603 void *argp1 = 0 ;
8604 int res1 = 0 ;
8605 PyObject *swig_obj[1] ;
8606
8607 if (!args) SWIG_fail;
8608 swig_obj[0] = args;
8609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8610 if (!SWIG_IsOK(res1)) {
8611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8612 }
8613 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8614 {
8615 PyThreadState* __tstate = wxPyBeginAllowThreads();
8616 result = (bool)(arg1)->BeginItalic();
8617 wxPyEndAllowThreads(__tstate);
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8630 PyObject *resultobj = 0;
8631 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8632 bool result;
8633 void *argp1 = 0 ;
8634 int res1 = 0 ;
8635 PyObject *swig_obj[1] ;
8636
8637 if (!args) SWIG_fail;
8638 swig_obj[0] = args;
8639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8642 }
8643 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (bool)(arg1)->EndItalic();
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 {
8651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8652 }
8653 return resultobj;
8654 fail:
8655 return NULL;
8656 }
8657
8658
8659 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8660 PyObject *resultobj = 0;
8661 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8662 bool result;
8663 void *argp1 = 0 ;
8664 int res1 = 0 ;
8665 PyObject *swig_obj[1] ;
8666
8667 if (!args) SWIG_fail;
8668 swig_obj[0] = args;
8669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8670 if (!SWIG_IsOK(res1)) {
8671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8672 }
8673 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 result = (bool)(arg1)->BeginUnderline();
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 {
8681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8682 }
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8690 PyObject *resultobj = 0;
8691 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8692 bool result;
8693 void *argp1 = 0 ;
8694 int res1 = 0 ;
8695 PyObject *swig_obj[1] ;
8696
8697 if (!args) SWIG_fail;
8698 swig_obj[0] = args;
8699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8700 if (!SWIG_IsOK(res1)) {
8701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8702 }
8703 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (bool)(arg1)->EndUnderline();
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 {
8711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8712 }
8713 return resultobj;
8714 fail:
8715 return NULL;
8716 }
8717
8718
8719 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8720 PyObject *resultobj = 0;
8721 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8722 int arg2 ;
8723 bool result;
8724 void *argp1 = 0 ;
8725 int res1 = 0 ;
8726 int val2 ;
8727 int ecode2 = 0 ;
8728 PyObject * obj0 = 0 ;
8729 PyObject * obj1 = 0 ;
8730 char * kwnames[] = {
8731 (char *) "self",(char *) "pointSize", NULL
8732 };
8733
8734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
8735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8736 if (!SWIG_IsOK(res1)) {
8737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8738 }
8739 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8740 ecode2 = SWIG_AsVal_int(obj1, &val2);
8741 if (!SWIG_IsOK(ecode2)) {
8742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'");
8743 }
8744 arg2 = static_cast< int >(val2);
8745 {
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = (bool)(arg1)->BeginFontSize(arg2);
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 {
8752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8753 }
8754 return resultobj;
8755 fail:
8756 return NULL;
8757 }
8758
8759
8760 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8761 PyObject *resultobj = 0;
8762 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8763 bool result;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 PyObject *swig_obj[1] ;
8767
8768 if (!args) SWIG_fail;
8769 swig_obj[0] = args;
8770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8771 if (!SWIG_IsOK(res1)) {
8772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8773 }
8774 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 result = (bool)(arg1)->EndFontSize();
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 }
8781 {
8782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8783 }
8784 return resultobj;
8785 fail:
8786 return NULL;
8787 }
8788
8789
8790 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8791 PyObject *resultobj = 0;
8792 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8793 wxFont *arg2 = 0 ;
8794 bool result;
8795 void *argp1 = 0 ;
8796 int res1 = 0 ;
8797 void *argp2 = 0 ;
8798 int res2 = 0 ;
8799 PyObject * obj0 = 0 ;
8800 PyObject * obj1 = 0 ;
8801 char * kwnames[] = {
8802 (char *) "self",(char *) "font", NULL
8803 };
8804
8805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail;
8806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8807 if (!SWIG_IsOK(res1)) {
8808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8809 }
8810 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
8812 if (!SWIG_IsOK(res2)) {
8813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8814 }
8815 if (!argp2) {
8816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
8817 }
8818 arg2 = reinterpret_cast< wxFont * >(argp2);
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (bool)(arg1)->BeginFont((wxFont const &)*arg2);
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 {
8826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8827 }
8828 return resultobj;
8829 fail:
8830 return NULL;
8831 }
8832
8833
8834 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8835 PyObject *resultobj = 0;
8836 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8837 bool result;
8838 void *argp1 = 0 ;
8839 int res1 = 0 ;
8840 PyObject *swig_obj[1] ;
8841
8842 if (!args) SWIG_fail;
8843 swig_obj[0] = args;
8844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8845 if (!SWIG_IsOK(res1)) {
8846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8847 }
8848 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 result = (bool)(arg1)->EndFont();
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 {
8856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8857 }
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = 0;
8866 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8867 wxColour *arg2 = 0 ;
8868 bool result;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 wxColour temp2 ;
8872 PyObject * obj0 = 0 ;
8873 PyObject * obj1 = 0 ;
8874 char * kwnames[] = {
8875 (char *) "self",(char *) "colour", NULL
8876 };
8877
8878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
8879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8880 if (!SWIG_IsOK(res1)) {
8881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8882 }
8883 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8884 {
8885 arg2 = &temp2;
8886 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8887 }
8888 {
8889 PyThreadState* __tstate = wxPyBeginAllowThreads();
8890 result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2);
8891 wxPyEndAllowThreads(__tstate);
8892 if (PyErr_Occurred()) SWIG_fail;
8893 }
8894 {
8895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8896 }
8897 return resultobj;
8898 fail:
8899 return NULL;
8900 }
8901
8902
8903 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8904 PyObject *resultobj = 0;
8905 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8906 bool result;
8907 void *argp1 = 0 ;
8908 int res1 = 0 ;
8909 PyObject *swig_obj[1] ;
8910
8911 if (!args) SWIG_fail;
8912 swig_obj[0] = args;
8913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8914 if (!SWIG_IsOK(res1)) {
8915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8916 }
8917 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8918 {
8919 PyThreadState* __tstate = wxPyBeginAllowThreads();
8920 result = (bool)(arg1)->EndTextColour();
8921 wxPyEndAllowThreads(__tstate);
8922 if (PyErr_Occurred()) SWIG_fail;
8923 }
8924 {
8925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8926 }
8927 return resultobj;
8928 fail:
8929 return NULL;
8930 }
8931
8932
8933 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8934 PyObject *resultobj = 0;
8935 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8936 wxTextAttrAlignment arg2 ;
8937 bool result;
8938 void *argp1 = 0 ;
8939 int res1 = 0 ;
8940 int val2 ;
8941 int ecode2 = 0 ;
8942 PyObject * obj0 = 0 ;
8943 PyObject * obj1 = 0 ;
8944 char * kwnames[] = {
8945 (char *) "self",(char *) "alignment", NULL
8946 };
8947
8948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
8949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8950 if (!SWIG_IsOK(res1)) {
8951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8952 }
8953 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8954 ecode2 = SWIG_AsVal_int(obj1, &val2);
8955 if (!SWIG_IsOK(ecode2)) {
8956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
8957 }
8958 arg2 = static_cast< wxTextAttrAlignment >(val2);
8959 {
8960 PyThreadState* __tstate = wxPyBeginAllowThreads();
8961 result = (bool)(arg1)->BeginAlignment(arg2);
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 {
8966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8967 }
8968 return resultobj;
8969 fail:
8970 return NULL;
8971 }
8972
8973
8974 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8975 PyObject *resultobj = 0;
8976 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8977 bool result;
8978 void *argp1 = 0 ;
8979 int res1 = 0 ;
8980 PyObject *swig_obj[1] ;
8981
8982 if (!args) SWIG_fail;
8983 swig_obj[0] = args;
8984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8985 if (!SWIG_IsOK(res1)) {
8986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8987 }
8988 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 result = (bool)(arg1)->EndAlignment();
8992 wxPyEndAllowThreads(__tstate);
8993 if (PyErr_Occurred()) SWIG_fail;
8994 }
8995 {
8996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8997 }
8998 return resultobj;
8999 fail:
9000 return NULL;
9001 }
9002
9003
9004 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj = 0;
9006 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9007 int arg2 ;
9008 int arg3 = (int) 0 ;
9009 bool result;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 int val2 ;
9013 int ecode2 = 0 ;
9014 int val3 ;
9015 int ecode3 = 0 ;
9016 PyObject * obj0 = 0 ;
9017 PyObject * obj1 = 0 ;
9018 PyObject * obj2 = 0 ;
9019 char * kwnames[] = {
9020 (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL
9021 };
9022
9023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9025 if (!SWIG_IsOK(res1)) {
9026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9027 }
9028 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9029 ecode2 = SWIG_AsVal_int(obj1, &val2);
9030 if (!SWIG_IsOK(ecode2)) {
9031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'");
9032 }
9033 arg2 = static_cast< int >(val2);
9034 if (obj2) {
9035 ecode3 = SWIG_AsVal_int(obj2, &val3);
9036 if (!SWIG_IsOK(ecode3)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'");
9038 }
9039 arg3 = static_cast< int >(val3);
9040 }
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 result = (bool)(arg1)->BeginLeftIndent(arg2,arg3);
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 {
9048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9049 }
9050 return resultobj;
9051 fail:
9052 return NULL;
9053 }
9054
9055
9056 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9057 PyObject *resultobj = 0;
9058 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9059 bool result;
9060 void *argp1 = 0 ;
9061 int res1 = 0 ;
9062 PyObject *swig_obj[1] ;
9063
9064 if (!args) SWIG_fail;
9065 swig_obj[0] = args;
9066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9067 if (!SWIG_IsOK(res1)) {
9068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9069 }
9070 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9071 {
9072 PyThreadState* __tstate = wxPyBeginAllowThreads();
9073 result = (bool)(arg1)->EndLeftIndent();
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 {
9078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9079 }
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9089 int arg2 ;
9090 bool result;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 int val2 ;
9094 int ecode2 = 0 ;
9095 PyObject * obj0 = 0 ;
9096 PyObject * obj1 = 0 ;
9097 char * kwnames[] = {
9098 (char *) "self",(char *) "rightIndent", NULL
9099 };
9100
9101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
9102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9103 if (!SWIG_IsOK(res1)) {
9104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9105 }
9106 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9107 ecode2 = SWIG_AsVal_int(obj1, &val2);
9108 if (!SWIG_IsOK(ecode2)) {
9109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'");
9110 }
9111 arg2 = static_cast< int >(val2);
9112 {
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (bool)(arg1)->BeginRightIndent(arg2);
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 {
9119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9120 }
9121 return resultobj;
9122 fail:
9123 return NULL;
9124 }
9125
9126
9127 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9128 PyObject *resultobj = 0;
9129 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9130 bool result;
9131 void *argp1 = 0 ;
9132 int res1 = 0 ;
9133 PyObject *swig_obj[1] ;
9134
9135 if (!args) SWIG_fail;
9136 swig_obj[0] = args;
9137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9138 if (!SWIG_IsOK(res1)) {
9139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9140 }
9141 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 result = (bool)(arg1)->EndRightIndent();
9145 wxPyEndAllowThreads(__tstate);
9146 if (PyErr_Occurred()) SWIG_fail;
9147 }
9148 {
9149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9150 }
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj = 0;
9159 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9160 int arg2 ;
9161 int arg3 ;
9162 bool result;
9163 void *argp1 = 0 ;
9164 int res1 = 0 ;
9165 int val2 ;
9166 int ecode2 = 0 ;
9167 int val3 ;
9168 int ecode3 = 0 ;
9169 PyObject * obj0 = 0 ;
9170 PyObject * obj1 = 0 ;
9171 PyObject * obj2 = 0 ;
9172 char * kwnames[] = {
9173 (char *) "self",(char *) "before",(char *) "after", NULL
9174 };
9175
9176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9178 if (!SWIG_IsOK(res1)) {
9179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9180 }
9181 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9182 ecode2 = SWIG_AsVal_int(obj1, &val2);
9183 if (!SWIG_IsOK(ecode2)) {
9184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'");
9185 }
9186 arg2 = static_cast< int >(val2);
9187 ecode3 = SWIG_AsVal_int(obj2, &val3);
9188 if (!SWIG_IsOK(ecode3)) {
9189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'");
9190 }
9191 arg3 = static_cast< int >(val3);
9192 {
9193 PyThreadState* __tstate = wxPyBeginAllowThreads();
9194 result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3);
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 {
9199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9200 }
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9208 PyObject *resultobj = 0;
9209 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9210 bool result;
9211 void *argp1 = 0 ;
9212 int res1 = 0 ;
9213 PyObject *swig_obj[1] ;
9214
9215 if (!args) SWIG_fail;
9216 swig_obj[0] = args;
9217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9218 if (!SWIG_IsOK(res1)) {
9219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9220 }
9221 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9222 {
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 result = (bool)(arg1)->EndParagraphSpacing();
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 {
9229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9230 }
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = 0;
9239 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9240 int arg2 ;
9241 bool result;
9242 void *argp1 = 0 ;
9243 int res1 = 0 ;
9244 int val2 ;
9245 int ecode2 = 0 ;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 char * kwnames[] = {
9249 (char *) "self",(char *) "lineSpacing", NULL
9250 };
9251
9252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
9253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9256 }
9257 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9258 ecode2 = SWIG_AsVal_int(obj1, &val2);
9259 if (!SWIG_IsOK(ecode2)) {
9260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'");
9261 }
9262 arg2 = static_cast< int >(val2);
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (bool)(arg1)->BeginLineSpacing(arg2);
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 {
9270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9271 }
9272 return resultobj;
9273 fail:
9274 return NULL;
9275 }
9276
9277
9278 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9279 PyObject *resultobj = 0;
9280 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9281 bool result;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 PyObject *swig_obj[1] ;
9285
9286 if (!args) SWIG_fail;
9287 swig_obj[0] = args;
9288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9289 if (!SWIG_IsOK(res1)) {
9290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9291 }
9292 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
9295 result = (bool)(arg1)->EndLineSpacing();
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 {
9300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9301 }
9302 return resultobj;
9303 fail:
9304 return NULL;
9305 }
9306
9307
9308 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9309 PyObject *resultobj = 0;
9310 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9311 int arg2 ;
9312 int arg3 ;
9313 int arg4 ;
9314 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ;
9315 bool result;
9316 void *argp1 = 0 ;
9317 int res1 = 0 ;
9318 int val2 ;
9319 int ecode2 = 0 ;
9320 int val3 ;
9321 int ecode3 = 0 ;
9322 int val4 ;
9323 int ecode4 = 0 ;
9324 int val5 ;
9325 int ecode5 = 0 ;
9326 PyObject * obj0 = 0 ;
9327 PyObject * obj1 = 0 ;
9328 PyObject * obj2 = 0 ;
9329 PyObject * obj3 = 0 ;
9330 PyObject * obj4 = 0 ;
9331 char * kwnames[] = {
9332 (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9333 };
9334
9335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9339 }
9340 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9341 ecode2 = SWIG_AsVal_int(obj1, &val2);
9342 if (!SWIG_IsOK(ecode2)) {
9343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'");
9344 }
9345 arg2 = static_cast< int >(val2);
9346 ecode3 = SWIG_AsVal_int(obj2, &val3);
9347 if (!SWIG_IsOK(ecode3)) {
9348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'");
9349 }
9350 arg3 = static_cast< int >(val3);
9351 ecode4 = SWIG_AsVal_int(obj3, &val4);
9352 if (!SWIG_IsOK(ecode4)) {
9353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'");
9354 }
9355 arg4 = static_cast< int >(val4);
9356 if (obj4) {
9357 ecode5 = SWIG_AsVal_int(obj4, &val5);
9358 if (!SWIG_IsOK(ecode5)) {
9359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'");
9360 }
9361 arg5 = static_cast< int >(val5);
9362 }
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
9365 result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5);
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 {
9370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9371 }
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9379 PyObject *resultobj = 0;
9380 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9381 bool result;
9382 void *argp1 = 0 ;
9383 int res1 = 0 ;
9384 PyObject *swig_obj[1] ;
9385
9386 if (!args) SWIG_fail;
9387 swig_obj[0] = args;
9388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9389 if (!SWIG_IsOK(res1)) {
9390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9391 }
9392 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (bool)(arg1)->EndNumberedBullet();
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 {
9400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9401 }
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9411 char arg2 ;
9412 int arg3 ;
9413 int arg4 ;
9414 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ;
9415 bool result;
9416 void *argp1 = 0 ;
9417 int res1 = 0 ;
9418 char val2 ;
9419 int ecode2 = 0 ;
9420 int val3 ;
9421 int ecode3 = 0 ;
9422 int val4 ;
9423 int ecode4 = 0 ;
9424 int val5 ;
9425 int ecode5 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 PyObject * obj2 = 0 ;
9429 PyObject * obj3 = 0 ;
9430 PyObject * obj4 = 0 ;
9431 char * kwnames[] = {
9432 (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9433 };
9434
9435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9437 if (!SWIG_IsOK(res1)) {
9438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9439 }
9440 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9441 ecode2 = SWIG_AsVal_char(obj1, &val2);
9442 if (!SWIG_IsOK(ecode2)) {
9443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'");
9444 }
9445 arg2 = static_cast< char >(val2);
9446 ecode3 = SWIG_AsVal_int(obj2, &val3);
9447 if (!SWIG_IsOK(ecode3)) {
9448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'");
9449 }
9450 arg3 = static_cast< int >(val3);
9451 ecode4 = SWIG_AsVal_int(obj3, &val4);
9452 if (!SWIG_IsOK(ecode4)) {
9453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'");
9454 }
9455 arg4 = static_cast< int >(val4);
9456 if (obj4) {
9457 ecode5 = SWIG_AsVal_int(obj4, &val5);
9458 if (!SWIG_IsOK(ecode5)) {
9459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'");
9460 }
9461 arg5 = static_cast< int >(val5);
9462 }
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5);
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 {
9470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9471 }
9472 return resultobj;
9473 fail:
9474 return NULL;
9475 }
9476
9477
9478 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9479 PyObject *resultobj = 0;
9480 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9481 bool result;
9482 void *argp1 = 0 ;
9483 int res1 = 0 ;
9484 PyObject *swig_obj[1] ;
9485
9486 if (!args) SWIG_fail;
9487 swig_obj[0] = args;
9488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9489 if (!SWIG_IsOK(res1)) {
9490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9491 }
9492 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 result = (bool)(arg1)->EndSymbolBullet();
9496 wxPyEndAllowThreads(__tstate);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 }
9499 {
9500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9501 }
9502 return resultobj;
9503 fail:
9504 return NULL;
9505 }
9506
9507
9508 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9509 PyObject *resultobj = 0;
9510 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9511 wxString *arg2 = 0 ;
9512 bool result;
9513 void *argp1 = 0 ;
9514 int res1 = 0 ;
9515 bool temp2 = false ;
9516 PyObject * obj0 = 0 ;
9517 PyObject * obj1 = 0 ;
9518 char * kwnames[] = {
9519 (char *) "self",(char *) "characterStyle", NULL
9520 };
9521
9522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9524 if (!SWIG_IsOK(res1)) {
9525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9526 }
9527 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9528 {
9529 arg2 = wxString_in_helper(obj1);
9530 if (arg2 == NULL) SWIG_fail;
9531 temp2 = true;
9532 }
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2);
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9541 }
9542 {
9543 if (temp2)
9544 delete arg2;
9545 }
9546 return resultobj;
9547 fail:
9548 {
9549 if (temp2)
9550 delete arg2;
9551 }
9552 return NULL;
9553 }
9554
9555
9556 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(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_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9569 }
9570 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (bool)(arg1)->EndCharacterStyle();
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_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9587 PyObject *resultobj = 0;
9588 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9589 wxString *arg2 = 0 ;
9590 bool result;
9591 void *argp1 = 0 ;
9592 int res1 = 0 ;
9593 bool temp2 = false ;
9594 PyObject * obj0 = 0 ;
9595 PyObject * obj1 = 0 ;
9596 char * kwnames[] = {
9597 (char *) "self",(char *) "paragraphStyle", NULL
9598 };
9599
9600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9602 if (!SWIG_IsOK(res1)) {
9603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9604 }
9605 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9606 {
9607 arg2 = wxString_in_helper(obj1);
9608 if (arg2 == NULL) SWIG_fail;
9609 temp2 = true;
9610 }
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2);
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 {
9618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9619 }
9620 {
9621 if (temp2)
9622 delete arg2;
9623 }
9624 return resultobj;
9625 fail:
9626 {
9627 if (temp2)
9628 delete arg2;
9629 }
9630 return NULL;
9631 }
9632
9633
9634 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9635 PyObject *resultobj = 0;
9636 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9637 bool result;
9638 void *argp1 = 0 ;
9639 int res1 = 0 ;
9640 PyObject *swig_obj[1] ;
9641
9642 if (!args) SWIG_fail;
9643 swig_obj[0] = args;
9644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9645 if (!SWIG_IsOK(res1)) {
9646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9647 }
9648 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (bool)(arg1)->EndParagraphStyle();
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 {
9656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9657 }
9658 return resultobj;
9659 fail:
9660 return NULL;
9661 }
9662
9663
9664 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9665 PyObject *resultobj = 0;
9666 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9667 bool result;
9668 void *argp1 = 0 ;
9669 int res1 = 0 ;
9670 PyObject *swig_obj[1] ;
9671
9672 if (!args) SWIG_fail;
9673 swig_obj[0] = args;
9674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9675 if (!SWIG_IsOK(res1)) {
9676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9677 }
9678 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 result = (bool)(arg1)->SetDefaultStyleToCursorStyle();
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9687 }
9688 return resultobj;
9689 fail:
9690 return NULL;
9691 }
9692
9693
9694 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9695 PyObject *resultobj = 0;
9696 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9697 void *argp1 = 0 ;
9698 int res1 = 0 ;
9699 PyObject *swig_obj[1] ;
9700
9701 if (!args) SWIG_fail;
9702 swig_obj[0] = args;
9703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9704 if (!SWIG_IsOK(res1)) {
9705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9706 }
9707 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SelectNone();
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 return resultobj;
9716 fail:
9717 return NULL;
9718 }
9719
9720
9721 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9722 PyObject *resultobj = 0;
9723 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9724 wxRichTextRange *result = 0 ;
9725 void *argp1 = 0 ;
9726 int res1 = 0 ;
9727 PyObject *swig_obj[1] ;
9728
9729 if (!args) SWIG_fail;
9730 swig_obj[0] = args;
9731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9732 if (!SWIG_IsOK(res1)) {
9733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
9734 }
9735 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9736 {
9737 PyThreadState* __tstate = wxPyBeginAllowThreads();
9738 {
9739 wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetSelectionRange();
9740 result = (wxRichTextRange *) &_result_ref;
9741 }
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 );
9746 return resultobj;
9747 fail:
9748 return NULL;
9749 }
9750
9751
9752 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9753 PyObject *resultobj = 0;
9754 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9755 wxRichTextRange *arg2 = 0 ;
9756 void *argp1 = 0 ;
9757 int res1 = 0 ;
9758 wxRichTextRange temp2 ;
9759 PyObject * obj0 = 0 ;
9760 PyObject * obj1 = 0 ;
9761 char * kwnames[] = {
9762 (char *) "self",(char *) "range", NULL
9763 };
9764
9765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
9766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9767 if (!SWIG_IsOK(res1)) {
9768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9769 }
9770 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9771 {
9772 arg2 = &temp2;
9773 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
9774 }
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2);
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 resultobj = SWIG_Py_Void();
9782 return resultobj;
9783 fail:
9784 return NULL;
9785 }
9786
9787
9788 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9789 PyObject *resultobj = 0;
9790 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9791 wxString *arg2 = 0 ;
9792 wxRichTextRange result;
9793 void *argp1 = 0 ;
9794 int res1 = 0 ;
9795 bool temp2 = false ;
9796 PyObject * obj0 = 0 ;
9797 PyObject * obj1 = 0 ;
9798 char * kwnames[] = {
9799 (char *) "self",(char *) "text", NULL
9800 };
9801
9802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail;
9803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9804 if (!SWIG_IsOK(res1)) {
9805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9806 }
9807 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9808 {
9809 arg2 = wxString_in_helper(obj1);
9810 if (arg2 == NULL) SWIG_fail;
9811 temp2 = true;
9812 }
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = (arg1)->AddParagraph((wxString const &)*arg2);
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9820 {
9821 if (temp2)
9822 delete arg2;
9823 }
9824 return resultobj;
9825 fail:
9826 {
9827 if (temp2)
9828 delete arg2;
9829 }
9830 return NULL;
9831 }
9832
9833
9834 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9835 PyObject *resultobj = 0;
9836 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9837 wxImage *arg2 = 0 ;
9838 wxRichTextRange result;
9839 void *argp1 = 0 ;
9840 int res1 = 0 ;
9841 void *argp2 = 0 ;
9842 int res2 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "self",(char *) "image", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail;
9850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9851 if (!SWIG_IsOK(res1)) {
9852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9853 }
9854 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
9856 if (!SWIG_IsOK(res2)) {
9857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9858 }
9859 if (!argp2) {
9860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
9861 }
9862 arg2 = reinterpret_cast< wxImage * >(argp2);
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 result = (arg1)->AddImage((wxImage const &)*arg2);
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9879 bool arg2 = (bool) false ;
9880 bool result;
9881 void *argp1 = 0 ;
9882 int res1 = 0 ;
9883 bool val2 ;
9884 int ecode2 = 0 ;
9885 PyObject * obj0 = 0 ;
9886 PyObject * obj1 = 0 ;
9887 char * kwnames[] = {
9888 (char *) "self",(char *) "onlyVisibleRect", NULL
9889 };
9890
9891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail;
9892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9893 if (!SWIG_IsOK(res1)) {
9894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9895 }
9896 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9897 if (obj1) {
9898 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9899 if (!SWIG_IsOK(ecode2)) {
9900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'");
9901 }
9902 arg2 = static_cast< bool >(val2);
9903 }
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = (bool)(arg1)->LayoutContent(arg2);
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 {
9911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9912 }
9913 return resultobj;
9914 fail:
9915 return NULL;
9916 }
9917
9918
9919 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj = 0;
9921 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9922 long arg2 ;
9923 bool arg3 = (bool) false ;
9924 bool result;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 long val2 ;
9928 int ecode2 = 0 ;
9929 bool val3 ;
9930 int ecode3 = 0 ;
9931 PyObject * obj0 = 0 ;
9932 PyObject * obj1 = 0 ;
9933 PyObject * obj2 = 0 ;
9934 char * kwnames[] = {
9935 (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL
9936 };
9937
9938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9940 if (!SWIG_IsOK(res1)) {
9941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9942 }
9943 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9944 ecode2 = SWIG_AsVal_long(obj1, &val2);
9945 if (!SWIG_IsOK(ecode2)) {
9946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'");
9947 }
9948 arg2 = static_cast< long >(val2);
9949 if (obj2) {
9950 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9951 if (!SWIG_IsOK(ecode3)) {
9952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'");
9953 }
9954 arg3 = static_cast< bool >(val3);
9955 }
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 result = (bool)(arg1)->MoveCaret(arg2,arg3);
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 {
9963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9964 }
9965 return resultobj;
9966 fail:
9967 return NULL;
9968 }
9969
9970
9971 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9972 PyObject *resultobj = 0;
9973 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9974 int arg2 = (int) 1 ;
9975 int arg3 = (int) 0 ;
9976 bool result;
9977 void *argp1 = 0 ;
9978 int res1 = 0 ;
9979 int val2 ;
9980 int ecode2 = 0 ;
9981 int val3 ;
9982 int ecode3 = 0 ;
9983 PyObject * obj0 = 0 ;
9984 PyObject * obj1 = 0 ;
9985 PyObject * obj2 = 0 ;
9986 char * kwnames[] = {
9987 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
9988 };
9989
9990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9992 if (!SWIG_IsOK(res1)) {
9993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9994 }
9995 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9996 if (obj1) {
9997 ecode2 = SWIG_AsVal_int(obj1, &val2);
9998 if (!SWIG_IsOK(ecode2)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'");
10000 }
10001 arg2 = static_cast< int >(val2);
10002 }
10003 if (obj2) {
10004 ecode3 = SWIG_AsVal_int(obj2, &val3);
10005 if (!SWIG_IsOK(ecode3)) {
10006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'");
10007 }
10008 arg3 = static_cast< int >(val3);
10009 }
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (bool)(arg1)->MoveRight(arg2,arg3);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 {
10017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10018 }
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj = 0;
10027 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10028 int arg2 = (int) 1 ;
10029 int arg3 = (int) 0 ;
10030 bool result;
10031 void *argp1 = 0 ;
10032 int res1 = 0 ;
10033 int val2 ;
10034 int ecode2 = 0 ;
10035 int val3 ;
10036 int ecode3 = 0 ;
10037 PyObject * obj0 = 0 ;
10038 PyObject * obj1 = 0 ;
10039 PyObject * obj2 = 0 ;
10040 char * kwnames[] = {
10041 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10042 };
10043
10044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10046 if (!SWIG_IsOK(res1)) {
10047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10048 }
10049 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10050 if (obj1) {
10051 ecode2 = SWIG_AsVal_int(obj1, &val2);
10052 if (!SWIG_IsOK(ecode2)) {
10053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'");
10054 }
10055 arg2 = static_cast< int >(val2);
10056 }
10057 if (obj2) {
10058 ecode3 = SWIG_AsVal_int(obj2, &val3);
10059 if (!SWIG_IsOK(ecode3)) {
10060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'");
10061 }
10062 arg3 = static_cast< int >(val3);
10063 }
10064 {
10065 PyThreadState* __tstate = wxPyBeginAllowThreads();
10066 result = (bool)(arg1)->MoveLeft(arg2,arg3);
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 {
10071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10072 }
10073 return resultobj;
10074 fail:
10075 return NULL;
10076 }
10077
10078
10079 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj = 0;
10081 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10082 int arg2 = (int) 1 ;
10083 int arg3 = (int) 0 ;
10084 bool result;
10085 void *argp1 = 0 ;
10086 int res1 = 0 ;
10087 int val2 ;
10088 int ecode2 = 0 ;
10089 int val3 ;
10090 int ecode3 = 0 ;
10091 PyObject * obj0 = 0 ;
10092 PyObject * obj1 = 0 ;
10093 PyObject * obj2 = 0 ;
10094 char * kwnames[] = {
10095 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10096 };
10097
10098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10100 if (!SWIG_IsOK(res1)) {
10101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10102 }
10103 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10104 if (obj1) {
10105 ecode2 = SWIG_AsVal_int(obj1, &val2);
10106 if (!SWIG_IsOK(ecode2)) {
10107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'");
10108 }
10109 arg2 = static_cast< int >(val2);
10110 }
10111 if (obj2) {
10112 ecode3 = SWIG_AsVal_int(obj2, &val3);
10113 if (!SWIG_IsOK(ecode3)) {
10114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'");
10115 }
10116 arg3 = static_cast< int >(val3);
10117 }
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (bool)(arg1)->MoveUp(arg2,arg3);
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 {
10125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10126 }
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj = 0;
10135 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10136 int arg2 = (int) 1 ;
10137 int arg3 = (int) 0 ;
10138 bool result;
10139 void *argp1 = 0 ;
10140 int res1 = 0 ;
10141 int val2 ;
10142 int ecode2 = 0 ;
10143 int val3 ;
10144 int ecode3 = 0 ;
10145 PyObject * obj0 = 0 ;
10146 PyObject * obj1 = 0 ;
10147 PyObject * obj2 = 0 ;
10148 char * kwnames[] = {
10149 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10150 };
10151
10152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10154 if (!SWIG_IsOK(res1)) {
10155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10156 }
10157 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10158 if (obj1) {
10159 ecode2 = SWIG_AsVal_int(obj1, &val2);
10160 if (!SWIG_IsOK(ecode2)) {
10161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'");
10162 }
10163 arg2 = static_cast< int >(val2);
10164 }
10165 if (obj2) {
10166 ecode3 = SWIG_AsVal_int(obj2, &val3);
10167 if (!SWIG_IsOK(ecode3)) {
10168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'");
10169 }
10170 arg3 = static_cast< int >(val3);
10171 }
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 result = (bool)(arg1)->MoveDown(arg2,arg3);
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
10178 {
10179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10180 }
10181 return resultobj;
10182 fail:
10183 return NULL;
10184 }
10185
10186
10187 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10188 PyObject *resultobj = 0;
10189 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10190 int arg2 = (int) 0 ;
10191 bool result;
10192 void *argp1 = 0 ;
10193 int res1 = 0 ;
10194 int val2 ;
10195 int ecode2 = 0 ;
10196 PyObject * obj0 = 0 ;
10197 PyObject * obj1 = 0 ;
10198 char * kwnames[] = {
10199 (char *) "self",(char *) "flags", NULL
10200 };
10201
10202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10204 if (!SWIG_IsOK(res1)) {
10205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10206 }
10207 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10208 if (obj1) {
10209 ecode2 = SWIG_AsVal_int(obj1, &val2);
10210 if (!SWIG_IsOK(ecode2)) {
10211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'");
10212 }
10213 arg2 = static_cast< int >(val2);
10214 }
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (bool)(arg1)->MoveToLineEnd(arg2);
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 {
10222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10223 }
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj = 0;
10232 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10233 int arg2 = (int) 0 ;
10234 bool result;
10235 void *argp1 = 0 ;
10236 int res1 = 0 ;
10237 int val2 ;
10238 int ecode2 = 0 ;
10239 PyObject * obj0 = 0 ;
10240 PyObject * obj1 = 0 ;
10241 char * kwnames[] = {
10242 (char *) "self",(char *) "flags", NULL
10243 };
10244
10245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail;
10246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10247 if (!SWIG_IsOK(res1)) {
10248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10249 }
10250 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10251 if (obj1) {
10252 ecode2 = SWIG_AsVal_int(obj1, &val2);
10253 if (!SWIG_IsOK(ecode2)) {
10254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'");
10255 }
10256 arg2 = static_cast< int >(val2);
10257 }
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (bool)(arg1)->MoveToLineStart(arg2);
10261 wxPyEndAllowThreads(__tstate);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 }
10264 {
10265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10266 }
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10274 PyObject *resultobj = 0;
10275 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10276 int arg2 = (int) 0 ;
10277 bool result;
10278 void *argp1 = 0 ;
10279 int res1 = 0 ;
10280 int val2 ;
10281 int ecode2 = 0 ;
10282 PyObject * obj0 = 0 ;
10283 PyObject * obj1 = 0 ;
10284 char * kwnames[] = {
10285 (char *) "self",(char *) "flags", NULL
10286 };
10287
10288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10292 }
10293 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10294 if (obj1) {
10295 ecode2 = SWIG_AsVal_int(obj1, &val2);
10296 if (!SWIG_IsOK(ecode2)) {
10297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'");
10298 }
10299 arg2 = static_cast< int >(val2);
10300 }
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (bool)(arg1)->MoveToParagraphEnd(arg2);
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10309 }
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10319 int arg2 = (int) 0 ;
10320 bool result;
10321 void *argp1 = 0 ;
10322 int res1 = 0 ;
10323 int val2 ;
10324 int ecode2 = 0 ;
10325 PyObject * obj0 = 0 ;
10326 PyObject * obj1 = 0 ;
10327 char * kwnames[] = {
10328 (char *) "self",(char *) "flags", NULL
10329 };
10330
10331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail;
10332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10333 if (!SWIG_IsOK(res1)) {
10334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10335 }
10336 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10337 if (obj1) {
10338 ecode2 = SWIG_AsVal_int(obj1, &val2);
10339 if (!SWIG_IsOK(ecode2)) {
10340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'");
10341 }
10342 arg2 = static_cast< int >(val2);
10343 }
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = (bool)(arg1)->MoveToParagraphStart(arg2);
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 {
10351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10352 }
10353 return resultobj;
10354 fail:
10355 return NULL;
10356 }
10357
10358
10359 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj = 0;
10361 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10362 int arg2 = (int) 0 ;
10363 bool result;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 int val2 ;
10367 int ecode2 = 0 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char * kwnames[] = {
10371 (char *) "self",(char *) "flags", NULL
10372 };
10373
10374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail;
10375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10378 }
10379 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10380 if (obj1) {
10381 ecode2 = SWIG_AsVal_int(obj1, &val2);
10382 if (!SWIG_IsOK(ecode2)) {
10383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'");
10384 }
10385 arg2 = static_cast< int >(val2);
10386 }
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 result = (bool)(arg1)->MoveHome(arg2);
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 {
10394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10395 }
10396 return resultobj;
10397 fail:
10398 return NULL;
10399 }
10400
10401
10402 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10403 PyObject *resultobj = 0;
10404 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10405 int arg2 = (int) 0 ;
10406 bool result;
10407 void *argp1 = 0 ;
10408 int res1 = 0 ;
10409 int val2 ;
10410 int ecode2 = 0 ;
10411 PyObject * obj0 = 0 ;
10412 PyObject * obj1 = 0 ;
10413 char * kwnames[] = {
10414 (char *) "self",(char *) "flags", NULL
10415 };
10416
10417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10419 if (!SWIG_IsOK(res1)) {
10420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10421 }
10422 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10423 if (obj1) {
10424 ecode2 = SWIG_AsVal_int(obj1, &val2);
10425 if (!SWIG_IsOK(ecode2)) {
10426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'");
10427 }
10428 arg2 = static_cast< int >(val2);
10429 }
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (bool)(arg1)->MoveEnd(arg2);
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 {
10437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10438 }
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj = 0;
10447 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10448 int arg2 = (int) 1 ;
10449 int arg3 = (int) 0 ;
10450 bool result;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 int val2 ;
10454 int ecode2 = 0 ;
10455 int val3 ;
10456 int ecode3 = 0 ;
10457 PyObject * obj0 = 0 ;
10458 PyObject * obj1 = 0 ;
10459 PyObject * obj2 = 0 ;
10460 char * kwnames[] = {
10461 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10462 };
10463
10464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10468 }
10469 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10470 if (obj1) {
10471 ecode2 = SWIG_AsVal_int(obj1, &val2);
10472 if (!SWIG_IsOK(ecode2)) {
10473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'");
10474 }
10475 arg2 = static_cast< int >(val2);
10476 }
10477 if (obj2) {
10478 ecode3 = SWIG_AsVal_int(obj2, &val3);
10479 if (!SWIG_IsOK(ecode3)) {
10480 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'");
10481 }
10482 arg3 = static_cast< int >(val3);
10483 }
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = (bool)(arg1)->PageUp(arg2,arg3);
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 {
10491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10492 }
10493 return resultobj;
10494 fail:
10495 return NULL;
10496 }
10497
10498
10499 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj = 0;
10501 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10502 int arg2 = (int) 1 ;
10503 int arg3 = (int) 0 ;
10504 bool result;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 int val2 ;
10508 int ecode2 = 0 ;
10509 int val3 ;
10510 int ecode3 = 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 PyObject * obj2 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10520 if (!SWIG_IsOK(res1)) {
10521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10522 }
10523 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10524 if (obj1) {
10525 ecode2 = SWIG_AsVal_int(obj1, &val2);
10526 if (!SWIG_IsOK(ecode2)) {
10527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'");
10528 }
10529 arg2 = static_cast< int >(val2);
10530 }
10531 if (obj2) {
10532 ecode3 = SWIG_AsVal_int(obj2, &val3);
10533 if (!SWIG_IsOK(ecode3)) {
10534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'");
10535 }
10536 arg3 = static_cast< int >(val3);
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (bool)(arg1)->PageDown(arg2,arg3);
10541 wxPyEndAllowThreads(__tstate);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 {
10545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10546 }
10547 return resultobj;
10548 fail:
10549 return NULL;
10550 }
10551
10552
10553 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10554 PyObject *resultobj = 0;
10555 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10556 int arg2 = (int) 1 ;
10557 int arg3 = (int) 0 ;
10558 bool result;
10559 void *argp1 = 0 ;
10560 int res1 = 0 ;
10561 int val2 ;
10562 int ecode2 = 0 ;
10563 int val3 ;
10564 int ecode3 = 0 ;
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 PyObject * obj2 = 0 ;
10568 char * kwnames[] = {
10569 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10570 };
10571
10572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10574 if (!SWIG_IsOK(res1)) {
10575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10576 }
10577 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10578 if (obj1) {
10579 ecode2 = SWIG_AsVal_int(obj1, &val2);
10580 if (!SWIG_IsOK(ecode2)) {
10581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'");
10582 }
10583 arg2 = static_cast< int >(val2);
10584 }
10585 if (obj2) {
10586 ecode3 = SWIG_AsVal_int(obj2, &val3);
10587 if (!SWIG_IsOK(ecode3)) {
10588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'");
10589 }
10590 arg3 = static_cast< int >(val3);
10591 }
10592 {
10593 PyThreadState* __tstate = wxPyBeginAllowThreads();
10594 result = (bool)(arg1)->WordLeft(arg2,arg3);
10595 wxPyEndAllowThreads(__tstate);
10596 if (PyErr_Occurred()) SWIG_fail;
10597 }
10598 {
10599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10600 }
10601 return resultobj;
10602 fail:
10603 return NULL;
10604 }
10605
10606
10607 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10608 PyObject *resultobj = 0;
10609 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10610 int arg2 = (int) 1 ;
10611 int arg3 = (int) 0 ;
10612 bool result;
10613 void *argp1 = 0 ;
10614 int res1 = 0 ;
10615 int val2 ;
10616 int ecode2 = 0 ;
10617 int val3 ;
10618 int ecode3 = 0 ;
10619 PyObject * obj0 = 0 ;
10620 PyObject * obj1 = 0 ;
10621 PyObject * obj2 = 0 ;
10622 char * kwnames[] = {
10623 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10624 };
10625
10626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10628 if (!SWIG_IsOK(res1)) {
10629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10630 }
10631 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10632 if (obj1) {
10633 ecode2 = SWIG_AsVal_int(obj1, &val2);
10634 if (!SWIG_IsOK(ecode2)) {
10635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'");
10636 }
10637 arg2 = static_cast< int >(val2);
10638 }
10639 if (obj2) {
10640 ecode3 = SWIG_AsVal_int(obj2, &val3);
10641 if (!SWIG_IsOK(ecode3)) {
10642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'");
10643 }
10644 arg3 = static_cast< int >(val3);
10645 }
10646 {
10647 PyThreadState* __tstate = wxPyBeginAllowThreads();
10648 result = (bool)(arg1)->WordRight(arg2,arg3);
10649 wxPyEndAllowThreads(__tstate);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 }
10652 {
10653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10654 }
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10662 PyObject *resultobj = 0;
10663 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10664 wxRichTextBuffer *result = 0 ;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 PyObject *swig_obj[1] ;
10668
10669 if (!args) SWIG_fail;
10670 swig_obj[0] = args;
10671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10672 if (!SWIG_IsOK(res1)) {
10673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10674 }
10675 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 {
10679 wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer();
10680 result = (wxRichTextBuffer *) &_result_ref;
10681 }
10682 wxPyEndAllowThreads(__tstate);
10683 if (PyErr_Occurred()) SWIG_fail;
10684 }
10685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 );
10686 return resultobj;
10687 fail:
10688 return NULL;
10689 }
10690
10691
10692 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10693 PyObject *resultobj = 0;
10694 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10695 wxString *arg2 = 0 ;
10696 bool result;
10697 void *argp1 = 0 ;
10698 int res1 = 0 ;
10699 bool temp2 = false ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 char * kwnames[] = {
10703 (char *) "self",(char *) "cmdName", NULL
10704 };
10705
10706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail;
10707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10708 if (!SWIG_IsOK(res1)) {
10709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10710 }
10711 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10712 {
10713 arg2 = wxString_in_helper(obj1);
10714 if (arg2 == NULL) SWIG_fail;
10715 temp2 = true;
10716 }
10717 {
10718 PyThreadState* __tstate = wxPyBeginAllowThreads();
10719 result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2);
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 {
10724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10725 }
10726 {
10727 if (temp2)
10728 delete arg2;
10729 }
10730 return resultobj;
10731 fail:
10732 {
10733 if (temp2)
10734 delete arg2;
10735 }
10736 return NULL;
10737 }
10738
10739
10740 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10741 PyObject *resultobj = 0;
10742 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10743 bool result;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 PyObject *swig_obj[1] ;
10747
10748 if (!args) SWIG_fail;
10749 swig_obj[0] = args;
10750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10753 }
10754 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (bool)(arg1)->EndBatchUndo();
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 {
10762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10763 }
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10771 PyObject *resultobj = 0;
10772 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10773 bool result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 PyObject *swig_obj[1] ;
10777
10778 if (!args) SWIG_fail;
10779 swig_obj[0] = args;
10780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo();
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 {
10792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10793 }
10794 return resultobj;
10795 fail:
10796 return NULL;
10797 }
10798
10799
10800 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10801 PyObject *resultobj = 0;
10802 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10803 bool result;
10804 void *argp1 = 0 ;
10805 int res1 = 0 ;
10806 PyObject *swig_obj[1] ;
10807
10808 if (!args) SWIG_fail;
10809 swig_obj[0] = args;
10810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10811 if (!SWIG_IsOK(res1)) {
10812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10813 }
10814 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 result = (bool)(arg1)->BeginSuppressUndo();
10818 wxPyEndAllowThreads(__tstate);
10819 if (PyErr_Occurred()) SWIG_fail;
10820 }
10821 {
10822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10823 }
10824 return resultobj;
10825 fail:
10826 return NULL;
10827 }
10828
10829
10830 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10831 PyObject *resultobj = 0;
10832 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10833 bool result;
10834 void *argp1 = 0 ;
10835 int res1 = 0 ;
10836 PyObject *swig_obj[1] ;
10837
10838 if (!args) SWIG_fail;
10839 swig_obj[0] = args;
10840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10841 if (!SWIG_IsOK(res1)) {
10842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10843 }
10844 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10845 {
10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
10847 result = (bool)(arg1)->EndSuppressUndo();
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10853 }
10854 return resultobj;
10855 fail:
10856 return NULL;
10857 }
10858
10859
10860 SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10861 PyObject *resultobj = 0;
10862 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10863 bool result;
10864 void *argp1 = 0 ;
10865 int res1 = 0 ;
10866 PyObject *swig_obj[1] ;
10867
10868 if (!args) SWIG_fail;
10869 swig_obj[0] = args;
10870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10871 if (!SWIG_IsOK(res1)) {
10872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10873 }
10874 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10875 {
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo();
10878 wxPyEndAllowThreads(__tstate);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 }
10881 {
10882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10883 }
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj = 0;
10892 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10893 wxRichTextRange *arg2 = 0 ;
10894 wxRichTextAttr *arg3 = 0 ;
10895 bool result;
10896 void *argp1 = 0 ;
10897 int res1 = 0 ;
10898 wxRichTextRange temp2 ;
10899 void *argp3 = 0 ;
10900 int res3 = 0 ;
10901 PyObject * obj0 = 0 ;
10902 PyObject * obj1 = 0 ;
10903 PyObject * obj2 = 0 ;
10904 char * kwnames[] = {
10905 (char *) "self",(char *) "range",(char *) "style", NULL
10906 };
10907
10908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10910 if (!SWIG_IsOK(res1)) {
10911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10912 }
10913 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10914 {
10915 arg2 = &temp2;
10916 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10917 }
10918 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10919 if (!SWIG_IsOK(res3)) {
10920 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10921 }
10922 if (!argp3) {
10923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10924 }
10925 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 {
10933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10934 }
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10942 PyObject *resultobj = 0;
10943 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10944 wxRichTextRange *arg2 = 0 ;
10945 wxRichTextAttr *arg3 = 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 wxRichTextRange temp2 ;
10950 void *argp3 = 0 ;
10951 int res3 = 0 ;
10952 PyObject * obj0 = 0 ;
10953 PyObject * obj1 = 0 ;
10954 PyObject * obj2 = 0 ;
10955 char * kwnames[] = {
10956 (char *) "self",(char *) "range",(char *) "style", NULL
10957 };
10958
10959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10963 }
10964 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10965 {
10966 arg2 = &temp2;
10967 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10968 }
10969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
10970 if (!SWIG_IsOK(res3)) {
10971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10972 }
10973 if (!argp3) {
10974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
10975 }
10976 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 {
10984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10985 }
10986 return resultobj;
10987 fail:
10988 return NULL;
10989 }
10990
10991
10992 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10993 PyObject *resultobj = 0;
10994 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 PyObject *swig_obj[1] ;
10999
11000 if (!args) SWIG_fail;
11001 swig_obj[0] = args;
11002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11003 if (!SWIG_IsOK(res1)) {
11004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11005 }
11006 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionBold();
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11023 PyObject *resultobj = 0;
11024 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 PyObject *swig_obj[1] ;
11029
11030 if (!args) SWIG_fail;
11031 swig_obj[0] = args;
11032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11035 }
11036 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionItalics();
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 {
11044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11045 }
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11053 PyObject *resultobj = 0;
11054 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11055 bool result;
11056 void *argp1 = 0 ;
11057 int res1 = 0 ;
11058 PyObject *swig_obj[1] ;
11059
11060 if (!args) SWIG_fail;
11061 swig_obj[0] = args;
11062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11063 if (!SWIG_IsOK(res1)) {
11064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11065 }
11066 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11067 {
11068 PyThreadState* __tstate = wxPyBeginAllowThreads();
11069 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionUnderlined();
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 {
11074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11075 }
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj = 0;
11084 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11085 wxTextAttrAlignment arg2 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 int val2 ;
11090 int ecode2 = 0 ;
11091 PyObject * obj0 = 0 ;
11092 PyObject * obj1 = 0 ;
11093 char * kwnames[] = {
11094 (char *) "self",(char *) "alignment", NULL
11095 };
11096
11097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail;
11098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11099 if (!SWIG_IsOK(res1)) {
11100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11101 }
11102 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11103 ecode2 = SWIG_AsVal_int(obj1, &val2);
11104 if (!SWIG_IsOK(ecode2)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11106 }
11107 arg2 = static_cast< wxTextAttrAlignment >(val2);
11108 {
11109 PyThreadState* __tstate = wxPyBeginAllowThreads();
11110 result = (bool)((wxRichTextCtrl const *)arg1)->IsSelectionAligned(arg2);
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 {
11115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11116 }
11117 return resultobj;
11118 fail:
11119 return NULL;
11120 }
11121
11122
11123 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11124 PyObject *resultobj = 0;
11125 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11126 bool result;
11127 void *argp1 = 0 ;
11128 int res1 = 0 ;
11129 PyObject *swig_obj[1] ;
11130
11131 if (!args) SWIG_fail;
11132 swig_obj[0] = args;
11133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11134 if (!SWIG_IsOK(res1)) {
11135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11136 }
11137 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 result = (bool)(arg1)->ApplyBoldToSelection();
11141 wxPyEndAllowThreads(__tstate);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 }
11144 {
11145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11146 }
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11154 PyObject *resultobj = 0;
11155 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11156 bool result;
11157 void *argp1 = 0 ;
11158 int res1 = 0 ;
11159 PyObject *swig_obj[1] ;
11160
11161 if (!args) SWIG_fail;
11162 swig_obj[0] = args;
11163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = (bool)(arg1)->ApplyItalicToSelection();
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 {
11175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11176 }
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11184 PyObject *resultobj = 0;
11185 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 PyObject *swig_obj[1] ;
11190
11191 if (!args) SWIG_fail;
11192 swig_obj[0] = args;
11193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11194 if (!SWIG_IsOK(res1)) {
11195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11196 }
11197 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 result = (bool)(arg1)->ApplyUnderlineToSelection();
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 {
11205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11206 }
11207 return resultobj;
11208 fail:
11209 return NULL;
11210 }
11211
11212
11213 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj = 0;
11215 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11216 wxTextAttrAlignment arg2 ;
11217 bool result;
11218 void *argp1 = 0 ;
11219 int res1 = 0 ;
11220 int val2 ;
11221 int ecode2 = 0 ;
11222 PyObject * obj0 = 0 ;
11223 PyObject * obj1 = 0 ;
11224 char * kwnames[] = {
11225 (char *) "self",(char *) "alignment", NULL
11226 };
11227
11228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail;
11229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11230 if (!SWIG_IsOK(res1)) {
11231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11232 }
11233 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11234 ecode2 = SWIG_AsVal_int(obj1, &val2);
11235 if (!SWIG_IsOK(ecode2)) {
11236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11237 }
11238 arg2 = static_cast< wxTextAttrAlignment >(val2);
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 result = (bool)(arg1)->ApplyAlignmentToSelection(arg2);
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 {
11246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11247 }
11248 return resultobj;
11249 fail:
11250 return NULL;
11251 }
11252
11253
11254 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj = 0;
11256 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11257 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ;
11258 void *argp1 = 0 ;
11259 int res1 = 0 ;
11260 void *argp2 = 0 ;
11261 int res2 = 0 ;
11262 PyObject * obj0 = 0 ;
11263 PyObject * obj1 = 0 ;
11264 char * kwnames[] = {
11265 (char *) "self",(char *) "styleSheet", NULL
11266 };
11267
11268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11272 }
11273 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11275 if (!SWIG_IsOK(res2)) {
11276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11277 }
11278 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 (arg1)->SetStyleSheet(arg2);
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 resultobj = SWIG_Py_Void();
11286 return resultobj;
11287 fail:
11288 return NULL;
11289 }
11290
11291
11292 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11293 PyObject *resultobj = 0;
11294 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11295 wxRichTextStyleSheet *result = 0 ;
11296 void *argp1 = 0 ;
11297 int res1 = 0 ;
11298 PyObject *swig_obj[1] ;
11299
11300 if (!args) SWIG_fail;
11301 swig_obj[0] = args;
11302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11303 if (!SWIG_IsOK(res1)) {
11304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11305 }
11306 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet();
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11314 return resultobj;
11315 fail:
11316 return NULL;
11317 }
11318
11319
11320 SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11321 PyObject *obj;
11322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11323 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj));
11324 return SWIG_Py_Void();
11325 }
11326
11327 SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11328 return SWIG_Python_InitShadowInstance(args);
11329 }
11330
11331 SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj = 0;
11333 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11334 int arg2 = (int) 0 ;
11335 wxRichTextEvent *result = 0 ;
11336 int val1 ;
11337 int ecode1 = 0 ;
11338 int val2 ;
11339 int ecode2 = 0 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 char * kwnames[] = {
11343 (char *) "commandType",(char *) "winid", NULL
11344 };
11345
11346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11347 if (obj0) {
11348 ecode1 = SWIG_AsVal_int(obj0, &val1);
11349 if (!SWIG_IsOK(ecode1)) {
11350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
11351 }
11352 arg1 = static_cast< wxEventType >(val1);
11353 }
11354 if (obj1) {
11355 ecode2 = SWIG_AsVal_int(obj1, &val2);
11356 if (!SWIG_IsOK(ecode2)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'");
11358 }
11359 arg2 = static_cast< int >(val2);
11360 }
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2);
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 );
11368 return resultobj;
11369 fail:
11370 return NULL;
11371 }
11372
11373
11374 SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11375 PyObject *resultobj = 0;
11376 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11377 int result;
11378 void *argp1 = 0 ;
11379 int res1 = 0 ;
11380 PyObject *swig_obj[1] ;
11381
11382 if (!args) SWIG_fail;
11383 swig_obj[0] = args;
11384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11387 }
11388 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 result = (int)((wxRichTextEvent const *)arg1)->GetIndex();
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 resultobj = SWIG_From_int(static_cast< int >(result));
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj = 0;
11404 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11405 int arg2 ;
11406 void *argp1 = 0 ;
11407 int res1 = 0 ;
11408 int val2 ;
11409 int ecode2 = 0 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 char * kwnames[] = {
11413 (char *) "self",(char *) "n", NULL
11414 };
11415
11416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
11417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11418 if (!SWIG_IsOK(res1)) {
11419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11420 }
11421 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11422 ecode2 = SWIG_AsVal_int(obj1, &val2);
11423 if (!SWIG_IsOK(ecode2)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'");
11425 }
11426 arg2 = static_cast< int >(val2);
11427 {
11428 PyThreadState* __tstate = wxPyBeginAllowThreads();
11429 (arg1)->SetIndex(arg2);
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 resultobj = SWIG_Py_Void();
11434 return resultobj;
11435 fail:
11436 return NULL;
11437 }
11438
11439
11440 SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11441 PyObject *resultobj = 0;
11442 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11443 int result;
11444 void *argp1 = 0 ;
11445 int res1 = 0 ;
11446 PyObject *swig_obj[1] ;
11447
11448 if (!args) SWIG_fail;
11449 swig_obj[0] = args;
11450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11451 if (!SWIG_IsOK(res1)) {
11452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11453 }
11454 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 result = (int)((wxRichTextEvent const *)arg1)->GetFlags();
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 resultobj = SWIG_From_int(static_cast< int >(result));
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj = 0;
11470 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11471 int arg2 ;
11472 void *argp1 = 0 ;
11473 int res1 = 0 ;
11474 int val2 ;
11475 int ecode2 = 0 ;
11476 PyObject * obj0 = 0 ;
11477 PyObject * obj1 = 0 ;
11478 char * kwnames[] = {
11479 (char *) "self",(char *) "flags", NULL
11480 };
11481
11482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11486 }
11487 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11488 ecode2 = SWIG_AsVal_int(obj1, &val2);
11489 if (!SWIG_IsOK(ecode2)) {
11490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'");
11491 }
11492 arg2 = static_cast< int >(val2);
11493 {
11494 PyThreadState* __tstate = wxPyBeginAllowThreads();
11495 (arg1)->SetFlags(arg2);
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 resultobj = SWIG_Py_Void();
11500 return resultobj;
11501 fail:
11502 return NULL;
11503 }
11504
11505
11506 SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11507 PyObject *obj;
11508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11509 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj));
11510 return SWIG_Py_Void();
11511 }
11512
11513 SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11514 return SWIG_Python_InitShadowInstance(args);
11515 }
11516
11517 static PyMethodDef SwigMethods[] = {
11518 { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL},
11519 { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL},
11520 { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
11521 { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
11522 { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL},
11523 { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11524 { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL},
11525 { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL},
11526 { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11527 { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL},
11528 { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL},
11529 { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL},
11530 { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
11531 { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL},
11532 { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL},
11533 { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL},
11534 { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL},
11535 { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL},
11536 { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL},
11537 { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
11538 { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL},
11539 { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL},
11540 { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11541 { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11542 { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
11543 { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11544 { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
11545 { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11546 { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11547 { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11548 { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11549 { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL},
11550 { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
11551 { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
11552 { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11553 { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11554 { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11555 { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL},
11556 { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL},
11557 { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11558 { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11559 { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
11560 { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL},
11561 { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
11562 { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
11563 { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
11564 { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL},
11565 { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL},
11566 { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL},
11567 { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL},
11568 { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL},
11569 { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL},
11570 { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL},
11571 { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL},
11572 { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL},
11573 { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL},
11574 { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL},
11575 { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL},
11576 { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL},
11577 { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL},
11578 { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL},
11579 { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
11580 { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
11581 { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL},
11582 { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
11583 { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
11584 { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
11585 { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL},
11586 { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL},
11587 { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL},
11588 { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL},
11589 { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL},
11590 { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL},
11591 { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL},
11592 { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL},
11593 { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL},
11594 { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL},
11595 { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL},
11596 { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL},
11597 { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL},
11598 { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL},
11599 { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL},
11600 { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL},
11601 { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL},
11602 { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
11603 { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL},
11604 { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL},
11605 { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL},
11606 { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL},
11607 { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL},
11608 { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
11609 { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL},
11610 { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
11611 { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL},
11612 { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
11613 { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11614 { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
11615 { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
11616 { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL},
11617 { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL},
11618 { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL},
11619 { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL},
11620 { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL},
11621 { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL},
11622 { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL},
11623 { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL},
11624 { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL},
11625 { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
11626 { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL},
11627 { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL},
11628 { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
11629 { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
11630 { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
11631 { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
11632 { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL},
11633 { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL},
11634 { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
11635 { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
11636 { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
11637 { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11638 { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11639 { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11640 { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL},
11641 { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11642 { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
11643 { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
11644 { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
11645 { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
11646 { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL},
11647 { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL},
11648 { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL},
11649 { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL},
11650 { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL},
11651 { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL},
11652 { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL},
11653 { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL},
11654 { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL},
11655 { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL},
11656 { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL},
11657 { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL},
11658 { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
11659 { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL},
11660 { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL},
11661 { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL},
11662 { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11663 { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL},
11664 { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
11665 { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL},
11666 { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL},
11667 { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
11668 { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL},
11669 { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL},
11670 { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL},
11671 { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11672 { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL},
11673 { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL},
11674 { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL},
11675 { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL},
11676 { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL},
11677 { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL},
11678 { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL},
11679 { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL},
11680 { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11681 { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL},
11682 { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL},
11683 { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL},
11684 { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11685 { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL},
11686 { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11687 { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL},
11688 { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11689 { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL},
11690 { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11691 { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL},
11692 { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11693 { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL},
11694 { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11695 { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL},
11696 { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11697 { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL},
11698 { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL},
11699 { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL},
11700 { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11701 { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL},
11702 { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11703 { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL},
11704 { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL},
11705 { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL},
11706 { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL},
11707 { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
11708 { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL},
11709 { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL},
11710 { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL},
11711 { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL},
11712 { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL},
11713 { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11714 { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL},
11715 { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL},
11716 { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11717 { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL},
11718 { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11719 { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL},
11720 { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL},
11721 { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11722 { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
11723 { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
11724 { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL},
11725 { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL},
11726 { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL},
11727 { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL},
11728 { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL},
11729 { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL},
11730 { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL},
11731 { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL},
11732 { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL},
11733 { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11734 { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11735 { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL},
11736 { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL},
11737 { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL},
11738 { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL},
11739 { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL},
11740 { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL},
11741 { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL},
11742 { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL},
11743 { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
11744 { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL},
11745 { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL},
11746 { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL},
11747 { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
11748 { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL},
11749 { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
11750 { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL},
11751 { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11752 { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL},
11753 { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL},
11754 { NULL, NULL, 0, NULL }
11755 };
11756
11757
11758 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
11759
11760 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
11761 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
11762 }
11763 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
11764 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
11765 }
11766 static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
11767 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11768 }
11769 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
11770 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11771 }
11772 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
11773 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11774 }
11775 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
11776 return (void *)((wxPanel *) ((wxPyPanel *) x));
11777 }
11778 static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) {
11779 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x));
11780 }
11781 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
11782 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
11783 }
11784 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
11785 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
11786 }
11787 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
11788 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11789 }
11790 static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) {
11791 return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x));
11792 }
11793 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
11794 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
11795 }
11796 static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
11797 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11798 }
11799 static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) {
11800 return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x));
11801 }
11802 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
11803 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
11804 }
11805 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
11806 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
11807 }
11808 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
11809 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
11810 }
11811 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
11812 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
11813 }
11814 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
11815 return (void *)((wxWindow *) ((wxMenuBar *) x));
11816 }
11817 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
11818 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
11819 }
11820 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
11821 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
11822 }
11823 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
11824 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
11825 }
11826 static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) {
11827 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
11828 }
11829 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
11830 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
11831 }
11832 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
11833 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
11834 }
11835 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
11836 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
11837 }
11838 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
11839 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
11840 }
11841 static void *_p_wxPanelTo_p_wxWindow(void *x) {
11842 return (void *)((wxWindow *) ((wxPanel *) x));
11843 }
11844 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
11845 return (void *)((wxWindow *) ((wxStatusBar *) x));
11846 }
11847 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
11848 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
11849 }
11850 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
11851 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
11852 }
11853 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
11854 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
11855 }
11856 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
11857 return (void *)((wxWindow *) ((wxPopupWindow *) x));
11858 }
11859 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
11860 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
11861 }
11862 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
11863 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
11864 }
11865 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
11866 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
11867 }
11868 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
11869 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
11870 }
11871 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
11872 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
11873 }
11874 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
11875 return (void *)((wxWindow *) ((wxSashWindow *) x));
11876 }
11877 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
11878 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
11879 }
11880 static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
11881 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
11882 }
11883 static void *_p_wxControlTo_p_wxWindow(void *x) {
11884 return (void *)((wxWindow *) ((wxControl *) x));
11885 }
11886 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
11887 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
11888 }
11889 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
11890 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
11891 }
11892 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
11893 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
11894 }
11895 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
11896 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
11897 }
11898 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
11899 return (void *)((wxWindow *) ((wxPyWindow *) x));
11900 }
11901 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
11902 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
11903 }
11904 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
11905 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
11906 }
11907 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
11908 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
11909 }
11910 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
11911 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
11912 }
11913 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
11914 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
11915 }
11916 static void *_p_wxFrameTo_p_wxWindow(void *x) {
11917 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
11918 }
11919 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
11920 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
11921 }
11922 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
11923 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
11924 }
11925 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
11926 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
11927 }
11928 static void *_p_wxDialogTo_p_wxWindow(void *x) {
11929 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
11930 }
11931 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
11932 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
11933 }
11934 static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) {
11935 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
11936 }
11937 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
11938 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
11939 }
11940 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
11941 return (void *)((wxEvent *) ((wxMenuEvent *) x));
11942 }
11943 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
11944 return (void *)((wxEvent *) ((wxCloseEvent *) x));
11945 }
11946 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
11947 return (void *)((wxEvent *) ((wxMouseEvent *) x));
11948 }
11949 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
11950 return (void *)((wxEvent *) ((wxEraseEvent *) x));
11951 }
11952 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
11953 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
11954 }
11955 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
11956 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
11957 }
11958 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
11959 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
11960 }
11961 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
11962 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
11963 }
11964 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
11965 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
11966 }
11967 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
11968 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
11969 }
11970 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
11971 return (void *)((wxEvent *) ((wxPyEvent *) x));
11972 }
11973 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
11974 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
11975 }
11976 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
11977 return (void *)((wxEvent *) ((wxIdleEvent *) x));
11978 }
11979 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
11980 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
11981 }
11982 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
11983 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
11984 }
11985 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
11986 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
11987 }
11988 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
11989 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
11990 }
11991 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
11992 return (void *)((wxEvent *) ((wxActivateEvent *) x));
11993 }
11994 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
11995 return (void *)((wxEvent *) ((wxSizeEvent *) x));
11996 }
11997 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
11998 return (void *)((wxEvent *) ((wxMoveEvent *) x));
11999 }
12000 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
12001 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
12002 }
12003 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
12004 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
12005 }
12006 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
12007 return (void *)((wxEvent *) ((wxPaintEvent *) x));
12008 }
12009 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
12010 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
12011 }
12012 static void *_p_wxRichTextEventTo_p_wxEvent(void *x) {
12013 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12014 }
12015 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
12016 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
12017 }
12018 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
12019 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
12020 }
12021 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
12022 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
12023 }
12024 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
12025 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12026 }
12027 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
12028 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
12029 }
12030 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
12031 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
12032 }
12033 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
12034 return (void *)((wxEvent *) ((wxFocusEvent *) x));
12035 }
12036 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
12037 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
12038 }
12039 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
12040 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
12041 }
12042 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
12043 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12044 }
12045 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
12046 return (void *)((wxEvent *) ((wxShowEvent *) x));
12047 }
12048 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
12049 return (void *)((wxEvent *) ((wxCommandEvent *) x));
12050 }
12051 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
12052 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
12053 }
12054 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
12055 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12056 }
12057 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
12058 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
12059 }
12060 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
12061 return (void *)((wxEvent *) ((wxKeyEvent *) x));
12062 }
12063 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
12064 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
12065 }
12066 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
12067 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
12068 }
12069 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
12070 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
12071 }
12072 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
12073 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12074 }
12075 static void *_p_wxEventTo_p_wxObject(void *x) {
12076 return (void *)((wxObject *) ((wxEvent *) x));
12077 }
12078 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
12079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
12080 }
12081 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
12082 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
12083 }
12084 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
12085 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
12086 }
12087 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
12088 return (void *)((wxObject *) ((wxMetaFile *) x));
12089 }
12090 static void *_p_wxIconTo_p_wxObject(void *x) {
12091 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
12092 }
12093 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
12094 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12095 }
12096 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
12097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12098 }
12099 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
12100 return (void *)((wxObject *) ((wxMenuItem *) x));
12101 }
12102 static void *_p_wxImageTo_p_wxObject(void *x) {
12103 return (void *)((wxObject *) ((wxImage *) x));
12104 }
12105 static void *_p_wxPySizerTo_p_wxObject(void *x) {
12106 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
12107 }
12108 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
12109 return (void *)((wxObject *) ((wxEncodingConverter *) x));
12110 }
12111 static void *_p_wxEffectsTo_p_wxObject(void *x) {
12112 return (void *)((wxObject *) ((wxEffects *) x));
12113 }
12114 static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) {
12115 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12116 }
12117 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
12118 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
12119 }
12120 static void *_p_wxPyAppTo_p_wxObject(void *x) {
12121 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
12122 }
12123 static void *_p_wxFontTo_p_wxObject(void *x) {
12124 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
12125 }
12126 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
12127 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12128 }
12129 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
12130 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12131 }
12132 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
12133 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
12134 }
12135 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
12136 return (void *)((wxObject *) ((wxFindReplaceData *) x));
12137 }
12138 static void *_p_wxValidatorTo_p_wxObject(void *x) {
12139 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
12140 }
12141 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
12142 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
12143 }
12144 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
12145 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
12146 }
12147 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
12148 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
12149 }
12150 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
12151 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
12152 }
12153 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
12154 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
12155 }
12156 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
12157 return (void *)((wxObject *) ((wxPrintDialogData *) x));
12158 }
12159 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
12160 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
12161 }
12162 static void *_p_wxPrinterTo_p_wxObject(void *x) {
12163 return (void *)((wxObject *) ((wxPrinter *) x));
12164 }
12165 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
12166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12167 }
12168 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
12169 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
12170 }
12171 static void *_p_wxImageListTo_p_wxObject(void *x) {
12172 return (void *)((wxObject *) ((wxImageList *) x));
12173 }
12174 static void *_p_wxDCTo_p_wxObject(void *x) {
12175 return (void *)((wxObject *) ((wxDC *) x));
12176 }
12177 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
12178 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
12179 }
12180 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
12181 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
12182 }
12183 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
12184 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
12185 }
12186 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
12187 return (void *)((wxObject *) ((wxRegionIterator *) x));
12188 }
12189 static void *_p_wxControlTo_p_wxObject(void *x) {
12190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
12191 }
12192 static void *_p_wxColourDataTo_p_wxObject(void *x) {
12193 return (void *)((wxObject *) ((wxColourData *) x));
12194 }
12195 static void *_p_wxMaskTo_p_wxObject(void *x) {
12196 return (void *)((wxObject *) ((wxMask *) x));
12197 }
12198 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
12199 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
12200 }
12201 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
12202 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
12203 }
12204 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
12205 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
12206 }
12207 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
12208 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
12209 }
12210 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
12211 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
12212 }
12213 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
12214 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
12215 }
12216 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
12217 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
12218 }
12219 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
12220 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
12221 }
12222 static void *_p_wxDateEventTo_p_wxObject(void *x) {
12223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
12224 }
12225 static void *_p_wxBrushTo_p_wxObject(void *x) {
12226 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
12227 }
12228 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
12229 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
12230 }
12231 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
12232 return (void *)((wxObject *) ((wxPyPrintout *) x));
12233 }
12234 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
12235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12236 }
12237 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
12238 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
12239 }
12240 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
12241 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
12242 }
12243 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
12244 return (void *)((wxObject *) ((wxGDIObject *) x));
12245 }
12246 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
12247 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
12248 }
12249 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
12250 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
12251 }
12252 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
12253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12254 }
12255 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
12256 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
12257 }
12258 static void *_p_wxSashEventTo_p_wxObject(void *x) {
12259 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
12260 }
12261 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
12262 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12263 }
12264 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
12265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12266 }
12267 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
12268 return (void *)((wxObject *) ((wxPrintData *) x));
12269 }
12270 static void *_p_wxFontDataTo_p_wxObject(void *x) {
12271 return (void *)((wxObject *) ((wxFontData *) x));
12272 }
12273 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
12274 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12275 }
12276 static void *_p_wxFrameTo_p_wxObject(void *x) {
12277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12278 }
12279 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
12280 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12281 }
12282 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
12283 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12284 }
12285 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
12286 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12287 }
12288 static void *_p_wxColourTo_p_wxObject(void *x) {
12289 return (void *)((wxObject *) ((wxColour *) x));
12290 }
12291 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
12292 return (void *)((wxObject *) ((wxFileSystem *) x));
12293 }
12294 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
12295 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
12296 }
12297 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
12298 return (void *)((wxObject *) ((wxPrintPreview *) x));
12299 }
12300 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
12301 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
12302 }
12303 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
12304 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
12305 }
12306 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
12307 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
12308 }
12309 static void *_p_wxSizerTo_p_wxObject(void *x) {
12310 return (void *)((wxObject *) ((wxSizer *) x));
12311 }
12312 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
12313 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
12314 }
12315 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
12316 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
12317 }
12318 static void *_p_wxCursorTo_p_wxObject(void *x) {
12319 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
12320 }
12321 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
12322 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
12323 }
12324 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
12325 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
12326 }
12327 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
12328 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
12329 }
12330 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
12331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
12332 }
12333 static void *_p_wxRichTextEventTo_p_wxObject(void *x) {
12334 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12335 }
12336 static void *_p_wxFSFileTo_p_wxObject(void *x) {
12337 return (void *)((wxObject *) ((wxFSFile *) x));
12338 }
12339 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
12340 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
12341 }
12342 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
12343 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
12344 }
12345 static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) {
12346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12347 }
12348 static void *_p_wxPenTo_p_wxObject(void *x) {
12349 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
12350 }
12351 static void *_p_wxMenuTo_p_wxObject(void *x) {
12352 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
12353 }
12354 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
12355 return (void *)((wxObject *) ((wxSizerItem *) x));
12356 }
12357 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
12358 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
12359 }
12360 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
12361 return (void *)((wxObject *) ((wxPrintDialog *) x));
12362 }
12363 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
12364 return (void *)((wxObject *) ((wxPageSetupDialog *) x));
12365 }
12366 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
12367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12368 }
12369 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
12370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12371 }
12372 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
12373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12374 }
12375 static void *_p_wxDialogTo_p_wxObject(void *x) {
12376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12377 }
12378 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
12379 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
12380 }
12381 static void *_p_wxPyEventTo_p_wxObject(void *x) {
12382 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
12383 }
12384 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
12385 return (void *)((wxObject *) ((wxEvtHandler *) x));
12386 }
12387 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
12388 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
12389 }
12390 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
12391 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
12392 }
12393 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
12394 return (void *)((wxObject *) ((wxImageHandler *) x));
12395 }
12396 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
12397 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
12398 }
12399 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
12400 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
12401 }
12402 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
12403 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
12404 }
12405 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
12406 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
12407 }
12408 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
12409 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
12410 }
12411 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
12412 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
12413 }
12414 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
12415 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
12416 }
12417 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
12418 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
12419 }
12420 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
12421 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
12422 }
12423 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
12424 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
12425 }
12426 static void *_p_wxShowEventTo_p_wxObject(void *x) {
12427 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
12428 }
12429 static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
12430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12431 }
12432 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
12433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
12434 }
12435 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
12436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12437 }
12438 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
12439 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
12440 }
12441 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
12442 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12443 }
12444 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
12445 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
12446 }
12447 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
12448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12449 }
12450 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
12451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
12452 }
12453 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
12454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
12455 }
12456 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
12457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
12458 }
12459 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
12460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
12461 }
12462 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
12463 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12464 }
12465 static void *_p_wxWindowTo_p_wxObject(void *x) {
12466 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
12467 }
12468 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
12469 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
12470 }
12471 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
12472 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
12473 }
12474 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
12475 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
12476 }
12477 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
12478 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
12479 }
12480 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
12481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12482 }
12483 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
12484 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12485 }
12486 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
12487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12488 }
12489 static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) {
12490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12491 }
12492 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
12493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12494 }
12495 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
12496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12497 }
12498 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
12499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12500 }
12501 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
12502 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12503 }
12504 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
12505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
12506 }
12507 static void *_p_wxRegionTo_p_wxObject(void *x) {
12508 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
12509 }
12510 static void *_p_wxPaletteTo_p_wxObject(void *x) {
12511 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
12512 }
12513 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
12514 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
12515 }
12516 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
12517 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12518 }
12519 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
12520 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
12521 }
12522 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
12523 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
12524 }
12525 static void *_p_wxClientDCTo_p_wxObject(void *x) {
12526 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
12527 }
12528 static void *_p_wxPanelTo_p_wxObject(void *x) {
12529 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
12530 }
12531 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
12532 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
12533 }
12534 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
12535 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
12536 }
12537 static void *_p_wxBitmapTo_p_wxObject(void *x) {
12538 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
12539 }
12540 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
12541 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
12542 }
12543 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
12544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
12545 }
12546 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
12547 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
12548 }
12549 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
12550 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
12551 }
12552 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
12553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
12554 }
12555 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
12556 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
12557 }
12558 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
12559 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
12560 }
12561 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
12562 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
12563 }
12564 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
12565 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12566 }
12567 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
12568 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
12569 }
12570 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
12571 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12572 }
12573 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
12574 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12575 }
12576 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
12577 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12578 }
12579 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
12580 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
12581 }
12582 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
12583 return (void *)((wxEvtHandler *) ((wxValidator *) x));
12584 }
12585 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
12586 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
12587 }
12588 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
12589 return (void *)((wxEvtHandler *) ((wxMenu *) x));
12590 }
12591 static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) {
12592 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12593 }
12594 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
12595 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12596 }
12597 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
12598 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12599 }
12600 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
12601 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12602 }
12603 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
12604 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12605 }
12606 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
12607 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12608 }
12609 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
12610 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12611 }
12612 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
12613 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12614 }
12615 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
12616 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
12617 }
12618 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
12619 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
12620 }
12621 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
12622 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12623 }
12624 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
12625 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
12626 }
12627 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
12628 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12629 }
12630 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
12631 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
12632 }
12633 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
12634 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12635 }
12636 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
12637 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
12638 }
12639 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
12640 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
12641 }
12642 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
12643 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
12644 }
12645 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
12646 return (void *)((wxEvtHandler *) ((wxWindow *) x));
12647 }
12648 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
12649 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12650 }
12651 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
12652 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
12653 }
12654 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
12655 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
12656 }
12657 static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
12658 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12659 }
12660 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
12661 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
12662 }
12663 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
12664 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12665 }
12666 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
12667 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12668 }
12669 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
12670 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12671 }
12672 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
12673 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
12674 }
12675 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
12676 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12677 }
12678 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
12679 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
12680 }
12681 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
12682 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12683 }
12684 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
12685 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12686 }
12687 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
12688 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12689 }
12690 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
12691 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12692 }
12693 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
12694 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12695 }
12696 static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) {
12697 return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12698 }
12699 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
12700 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12701 }
12702 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
12703 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12704 }
12705 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
12706 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12707 }
12708 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
12709 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12710 }
12711 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
12712 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12713 }
12714 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
12715 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12716 }
12717 static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) {
12718 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12719 }
12720 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
12721 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
12722 }
12723 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
12724 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12725 }
12726 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
12727 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
12728 }
12729 static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) {
12730 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x));
12731 }
12732 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
12733 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
12734 }
12735 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
12736 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
12737 }
12738 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
12739 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
12740 }
12741 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
12742 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
12743 }
12744 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
12745 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
12746 }
12747 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
12748 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
12749 }
12750 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
12751 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
12752 }
12753 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
12754 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
12755 }
12756 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
12757 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
12758 }
12759 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
12760 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
12761 }
12762 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12763 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};
12764 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
12765 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
12766 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
12767 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
12768 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
12769 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
12770 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
12771 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
12772 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
12773 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
12774 static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0};
12775 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
12776 static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0};
12777 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
12778 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
12779 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
12780 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
12781 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
12782 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
12783 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
12784 static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0};
12785 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
12786 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
12787 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
12788 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
12789 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
12790 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
12791 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
12792 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
12793 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
12794 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
12795 static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0};
12796 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
12797 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
12798 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
12799 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
12800 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
12801 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
12802 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
12803 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
12804 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
12805 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
12806 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
12807 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
12808 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
12809 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
12810 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
12811 static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0};
12812 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
12813 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
12814 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
12815 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
12816 static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0};
12817 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
12818 static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0};
12819 static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0};
12820 static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0};
12821 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
12822 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
12823 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
12824 static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0};
12825 static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0};
12826 static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0};
12827 static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0};
12828 static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0};
12829 static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0};
12830 static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0};
12831 static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0};
12832 static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0};
12833 static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0};
12834 static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0};
12835 static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0};
12836 static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0};
12837 static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0};
12838 static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0};
12839 static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0};
12840 static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0};
12841 static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0};
12842 static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0};
12843 static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0};
12844 static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0};
12845 static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0};
12846 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
12847 static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0};
12848 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
12849 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
12850 static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0};
12851 static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0};
12852 static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0};
12853 static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0};
12854 static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0};
12855 static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0};
12856 static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0};
12857 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0};
12858 static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0};
12859 static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0};
12860 static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0};
12861 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0};
12862 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
12863 static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0};
12864 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
12865 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
12866 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
12867 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
12868 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", 0, 0, 0, 0, 0};
12869 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
12870 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
12871 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
12872 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", 0, 0, 0, 0, 0};
12873 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", 0, 0, 0, 0, 0};
12874 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", 0, 0, 0, 0, 0};
12875 static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0};
12876 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", 0, 0, 0, 0, 0};
12877 static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0};
12878 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", 0, 0, 0, 0, 0};
12879 static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0};
12880 static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0};
12881 static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0};
12882 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", 0, 0, 0, 0, 0};
12883 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", 0, 0, 0, 0, 0};
12884 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
12885 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
12886 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
12887 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", 0, 0, 0, 0, 0};
12888 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", 0, 0, 0, 0, 0};
12889 static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0};
12890 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", 0, 0, 0, 0, 0};
12891 static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0};
12892 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", 0, 0, 0, 0, 0};
12893 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
12894 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", 0, 0, 0, 0, 0};
12895 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", 0, 0, 0, 0, 0};
12896 static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0};
12897 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0};
12898 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
12899 static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0};
12900 static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0};
12901 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", 0, 0, 0, 0, 0};
12902 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0};
12903 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
12904 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
12905 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
12906 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
12907 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", 0, 0, 0, 0, 0};
12908 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
12909 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
12910 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
12911 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
12912 static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0};
12913 static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0};
12914 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
12915 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
12916 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
12917 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
12918 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
12919 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
12920 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
12921 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
12922 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
12923 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
12924 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
12925 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
12926 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
12927 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", 0, 0, 0, 0, 0};
12928 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", 0, 0, 0, 0, 0};
12929 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", 0, 0, 0, 0, 0};
12930 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", 0, 0, 0, 0, 0};
12931 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", 0, 0, 0, 0, 0};
12932 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", 0, 0, 0, 0, 0};
12933 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", 0, 0, 0, 0, 0};
12934 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", 0, 0, 0, 0, 0};
12935 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
12936 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
12937 static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0};
12938 static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0};
12939 static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0};
12940 static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0};
12941 static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0};
12942 static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0};
12943 static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0};
12944 static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0};
12945 static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0};
12946 static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0};
12947 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
12948
12949 static swig_type_info *swig_type_initial[] = {
12950 &_swigt__p_char,
12951 &_swigt__p_form_ops_t,
12952 &_swigt__p_int,
12953 &_swigt__p_long,
12954 &_swigt__p_unsigned_char,
12955 &_swigt__p_unsigned_int,
12956 &_swigt__p_unsigned_long,
12957 &_swigt__p_wxANIHandler,
12958 &_swigt__p_wxAcceleratorTable,
12959 &_swigt__p_wxActivateEvent,
12960 &_swigt__p_wxArrayInt,
12961 &_swigt__p_wxBMPHandler,
12962 &_swigt__p_wxBitmap,
12963 &_swigt__p_wxBoxSizer,
12964 &_swigt__p_wxBrush,
12965 &_swigt__p_wxBufferedDC,
12966 &_swigt__p_wxBufferedPaintDC,
12967 &_swigt__p_wxCURHandler,
12968 &_swigt__p_wxCalculateLayoutEvent,
12969 &_swigt__p_wxChar,
12970 &_swigt__p_wxChildFocusEvent,
12971 &_swigt__p_wxClientDC,
12972 &_swigt__p_wxClipboardTextEvent,
12973 &_swigt__p_wxCloseEvent,
12974 &_swigt__p_wxColour,
12975 &_swigt__p_wxColourData,
12976 &_swigt__p_wxColourDialog,
12977 &_swigt__p_wxCommandEvent,
12978 &_swigt__p_wxContextMenuEvent,
12979 &_swigt__p_wxControl,
12980 &_swigt__p_wxControlWithItems,
12981 &_swigt__p_wxCursor,
12982 &_swigt__p_wxDC,
12983 &_swigt__p_wxDateEvent,
12984 &_swigt__p_wxDialog,
12985 &_swigt__p_wxDirDialog,
12986 &_swigt__p_wxDisplayChangedEvent,
12987 &_swigt__p_wxDropFilesEvent,
12988 &_swigt__p_wxDuplexMode,
12989 &_swigt__p_wxEffects,
12990 &_swigt__p_wxEncodingConverter,
12991 &_swigt__p_wxEraseEvent,
12992 &_swigt__p_wxEvent,
12993 &_swigt__p_wxEvtHandler,
12994 &_swigt__p_wxFSFile,
12995 &_swigt__p_wxFileDialog,
12996 &_swigt__p_wxFileSystem,
12997 &_swigt__p_wxFindDialogEvent,
12998 &_swigt__p_wxFindReplaceData,
12999 &_swigt__p_wxFindReplaceDialog,
13000 &_swigt__p_wxFlexGridSizer,
13001 &_swigt__p_wxFocusEvent,
13002 &_swigt__p_wxFont,
13003 &_swigt__p_wxFontData,
13004 &_swigt__p_wxFontDialog,
13005 &_swigt__p_wxFrame,
13006 &_swigt__p_wxGBSizerItem,
13007 &_swigt__p_wxGDIObject,
13008 &_swigt__p_wxGIFHandler,
13009 &_swigt__p_wxGridBagSizer,
13010 &_swigt__p_wxGridSizer,
13011 &_swigt__p_wxICOHandler,
13012 &_swigt__p_wxIcon,
13013 &_swigt__p_wxIconizeEvent,
13014 &_swigt__p_wxIdleEvent,
13015 &_swigt__p_wxImage,
13016 &_swigt__p_wxImageHandler,
13017 &_swigt__p_wxImageList,
13018 &_swigt__p_wxIndividualLayoutConstraint,
13019 &_swigt__p_wxInitDialogEvent,
13020 &_swigt__p_wxJPEGHandler,
13021 &_swigt__p_wxKeyEvent,
13022 &_swigt__p_wxLayoutAlgorithm,
13023 &_swigt__p_wxLayoutConstraints,
13024 &_swigt__p_wxMDIChildFrame,
13025 &_swigt__p_wxMDIClientWindow,
13026 &_swigt__p_wxMDIParentFrame,
13027 &_swigt__p_wxMask,
13028 &_swigt__p_wxMaximizeEvent,
13029 &_swigt__p_wxMemoryDC,
13030 &_swigt__p_wxMenu,
13031 &_swigt__p_wxMenuBar,
13032 &_swigt__p_wxMenuEvent,
13033 &_swigt__p_wxMenuItem,
13034 &_swigt__p_wxMessageDialog,
13035 &_swigt__p_wxMetaFile,
13036 &_swigt__p_wxMetaFileDC,
13037 &_swigt__p_wxMiniFrame,
13038 &_swigt__p_wxMirrorDC,
13039 &_swigt__p_wxMouseCaptureChangedEvent,
13040 &_swigt__p_wxMouseEvent,
13041 &_swigt__p_wxMoveEvent,
13042 &_swigt__p_wxMultiChoiceDialog,
13043 &_swigt__p_wxNavigationKeyEvent,
13044 &_swigt__p_wxNcPaintEvent,
13045 &_swigt__p_wxNotifyEvent,
13046 &_swigt__p_wxObject,
13047 &_swigt__p_wxPCXHandler,
13048 &_swigt__p_wxPNGHandler,
13049 &_swigt__p_wxPNMHandler,
13050 &_swigt__p_wxPageSetupDialog,
13051 &_swigt__p_wxPageSetupDialogData,
13052 &_swigt__p_wxPaintDC,
13053 &_swigt__p_wxPaintEvent,
13054 &_swigt__p_wxPalette,
13055 &_swigt__p_wxPaletteChangedEvent,
13056 &_swigt__p_wxPanel,
13057 &_swigt__p_wxPaperSize,
13058 &_swigt__p_wxPasswordEntryDialog,
13059 &_swigt__p_wxPen,
13060 &_swigt__p_wxPopupWindow,
13061 &_swigt__p_wxPostScriptDC,
13062 &_swigt__p_wxPreviewCanvas,
13063 &_swigt__p_wxPreviewControlBar,
13064 &_swigt__p_wxPreviewFrame,
13065 &_swigt__p_wxPrintData,
13066 &_swigt__p_wxPrintDialog,
13067 &_swigt__p_wxPrintDialogData,
13068 &_swigt__p_wxPrintPreview,
13069 &_swigt__p_wxPrinter,
13070 &_swigt__p_wxPrinterDC,
13071 &_swigt__p_wxProgressDialog,
13072 &_swigt__p_wxPyApp,
13073 &_swigt__p_wxPyCommandEvent,
13074 &_swigt__p_wxPyEvent,
13075 &_swigt__p_wxPyHtmlListBox,
13076 &_swigt__p_wxPyImageHandler,
13077 &_swigt__p_wxPyPanel,
13078 &_swigt__p_wxPyPopupTransientWindow,
13079 &_swigt__p_wxPyPreviewControlBar,
13080 &_swigt__p_wxPyPreviewFrame,
13081 &_swigt__p_wxPyPrintPreview,
13082 &_swigt__p_wxPyPrintout,
13083 &_swigt__p_wxPyScrolledWindow,
13084 &_swigt__p_wxPySizer,
13085 &_swigt__p_wxPyTaskBarIcon,
13086 &_swigt__p_wxPyVListBox,
13087 &_swigt__p_wxPyVScrolledWindow,
13088 &_swigt__p_wxPyValidator,
13089 &_swigt__p_wxPyWindow,
13090 &_swigt__p_wxQueryLayoutInfoEvent,
13091 &_swigt__p_wxQueryNewPaletteEvent,
13092 &_swigt__p_wxRegion,
13093 &_swigt__p_wxRegionIterator,
13094 &_swigt__p_wxRichTextAttr,
13095 &_swigt__p_wxRichTextBuffer,
13096 &_swigt__p_wxRichTextCtrl,
13097 &_swigt__p_wxRichTextEvent,
13098 &_swigt__p_wxRichTextImageBlock,
13099 &_swigt__p_wxRichTextRange,
13100 &_swigt__p_wxRichTextStyleSheet,
13101 &_swigt__p_wxSashEvent,
13102 &_swigt__p_wxSashLayoutWindow,
13103 &_swigt__p_wxSashWindow,
13104 &_swigt__p_wxScreenDC,
13105 &_swigt__p_wxScrollEvent,
13106 &_swigt__p_wxScrollWinEvent,
13107 &_swigt__p_wxScrolledWindow,
13108 &_swigt__p_wxSetCursorEvent,
13109 &_swigt__p_wxShowEvent,
13110 &_swigt__p_wxSingleChoiceDialog,
13111 &_swigt__p_wxSizeEvent,
13112 &_swigt__p_wxSizer,
13113 &_swigt__p_wxSizerItem,
13114 &_swigt__p_wxSplashScreen,
13115 &_swigt__p_wxSplashScreenWindow,
13116 &_swigt__p_wxSplitterEvent,
13117 &_swigt__p_wxSplitterWindow,
13118 &_swigt__p_wxStaticBoxSizer,
13119 &_swigt__p_wxStatusBar,
13120 &_swigt__p_wxStdDialogButtonSizer,
13121 &_swigt__p_wxSysColourChangedEvent,
13122 &_swigt__p_wxTIFFHandler,
13123 &_swigt__p_wxTaskBarIconEvent,
13124 &_swigt__p_wxTextCoord,
13125 &_swigt__p_wxTextCtrlHitTestResult,
13126 &_swigt__p_wxTextEntryDialog,
13127 &_swigt__p_wxTipWindow,
13128 &_swigt__p_wxTopLevelWindow,
13129 &_swigt__p_wxUpdateUIEvent,
13130 &_swigt__p_wxValidator,
13131 &_swigt__p_wxWindow,
13132 &_swigt__p_wxWindowCreateEvent,
13133 &_swigt__p_wxWindowDC,
13134 &_swigt__p_wxWindowDestroyEvent,
13135 &_swigt__p_wxXPMHandler,
13136 };
13137
13138 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
13139 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
13140 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
13141 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
13142 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
13143 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
13144 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
13145 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
13146 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
13147 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
13148 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
13149 static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}};
13150 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
13151 static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}};
13152 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13153 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
13154 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
13155 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13156 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13157 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
13158 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
13159 static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13160 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
13161 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}};
13162 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
13163 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13164 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
13165 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
13166 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
13167 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
13168 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13169 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
13170 static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}};
13171 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
13172 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
13173 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13174 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13175 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
13176 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13177 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
13178 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13179 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13180 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13181 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13182 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13183 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13184 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
13185 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13186 static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}};
13187 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
13188 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13189 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13190 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
13191 static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}};
13192 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_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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}};
13193 static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}};
13194 static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}};
13195 static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}};
13196 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
13197 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
13198 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
13199 static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}};
13200 static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}};
13201 static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}};
13202 static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13203 static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13204 static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13205 static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13206 static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}};
13207 static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}};
13208 static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}};
13209 static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}};
13210 static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}};
13211 static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}};
13212 static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}};
13213 static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}};
13214 static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}};
13215 static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13216 static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13217 static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}};
13218 static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}};
13219 static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13220 static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13221 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
13222 static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}};
13223 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
13224 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
13225 static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}};
13226 static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}};
13227 static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}};
13228 static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}};
13229 static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13230 static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13231 static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}};
13232 static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
13233 static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}};
13234 static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}};
13235 static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}};
13236 static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
13237 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
13238 static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}};
13239 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_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_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_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_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_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}};
13240 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
13241 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
13242 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}};
13243 static swig_cast_info _swigc__p_wxMetaFile[] = {{&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
13244 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
13245 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
13246 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
13247 static swig_cast_info _swigc__p_wxEncodingConverter[] = {{&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
13248 static swig_cast_info _swigc__p_wxEffects[] = {{&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
13249 static swig_cast_info _swigc__p_wxDC[] = {{&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
13250 static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
13251 static swig_cast_info _swigc__p_wxBufferedDC[] = {{&_swigt__p_wxBufferedDC, 0, 0, 0},{0, 0, 0, 0}};
13252 static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}};
13253 static swig_cast_info _swigc__p_wxMask[] = {{&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
13254 static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}};
13255 static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}};
13256 static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}};
13257 static swig_cast_info _swigc__p_wxMetaFileDC[] = {{&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
13258 static swig_cast_info _swigc__p_wxImageList[] = {{&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
13259 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13260 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13261 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
13262 static swig_cast_info _swigc__p_wxPen[] = {{&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
13263 static swig_cast_info _swigc__p_wxRegionIterator[] = {{&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
13264 static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}};
13265 static swig_cast_info _swigc__p_wxBrush[] = {{&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
13266 static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}};
13267 static swig_cast_info _swigc__p_wxPostScriptDC[] = {{&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
13268 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
13269 static swig_cast_info _swigc__p_wxGDIObject[] = {{&_swigt__p_wxGDIObject, 0, 0, 0},{0, 0, 0, 0}};
13270 static swig_cast_info _swigc__p_wxScreenDC[] = {{&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
13271 static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}};
13272 static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
13273 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
13274 static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13275 static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13276 static swig_cast_info _swigc__p_wxPaintDC[] = {{&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
13277 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = {{&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
13278 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
13279 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
13280 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13281 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13282 static swig_cast_info _swigc__p_wxCursor[] = {{&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
13283 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
13284 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
13285 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13286 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13287 static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}};
13288 static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}};
13289 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
13290 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
13291 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13292 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13293 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
13294 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
13295 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
13296 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
13297 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
13298 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
13299 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
13300 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
13301 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
13302 static swig_cast_info _swigc__p_wxMirrorDC[] = {{&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
13303 static swig_cast_info _swigc__p_wxPrinterDC[] = {{&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
13304 static swig_cast_info _swigc__p_wxWindowDC[] = {{&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
13305 static swig_cast_info _swigc__p_wxMemoryDC[] = {{&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
13306 static swig_cast_info _swigc__p_wxRegion[] = {{&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
13307 static swig_cast_info _swigc__p_wxPalette[] = {{&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
13308 static swig_cast_info _swigc__p_wxClientDC[] = {{&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
13309 static swig_cast_info _swigc__p_wxIcon[] = {{&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
13310 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_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_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_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_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_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_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_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_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_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_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
13311 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}};
13312 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
13313 static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}};
13314 static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}};
13315 static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
13316 static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13317 static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}};
13318 static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}};
13319 static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}};
13320 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}};
13321 static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}};
13322 static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}};
13323 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_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}};
13324
13325 static swig_cast_info *swig_cast_initial[] = {
13326 _swigc__p_char,
13327 _swigc__p_form_ops_t,
13328 _swigc__p_int,
13329 _swigc__p_long,
13330 _swigc__p_unsigned_char,
13331 _swigc__p_unsigned_int,
13332 _swigc__p_unsigned_long,
13333 _swigc__p_wxANIHandler,
13334 _swigc__p_wxAcceleratorTable,
13335 _swigc__p_wxActivateEvent,
13336 _swigc__p_wxArrayInt,
13337 _swigc__p_wxBMPHandler,
13338 _swigc__p_wxBitmap,
13339 _swigc__p_wxBoxSizer,
13340 _swigc__p_wxBrush,
13341 _swigc__p_wxBufferedDC,
13342 _swigc__p_wxBufferedPaintDC,
13343 _swigc__p_wxCURHandler,
13344 _swigc__p_wxCalculateLayoutEvent,
13345 _swigc__p_wxChar,
13346 _swigc__p_wxChildFocusEvent,
13347 _swigc__p_wxClientDC,
13348 _swigc__p_wxClipboardTextEvent,
13349 _swigc__p_wxCloseEvent,
13350 _swigc__p_wxColour,
13351 _swigc__p_wxColourData,
13352 _swigc__p_wxColourDialog,
13353 _swigc__p_wxCommandEvent,
13354 _swigc__p_wxContextMenuEvent,
13355 _swigc__p_wxControl,
13356 _swigc__p_wxControlWithItems,
13357 _swigc__p_wxCursor,
13358 _swigc__p_wxDC,
13359 _swigc__p_wxDateEvent,
13360 _swigc__p_wxDialog,
13361 _swigc__p_wxDirDialog,
13362 _swigc__p_wxDisplayChangedEvent,
13363 _swigc__p_wxDropFilesEvent,
13364 _swigc__p_wxDuplexMode,
13365 _swigc__p_wxEffects,
13366 _swigc__p_wxEncodingConverter,
13367 _swigc__p_wxEraseEvent,
13368 _swigc__p_wxEvent,
13369 _swigc__p_wxEvtHandler,
13370 _swigc__p_wxFSFile,
13371 _swigc__p_wxFileDialog,
13372 _swigc__p_wxFileSystem,
13373 _swigc__p_wxFindDialogEvent,
13374 _swigc__p_wxFindReplaceData,
13375 _swigc__p_wxFindReplaceDialog,
13376 _swigc__p_wxFlexGridSizer,
13377 _swigc__p_wxFocusEvent,
13378 _swigc__p_wxFont,
13379 _swigc__p_wxFontData,
13380 _swigc__p_wxFontDialog,
13381 _swigc__p_wxFrame,
13382 _swigc__p_wxGBSizerItem,
13383 _swigc__p_wxGDIObject,
13384 _swigc__p_wxGIFHandler,
13385 _swigc__p_wxGridBagSizer,
13386 _swigc__p_wxGridSizer,
13387 _swigc__p_wxICOHandler,
13388 _swigc__p_wxIcon,
13389 _swigc__p_wxIconizeEvent,
13390 _swigc__p_wxIdleEvent,
13391 _swigc__p_wxImage,
13392 _swigc__p_wxImageHandler,
13393 _swigc__p_wxImageList,
13394 _swigc__p_wxIndividualLayoutConstraint,
13395 _swigc__p_wxInitDialogEvent,
13396 _swigc__p_wxJPEGHandler,
13397 _swigc__p_wxKeyEvent,
13398 _swigc__p_wxLayoutAlgorithm,
13399 _swigc__p_wxLayoutConstraints,
13400 _swigc__p_wxMDIChildFrame,
13401 _swigc__p_wxMDIClientWindow,
13402 _swigc__p_wxMDIParentFrame,
13403 _swigc__p_wxMask,
13404 _swigc__p_wxMaximizeEvent,
13405 _swigc__p_wxMemoryDC,
13406 _swigc__p_wxMenu,
13407 _swigc__p_wxMenuBar,
13408 _swigc__p_wxMenuEvent,
13409 _swigc__p_wxMenuItem,
13410 _swigc__p_wxMessageDialog,
13411 _swigc__p_wxMetaFile,
13412 _swigc__p_wxMetaFileDC,
13413 _swigc__p_wxMiniFrame,
13414 _swigc__p_wxMirrorDC,
13415 _swigc__p_wxMouseCaptureChangedEvent,
13416 _swigc__p_wxMouseEvent,
13417 _swigc__p_wxMoveEvent,
13418 _swigc__p_wxMultiChoiceDialog,
13419 _swigc__p_wxNavigationKeyEvent,
13420 _swigc__p_wxNcPaintEvent,
13421 _swigc__p_wxNotifyEvent,
13422 _swigc__p_wxObject,
13423 _swigc__p_wxPCXHandler,
13424 _swigc__p_wxPNGHandler,
13425 _swigc__p_wxPNMHandler,
13426 _swigc__p_wxPageSetupDialog,
13427 _swigc__p_wxPageSetupDialogData,
13428 _swigc__p_wxPaintDC,
13429 _swigc__p_wxPaintEvent,
13430 _swigc__p_wxPalette,
13431 _swigc__p_wxPaletteChangedEvent,
13432 _swigc__p_wxPanel,
13433 _swigc__p_wxPaperSize,
13434 _swigc__p_wxPasswordEntryDialog,
13435 _swigc__p_wxPen,
13436 _swigc__p_wxPopupWindow,
13437 _swigc__p_wxPostScriptDC,
13438 _swigc__p_wxPreviewCanvas,
13439 _swigc__p_wxPreviewControlBar,
13440 _swigc__p_wxPreviewFrame,
13441 _swigc__p_wxPrintData,
13442 _swigc__p_wxPrintDialog,
13443 _swigc__p_wxPrintDialogData,
13444 _swigc__p_wxPrintPreview,
13445 _swigc__p_wxPrinter,
13446 _swigc__p_wxPrinterDC,
13447 _swigc__p_wxProgressDialog,
13448 _swigc__p_wxPyApp,
13449 _swigc__p_wxPyCommandEvent,
13450 _swigc__p_wxPyEvent,
13451 _swigc__p_wxPyHtmlListBox,
13452 _swigc__p_wxPyImageHandler,
13453 _swigc__p_wxPyPanel,
13454 _swigc__p_wxPyPopupTransientWindow,
13455 _swigc__p_wxPyPreviewControlBar,
13456 _swigc__p_wxPyPreviewFrame,
13457 _swigc__p_wxPyPrintPreview,
13458 _swigc__p_wxPyPrintout,
13459 _swigc__p_wxPyScrolledWindow,
13460 _swigc__p_wxPySizer,
13461 _swigc__p_wxPyTaskBarIcon,
13462 _swigc__p_wxPyVListBox,
13463 _swigc__p_wxPyVScrolledWindow,
13464 _swigc__p_wxPyValidator,
13465 _swigc__p_wxPyWindow,
13466 _swigc__p_wxQueryLayoutInfoEvent,
13467 _swigc__p_wxQueryNewPaletteEvent,
13468 _swigc__p_wxRegion,
13469 _swigc__p_wxRegionIterator,
13470 _swigc__p_wxRichTextAttr,
13471 _swigc__p_wxRichTextBuffer,
13472 _swigc__p_wxRichTextCtrl,
13473 _swigc__p_wxRichTextEvent,
13474 _swigc__p_wxRichTextImageBlock,
13475 _swigc__p_wxRichTextRange,
13476 _swigc__p_wxRichTextStyleSheet,
13477 _swigc__p_wxSashEvent,
13478 _swigc__p_wxSashLayoutWindow,
13479 _swigc__p_wxSashWindow,
13480 _swigc__p_wxScreenDC,
13481 _swigc__p_wxScrollEvent,
13482 _swigc__p_wxScrollWinEvent,
13483 _swigc__p_wxScrolledWindow,
13484 _swigc__p_wxSetCursorEvent,
13485 _swigc__p_wxShowEvent,
13486 _swigc__p_wxSingleChoiceDialog,
13487 _swigc__p_wxSizeEvent,
13488 _swigc__p_wxSizer,
13489 _swigc__p_wxSizerItem,
13490 _swigc__p_wxSplashScreen,
13491 _swigc__p_wxSplashScreenWindow,
13492 _swigc__p_wxSplitterEvent,
13493 _swigc__p_wxSplitterWindow,
13494 _swigc__p_wxStaticBoxSizer,
13495 _swigc__p_wxStatusBar,
13496 _swigc__p_wxStdDialogButtonSizer,
13497 _swigc__p_wxSysColourChangedEvent,
13498 _swigc__p_wxTIFFHandler,
13499 _swigc__p_wxTaskBarIconEvent,
13500 _swigc__p_wxTextCoord,
13501 _swigc__p_wxTextCtrlHitTestResult,
13502 _swigc__p_wxTextEntryDialog,
13503 _swigc__p_wxTipWindow,
13504 _swigc__p_wxTopLevelWindow,
13505 _swigc__p_wxUpdateUIEvent,
13506 _swigc__p_wxValidator,
13507 _swigc__p_wxWindow,
13508 _swigc__p_wxWindowCreateEvent,
13509 _swigc__p_wxWindowDC,
13510 _swigc__p_wxWindowDestroyEvent,
13511 _swigc__p_wxXPMHandler,
13512 };
13513
13514
13515 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13516
13517 static swig_const_info swig_const_table[] = {
13518 {0, 0, 0, 0.0, 0, 0}};
13519
13520 #ifdef __cplusplus
13521 }
13522 #endif
13523 /* -----------------------------------------------------------------------------
13524 * Type initialization:
13525 * This problem is tough by the requirement that no dynamic
13526 * memory is used. Also, since swig_type_info structures store pointers to
13527 * swig_cast_info structures and swig_cast_info structures store pointers back
13528 * to swig_type_info structures, we need some lookup code at initialization.
13529 * The idea is that swig generates all the structures that are needed.
13530 * The runtime then collects these partially filled structures.
13531 * The SWIG_InitializeModule function takes these initial arrays out of
13532 * swig_module, and does all the lookup, filling in the swig_module.types
13533 * array with the correct data and linking the correct swig_cast_info
13534 * structures together.
13535 *
13536 * The generated swig_type_info structures are assigned staticly to an initial
13537 * array. We just loop though that array, and handle each type individually.
13538 * First we lookup if this type has been already loaded, and if so, use the
13539 * loaded structure instead of the generated one. Then we have to fill in the
13540 * cast linked list. The cast data is initially stored in something like a
13541 * two-dimensional array. Each row corresponds to a type (there are the same
13542 * number of rows as there are in the swig_type_initial array). Each entry in
13543 * a column is one of the swig_cast_info structures for that type.
13544 * The cast_initial array is actually an array of arrays, because each row has
13545 * a variable number of columns. So to actually build the cast linked list,
13546 * we find the array of casts associated with the type, and loop through it
13547 * adding the casts to the list. The one last trick we need to do is making
13548 * sure the type pointer in the swig_cast_info struct is correct.
13549 *
13550 * First off, we lookup the cast->type name to see if it is already loaded.
13551 * There are three cases to handle:
13552 * 1) If the cast->type has already been loaded AND the type we are adding
13553 * casting info to has not been loaded (it is in this module), THEN we
13554 * replace the cast->type pointer with the type pointer that has already
13555 * been loaded.
13556 * 2) If BOTH types (the one we are adding casting info to, and the
13557 * cast->type) are loaded, THEN the cast info has already been loaded by
13558 * the previous module so we just ignore it.
13559 * 3) Finally, if cast->type has not already been loaded, then we add that
13560 * swig_cast_info to the linked list (because the cast->type) pointer will
13561 * be correct.
13562 * ----------------------------------------------------------------------------- */
13563
13564 #ifdef __cplusplus
13565 extern "C" {
13566 #if 0
13567 } /* c-mode */
13568 #endif
13569 #endif
13570
13571 #if 0
13572 #define SWIGRUNTIME_DEBUG
13573 #endif
13574
13575 SWIGRUNTIME void
13576 SWIG_InitializeModule(void *clientdata) {
13577 size_t i;
13578 swig_module_info *module_head;
13579 static int init_run = 0;
13580
13581 clientdata = clientdata;
13582
13583 if (init_run) return;
13584 init_run = 1;
13585
13586 /* Initialize the swig_module */
13587 swig_module.type_initial = swig_type_initial;
13588 swig_module.cast_initial = swig_cast_initial;
13589
13590 /* Try and load any already created modules */
13591 module_head = SWIG_GetModule(clientdata);
13592 if (module_head) {
13593 swig_module.next = module_head->next;
13594 module_head->next = &swig_module;
13595 } else {
13596 /* This is the first module loaded */
13597 swig_module.next = &swig_module;
13598 SWIG_SetModule(clientdata, &swig_module);
13599 }
13600
13601 /* Now work on filling in swig_module.types */
13602 #ifdef SWIGRUNTIME_DEBUG
13603 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
13604 #endif
13605 for (i = 0; i < swig_module.size; ++i) {
13606 swig_type_info *type = 0;
13607 swig_type_info *ret;
13608 swig_cast_info *cast;
13609
13610 #ifdef SWIGRUNTIME_DEBUG
13611 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13612 #endif
13613
13614 /* if there is another module already loaded */
13615 if (swig_module.next != &swig_module) {
13616 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
13617 }
13618 if (type) {
13619 /* Overwrite clientdata field */
13620 #ifdef SWIGRUNTIME_DEBUG
13621 printf("SWIG_InitializeModule: found type %s\n", type->name);
13622 #endif
13623 if (swig_module.type_initial[i]->clientdata) {
13624 type->clientdata = swig_module.type_initial[i]->clientdata;
13625 #ifdef SWIGRUNTIME_DEBUG
13626 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13627 #endif
13628 }
13629 } else {
13630 type = swig_module.type_initial[i];
13631 }
13632
13633 /* Insert casting types */
13634 cast = swig_module.cast_initial[i];
13635 while (cast->type) {
13636 /* Don't need to add information already in the list */
13637 ret = 0;
13638 #ifdef SWIGRUNTIME_DEBUG
13639 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
13640 #endif
13641 if (swig_module.next != &swig_module) {
13642 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
13643 #ifdef SWIGRUNTIME_DEBUG
13644 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
13645 #endif
13646 }
13647 if (ret) {
13648 if (type == swig_module.type_initial[i]) {
13649 #ifdef SWIGRUNTIME_DEBUG
13650 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
13651 #endif
13652 cast->type = ret;
13653 ret = 0;
13654 } else {
13655 /* Check for casting already in the list */
13656 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
13657 #ifdef SWIGRUNTIME_DEBUG
13658 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
13659 #endif
13660 if (!ocast) ret = 0;
13661 }
13662 }
13663
13664 if (!ret) {
13665 #ifdef SWIGRUNTIME_DEBUG
13666 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
13667 #endif
13668 if (type->cast) {
13669 type->cast->prev = cast;
13670 cast->next = type->cast;
13671 }
13672 type->cast = cast;
13673 }
13674 cast++;
13675 }
13676 /* Set entry in modules->types array equal to the type */
13677 swig_module.types[i] = type;
13678 }
13679 swig_module.types[i] = 0;
13680
13681 #ifdef SWIGRUNTIME_DEBUG
13682 printf("**** SWIG_InitializeModule: Cast List ******\n");
13683 for (i = 0; i < swig_module.size; ++i) {
13684 int j = 0;
13685 swig_cast_info *cast = swig_module.cast_initial[i];
13686 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13687 while (cast->type) {
13688 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
13689 cast++;
13690 ++j;
13691 }
13692 printf("---- Total casts: %d\n",j);
13693 }
13694 printf("**** SWIG_InitializeModule: Cast List ******\n");
13695 #endif
13696 }
13697
13698 /* This function will propagate the clientdata field of type to
13699 * any new swig_type_info structures that have been added into the list
13700 * of equivalent types. It is like calling
13701 * SWIG_TypeClientData(type, clientdata) a second time.
13702 */
13703 SWIGRUNTIME void
13704 SWIG_PropagateClientData(void) {
13705 size_t i;
13706 swig_cast_info *equiv;
13707 static int init_run = 0;
13708
13709 if (init_run) return;
13710 init_run = 1;
13711
13712 for (i = 0; i < swig_module.size; i++) {
13713 if (swig_module.types[i]->clientdata) {
13714 equiv = swig_module.types[i]->cast;
13715 while (equiv) {
13716 if (!equiv->converter) {
13717 if (equiv->type && !equiv->type->clientdata)
13718 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
13719 }
13720 equiv = equiv->next;
13721 }
13722 }
13723 }
13724 }
13725
13726 #ifdef __cplusplus
13727 #if 0
13728 {
13729 /* c-mode */
13730 #endif
13731 }
13732 #endif
13733
13734
13735
13736 #ifdef __cplusplus
13737 extern "C" {
13738 #endif
13739
13740 /* Python-specific SWIG API */
13741 #define SWIG_newvarlink() SWIG_Python_newvarlink()
13742 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
13743 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
13744
13745 /* -----------------------------------------------------------------------------
13746 * global variable support code.
13747 * ----------------------------------------------------------------------------- */
13748
13749 typedef struct swig_globalvar {
13750 char *name; /* Name of global variable */
13751 PyObject *(*get_attr)(void); /* Return the current value */
13752 int (*set_attr)(PyObject *); /* Set the value */
13753 struct swig_globalvar *next;
13754 } swig_globalvar;
13755
13756 typedef struct swig_varlinkobject {
13757 PyObject_HEAD
13758 swig_globalvar *vars;
13759 } swig_varlinkobject;
13760
13761 SWIGINTERN PyObject *
13762 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
13763 return PyString_FromString("<Swig global variables>");
13764 }
13765
13766 SWIGINTERN PyObject *
13767 swig_varlink_str(swig_varlinkobject *v) {
13768 PyObject *str = PyString_FromString("(");
13769 swig_globalvar *var;
13770 for (var = v->vars; var; var=var->next) {
13771 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
13772 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
13773 }
13774 PyString_ConcatAndDel(&str,PyString_FromString(")"));
13775 return str;
13776 }
13777
13778 SWIGINTERN int
13779 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
13780 PyObject *str = swig_varlink_str(v);
13781 fprintf(fp,"Swig global variables ");
13782 fprintf(fp,"%s\n", PyString_AsString(str));
13783 Py_DECREF(str);
13784 return 0;
13785 }
13786
13787 SWIGINTERN void
13788 swig_varlink_dealloc(swig_varlinkobject *v) {
13789 swig_globalvar *var = v->vars;
13790 while (var) {
13791 swig_globalvar *n = var->next;
13792 free(var->name);
13793 free(var);
13794 var = n;
13795 }
13796 }
13797
13798 SWIGINTERN PyObject *
13799 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
13800 PyObject *res = NULL;
13801 swig_globalvar *var = v->vars;
13802 while (var) {
13803 if (strcmp(var->name,n) == 0) {
13804 res = (*var->get_attr)();
13805 break;
13806 }
13807 var = var->next;
13808 }
13809 if (res == NULL && !PyErr_Occurred()) {
13810 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13811 }
13812 return res;
13813 }
13814
13815 SWIGINTERN int
13816 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
13817 int res = 1;
13818 swig_globalvar *var = v->vars;
13819 while (var) {
13820 if (strcmp(var->name,n) == 0) {
13821 res = (*var->set_attr)(p);
13822 break;
13823 }
13824 var = var->next;
13825 }
13826 if (res == 1 && !PyErr_Occurred()) {
13827 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
13828 }
13829 return res;
13830 }
13831
13832 SWIGINTERN PyTypeObject*
13833 swig_varlink_type(void) {
13834 static char varlink__doc__[] = "Swig var link object";
13835 static PyTypeObject varlink_type;
13836 static int type_init = 0;
13837 if (!type_init) {
13838 const PyTypeObject tmp
13839 = {
13840 PyObject_HEAD_INIT(NULL)
13841 0, /* Number of items in variable part (ob_size) */
13842 (char *)"swigvarlink", /* Type name (tp_name) */
13843 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
13844 0, /* Itemsize (tp_itemsize) */
13845 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
13846 (printfunc) swig_varlink_print, /* Print (tp_print) */
13847 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
13848 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
13849 0, /* tp_compare */
13850 (reprfunc) swig_varlink_repr, /* tp_repr */
13851 0, /* tp_as_number */
13852 0, /* tp_as_sequence */
13853 0, /* tp_as_mapping */
13854 0, /* tp_hash */
13855 0, /* tp_call */
13856 (reprfunc)swig_varlink_str, /* tp_str */
13857 0, /* tp_getattro */
13858 0, /* tp_setattro */
13859 0, /* tp_as_buffer */
13860 0, /* tp_flags */
13861 varlink__doc__, /* tp_doc */
13862 0, /* tp_traverse */
13863 0, /* tp_clear */
13864 0, /* tp_richcompare */
13865 0, /* tp_weaklistoffset */
13866 #if PY_VERSION_HEX >= 0x02020000
13867 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
13868 #endif
13869 #if PY_VERSION_HEX >= 0x02030000
13870 0, /* tp_del */
13871 #endif
13872 #ifdef COUNT_ALLOCS
13873 0,0,0,0 /* tp_alloc -> tp_next */
13874 #endif
13875 };
13876 varlink_type = tmp;
13877 varlink_type.ob_type = &PyType_Type;
13878 type_init = 1;
13879 }
13880 return &varlink_type;
13881 }
13882
13883 /* Create a variable linking object for use later */
13884 SWIGINTERN PyObject *
13885 SWIG_Python_newvarlink(void) {
13886 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
13887 if (result) {
13888 result->vars = 0;
13889 }
13890 return ((PyObject*) result);
13891 }
13892
13893 SWIGINTERN void
13894 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
13895 swig_varlinkobject *v = (swig_varlinkobject *) p;
13896 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
13897 if (gv) {
13898 size_t size = strlen(name)+1;
13899 gv->name = (char *)malloc(size);
13900 if (gv->name) {
13901 strncpy(gv->name,name,size);
13902 gv->get_attr = get_attr;
13903 gv->set_attr = set_attr;
13904 gv->next = v->vars;
13905 }
13906 }
13907 v->vars = gv;
13908 }
13909
13910 SWIGINTERN PyObject *
13911 SWIG_globals() {
13912 static PyObject *_SWIG_globals = 0;
13913 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
13914 return _SWIG_globals;
13915 }
13916
13917 /* -----------------------------------------------------------------------------
13918 * constants/methods manipulation
13919 * ----------------------------------------------------------------------------- */
13920
13921 /* Install Constants */
13922 SWIGINTERN void
13923 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
13924 PyObject *obj = 0;
13925 size_t i;
13926 for (i = 0; constants[i].type; ++i) {
13927 switch(constants[i].type) {
13928 case SWIG_PY_POINTER:
13929 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
13930 break;
13931 case SWIG_PY_BINARY:
13932 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
13933 break;
13934 default:
13935 obj = 0;
13936 break;
13937 }
13938 if (obj) {
13939 PyDict_SetItemString(d, constants[i].name, obj);
13940 Py_DECREF(obj);
13941 }
13942 }
13943 }
13944
13945 /* -----------------------------------------------------------------------------*/
13946 /* Fix SwigMethods to carry the callback ptrs when needed */
13947 /* -----------------------------------------------------------------------------*/
13948
13949 SWIGINTERN void
13950 SWIG_Python_FixMethods(PyMethodDef *methods,
13951 swig_const_info *const_table,
13952 swig_type_info **types,
13953 swig_type_info **types_initial) {
13954 size_t i;
13955 for (i = 0; methods[i].ml_name; ++i) {
13956 char *c = methods[i].ml_doc;
13957 if (c && (c = strstr(c, "swig_ptr: "))) {
13958 int j;
13959 swig_const_info *ci = 0;
13960 char *name = c + 10;
13961 for (j = 0; const_table[j].type; ++j) {
13962 if (strncmp(const_table[j].name, name,
13963 strlen(const_table[j].name)) == 0) {
13964 ci = &(const_table[j]);
13965 break;
13966 }
13967 }
13968 if (ci) {
13969 size_t shift = (ci->ptype) - types;
13970 swig_type_info *ty = types_initial[shift];
13971 size_t ldoc = (c - methods[i].ml_doc);
13972 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
13973 char *ndoc = (char*)malloc(ldoc + lptr + 10);
13974 if (ndoc) {
13975 char *buff = ndoc;
13976 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
13977 if (ptr) {
13978 strncpy(buff, methods[i].ml_doc, ldoc);
13979 buff += ldoc;
13980 strncpy(buff, "swig_ptr: ", 10);
13981 buff += 10;
13982 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
13983 methods[i].ml_doc = ndoc;
13984 }
13985 }
13986 }
13987 }
13988 }
13989 }
13990
13991 #ifdef __cplusplus
13992 }
13993 #endif
13994
13995 /* -----------------------------------------------------------------------------*
13996 * Partial Init method
13997 * -----------------------------------------------------------------------------*/
13998
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 SWIGEXPORT void SWIG_init(void) {
14003 PyObject *m, *d;
14004
14005 /* Fix SwigMethods to carry the callback ptrs when needed */
14006 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
14007
14008 m = Py_InitModule((char *) SWIG_name, SwigMethods);
14009 d = PyModule_GetDict(m);
14010
14011 SWIG_InitializeModule(0);
14012 SWIG_InstallConstants(d,swig_const_table);
14013
14014
14015 SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0)));
14016 SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY)));
14017 SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE)));
14018 SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN)));
14019 SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN)));
14020 SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN)));
14021 SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED)));
14022 SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED)));
14023 SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED)));
14024 SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS)));
14025 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY)));
14026 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT)));
14027 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML)));
14028 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML)));
14029 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF)));
14030 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF)));
14031 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH)));
14032 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT)));
14033 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH)));
14034 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT)));
14035 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE)));
14036 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE)));
14037 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER)));
14038 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
14039 SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
14040 SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
14041 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
14042 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
14043 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
14044 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
14045 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
14046 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
14047 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
14048 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
14049 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
14050 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
14051 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
14052 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
14053 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER)));
14054 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE)));
14055 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING)));
14056 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME)));
14057 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME)));
14058 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE)));
14059 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER)));
14060 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL)));
14061 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE)));
14062 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC)));
14063 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER)));
14064 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER)));
14065 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER)));
14066 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER)));
14067 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL)));
14068 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP)));
14069 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES)));
14070 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD)));
14071 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL)));
14072 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF)));
14073 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE)));
14074 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
14075 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
14076 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
14077 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
14078 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
14079 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
14080 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
14081 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set);
14082 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set);
14083 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER)));
14084 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH)));
14085 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL)));
14086 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED));
14087 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED));
14088 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK));
14089 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK));
14090 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK));
14091 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK));
14092 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN));
14093
14094
14095 }
14096