]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/richtext_wrap.cpp
use common AllocExclusive, rather than custom code
[wxWidgets.git] / wxPython / src / mac / 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 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_char swig_types[0]
2467 #define SWIGTYPE_p_form_ops_t swig_types[1]
2468 #define SWIGTYPE_p_int swig_types[2]
2469 #define SWIGTYPE_p_long swig_types[3]
2470 #define SWIGTYPE_p_unsigned_char swig_types[4]
2471 #define SWIGTYPE_p_unsigned_int swig_types[5]
2472 #define SWIGTYPE_p_unsigned_long swig_types[6]
2473 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2474 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476 #define SWIGTYPE_p_wxArrayInt swig_types[10]
2477 #define SWIGTYPE_p_wxBMPHandler swig_types[11]
2478 #define SWIGTYPE_p_wxBitmap swig_types[12]
2479 #define SWIGTYPE_p_wxBoxSizer swig_types[13]
2480 #define SWIGTYPE_p_wxCURHandler swig_types[14]
2481 #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[15]
2482 #define SWIGTYPE_p_wxChar swig_types[16]
2483 #define SWIGTYPE_p_wxChildFocusEvent swig_types[17]
2484 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[18]
2485 #define SWIGTYPE_p_wxCloseEvent swig_types[19]
2486 #define SWIGTYPE_p_wxColour swig_types[20]
2487 #define SWIGTYPE_p_wxColourData swig_types[21]
2488 #define SWIGTYPE_p_wxColourDialog swig_types[22]
2489 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2490 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2491 #define SWIGTYPE_p_wxControl swig_types[25]
2492 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2493 #define SWIGTYPE_p_wxDateEvent swig_types[27]
2494 #define SWIGTYPE_p_wxDialog swig_types[28]
2495 #define SWIGTYPE_p_wxDirDialog swig_types[29]
2496 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[30]
2497 #define SWIGTYPE_p_wxDropFilesEvent swig_types[31]
2498 #define SWIGTYPE_p_wxDuplexMode swig_types[32]
2499 #define SWIGTYPE_p_wxEraseEvent swig_types[33]
2500 #define SWIGTYPE_p_wxEvent swig_types[34]
2501 #define SWIGTYPE_p_wxEvtHandler swig_types[35]
2502 #define SWIGTYPE_p_wxFSFile swig_types[36]
2503 #define SWIGTYPE_p_wxFileDialog swig_types[37]
2504 #define SWIGTYPE_p_wxFileSystem swig_types[38]
2505 #define SWIGTYPE_p_wxFindDialogEvent swig_types[39]
2506 #define SWIGTYPE_p_wxFindReplaceData swig_types[40]
2507 #define SWIGTYPE_p_wxFindReplaceDialog swig_types[41]
2508 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510 #define SWIGTYPE_p_wxFont swig_types[44]
2511 #define SWIGTYPE_p_wxFontData swig_types[45]
2512 #define SWIGTYPE_p_wxFontDialog swig_types[46]
2513 #define SWIGTYPE_p_wxFrame swig_types[47]
2514 #define SWIGTYPE_p_wxGBSizerItem swig_types[48]
2515 #define SWIGTYPE_p_wxGIFHandler swig_types[49]
2516 #define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2517 #define SWIGTYPE_p_wxGridSizer swig_types[51]
2518 #define SWIGTYPE_p_wxICOHandler swig_types[52]
2519 #define SWIGTYPE_p_wxIconizeEvent swig_types[53]
2520 #define SWIGTYPE_p_wxIdleEvent swig_types[54]
2521 #define SWIGTYPE_p_wxImage swig_types[55]
2522 #define SWIGTYPE_p_wxImageHandler swig_types[56]
2523 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[57]
2524 #define SWIGTYPE_p_wxInitDialogEvent swig_types[58]
2525 #define SWIGTYPE_p_wxJPEGHandler swig_types[59]
2526 #define SWIGTYPE_p_wxKeyEvent swig_types[60]
2527 #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[61]
2528 #define SWIGTYPE_p_wxLayoutConstraints swig_types[62]
2529 #define SWIGTYPE_p_wxMDIChildFrame swig_types[63]
2530 #define SWIGTYPE_p_wxMDIClientWindow swig_types[64]
2531 #define SWIGTYPE_p_wxMDIParentFrame swig_types[65]
2532 #define SWIGTYPE_p_wxMaximizeEvent swig_types[66]
2533 #define SWIGTYPE_p_wxMenu swig_types[67]
2534 #define SWIGTYPE_p_wxMenuBar swig_types[68]
2535 #define SWIGTYPE_p_wxMenuEvent swig_types[69]
2536 #define SWIGTYPE_p_wxMenuItem swig_types[70]
2537 #define SWIGTYPE_p_wxMessageDialog swig_types[71]
2538 #define SWIGTYPE_p_wxMiniFrame swig_types[72]
2539 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[73]
2540 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMouseEvent swig_types[75]
2542 #define SWIGTYPE_p_wxMoveEvent swig_types[76]
2543 #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[77]
2544 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[78]
2545 #define SWIGTYPE_p_wxNcPaintEvent swig_types[79]
2546 #define SWIGTYPE_p_wxNotifyEvent swig_types[80]
2547 #define SWIGTYPE_p_wxNumberEntryDialog swig_types[81]
2548 #define SWIGTYPE_p_wxObject swig_types[82]
2549 #define SWIGTYPE_p_wxPCXHandler swig_types[83]
2550 #define SWIGTYPE_p_wxPNGHandler swig_types[84]
2551 #define SWIGTYPE_p_wxPNMHandler swig_types[85]
2552 #define SWIGTYPE_p_wxPageSetupDialog swig_types[86]
2553 #define SWIGTYPE_p_wxPageSetupDialogData swig_types[87]
2554 #define SWIGTYPE_p_wxPaintEvent swig_types[88]
2555 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxPanel swig_types[90]
2557 #define SWIGTYPE_p_wxPaperSize swig_types[91]
2558 #define SWIGTYPE_p_wxPasswordEntryDialog swig_types[92]
2559 #define SWIGTYPE_p_wxPopupWindow swig_types[93]
2560 #define SWIGTYPE_p_wxPreviewCanvas swig_types[94]
2561 #define SWIGTYPE_p_wxPreviewControlBar swig_types[95]
2562 #define SWIGTYPE_p_wxPreviewFrame swig_types[96]
2563 #define SWIGTYPE_p_wxPrintData swig_types[97]
2564 #define SWIGTYPE_p_wxPrintDialog swig_types[98]
2565 #define SWIGTYPE_p_wxPrintDialogData swig_types[99]
2566 #define SWIGTYPE_p_wxPrintPreview swig_types[100]
2567 #define SWIGTYPE_p_wxPrinter swig_types[101]
2568 #define SWIGTYPE_p_wxProgressDialog swig_types[102]
2569 #define SWIGTYPE_p_wxPyApp swig_types[103]
2570 #define SWIGTYPE_p_wxPyCommandEvent swig_types[104]
2571 #define SWIGTYPE_p_wxPyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPyHtmlListBox swig_types[106]
2573 #define SWIGTYPE_p_wxPyImageHandler swig_types[107]
2574 #define SWIGTYPE_p_wxPyPanel swig_types[108]
2575 #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[109]
2576 #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[110]
2577 #define SWIGTYPE_p_wxPyPreviewFrame swig_types[111]
2578 #define SWIGTYPE_p_wxPyPrintPreview swig_types[112]
2579 #define SWIGTYPE_p_wxPyPrintout swig_types[113]
2580 #define SWIGTYPE_p_wxPyScrolledWindow swig_types[114]
2581 #define SWIGTYPE_p_wxPySizer swig_types[115]
2582 #define SWIGTYPE_p_wxPyTaskBarIcon swig_types[116]
2583 #define SWIGTYPE_p_wxPyVListBox swig_types[117]
2584 #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[118]
2585 #define SWIGTYPE_p_wxPyValidator swig_types[119]
2586 #define SWIGTYPE_p_wxPyWindow swig_types[120]
2587 #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[121]
2588 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[122]
2589 #define SWIGTYPE_p_wxRichTextAttr swig_types[123]
2590 #define SWIGTYPE_p_wxRichTextBuffer swig_types[124]
2591 #define SWIGTYPE_p_wxRichTextCtrl swig_types[125]
2592 #define SWIGTYPE_p_wxRichTextEvent swig_types[126]
2593 #define SWIGTYPE_p_wxRichTextImageBlock swig_types[127]
2594 #define SWIGTYPE_p_wxRichTextRange swig_types[128]
2595 #define SWIGTYPE_p_wxRichTextStyleSheet swig_types[129]
2596 #define SWIGTYPE_p_wxSashEvent swig_types[130]
2597 #define SWIGTYPE_p_wxSashLayoutWindow swig_types[131]
2598 #define SWIGTYPE_p_wxSashWindow swig_types[132]
2599 #define SWIGTYPE_p_wxScrollEvent swig_types[133]
2600 #define SWIGTYPE_p_wxScrollWinEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrolledWindow swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[138]
2605 #define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSizer swig_types[140]
2607 #define SWIGTYPE_p_wxSizerItem swig_types[141]
2608 #define SWIGTYPE_p_wxSplashScreen swig_types[142]
2609 #define SWIGTYPE_p_wxSplashScreenWindow swig_types[143]
2610 #define SWIGTYPE_p_wxSplitterEvent swig_types[144]
2611 #define SWIGTYPE_p_wxSplitterWindow swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStatusBar swig_types[147]
2614 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[148]
2615 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616 #define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617 #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[151]
2618 #define SWIGTYPE_p_wxTextCoord swig_types[152]
2619 #define SWIGTYPE_p_wxTextCtrlHitTestResult swig_types[153]
2620 #define SWIGTYPE_p_wxTextEntryDialog swig_types[154]
2621 #define SWIGTYPE_p_wxTipWindow swig_types[155]
2622 #define SWIGTYPE_p_wxTopLevelWindow swig_types[156]
2623 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[157]
2624 #define SWIGTYPE_p_wxValidator swig_types[158]
2625 #define SWIGTYPE_p_wxWindow swig_types[159]
2626 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160]
2627 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161]
2628 #define SWIGTYPE_p_wxXPMHandler swig_types[162]
2629 static swig_type_info *swig_types[164];
2630 static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
2631 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2632 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2633
2634 /* -------- TYPES TABLE (END) -------- */
2635
2636 #if (PY_VERSION_HEX <= 0x02000000)
2637 # if !defined(SWIG_PYTHON_CLASSIC)
2638 # error "This python version requires to use swig with the '-classic' option"
2639 # endif
2640 #endif
2641 #if (PY_VERSION_HEX <= 0x02020000)
2642 # error "This python version requires to use swig with the '-nomodern' option"
2643 #endif
2644 #if (PY_VERSION_HEX <= 0x02020000)
2645 # error "This python version requires to use swig with the '-nomodernargs' option"
2646 #endif
2647 #ifndef METH_O
2648 # error "This python version requires to use swig with the '-nofastunpack' option"
2649 #endif
2650
2651 /*-----------------------------------------------
2652 @(target):= _richtext.so
2653 ------------------------------------------------*/
2654 #define SWIG_init init_richtext
2655
2656 #define SWIG_name "_richtext"
2657
2658 #define SWIGVERSION 0x010329
2659
2660
2661 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2662 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2663
2664
2665 #include <stdexcept>
2666
2667
2668 namespace swig {
2669 class PyObject_ptr {
2670 protected:
2671 PyObject *_obj;
2672
2673 public:
2674 PyObject_ptr() :_obj(0)
2675 {
2676 }
2677
2678 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2679 {
2680 Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2684 {
2685 if (initial_ref) Py_XINCREF(_obj);
2686 }
2687
2688 PyObject_ptr & operator=(const PyObject_ptr& item)
2689 {
2690 Py_XINCREF(item._obj);
2691 Py_XDECREF(_obj);
2692 _obj = item._obj;
2693 return *this;
2694 }
2695
2696 ~PyObject_ptr()
2697 {
2698 Py_XDECREF(_obj);
2699 }
2700
2701 operator PyObject *() const
2702 {
2703 return _obj;
2704 }
2705
2706 PyObject *operator->() const
2707 {
2708 return _obj;
2709 }
2710 };
2711 }
2712
2713
2714 namespace swig {
2715 struct PyObject_var : PyObject_ptr {
2716 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2717
2718 PyObject_var & operator = (PyObject* obj)
2719 {
2720 Py_XDECREF(_obj);
2721 _obj = obj;
2722 return *this;
2723 }
2724 };
2725 }
2726
2727
2728 #include "wx/wxPython/wxPython.h"
2729 #include "wx/wxPython/pyclasses.h"
2730 #include "wx/wxPython/printfw.h"
2731 #include "wx/wxPython/twoitem.h"
2732
2733 #include <wx/richtext/richtextctrl.h>
2734
2735
2736 class wxEffects;
2737 class wxBufferedDC;
2738 class wxBufferedPaintDC;
2739 class wxMetaFile;
2740 class wxMetaFileDC;
2741 class wxPrinterDC;
2742
2743
2744
2745 #define SWIG_From_long PyInt_FromLong
2746
2747
2748 SWIGINTERNINLINE PyObject *
2749 SWIG_From_int (int value)
2750 {
2751 return SWIG_From_long (value);
2752 }
2753
2754 static const wxString wxPyEmptyString(wxEmptyString);
2755
2756
2757 bool wxRichTextRange_helper(PyObject* source, wxRichTextRange** obj)
2758 {
2759 if (source == Py_None) {
2760 **obj = wxRICHTEXT_NONE;
2761 return true;
2762 }
2763 return wxPyTwoIntItem_helper(source, obj, wxT("wxRichTextRange"));
2764 }
2765
2766
2767 SWIGINTERN int
2768 SWIG_AsVal_long (PyObject* obj, long* val)
2769 {
2770 if (PyNumber_Check(obj)) {
2771 if (val) *val = PyInt_AsLong(obj);
2772 return SWIG_OK;
2773 }
2774 return SWIG_TypeError;
2775 }
2776
2777 SWIGINTERN bool wxRichTextRange___eq__(wxRichTextRange *self,PyObject *other){
2778 wxRichTextRange temp, *obj = &temp;
2779 if ( other == Py_None ) return false;
2780 if ( ! wxRichTextRange_helper(other, &obj) ) {
2781 PyErr_Clear();
2782 return false;
2783 }
2784 return self->operator==(*obj);
2785 }
2786 SWIGINTERN PyObject *wxRichTextRange_Get(wxRichTextRange *self){
2787 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2788 PyObject* tup = PyTuple_New(2);
2789 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetStart()));
2790 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetEnd()));
2791 wxPyEndBlockThreads(blocked);
2792 return tup;
2793 }
2794
2795 wxRichTextRange wxPy_RTR_ALL(wxRICHTEXT_ALL);
2796 wxRichTextRange wxPy_RTR_NONE(wxRICHTEXT_NONE);
2797
2798
2799 #include <limits.h>
2800 #ifndef LLONG_MIN
2801 # define LLONG_MIN LONG_LONG_MIN
2802 #endif
2803 #ifndef LLONG_MAX
2804 # define LLONG_MAX LONG_LONG_MAX
2805 #endif
2806 #ifndef ULLONG_MAX
2807 # define ULLONG_MAX ULONG_LONG_MAX
2808 #endif
2809
2810
2811 SWIGINTERN int
2812 SWIG_AsVal_int (PyObject * obj, int *val)
2813 {
2814 long v;
2815 int res = SWIG_AsVal_long (obj, &v);
2816 if (SWIG_IsOK(res)) {
2817 if ((v < INT_MIN || v > INT_MAX)) {
2818 return SWIG_OverflowError;
2819 } else {
2820 if (val) *val = static_cast< int >(v);
2821 }
2822 }
2823 return res;
2824 }
2825
2826
2827 SWIGINTERN int
2828 SWIG_AsVal_bool (PyObject *obj, bool *val)
2829 {
2830 if (obj == Py_True) {
2831 if (val) *val = true;
2832 return SWIG_OK;
2833 } else if (obj == Py_False) {
2834 if (val) *val = false;
2835 return SWIG_OK;
2836 } else {
2837 long v = 0;
2838 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2839 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2840 return res;
2841 }
2842 }
2843
2844
2845 SWIGINTERN int
2846 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2847 {
2848 long v = 0;
2849 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2850 return SWIG_TypeError;
2851 }
2852 else if (val)
2853 *val = (unsigned long)v;
2854 return SWIG_OK;
2855 }
2856
2857
2858 SWIGINTERN swig_type_info*
2859 SWIG_pchar_descriptor()
2860 {
2861 static int init = 0;
2862 static swig_type_info* info = 0;
2863 if (!init) {
2864 info = SWIG_TypeQuery("_p_char");
2865 init = 1;
2866 }
2867 return info;
2868 }
2869
2870
2871 SWIGINTERN int
2872 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2873 {
2874 if (PyString_Check(obj)) {
2875 char *cstr; Py_ssize_t len;
2876 PyString_AsStringAndSize(obj, &cstr, &len);
2877 if (cptr) {
2878 if (alloc) {
2879 /*
2880 In python the user should not be able to modify the inner
2881 string representation. To warranty that, if you define
2882 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
2883 buffer is always returned.
2884
2885 The default behavior is just to return the pointer value,
2886 so, be careful.
2887 */
2888 #if defined(SWIG_PYTHON_SAFE_CSTRINGS)
2889 if (*alloc != SWIG_OLDOBJ)
2890 #else
2891 if (*alloc == SWIG_NEWOBJ)
2892 #endif
2893 {
2894 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
2895 *alloc = SWIG_NEWOBJ;
2896 }
2897 else {
2898 *cptr = cstr;
2899 *alloc = SWIG_OLDOBJ;
2900 }
2901 } else {
2902 *cptr = PyString_AsString(obj);
2903 }
2904 }
2905 if (psize) *psize = len + 1;
2906 return SWIG_OK;
2907 } else {
2908 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2909 if (pchar_descriptor) {
2910 void* vptr = 0;
2911 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
2912 if (cptr) *cptr = (char *) vptr;
2913 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
2914 if (alloc) *alloc = SWIG_OLDOBJ;
2915 return SWIG_OK;
2916 }
2917 }
2918 }
2919 return SWIG_TypeError;
2920 }
2921
2922
2923 SWIGINTERN int
2924 SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
2925 {
2926 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
2927 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
2928 if (SWIG_IsOK(res)) {
2929 if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
2930 if (csize <= size) {
2931 if (val) {
2932 if (csize) memcpy(val, cptr, csize*sizeof(char));
2933 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
2934 }
2935 if (alloc == SWIG_NEWOBJ) {
2936 delete[] cptr;
2937 res = SWIG_DelNewMask(res);
2938 }
2939 return res;
2940 }
2941 if (alloc == SWIG_NEWOBJ) delete[] cptr;
2942 }
2943 return SWIG_TypeError;
2944 }
2945
2946
2947 SWIGINTERN int
2948 SWIG_AsVal_char (PyObject * obj, char *val)
2949 {
2950 int res = SWIG_AsCharArray(obj, val, 1);
2951 if (!SWIG_IsOK(res)) {
2952 long v;
2953 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
2954 if (SWIG_IsOK(res)) {
2955 if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
2956 if (val) *val = static_cast< char >(v);
2957 } else {
2958 res = SWIG_OverflowError;
2959 }
2960 }
2961 }
2962 return res;
2963 }
2964
2965 #ifdef __cplusplus
2966 extern "C" {
2967 #endif
2968 SWIGINTERN PyObject *_wrap_new_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
2969 PyObject *resultobj = 0;
2970 long arg1 = (long) 0 ;
2971 long arg2 = (long) 0 ;
2972 wxRichTextRange *result = 0 ;
2973 long val1 ;
2974 int ecode1 = 0 ;
2975 long val2 ;
2976 int ecode2 = 0 ;
2977 PyObject * obj0 = 0 ;
2978 PyObject * obj1 = 0 ;
2979 char * kwnames[] = {
2980 (char *) "start",(char *) "end", NULL
2981 };
2982
2983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextRange",kwnames,&obj0,&obj1)) SWIG_fail;
2984 if (obj0) {
2985 ecode1 = SWIG_AsVal_long(obj0, &val1);
2986 if (!SWIG_IsOK(ecode1)) {
2987 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextRange" "', expected argument " "1"" of type '" "long""'");
2988 }
2989 arg1 = static_cast< long >(val1);
2990 }
2991 if (obj1) {
2992 ecode2 = SWIG_AsVal_long(obj1, &val2);
2993 if (!SWIG_IsOK(ecode2)) {
2994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextRange" "', expected argument " "2"" of type '" "long""'");
2995 }
2996 arg2 = static_cast< long >(val2);
2997 }
2998 {
2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
3000 result = (wxRichTextRange *)new wxRichTextRange(arg1,arg2);
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_NEW | 0 );
3005 return resultobj;
3006 fail:
3007 return NULL;
3008 }
3009
3010
3011 SWIGINTERN PyObject *_wrap_delete_RichTextRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3012 PyObject *resultobj = 0;
3013 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3014 void *argp1 = 0 ;
3015 int res1 = 0 ;
3016 PyObject *swig_obj[1] ;
3017
3018 if (!args) SWIG_fail;
3019 swig_obj[0] = args;
3020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_DISOWN | 0 );
3021 if (!SWIG_IsOK(res1)) {
3022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3023 }
3024 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3025 {
3026 PyThreadState* __tstate = wxPyBeginAllowThreads();
3027 delete arg1;
3028
3029 wxPyEndAllowThreads(__tstate);
3030 if (PyErr_Occurred()) SWIG_fail;
3031 }
3032 resultobj = SWIG_Py_Void();
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 SWIGINTERN PyObject *_wrap_RichTextRange___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3040 PyObject *resultobj = 0;
3041 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3042 PyObject *arg2 = (PyObject *) 0 ;
3043 bool result;
3044 void *argp1 = 0 ;
3045 int res1 = 0 ;
3046 PyObject * obj0 = 0 ;
3047 PyObject * obj1 = 0 ;
3048 char * kwnames[] = {
3049 (char *) "self",(char *) "other", NULL
3050 };
3051
3052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3054 if (!SWIG_IsOK(res1)) {
3055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___eq__" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3056 }
3057 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3058 arg2 = obj1;
3059 {
3060 result = (bool)wxRichTextRange___eq__(arg1,arg2);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 {
3064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3065 }
3066 return resultobj;
3067 fail:
3068 return NULL;
3069 }
3070
3071
3072 SWIGINTERN PyObject *_wrap_RichTextRange___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3073 PyObject *resultobj = 0;
3074 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3075 wxRichTextRange *arg2 = 0 ;
3076 wxRichTextRange result;
3077 void *argp1 = 0 ;
3078 int res1 = 0 ;
3079 wxRichTextRange temp2 ;
3080 PyObject * obj0 = 0 ;
3081 PyObject * obj1 = 0 ;
3082 char * kwnames[] = {
3083 (char *) "self",(char *) "range", NULL
3084 };
3085
3086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
3087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3088 if (!SWIG_IsOK(res1)) {
3089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___sub__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3090 }
3091 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3092 {
3093 arg2 = &temp2;
3094 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3095 }
3096 {
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 result = ((wxRichTextRange const *)arg1)->operator -((wxRichTextRange const &)*arg2);
3099 wxPyEndAllowThreads(__tstate);
3100 if (PyErr_Occurred()) SWIG_fail;
3101 }
3102 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3103 return resultobj;
3104 fail:
3105 return NULL;
3106 }
3107
3108
3109 SWIGINTERN PyObject *_wrap_RichTextRange___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3110 PyObject *resultobj = 0;
3111 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3112 wxRichTextRange *arg2 = 0 ;
3113 wxRichTextRange result;
3114 void *argp1 = 0 ;
3115 int res1 = 0 ;
3116 wxRichTextRange temp2 ;
3117 PyObject * obj0 = 0 ;
3118 PyObject * obj1 = 0 ;
3119 char * kwnames[] = {
3120 (char *) "self",(char *) "range", NULL
3121 };
3122
3123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange___add__",kwnames,&obj0,&obj1)) SWIG_fail;
3124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3125 if (!SWIG_IsOK(res1)) {
3126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange___add__" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3127 }
3128 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3129 {
3130 arg2 = &temp2;
3131 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3132 }
3133 {
3134 PyThreadState* __tstate = wxPyBeginAllowThreads();
3135 result = ((wxRichTextRange const *)arg1)->operator +((wxRichTextRange const &)*arg2);
3136 wxPyEndAllowThreads(__tstate);
3137 if (PyErr_Occurred()) SWIG_fail;
3138 }
3139 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
3140 return resultobj;
3141 fail:
3142 return NULL;
3143 }
3144
3145
3146 SWIGINTERN PyObject *_wrap_RichTextRange_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3147 PyObject *resultobj = 0;
3148 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3149 long arg2 ;
3150 long arg3 ;
3151 void *argp1 = 0 ;
3152 int res1 = 0 ;
3153 long val2 ;
3154 int ecode2 = 0 ;
3155 long val3 ;
3156 int ecode3 = 0 ;
3157 PyObject * obj0 = 0 ;
3158 PyObject * obj1 = 0 ;
3159 PyObject * obj2 = 0 ;
3160 char * kwnames[] = {
3161 (char *) "self",(char *) "start",(char *) "end", NULL
3162 };
3163
3164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextRange_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3166 if (!SWIG_IsOK(res1)) {
3167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetRange" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3168 }
3169 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3170 ecode2 = SWIG_AsVal_long(obj1, &val2);
3171 if (!SWIG_IsOK(ecode2)) {
3172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetRange" "', expected argument " "2"" of type '" "long""'");
3173 }
3174 arg2 = static_cast< long >(val2);
3175 ecode3 = SWIG_AsVal_long(obj2, &val3);
3176 if (!SWIG_IsOK(ecode3)) {
3177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextRange_SetRange" "', expected argument " "3"" of type '" "long""'");
3178 }
3179 arg3 = static_cast< long >(val3);
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
3182 (arg1)->SetRange(arg2,arg3);
3183 wxPyEndAllowThreads(__tstate);
3184 if (PyErr_Occurred()) SWIG_fail;
3185 }
3186 resultobj = SWIG_Py_Void();
3187 return resultobj;
3188 fail:
3189 return NULL;
3190 }
3191
3192
3193 SWIGINTERN PyObject *_wrap_RichTextRange_SetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3194 PyObject *resultobj = 0;
3195 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3196 long arg2 ;
3197 void *argp1 = 0 ;
3198 int res1 = 0 ;
3199 long val2 ;
3200 int ecode2 = 0 ;
3201 PyObject * obj0 = 0 ;
3202 PyObject * obj1 = 0 ;
3203 char * kwnames[] = {
3204 (char *) "self",(char *) "start", NULL
3205 };
3206
3207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetStart",kwnames,&obj0,&obj1)) SWIG_fail;
3208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3209 if (!SWIG_IsOK(res1)) {
3210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetStart" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3211 }
3212 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3213 ecode2 = SWIG_AsVal_long(obj1, &val2);
3214 if (!SWIG_IsOK(ecode2)) {
3215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetStart" "', expected argument " "2"" of type '" "long""'");
3216 }
3217 arg2 = static_cast< long >(val2);
3218 {
3219 PyThreadState* __tstate = wxPyBeginAllowThreads();
3220 (arg1)->SetStart(arg2);
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 resultobj = SWIG_Py_Void();
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 SWIGINTERN PyObject *_wrap_RichTextRange_GetStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3232 PyObject *resultobj = 0;
3233 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3234 long result;
3235 void *argp1 = 0 ;
3236 int res1 = 0 ;
3237 PyObject *swig_obj[1] ;
3238
3239 if (!args) SWIG_fail;
3240 swig_obj[0] = args;
3241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3242 if (!SWIG_IsOK(res1)) {
3243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetStart" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3244 }
3245 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3246 {
3247 PyThreadState* __tstate = wxPyBeginAllowThreads();
3248 result = (long)((wxRichTextRange const *)arg1)->GetStart();
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 resultobj = SWIG_From_long(static_cast< long >(result));
3253 return resultobj;
3254 fail:
3255 return NULL;
3256 }
3257
3258
3259 SWIGINTERN PyObject *_wrap_RichTextRange_SetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3260 PyObject *resultobj = 0;
3261 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3262 long arg2 ;
3263 void *argp1 = 0 ;
3264 int res1 = 0 ;
3265 long val2 ;
3266 int ecode2 = 0 ;
3267 PyObject * obj0 = 0 ;
3268 PyObject * obj1 = 0 ;
3269 char * kwnames[] = {
3270 (char *) "self",(char *) "end", NULL
3271 };
3272
3273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_SetEnd",kwnames,&obj0,&obj1)) SWIG_fail;
3274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3275 if (!SWIG_IsOK(res1)) {
3276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_SetEnd" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3277 }
3278 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3279 ecode2 = SWIG_AsVal_long(obj1, &val2);
3280 if (!SWIG_IsOK(ecode2)) {
3281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_SetEnd" "', expected argument " "2"" of type '" "long""'");
3282 }
3283 arg2 = static_cast< long >(val2);
3284 {
3285 PyThreadState* __tstate = wxPyBeginAllowThreads();
3286 (arg1)->SetEnd(arg2);
3287 wxPyEndAllowThreads(__tstate);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 resultobj = SWIG_Py_Void();
3291 return resultobj;
3292 fail:
3293 return NULL;
3294 }
3295
3296
3297 SWIGINTERN PyObject *_wrap_RichTextRange_GetEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3298 PyObject *resultobj = 0;
3299 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3300 long result;
3301 void *argp1 = 0 ;
3302 int res1 = 0 ;
3303 PyObject *swig_obj[1] ;
3304
3305 if (!args) SWIG_fail;
3306 swig_obj[0] = args;
3307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3308 if (!SWIG_IsOK(res1)) {
3309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetEnd" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3310 }
3311 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3312 {
3313 PyThreadState* __tstate = wxPyBeginAllowThreads();
3314 result = (long)((wxRichTextRange const *)arg1)->GetEnd();
3315 wxPyEndAllowThreads(__tstate);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 resultobj = SWIG_From_long(static_cast< long >(result));
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 SWIGINTERN PyObject *_wrap_RichTextRange_IsOutside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3326 PyObject *resultobj = 0;
3327 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3328 wxRichTextRange *arg2 = 0 ;
3329 bool result;
3330 void *argp1 = 0 ;
3331 int res1 = 0 ;
3332 wxRichTextRange temp2 ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char * kwnames[] = {
3336 (char *) "self",(char *) "range", NULL
3337 };
3338
3339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsOutside",kwnames,&obj0,&obj1)) SWIG_fail;
3340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3341 if (!SWIG_IsOK(res1)) {
3342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsOutside" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3343 }
3344 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3345 {
3346 arg2 = &temp2;
3347 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3348 }
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 result = (bool)((wxRichTextRange const *)arg1)->IsOutside((wxRichTextRange const &)*arg2);
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 {
3356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3357 }
3358 return resultobj;
3359 fail:
3360 return NULL;
3361 }
3362
3363
3364 SWIGINTERN PyObject *_wrap_RichTextRange_IsWithin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3365 PyObject *resultobj = 0;
3366 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3367 wxRichTextRange *arg2 = 0 ;
3368 bool result;
3369 void *argp1 = 0 ;
3370 int res1 = 0 ;
3371 wxRichTextRange temp2 ;
3372 PyObject * obj0 = 0 ;
3373 PyObject * obj1 = 0 ;
3374 char * kwnames[] = {
3375 (char *) "self",(char *) "range", NULL
3376 };
3377
3378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_IsWithin",kwnames,&obj0,&obj1)) SWIG_fail;
3379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3380 if (!SWIG_IsOK(res1)) {
3381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_IsWithin" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3382 }
3383 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3384 {
3385 arg2 = &temp2;
3386 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3387 }
3388 {
3389 PyThreadState* __tstate = wxPyBeginAllowThreads();
3390 result = (bool)((wxRichTextRange const *)arg1)->IsWithin((wxRichTextRange const &)*arg2);
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 {
3395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3396 }
3397 return resultobj;
3398 fail:
3399 return NULL;
3400 }
3401
3402
3403 SWIGINTERN PyObject *_wrap_RichTextRange_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj = 0;
3405 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3406 long arg2 ;
3407 bool result;
3408 void *argp1 = 0 ;
3409 int res1 = 0 ;
3410 long val2 ;
3411 int ecode2 = 0 ;
3412 PyObject * obj0 = 0 ;
3413 PyObject * obj1 = 0 ;
3414 char * kwnames[] = {
3415 (char *) "self",(char *) "pos", NULL
3416 };
3417
3418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
3419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3420 if (!SWIG_IsOK(res1)) {
3421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Contains" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3422 }
3423 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3424 ecode2 = SWIG_AsVal_long(obj1, &val2);
3425 if (!SWIG_IsOK(ecode2)) {
3426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextRange_Contains" "', expected argument " "2"" of type '" "long""'");
3427 }
3428 arg2 = static_cast< long >(val2);
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (bool)((wxRichTextRange const *)arg1)->Contains(arg2);
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 {
3436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3437 }
3438 return resultobj;
3439 fail:
3440 return NULL;
3441 }
3442
3443
3444 SWIGINTERN PyObject *_wrap_RichTextRange_LimitTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3445 PyObject *resultobj = 0;
3446 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3447 wxRichTextRange *arg2 = 0 ;
3448 bool result;
3449 void *argp1 = 0 ;
3450 int res1 = 0 ;
3451 wxRichTextRange temp2 ;
3452 PyObject * obj0 = 0 ;
3453 PyObject * obj1 = 0 ;
3454 char * kwnames[] = {
3455 (char *) "self",(char *) "range", NULL
3456 };
3457
3458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextRange_LimitTo",kwnames,&obj0,&obj1)) SWIG_fail;
3459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3460 if (!SWIG_IsOK(res1)) {
3461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_LimitTo" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3462 }
3463 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3464 {
3465 arg2 = &temp2;
3466 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
3467 }
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = (bool)(arg1)->LimitTo((wxRichTextRange const &)*arg2);
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 {
3475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3476 }
3477 return resultobj;
3478 fail:
3479 return NULL;
3480 }
3481
3482
3483 SWIGINTERN PyObject *_wrap_RichTextRange_GetLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3484 PyObject *resultobj = 0;
3485 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3486 long result;
3487 void *argp1 = 0 ;
3488 int res1 = 0 ;
3489 PyObject *swig_obj[1] ;
3490
3491 if (!args) SWIG_fail;
3492 swig_obj[0] = args;
3493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_GetLength" "', expected argument " "1"" of type '" "wxRichTextRange const *""'");
3496 }
3497 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (long)((wxRichTextRange const *)arg1)->GetLength();
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_From_long(static_cast< long >(result));
3505 return resultobj;
3506 fail:
3507 return NULL;
3508 }
3509
3510
3511 SWIGINTERN PyObject *_wrap_RichTextRange_Swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3512 PyObject *resultobj = 0;
3513 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3514 void *argp1 = 0 ;
3515 int res1 = 0 ;
3516 PyObject *swig_obj[1] ;
3517
3518 if (!args) SWIG_fail;
3519 swig_obj[0] = args;
3520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3521 if (!SWIG_IsOK(res1)) {
3522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Swap" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3523 }
3524 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 (arg1)->Swap();
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 resultobj = SWIG_Py_Void();
3532 return resultobj;
3533 fail:
3534 return NULL;
3535 }
3536
3537
3538 SWIGINTERN PyObject *_wrap_RichTextRange_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3539 PyObject *resultobj = 0;
3540 wxRichTextRange *arg1 = (wxRichTextRange *) 0 ;
3541 PyObject *result = 0 ;
3542 void *argp1 = 0 ;
3543 int res1 = 0 ;
3544 PyObject *swig_obj[1] ;
3545
3546 if (!args) SWIG_fail;
3547 swig_obj[0] = args;
3548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextRange, 0 | 0 );
3549 if (!SWIG_IsOK(res1)) {
3550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextRange_Get" "', expected argument " "1"" of type '" "wxRichTextRange *""'");
3551 }
3552 arg1 = reinterpret_cast< wxRichTextRange * >(argp1);
3553 {
3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
3555 result = (PyObject *)wxRichTextRange_Get(arg1);
3556 wxPyEndAllowThreads(__tstate);
3557 if (PyErr_Occurred()) SWIG_fail;
3558 }
3559 resultobj = result;
3560 return resultobj;
3561 fail:
3562 return NULL;
3563 }
3564
3565
3566 SWIGINTERN PyObject *RichTextRange_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3567 PyObject *obj;
3568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3569 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextRange, SWIG_NewClientData(obj));
3570 return SWIG_Py_Void();
3571 }
3572
3573 SWIGINTERN PyObject *RichTextRange_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3574 return SWIG_Python_InitShadowInstance(args);
3575 }
3576
3577 SWIGINTERN int RICHTEXT_ALL_set(PyObject *) {
3578 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_ALL is read-only.");
3579 return 1;
3580 }
3581
3582
3583 SWIGINTERN PyObject *RICHTEXT_ALL_get(void) {
3584 PyObject *pyobj = 0;
3585
3586 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_ALL), SWIGTYPE_p_wxRichTextRange, 0 );
3587 return pyobj;
3588 }
3589
3590
3591 SWIGINTERN int RICHTEXT_NONE_set(PyObject *) {
3592 SWIG_Error(SWIG_AttributeError,"Variable RICHTEXT_NONE is read-only.");
3593 return 1;
3594 }
3595
3596
3597 SWIGINTERN PyObject *RICHTEXT_NONE_get(void) {
3598 PyObject *pyobj = 0;
3599
3600 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxPy_RTR_NONE), SWIGTYPE_p_wxRichTextRange, 0 );
3601 return pyobj;
3602 }
3603
3604
3605 SWIGINTERN PyObject *_wrap_new_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3606 PyObject *resultobj = 0;
3607 wxColour const &arg1_defvalue = wxNullColour ;
3608 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
3609 wxColour const &arg2_defvalue = wxNullColour ;
3610 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3611 wxTextAttrAlignment arg3 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
3612 wxRichTextAttr *result = 0 ;
3613 wxColour temp1 ;
3614 wxColour temp2 ;
3615 int val3 ;
3616 int ecode3 = 0 ;
3617 PyObject * obj0 = 0 ;
3618 PyObject * obj1 = 0 ;
3619 PyObject * obj2 = 0 ;
3620 char * kwnames[] = {
3621 (char *) "colText",(char *) "colBack",(char *) "alignment", NULL
3622 };
3623
3624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_RichTextAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3625 if (obj0) {
3626 {
3627 arg1 = &temp1;
3628 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3629 }
3630 }
3631 if (obj1) {
3632 {
3633 arg2 = &temp2;
3634 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3635 }
3636 }
3637 if (obj2) {
3638 ecode3 = SWIG_AsVal_int(obj2, &val3);
3639 if (!SWIG_IsOK(ecode3)) {
3640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RichTextAttr" "', expected argument " "3"" of type '" "wxTextAttrAlignment""'");
3641 }
3642 arg3 = static_cast< wxTextAttrAlignment >(val3);
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (wxRichTextAttr *)new wxRichTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,arg3);
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_NEW | 0 );
3651 return resultobj;
3652 fail:
3653 return NULL;
3654 }
3655
3656
3657 SWIGINTERN PyObject *_wrap_delete_RichTextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3658 PyObject *resultobj = 0;
3659 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3660 void *argp1 = 0 ;
3661 int res1 = 0 ;
3662 PyObject *swig_obj[1] ;
3663
3664 if (!args) SWIG_fail;
3665 swig_obj[0] = args;
3666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_DISOWN | 0 );
3667 if (!SWIG_IsOK(res1)) {
3668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RichTextAttr" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3669 }
3670 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 delete arg1;
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 resultobj = SWIG_Py_Void();
3679 return resultobj;
3680 fail:
3681 return NULL;
3682 }
3683
3684
3685 SWIGINTERN PyObject *_wrap_RichTextAttr_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3686 PyObject *resultobj = 0;
3687 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3688 wxFont result;
3689 void *argp1 = 0 ;
3690 int res1 = 0 ;
3691 PyObject *swig_obj[1] ;
3692
3693 if (!args) SWIG_fail;
3694 swig_obj[0] = args;
3695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3696 if (!SWIG_IsOK(res1)) {
3697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_CreateFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
3698 }
3699 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 result = ((wxRichTextAttr const *)arg1)->CreateFont();
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj = 0;
3715 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3716 wxFont *arg2 = 0 ;
3717 bool result;
3718 void *argp1 = 0 ;
3719 int res1 = 0 ;
3720 void *argp2 = 0 ;
3721 int res2 = 0 ;
3722 PyObject * obj0 = 0 ;
3723 PyObject * obj1 = 0 ;
3724 char * kwnames[] = {
3725 (char *) "self",(char *) "font", NULL
3726 };
3727
3728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_GetFontAttributes",kwnames,&obj0,&obj1)) SWIG_fail;
3729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3730 if (!SWIG_IsOK(res1)) {
3731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3732 }
3733 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
3735 if (!SWIG_IsOK(res2)) {
3736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3737 }
3738 if (!argp2) {
3739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_GetFontAttributes" "', expected argument " "2"" of type '" "wxFont const &""'");
3740 }
3741 arg2 = reinterpret_cast< wxFont * >(argp2);
3742 {
3743 PyThreadState* __tstate = wxPyBeginAllowThreads();
3744 result = (bool)(arg1)->GetFontAttributes((wxFont const &)*arg2);
3745 wxPyEndAllowThreads(__tstate);
3746 if (PyErr_Occurred()) SWIG_fail;
3747 }
3748 {
3749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3750 }
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj = 0;
3759 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3760 wxColour *arg2 = 0 ;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 wxColour temp2 ;
3764 PyObject * obj0 = 0 ;
3765 PyObject * obj1 = 0 ;
3766 char * kwnames[] = {
3767 (char *) "self",(char *) "colText", NULL
3768 };
3769
3770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
3771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3772 if (!SWIG_IsOK(res1)) {
3773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3774 }
3775 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3776 {
3777 arg2 = &temp2;
3778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3779 }
3780 {
3781 PyThreadState* __tstate = wxPyBeginAllowThreads();
3782 (arg1)->SetTextColour((wxColour const &)*arg2);
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 resultobj = SWIG_Py_Void();
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj = 0;
3795 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3796 wxColour *arg2 = 0 ;
3797 void *argp1 = 0 ;
3798 int res1 = 0 ;
3799 wxColour temp2 ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 char * kwnames[] = {
3803 (char *) "self",(char *) "colBack", NULL
3804 };
3805
3806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
3807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3808 if (!SWIG_IsOK(res1)) {
3809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3810 }
3811 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3812 {
3813 arg2 = &temp2;
3814 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3815 }
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 resultobj = SWIG_Py_Void();
3823 return resultobj;
3824 fail:
3825 return NULL;
3826 }
3827
3828
3829 SWIGINTERN PyObject *_wrap_RichTextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3830 PyObject *resultobj = 0;
3831 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3832 wxTextAttrAlignment arg2 ;
3833 void *argp1 = 0 ;
3834 int res1 = 0 ;
3835 int val2 ;
3836 int ecode2 = 0 ;
3837 PyObject * obj0 = 0 ;
3838 PyObject * obj1 = 0 ;
3839 char * kwnames[] = {
3840 (char *) "self",(char *) "alignment", NULL
3841 };
3842
3843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
3844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3845 if (!SWIG_IsOK(res1)) {
3846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3847 }
3848 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3849 ecode2 = SWIG_AsVal_int(obj1, &val2);
3850 if (!SWIG_IsOK(ecode2)) {
3851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
3852 }
3853 arg2 = static_cast< wxTextAttrAlignment >(val2);
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 (arg1)->SetAlignment(arg2);
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 resultobj = SWIG_Py_Void();
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj = 0;
3869 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3870 wxArrayInt *arg2 = 0 ;
3871 void *argp1 = 0 ;
3872 int res1 = 0 ;
3873 bool temp2 = false ;
3874 PyObject * obj0 = 0 ;
3875 PyObject * obj1 = 0 ;
3876 char * kwnames[] = {
3877 (char *) "self",(char *) "tabs", NULL
3878 };
3879
3880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
3881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3882 if (!SWIG_IsOK(res1)) {
3883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3884 }
3885 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3886 {
3887 if (! PySequence_Check(obj1)) {
3888 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
3889 SWIG_fail;
3890 }
3891 arg2 = new wxArrayInt;
3892 temp2 = true;
3893 int i, len=PySequence_Length(obj1);
3894 for (i=0; i<len; i++) {
3895 PyObject* item = PySequence_GetItem(obj1, i);
3896 PyObject* number = PyNumber_Int(item);
3897 arg2->Add(PyInt_AS_LONG(number));
3898 Py_DECREF(item);
3899 Py_DECREF(number);
3900 }
3901 }
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 (arg1)->SetTabs((wxArrayInt const &)*arg2);
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_Py_Void();
3909 {
3910 if (temp2) delete arg2;
3911 }
3912 return resultobj;
3913 fail:
3914 {
3915 if (temp2) delete arg2;
3916 }
3917 return NULL;
3918 }
3919
3920
3921 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj = 0;
3923 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3924 int arg2 ;
3925 int arg3 = (int) 0 ;
3926 void *argp1 = 0 ;
3927 int res1 = 0 ;
3928 int val2 ;
3929 int ecode2 = 0 ;
3930 int val3 ;
3931 int ecode3 = 0 ;
3932 PyObject * obj0 = 0 ;
3933 PyObject * obj1 = 0 ;
3934 PyObject * obj2 = 0 ;
3935 char * kwnames[] = {
3936 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
3937 };
3938
3939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3941 if (!SWIG_IsOK(res1)) {
3942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3943 }
3944 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3945 ecode2 = SWIG_AsVal_int(obj1, &val2);
3946 if (!SWIG_IsOK(ecode2)) {
3947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
3948 }
3949 arg2 = static_cast< int >(val2);
3950 if (obj2) {
3951 ecode3 = SWIG_AsVal_int(obj2, &val3);
3952 if (!SWIG_IsOK(ecode3)) {
3953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
3954 }
3955 arg3 = static_cast< int >(val3);
3956 }
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 (arg1)->SetLeftIndent(arg2,arg3);
3960 wxPyEndAllowThreads(__tstate);
3961 if (PyErr_Occurred()) SWIG_fail;
3962 }
3963 resultobj = SWIG_Py_Void();
3964 return resultobj;
3965 fail:
3966 return NULL;
3967 }
3968
3969
3970 SWIGINTERN PyObject *_wrap_RichTextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3971 PyObject *resultobj = 0;
3972 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
3973 int arg2 ;
3974 void *argp1 = 0 ;
3975 int res1 = 0 ;
3976 int val2 ;
3977 int ecode2 = 0 ;
3978 PyObject * obj0 = 0 ;
3979 PyObject * obj1 = 0 ;
3980 char * kwnames[] = {
3981 (char *) "self",(char *) "indent", NULL
3982 };
3983
3984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
3985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
3986 if (!SWIG_IsOK(res1)) {
3987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
3988 }
3989 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
3990 ecode2 = SWIG_AsVal_int(obj1, &val2);
3991 if (!SWIG_IsOK(ecode2)) {
3992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
3993 }
3994 arg2 = static_cast< int >(val2);
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 (arg1)->SetRightIndent(arg2);
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 resultobj = SWIG_Py_Void();
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj = 0;
4010 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4011 int arg2 ;
4012 void *argp1 = 0 ;
4013 int res1 = 0 ;
4014 int val2 ;
4015 int ecode2 = 0 ;
4016 PyObject * obj0 = 0 ;
4017 PyObject * obj1 = 0 ;
4018 char * kwnames[] = {
4019 (char *) "self",(char *) "pointSize", NULL
4020 };
4021
4022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
4023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4026 }
4027 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4028 ecode2 = SWIG_AsVal_int(obj1, &val2);
4029 if (!SWIG_IsOK(ecode2)) {
4030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontSize" "', expected argument " "2"" of type '" "int""'");
4031 }
4032 arg2 = static_cast< int >(val2);
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 (arg1)->SetFontSize(arg2);
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_Py_Void();
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj = 0;
4048 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4049 int arg2 ;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 int val2 ;
4053 int ecode2 = 0 ;
4054 PyObject * obj0 = 0 ;
4055 PyObject * obj1 = 0 ;
4056 char * kwnames[] = {
4057 (char *) "self",(char *) "fontStyle", NULL
4058 };
4059
4060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4062 if (!SWIG_IsOK(res1)) {
4063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4064 }
4065 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4066 ecode2 = SWIG_AsVal_int(obj1, &val2);
4067 if (!SWIG_IsOK(ecode2)) {
4068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontStyle" "', expected argument " "2"" of type '" "int""'");
4069 }
4070 arg2 = static_cast< int >(val2);
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 (arg1)->SetFontStyle(arg2);
4074 wxPyEndAllowThreads(__tstate);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 resultobj = SWIG_Py_Void();
4078 return resultobj;
4079 fail:
4080 return NULL;
4081 }
4082
4083
4084 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj = 0;
4086 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4087 int arg2 ;
4088 void *argp1 = 0 ;
4089 int res1 = 0 ;
4090 int val2 ;
4091 int ecode2 = 0 ;
4092 PyObject * obj0 = 0 ;
4093 PyObject * obj1 = 0 ;
4094 char * kwnames[] = {
4095 (char *) "self",(char *) "fontWeight", NULL
4096 };
4097
4098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontWeight",kwnames,&obj0,&obj1)) SWIG_fail;
4099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4100 if (!SWIG_IsOK(res1)) {
4101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4102 }
4103 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4104 ecode2 = SWIG_AsVal_int(obj1, &val2);
4105 if (!SWIG_IsOK(ecode2)) {
4106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontWeight" "', expected argument " "2"" of type '" "int""'");
4107 }
4108 arg2 = static_cast< int >(val2);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 (arg1)->SetFontWeight(arg2);
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 resultobj = SWIG_Py_Void();
4116 return resultobj;
4117 fail:
4118 return NULL;
4119 }
4120
4121
4122 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4123 PyObject *resultobj = 0;
4124 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4125 wxString *arg2 = 0 ;
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 bool temp2 = false ;
4129 PyObject * obj0 = 0 ;
4130 PyObject * obj1 = 0 ;
4131 char * kwnames[] = {
4132 (char *) "self",(char *) "faceName", NULL
4133 };
4134
4135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
4136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4137 if (!SWIG_IsOK(res1)) {
4138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4139 }
4140 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4141 {
4142 arg2 = wxString_in_helper(obj1);
4143 if (arg2 == NULL) SWIG_fail;
4144 temp2 = true;
4145 }
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 (arg1)->SetFontFaceName((wxString const &)*arg2);
4149 wxPyEndAllowThreads(__tstate);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 resultobj = SWIG_Py_Void();
4153 {
4154 if (temp2)
4155 delete arg2;
4156 }
4157 return resultobj;
4158 fail:
4159 {
4160 if (temp2)
4161 delete arg2;
4162 }
4163 return NULL;
4164 }
4165
4166
4167 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj = 0;
4169 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4170 bool arg2 ;
4171 void *argp1 = 0 ;
4172 int res1 = 0 ;
4173 bool val2 ;
4174 int ecode2 = 0 ;
4175 PyObject * obj0 = 0 ;
4176 PyObject * obj1 = 0 ;
4177 char * kwnames[] = {
4178 (char *) "self",(char *) "underlined", NULL
4179 };
4180
4181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFontUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
4182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4183 if (!SWIG_IsOK(res1)) {
4184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4185 }
4186 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4187 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4188 if (!SWIG_IsOK(ecode2)) {
4189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFontUnderlined" "', expected argument " "2"" of type '" "bool""'");
4190 }
4191 arg2 = static_cast< bool >(val2);
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->SetFontUnderlined(arg2);
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = SWIG_Py_Void();
4199 return resultobj;
4200 fail:
4201 return NULL;
4202 }
4203
4204
4205 SWIGINTERN PyObject *_wrap_RichTextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj = 0;
4207 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4208 long arg2 ;
4209 void *argp1 = 0 ;
4210 int res1 = 0 ;
4211 long val2 ;
4212 int ecode2 = 0 ;
4213 PyObject * obj0 = 0 ;
4214 PyObject * obj1 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "self",(char *) "flags", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
4220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4221 if (!SWIG_IsOK(res1)) {
4222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4223 }
4224 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4225 ecode2 = SWIG_AsVal_long(obj1, &val2);
4226 if (!SWIG_IsOK(ecode2)) {
4227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
4228 }
4229 arg2 = static_cast< long >(val2);
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 (arg1)->SetFlags(arg2);
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 resultobj = SWIG_Py_Void();
4237 return resultobj;
4238 fail:
4239 return NULL;
4240 }
4241
4242
4243 SWIGINTERN PyObject *_wrap_RichTextAttr_SetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4244 PyObject *resultobj = 0;
4245 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4246 wxString *arg2 = 0 ;
4247 void *argp1 = 0 ;
4248 int res1 = 0 ;
4249 bool temp2 = false ;
4250 PyObject * obj0 = 0 ;
4251 PyObject * obj1 = 0 ;
4252 char * kwnames[] = {
4253 (char *) "self",(char *) "name", NULL
4254 };
4255
4256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetCharacterStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4258 if (!SWIG_IsOK(res1)) {
4259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4260 }
4261 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4262 {
4263 arg2 = wxString_in_helper(obj1);
4264 if (arg2 == NULL) SWIG_fail;
4265 temp2 = true;
4266 }
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 (arg1)->SetCharacterStyleName((wxString const &)*arg2);
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = SWIG_Py_Void();
4274 {
4275 if (temp2)
4276 delete arg2;
4277 }
4278 return resultobj;
4279 fail:
4280 {
4281 if (temp2)
4282 delete arg2;
4283 }
4284 return NULL;
4285 }
4286
4287
4288 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4289 PyObject *resultobj = 0;
4290 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4291 wxString *arg2 = 0 ;
4292 void *argp1 = 0 ;
4293 int res1 = 0 ;
4294 bool temp2 = false ;
4295 PyObject * obj0 = 0 ;
4296 PyObject * obj1 = 0 ;
4297 char * kwnames[] = {
4298 (char *) "self",(char *) "name", NULL
4299 };
4300
4301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphStyleName",kwnames,&obj0,&obj1)) SWIG_fail;
4302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4303 if (!SWIG_IsOK(res1)) {
4304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4305 }
4306 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4307 {
4308 arg2 = wxString_in_helper(obj1);
4309 if (arg2 == NULL) SWIG_fail;
4310 temp2 = true;
4311 }
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 (arg1)->SetParagraphStyleName((wxString const &)*arg2);
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_Py_Void();
4319 {
4320 if (temp2)
4321 delete arg2;
4322 }
4323 return resultobj;
4324 fail:
4325 {
4326 if (temp2)
4327 delete arg2;
4328 }
4329 return NULL;
4330 }
4331
4332
4333 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj = 0;
4335 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4336 int arg2 ;
4337 void *argp1 = 0 ;
4338 int res1 = 0 ;
4339 int val2 ;
4340 int ecode2 = 0 ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 char * kwnames[] = {
4344 (char *) "self",(char *) "spacing", NULL
4345 };
4346
4347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingAfter",kwnames,&obj0,&obj1)) SWIG_fail;
4348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4349 if (!SWIG_IsOK(res1)) {
4350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4351 }
4352 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4353 ecode2 = SWIG_AsVal_int(obj1, &val2);
4354 if (!SWIG_IsOK(ecode2)) {
4355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingAfter" "', expected argument " "2"" of type '" "int""'");
4356 }
4357 arg2 = static_cast< int >(val2);
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 (arg1)->SetParagraphSpacingAfter(arg2);
4361 wxPyEndAllowThreads(__tstate);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 resultobj = SWIG_Py_Void();
4365 return resultobj;
4366 fail:
4367 return NULL;
4368 }
4369
4370
4371 SWIGINTERN PyObject *_wrap_RichTextAttr_SetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj = 0;
4373 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4374 int arg2 ;
4375 void *argp1 = 0 ;
4376 int res1 = 0 ;
4377 int val2 ;
4378 int ecode2 = 0 ;
4379 PyObject * obj0 = 0 ;
4380 PyObject * obj1 = 0 ;
4381 char * kwnames[] = {
4382 (char *) "self",(char *) "spacing", NULL
4383 };
4384
4385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetParagraphSpacingBefore",kwnames,&obj0,&obj1)) SWIG_fail;
4386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4387 if (!SWIG_IsOK(res1)) {
4388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4389 }
4390 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4391 ecode2 = SWIG_AsVal_int(obj1, &val2);
4392 if (!SWIG_IsOK(ecode2)) {
4393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetParagraphSpacingBefore" "', expected argument " "2"" of type '" "int""'");
4394 }
4395 arg2 = static_cast< int >(val2);
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 (arg1)->SetParagraphSpacingBefore(arg2);
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 resultobj = SWIG_Py_Void();
4403 return resultobj;
4404 fail:
4405 return NULL;
4406 }
4407
4408
4409 SWIGINTERN PyObject *_wrap_RichTextAttr_SetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj = 0;
4411 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4412 int arg2 ;
4413 void *argp1 = 0 ;
4414 int res1 = 0 ;
4415 int val2 ;
4416 int ecode2 = 0 ;
4417 PyObject * obj0 = 0 ;
4418 PyObject * obj1 = 0 ;
4419 char * kwnames[] = {
4420 (char *) "self",(char *) "spacing", NULL
4421 };
4422
4423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
4424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4425 if (!SWIG_IsOK(res1)) {
4426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4427 }
4428 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4429 ecode2 = SWIG_AsVal_int(obj1, &val2);
4430 if (!SWIG_IsOK(ecode2)) {
4431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetLineSpacing" "', expected argument " "2"" of type '" "int""'");
4432 }
4433 arg2 = static_cast< int >(val2);
4434 {
4435 PyThreadState* __tstate = wxPyBeginAllowThreads();
4436 (arg1)->SetLineSpacing(arg2);
4437 wxPyEndAllowThreads(__tstate);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 resultobj = SWIG_Py_Void();
4441 return resultobj;
4442 fail:
4443 return NULL;
4444 }
4445
4446
4447 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4448 PyObject *resultobj = 0;
4449 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4450 int arg2 ;
4451 void *argp1 = 0 ;
4452 int res1 = 0 ;
4453 int val2 ;
4454 int ecode2 = 0 ;
4455 PyObject * obj0 = 0 ;
4456 PyObject * obj1 = 0 ;
4457 char * kwnames[] = {
4458 (char *) "self",(char *) "style", NULL
4459 };
4460
4461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4463 if (!SWIG_IsOK(res1)) {
4464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4465 }
4466 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4467 ecode2 = SWIG_AsVal_int(obj1, &val2);
4468 if (!SWIG_IsOK(ecode2)) {
4469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletStyle" "', expected argument " "2"" of type '" "int""'");
4470 }
4471 arg2 = static_cast< int >(val2);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 (arg1)->SetBulletStyle(arg2);
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_Py_Void();
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj = 0;
4487 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4488 int arg2 ;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 int val2 ;
4492 int ecode2 = 0 ;
4493 PyObject * obj0 = 0 ;
4494 PyObject * obj1 = 0 ;
4495 char * kwnames[] = {
4496 (char *) "self",(char *) "n", NULL
4497 };
4498
4499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletNumber",kwnames,&obj0,&obj1)) SWIG_fail;
4500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4501 if (!SWIG_IsOK(res1)) {
4502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4503 }
4504 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4505 ecode2 = SWIG_AsVal_int(obj1, &val2);
4506 if (!SWIG_IsOK(ecode2)) {
4507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_SetBulletNumber" "', expected argument " "2"" of type '" "int""'");
4508 }
4509 arg2 = static_cast< int >(val2);
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 (arg1)->SetBulletNumber(arg2);
4513 wxPyEndAllowThreads(__tstate);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 resultobj = SWIG_Py_Void();
4517 return resultobj;
4518 fail:
4519 return NULL;
4520 }
4521
4522
4523 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj = 0;
4525 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4526 wxChar arg2 ;
4527 void *argp1 = 0 ;
4528 int res1 = 0 ;
4529 void *argp2 ;
4530 int res2 = 0 ;
4531 PyObject * obj0 = 0 ;
4532 PyObject * obj1 = 0 ;
4533 char * kwnames[] = {
4534 (char *) "self",(char *) "symbol", NULL
4535 };
4536
4537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletSymbol",kwnames,&obj0,&obj1)) SWIG_fail;
4538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4539 if (!SWIG_IsOK(res1)) {
4540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4541 }
4542 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4543 {
4544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxChar, 0 | 0);
4545 if (!SWIG_IsOK(res2)) {
4546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4547 }
4548 if (!argp2) {
4549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextAttr_SetBulletSymbol" "', expected argument " "2"" of type '" "wxChar""'");
4550 } else {
4551 wxChar * temp = reinterpret_cast< wxChar * >(argp2);
4552 arg2 = *temp;
4553 if (SWIG_IsNewObj(res2)) delete temp;
4554 }
4555 }
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 (arg1)->SetBulletSymbol(arg2);
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 resultobj = SWIG_Py_Void();
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 SWIGINTERN PyObject *_wrap_RichTextAttr_SetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj = 0;
4571 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4572 wxString *arg2 = 0 ;
4573 void *argp1 = 0 ;
4574 int res1 = 0 ;
4575 bool temp2 = false ;
4576 PyObject * obj0 = 0 ;
4577 PyObject * obj1 = 0 ;
4578 char * kwnames[] = {
4579 (char *) "self",(char *) "bulletFont", NULL
4580 };
4581
4582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_SetBulletFont",kwnames,&obj0,&obj1)) SWIG_fail;
4583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4584 if (!SWIG_IsOK(res1)) {
4585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_SetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr *""'");
4586 }
4587 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4588 {
4589 arg2 = wxString_in_helper(obj1);
4590 if (arg2 == NULL) SWIG_fail;
4591 temp2 = true;
4592 }
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 (arg1)->SetBulletFont((wxString const &)*arg2);
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 resultobj = SWIG_Py_Void();
4600 {
4601 if (temp2)
4602 delete arg2;
4603 }
4604 return resultobj;
4605 fail:
4606 {
4607 if (temp2)
4608 delete arg2;
4609 }
4610 return NULL;
4611 }
4612
4613
4614 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4615 PyObject *resultobj = 0;
4616 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4617 wxColour *result = 0 ;
4618 void *argp1 = 0 ;
4619 int res1 = 0 ;
4620 PyObject *swig_obj[1] ;
4621
4622 if (!args) SWIG_fail;
4623 swig_obj[0] = args;
4624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4625 if (!SWIG_IsOK(res1)) {
4626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4627 }
4628 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 {
4632 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTextColour();
4633 result = (wxColour *) &_result_ref;
4634 }
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4648 wxColour *result = 0 ;
4649 void *argp1 = 0 ;
4650 int res1 = 0 ;
4651 PyObject *swig_obj[1] ;
4652
4653 if (!args) SWIG_fail;
4654 swig_obj[0] = args;
4655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4656 if (!SWIG_IsOK(res1)) {
4657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4658 }
4659 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4660 {
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 {
4663 wxColour const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBackgroundColour();
4664 result = (wxColour *) &_result_ref;
4665 }
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
4670 return resultobj;
4671 fail:
4672 return NULL;
4673 }
4674
4675
4676 SWIGINTERN PyObject *_wrap_RichTextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4677 PyObject *resultobj = 0;
4678 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4679 wxTextAttrAlignment result;
4680 void *argp1 = 0 ;
4681 int res1 = 0 ;
4682 PyObject *swig_obj[1] ;
4683
4684 if (!args) SWIG_fail;
4685 swig_obj[0] = args;
4686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4687 if (!SWIG_IsOK(res1)) {
4688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4689 }
4690 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4691 {
4692 PyThreadState* __tstate = wxPyBeginAllowThreads();
4693 result = (wxTextAttrAlignment)((wxRichTextAttr const *)arg1)->GetAlignment();
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 resultobj = SWIG_From_int(static_cast< int >(result));
4698 return resultobj;
4699 fail:
4700 return NULL;
4701 }
4702
4703
4704 SWIGINTERN PyObject *_wrap_RichTextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4705 PyObject *resultobj = 0;
4706 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4707 wxArrayInt *result = 0 ;
4708 void *argp1 = 0 ;
4709 int res1 = 0 ;
4710 PyObject *swig_obj[1] ;
4711
4712 if (!args) SWIG_fail;
4713 swig_obj[0] = args;
4714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4715 if (!SWIG_IsOK(res1)) {
4716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4717 }
4718 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 {
4722 wxArrayInt const &_result_ref = ((wxRichTextAttr const *)arg1)->GetTabs();
4723 result = (wxArrayInt *) &_result_ref;
4724 }
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 {
4729 resultobj = wxArrayInt2PyList_helper(*result);
4730 }
4731 return resultobj;
4732 fail:
4733 return NULL;
4734 }
4735
4736
4737 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4738 PyObject *resultobj = 0;
4739 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4740 long result;
4741 void *argp1 = 0 ;
4742 int res1 = 0 ;
4743 PyObject *swig_obj[1] ;
4744
4745 if (!args) SWIG_fail;
4746 swig_obj[0] = args;
4747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4748 if (!SWIG_IsOK(res1)) {
4749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4750 }
4751 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 result = (long)((wxRichTextAttr const *)arg1)->GetLeftIndent();
4755 wxPyEndAllowThreads(__tstate);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 resultobj = SWIG_From_long(static_cast< long >(result));
4759 return resultobj;
4760 fail:
4761 return NULL;
4762 }
4763
4764
4765 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4766 PyObject *resultobj = 0;
4767 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4768 long result;
4769 void *argp1 = 0 ;
4770 int res1 = 0 ;
4771 PyObject *swig_obj[1] ;
4772
4773 if (!args) SWIG_fail;
4774 swig_obj[0] = args;
4775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4776 if (!SWIG_IsOK(res1)) {
4777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4778 }
4779 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (long)((wxRichTextAttr const *)arg1)->GetLeftSubIndent();
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 resultobj = SWIG_From_long(static_cast< long >(result));
4787 return resultobj;
4788 fail:
4789 return NULL;
4790 }
4791
4792
4793 SWIGINTERN PyObject *_wrap_RichTextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4794 PyObject *resultobj = 0;
4795 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4796 long result;
4797 void *argp1 = 0 ;
4798 int res1 = 0 ;
4799 PyObject *swig_obj[1] ;
4800
4801 if (!args) SWIG_fail;
4802 swig_obj[0] = args;
4803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4804 if (!SWIG_IsOK(res1)) {
4805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4806 }
4807 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (long)((wxRichTextAttr const *)arg1)->GetRightIndent();
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_From_long(static_cast< long >(result));
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4822 PyObject *resultobj = 0;
4823 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4824 long result;
4825 void *argp1 = 0 ;
4826 int res1 = 0 ;
4827 PyObject *swig_obj[1] ;
4828
4829 if (!args) SWIG_fail;
4830 swig_obj[0] = args;
4831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4832 if (!SWIG_IsOK(res1)) {
4833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFlags" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4834 }
4835 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (long)((wxRichTextAttr const *)arg1)->GetFlags();
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 resultobj = SWIG_From_long(static_cast< long >(result));
4843 return resultobj;
4844 fail:
4845 return NULL;
4846 }
4847
4848
4849 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4850 PyObject *resultobj = 0;
4851 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4852 int result;
4853 void *argp1 = 0 ;
4854 int res1 = 0 ;
4855 PyObject *swig_obj[1] ;
4856
4857 if (!args) SWIG_fail;
4858 swig_obj[0] = args;
4859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4860 if (!SWIG_IsOK(res1)) {
4861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4862 }
4863 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (int)((wxRichTextAttr const *)arg1)->GetFontSize();
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_From_int(static_cast< int >(result));
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4878 PyObject *resultobj = 0;
4879 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4880 int result;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 PyObject *swig_obj[1] ;
4884
4885 if (!args) SWIG_fail;
4886 swig_obj[0] = args;
4887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4890 }
4891 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (int)((wxRichTextAttr const *)arg1)->GetFontStyle();
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_From_int(static_cast< int >(result));
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *resultobj = 0;
4907 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4908 int result;
4909 void *argp1 = 0 ;
4910 int res1 = 0 ;
4911 PyObject *swig_obj[1] ;
4912
4913 if (!args) SWIG_fail;
4914 swig_obj[0] = args;
4915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4918 }
4919 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (int)((wxRichTextAttr const *)arg1)->GetFontWeight();
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 resultobj = SWIG_From_int(static_cast< int >(result));
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4934 PyObject *resultobj = 0;
4935 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4936 bool result;
4937 void *argp1 = 0 ;
4938 int res1 = 0 ;
4939 PyObject *swig_obj[1] ;
4940
4941 if (!args) SWIG_fail;
4942 swig_obj[0] = args;
4943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4946 }
4947 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (bool)((wxRichTextAttr const *)arg1)->GetFontUnderlined();
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 {
4955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4956 }
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 SWIGINTERN PyObject *_wrap_RichTextAttr_GetFontFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4964 PyObject *resultobj = 0;
4965 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
4966 wxString *result = 0 ;
4967 void *argp1 = 0 ;
4968 int res1 = 0 ;
4969 PyObject *swig_obj[1] ;
4970
4971 if (!args) SWIG_fail;
4972 swig_obj[0] = args;
4973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
4974 if (!SWIG_IsOK(res1)) {
4975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetFontFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
4976 }
4977 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 {
4981 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetFontFaceName();
4982 result = (wxString *) &_result_ref;
4983 }
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 #if wxUSE_UNICODE
4989 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4990 #else
4991 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4992 #endif
4993 }
4994 return resultobj;
4995 fail:
4996 return NULL;
4997 }
4998
4999
5000 SWIGINTERN PyObject *_wrap_RichTextAttr_GetCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5001 PyObject *resultobj = 0;
5002 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5003 wxString *result = 0 ;
5004 void *argp1 = 0 ;
5005 int res1 = 0 ;
5006 PyObject *swig_obj[1] ;
5007
5008 if (!args) SWIG_fail;
5009 swig_obj[0] = args;
5010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5011 if (!SWIG_IsOK(res1)) {
5012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5013 }
5014 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5015 {
5016 PyThreadState* __tstate = wxPyBeginAllowThreads();
5017 {
5018 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetCharacterStyleName();
5019 result = (wxString *) &_result_ref;
5020 }
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 {
5025 #if wxUSE_UNICODE
5026 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5027 #else
5028 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5029 #endif
5030 }
5031 return resultobj;
5032 fail:
5033 return NULL;
5034 }
5035
5036
5037 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5038 PyObject *resultobj = 0;
5039 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5040 wxString *result = 0 ;
5041 void *argp1 = 0 ;
5042 int res1 = 0 ;
5043 PyObject *swig_obj[1] ;
5044
5045 if (!args) SWIG_fail;
5046 swig_obj[0] = args;
5047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5048 if (!SWIG_IsOK(res1)) {
5049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5050 }
5051 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 {
5055 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetParagraphStyleName();
5056 result = (wxString *) &_result_ref;
5057 }
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 {
5062 #if wxUSE_UNICODE
5063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5064 #else
5065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5066 #endif
5067 }
5068 return resultobj;
5069 fail:
5070 return NULL;
5071 }
5072
5073
5074 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5075 PyObject *resultobj = 0;
5076 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5077 int result;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 PyObject *swig_obj[1] ;
5081
5082 if (!args) SWIG_fail;
5083 swig_obj[0] = args;
5084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5085 if (!SWIG_IsOK(res1)) {
5086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5087 }
5088 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingAfter();
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_From_int(static_cast< int >(result));
5096 return resultobj;
5097 fail:
5098 return NULL;
5099 }
5100
5101
5102 SWIGINTERN PyObject *_wrap_RichTextAttr_GetParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5103 PyObject *resultobj = 0;
5104 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5105 int result;
5106 void *argp1 = 0 ;
5107 int res1 = 0 ;
5108 PyObject *swig_obj[1] ;
5109
5110 if (!args) SWIG_fail;
5111 swig_obj[0] = args;
5112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5113 if (!SWIG_IsOK(res1)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5115 }
5116 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 result = (int)((wxRichTextAttr const *)arg1)->GetParagraphSpacingBefore();
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_From_int(static_cast< int >(result));
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 SWIGINTERN PyObject *_wrap_RichTextAttr_GetLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5131 PyObject *resultobj = 0;
5132 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5133 int result;
5134 void *argp1 = 0 ;
5135 int res1 = 0 ;
5136 PyObject *swig_obj[1] ;
5137
5138 if (!args) SWIG_fail;
5139 swig_obj[0] = args;
5140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5143 }
5144 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 result = (int)((wxRichTextAttr const *)arg1)->GetLineSpacing();
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 resultobj = SWIG_From_int(static_cast< int >(result));
5152 return resultobj;
5153 fail:
5154 return NULL;
5155 }
5156
5157
5158 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5159 PyObject *resultobj = 0;
5160 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5161 int result;
5162 void *argp1 = 0 ;
5163 int res1 = 0 ;
5164 PyObject *swig_obj[1] ;
5165
5166 if (!args) SWIG_fail;
5167 swig_obj[0] = args;
5168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5169 if (!SWIG_IsOK(res1)) {
5170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5171 }
5172 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
5175 result = (int)((wxRichTextAttr const *)arg1)->GetBulletStyle();
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 resultobj = SWIG_From_int(static_cast< int >(result));
5180 return resultobj;
5181 fail:
5182 return NULL;
5183 }
5184
5185
5186 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5187 PyObject *resultobj = 0;
5188 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5189 int result;
5190 void *argp1 = 0 ;
5191 int res1 = 0 ;
5192 PyObject *swig_obj[1] ;
5193
5194 if (!args) SWIG_fail;
5195 swig_obj[0] = args;
5196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5197 if (!SWIG_IsOK(res1)) {
5198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5199 }
5200 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5201 {
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (int)((wxRichTextAttr const *)arg1)->GetBulletNumber();
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_From_int(static_cast< int >(result));
5208 return resultobj;
5209 fail:
5210 return NULL;
5211 }
5212
5213
5214 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5215 PyObject *resultobj = 0;
5216 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5217 wxChar result;
5218 void *argp1 = 0 ;
5219 int res1 = 0 ;
5220 PyObject *swig_obj[1] ;
5221
5222 if (!args) SWIG_fail;
5223 swig_obj[0] = args;
5224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5225 if (!SWIG_IsOK(res1)) {
5226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5227 }
5228 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = ((wxRichTextAttr const *)arg1)->GetBulletSymbol();
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 resultobj = SWIG_NewPointerObj((new wxChar(static_cast< const wxChar& >(result))), SWIGTYPE_p_wxChar, SWIG_POINTER_OWN | 0 );
5236 return resultobj;
5237 fail:
5238 return NULL;
5239 }
5240
5241
5242 SWIGINTERN PyObject *_wrap_RichTextAttr_GetBulletFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5243 PyObject *resultobj = 0;
5244 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5245 wxString *result = 0 ;
5246 void *argp1 = 0 ;
5247 int res1 = 0 ;
5248 PyObject *swig_obj[1] ;
5249
5250 if (!args) SWIG_fail;
5251 swig_obj[0] = args;
5252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5253 if (!SWIG_IsOK(res1)) {
5254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_GetBulletFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5255 }
5256 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 {
5260 wxString const &_result_ref = ((wxRichTextAttr const *)arg1)->GetBulletFont();
5261 result = (wxString *) &_result_ref;
5262 }
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 {
5267 #if wxUSE_UNICODE
5268 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5269 #else
5270 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5271 #endif
5272 }
5273 return resultobj;
5274 fail:
5275 return NULL;
5276 }
5277
5278
5279 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 PyObject *resultobj = 0;
5281 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5282 bool result;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 PyObject *swig_obj[1] ;
5286
5287 if (!args) SWIG_fail;
5288 swig_obj[0] = args;
5289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5292 }
5293 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
5296 result = (bool)((wxRichTextAttr const *)arg1)->HasTextColour();
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 {
5301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5302 }
5303 return resultobj;
5304 fail:
5305 return NULL;
5306 }
5307
5308
5309 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5310 PyObject *resultobj = 0;
5311 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5312 bool result;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 PyObject *swig_obj[1] ;
5316
5317 if (!args) SWIG_fail;
5318 swig_obj[0] = args;
5319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5320 if (!SWIG_IsOK(res1)) {
5321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5322 }
5323 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 result = (bool)((wxRichTextAttr const *)arg1)->HasBackgroundColour();
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 {
5331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5332 }
5333 return resultobj;
5334 fail:
5335 return NULL;
5336 }
5337
5338
5339 SWIGINTERN PyObject *_wrap_RichTextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5340 PyObject *resultobj = 0;
5341 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5342 bool result;
5343 void *argp1 = 0 ;
5344 int res1 = 0 ;
5345 PyObject *swig_obj[1] ;
5346
5347 if (!args) SWIG_fail;
5348 swig_obj[0] = args;
5349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5350 if (!SWIG_IsOK(res1)) {
5351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5352 }
5353 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5354 {
5355 PyThreadState* __tstate = wxPyBeginAllowThreads();
5356 result = (bool)((wxRichTextAttr const *)arg1)->HasAlignment();
5357 wxPyEndAllowThreads(__tstate);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 }
5360 {
5361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5362 }
5363 return resultobj;
5364 fail:
5365 return NULL;
5366 }
5367
5368
5369 SWIGINTERN PyObject *_wrap_RichTextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5370 PyObject *resultobj = 0;
5371 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5372 bool result;
5373 void *argp1 = 0 ;
5374 int res1 = 0 ;
5375 PyObject *swig_obj[1] ;
5376
5377 if (!args) SWIG_fail;
5378 swig_obj[0] = args;
5379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5380 if (!SWIG_IsOK(res1)) {
5381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasTabs" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5382 }
5383 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 result = (bool)((wxRichTextAttr const *)arg1)->HasTabs();
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 {
5391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5392 }
5393 return resultobj;
5394 fail:
5395 return NULL;
5396 }
5397
5398
5399 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5400 PyObject *resultobj = 0;
5401 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5402 bool result;
5403 void *argp1 = 0 ;
5404 int res1 = 0 ;
5405 PyObject *swig_obj[1] ;
5406
5407 if (!args) SWIG_fail;
5408 swig_obj[0] = args;
5409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5410 if (!SWIG_IsOK(res1)) {
5411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5412 }
5413 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 result = (bool)((wxRichTextAttr const *)arg1)->HasLeftIndent();
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5422 }
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 SWIGINTERN PyObject *_wrap_RichTextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5430 PyObject *resultobj = 0;
5431 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5432 bool result;
5433 void *argp1 = 0 ;
5434 int res1 = 0 ;
5435 PyObject *swig_obj[1] ;
5436
5437 if (!args) SWIG_fail;
5438 swig_obj[0] = args;
5439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5440 if (!SWIG_IsOK(res1)) {
5441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5442 }
5443 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 result = (bool)((wxRichTextAttr const *)arg1)->HasRightIndent();
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 {
5451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5452 }
5453 return resultobj;
5454 fail:
5455 return NULL;
5456 }
5457
5458
5459 SWIGINTERN PyObject *_wrap_RichTextAttr_HasWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5460 PyObject *resultobj = 0;
5461 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5462 bool result;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 PyObject *swig_obj[1] ;
5466
5467 if (!args) SWIG_fail;
5468 swig_obj[0] = args;
5469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5470 if (!SWIG_IsOK(res1)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasWeight" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5472 }
5473 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (bool)((wxRichTextAttr const *)arg1)->HasWeight();
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 {
5481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5482 }
5483 return resultobj;
5484 fail:
5485 return NULL;
5486 }
5487
5488
5489 SWIGINTERN PyObject *_wrap_RichTextAttr_HasSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5490 PyObject *resultobj = 0;
5491 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5492 bool result;
5493 void *argp1 = 0 ;
5494 int res1 = 0 ;
5495 PyObject *swig_obj[1] ;
5496
5497 if (!args) SWIG_fail;
5498 swig_obj[0] = args;
5499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5500 if (!SWIG_IsOK(res1)) {
5501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasSize" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5502 }
5503 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (bool)((wxRichTextAttr const *)arg1)->HasSize();
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 {
5511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5512 }
5513 return resultobj;
5514 fail:
5515 return NULL;
5516 }
5517
5518
5519 SWIGINTERN PyObject *_wrap_RichTextAttr_HasItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5520 PyObject *resultobj = 0;
5521 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5522 bool result;
5523 void *argp1 = 0 ;
5524 int res1 = 0 ;
5525 PyObject *swig_obj[1] ;
5526
5527 if (!args) SWIG_fail;
5528 swig_obj[0] = args;
5529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5530 if (!SWIG_IsOK(res1)) {
5531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasItalic" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5532 }
5533 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5534 {
5535 PyThreadState* __tstate = wxPyBeginAllowThreads();
5536 result = (bool)((wxRichTextAttr const *)arg1)->HasItalic();
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 {
5541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5542 }
5543 return resultobj;
5544 fail:
5545 return NULL;
5546 }
5547
5548
5549 SWIGINTERN PyObject *_wrap_RichTextAttr_HasUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5550 PyObject *resultobj = 0;
5551 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5552 bool result;
5553 void *argp1 = 0 ;
5554 int res1 = 0 ;
5555 PyObject *swig_obj[1] ;
5556
5557 if (!args) SWIG_fail;
5558 swig_obj[0] = args;
5559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5560 if (!SWIG_IsOK(res1)) {
5561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasUnderlined" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5562 }
5563 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 result = (bool)((wxRichTextAttr const *)arg1)->HasUnderlined();
5567 wxPyEndAllowThreads(__tstate);
5568 if (PyErr_Occurred()) SWIG_fail;
5569 }
5570 {
5571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5572 }
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5580 PyObject *resultobj = 0;
5581 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5582 bool result;
5583 void *argp1 = 0 ;
5584 int res1 = 0 ;
5585 PyObject *swig_obj[1] ;
5586
5587 if (!args) SWIG_fail;
5588 swig_obj[0] = args;
5589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFaceName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5592 }
5593 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (bool)((wxRichTextAttr const *)arg1)->HasFaceName();
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 {
5601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5602 }
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *resultobj = 0;
5611 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5612 bool result;
5613 void *argp1 = 0 ;
5614 int res1 = 0 ;
5615 PyObject *swig_obj[1] ;
5616
5617 if (!args) SWIG_fail;
5618 swig_obj[0] = args;
5619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5620 if (!SWIG_IsOK(res1)) {
5621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFont" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5622 }
5623 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (bool)((wxRichTextAttr const *)arg1)->HasFont();
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 {
5631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5632 }
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingAfter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5640 PyObject *resultobj = 0;
5641 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5642 bool result;
5643 void *argp1 = 0 ;
5644 int res1 = 0 ;
5645 PyObject *swig_obj[1] ;
5646
5647 if (!args) SWIG_fail;
5648 swig_obj[0] = args;
5649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5650 if (!SWIG_IsOK(res1)) {
5651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingAfter" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5652 }
5653 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingAfter();
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5662 }
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphSpacingBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5670 PyObject *resultobj = 0;
5671 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5672 bool result;
5673 void *argp1 = 0 ;
5674 int res1 = 0 ;
5675 PyObject *swig_obj[1] ;
5676
5677 if (!args) SWIG_fail;
5678 swig_obj[0] = args;
5679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphSpacingBefore" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5682 }
5683 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphSpacingBefore();
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 {
5691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5692 }
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 SWIGINTERN PyObject *_wrap_RichTextAttr_HasLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5700 PyObject *resultobj = 0;
5701 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5702 bool result;
5703 void *argp1 = 0 ;
5704 int res1 = 0 ;
5705 PyObject *swig_obj[1] ;
5706
5707 if (!args) SWIG_fail;
5708 swig_obj[0] = args;
5709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5710 if (!SWIG_IsOK(res1)) {
5711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasLineSpacing" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5712 }
5713 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (bool)((wxRichTextAttr const *)arg1)->HasLineSpacing();
5717 wxPyEndAllowThreads(__tstate);
5718 if (PyErr_Occurred()) SWIG_fail;
5719 }
5720 {
5721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5722 }
5723 return resultobj;
5724 fail:
5725 return NULL;
5726 }
5727
5728
5729 SWIGINTERN PyObject *_wrap_RichTextAttr_HasCharacterStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5730 PyObject *resultobj = 0;
5731 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5732 bool result;
5733 void *argp1 = 0 ;
5734 int res1 = 0 ;
5735 PyObject *swig_obj[1] ;
5736
5737 if (!args) SWIG_fail;
5738 swig_obj[0] = args;
5739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5740 if (!SWIG_IsOK(res1)) {
5741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasCharacterStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5742 }
5743 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 result = (bool)((wxRichTextAttr const *)arg1)->HasCharacterStyleName();
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 {
5751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5752 }
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 SWIGINTERN PyObject *_wrap_RichTextAttr_HasParagraphStyleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5760 PyObject *resultobj = 0;
5761 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5762 bool result;
5763 void *argp1 = 0 ;
5764 int res1 = 0 ;
5765 PyObject *swig_obj[1] ;
5766
5767 if (!args) SWIG_fail;
5768 swig_obj[0] = args;
5769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5770 if (!SWIG_IsOK(res1)) {
5771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasParagraphStyleName" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5772 }
5773 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = (bool)((wxRichTextAttr const *)arg1)->HasParagraphStyleName();
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 {
5781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5782 }
5783 return resultobj;
5784 fail:
5785 return NULL;
5786 }
5787
5788
5789 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5790 PyObject *resultobj = 0;
5791 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5792 bool result;
5793 void *argp1 = 0 ;
5794 int res1 = 0 ;
5795 PyObject *swig_obj[1] ;
5796
5797 if (!args) SWIG_fail;
5798 swig_obj[0] = args;
5799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5800 if (!SWIG_IsOK(res1)) {
5801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5802 }
5803 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5804 {
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletStyle();
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 {
5811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5812 }
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5820 PyObject *resultobj = 0;
5821 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5822 bool result;
5823 void *argp1 = 0 ;
5824 int res1 = 0 ;
5825 PyObject *swig_obj[1] ;
5826
5827 if (!args) SWIG_fail;
5828 swig_obj[0] = args;
5829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5830 if (!SWIG_IsOK(res1)) {
5831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletNumber" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5832 }
5833 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletNumber();
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5842 }
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 SWIGINTERN PyObject *_wrap_RichTextAttr_HasBulletSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5850 PyObject *resultobj = 0;
5851 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5852 bool result;
5853 void *argp1 = 0 ;
5854 int res1 = 0 ;
5855 PyObject *swig_obj[1] ;
5856
5857 if (!args) SWIG_fail;
5858 swig_obj[0] = args;
5859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5860 if (!SWIG_IsOK(res1)) {
5861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasBulletSymbol" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5862 }
5863 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 result = (bool)((wxRichTextAttr const *)arg1)->HasBulletSymbol();
5867 wxPyEndAllowThreads(__tstate);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 {
5871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5872 }
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 SWIGINTERN PyObject *_wrap_RichTextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj = 0;
5881 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5882 long arg2 ;
5883 bool result;
5884 void *argp1 = 0 ;
5885 int res1 = 0 ;
5886 long val2 ;
5887 int ecode2 = 0 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 char * kwnames[] = {
5891 (char *) "self",(char *) "flag", NULL
5892 };
5893
5894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
5895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5896 if (!SWIG_IsOK(res1)) {
5897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_HasFlag" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5898 }
5899 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5900 ecode2 = SWIG_AsVal_long(obj1, &val2);
5901 if (!SWIG_IsOK(ecode2)) {
5902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
5903 }
5904 arg2 = static_cast< long >(val2);
5905 {
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 result = (bool)((wxRichTextAttr const *)arg1)->HasFlag(arg2);
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 {
5912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5913 }
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 SWIGINTERN PyObject *_wrap_RichTextAttr_IsCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5921 PyObject *resultobj = 0;
5922 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5923 bool result;
5924 void *argp1 = 0 ;
5925 int res1 = 0 ;
5926 PyObject *swig_obj[1] ;
5927
5928 if (!args) SWIG_fail;
5929 swig_obj[0] = args;
5930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5931 if (!SWIG_IsOK(res1)) {
5932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5933 }
5934 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 result = (bool)((wxRichTextAttr const *)arg1)->IsCharacterStyle();
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) SWIG_fail;
5940 }
5941 {
5942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5943 }
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_RichTextAttr_IsParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5951 PyObject *resultobj = 0;
5952 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5953 bool result;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 PyObject *swig_obj[1] ;
5957
5958 if (!args) SWIG_fail;
5959 swig_obj[0] = args;
5960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5961 if (!SWIG_IsOK(res1)) {
5962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5963 }
5964 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5965 {
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (bool)((wxRichTextAttr const *)arg1)->IsParagraphStyle();
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 {
5972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5973 }
5974 return resultobj;
5975 fail:
5976 return NULL;
5977 }
5978
5979
5980 SWIGINTERN PyObject *_wrap_RichTextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5981 PyObject *resultobj = 0;
5982 wxRichTextAttr *arg1 = (wxRichTextAttr *) 0 ;
5983 bool result;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 PyObject *swig_obj[1] ;
5987
5988 if (!args) SWIG_fail;
5989 swig_obj[0] = args;
5990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextAttr, 0 | 0 );
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextAttr_IsDefault" "', expected argument " "1"" of type '" "wxRichTextAttr const *""'");
5993 }
5994 arg1 = reinterpret_cast< wxRichTextAttr * >(argp1);
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 result = (bool)((wxRichTextAttr const *)arg1)->IsDefault();
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 {
6002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6003 }
6004 return resultobj;
6005 fail:
6006 return NULL;
6007 }
6008
6009
6010 SWIGINTERN PyObject *RichTextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6011 PyObject *obj;
6012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6013 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextAttr, SWIG_NewClientData(obj));
6014 return SWIG_Py_Void();
6015 }
6016
6017 SWIGINTERN PyObject *RichTextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6018 return SWIG_Python_InitShadowInstance(args);
6019 }
6020
6021 SWIGINTERN PyObject *_wrap_new_RichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj = 0;
6023 wxWindow *arg1 = (wxWindow *) 0 ;
6024 int arg2 = (int) -1 ;
6025 wxString const &arg3_defvalue = wxPyEmptyString ;
6026 wxString *arg3 = (wxString *) &arg3_defvalue ;
6027 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6028 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6029 wxSize const &arg5_defvalue = wxDefaultSize ;
6030 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6031 long arg6 = (long) wxRE_MULTILINE ;
6032 wxRichTextCtrl *result = 0 ;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 int val2 ;
6036 int ecode2 = 0 ;
6037 bool temp3 = false ;
6038 wxPoint temp4 ;
6039 wxSize temp5 ;
6040 long val6 ;
6041 int ecode6 = 0 ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 PyObject * obj2 = 0 ;
6045 PyObject * obj3 = 0 ;
6046 PyObject * obj4 = 0 ;
6047 PyObject * obj5 = 0 ;
6048 char * kwnames[] = {
6049 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
6050 };
6051
6052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_RichTextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
6053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6054 if (!SWIG_IsOK(res1)) {
6055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RichTextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
6056 }
6057 arg1 = reinterpret_cast< wxWindow * >(argp1);
6058 if (obj1) {
6059 ecode2 = SWIG_AsVal_int(obj1, &val2);
6060 if (!SWIG_IsOK(ecode2)) {
6061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextCtrl" "', expected argument " "2"" of type '" "int""'");
6062 }
6063 arg2 = static_cast< int >(val2);
6064 }
6065 if (obj2) {
6066 {
6067 arg3 = wxString_in_helper(obj2);
6068 if (arg3 == NULL) SWIG_fail;
6069 temp3 = true;
6070 }
6071 }
6072 if (obj3) {
6073 {
6074 arg4 = &temp4;
6075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6076 }
6077 }
6078 if (obj4) {
6079 {
6080 arg5 = &temp5;
6081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6082 }
6083 }
6084 if (obj5) {
6085 ecode6 = SWIG_AsVal_long(obj5, &val6);
6086 if (!SWIG_IsOK(ecode6)) {
6087 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RichTextCtrl" "', expected argument " "6"" of type '" "long""'");
6088 }
6089 arg6 = static_cast< long >(val6);
6090 }
6091 {
6092 if (!wxPyCheckForApp()) SWIG_fail;
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 result = (wxRichTextCtrl *)new wxRichTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
6095 wxPyEndAllowThreads(__tstate);
6096 if (PyErr_Occurred()) SWIG_fail;
6097 }
6098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_NEW | 0 );
6099 {
6100 if (temp3)
6101 delete arg3;
6102 }
6103 return resultobj;
6104 fail:
6105 {
6106 if (temp3)
6107 delete arg3;
6108 }
6109 return NULL;
6110 }
6111
6112
6113 SWIGINTERN PyObject *_wrap_new_PreRichTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6114 PyObject *resultobj = 0;
6115 wxRichTextCtrl *result = 0 ;
6116
6117 if (!SWIG_Python_UnpackTuple(args,"new_PreRichTextCtrl",0,0,0)) SWIG_fail;
6118 {
6119 if (!wxPyCheckForApp()) SWIG_fail;
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = (wxRichTextCtrl *)new wxRichTextCtrl();
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextCtrl, SWIG_POINTER_OWN | 0 );
6126 return resultobj;
6127 fail:
6128 return NULL;
6129 }
6130
6131
6132 SWIGINTERN PyObject *_wrap_RichTextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj = 0;
6134 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6135 wxWindow *arg2 = (wxWindow *) 0 ;
6136 int arg3 = (int) -1 ;
6137 wxString const &arg4_defvalue = wxPyEmptyString ;
6138 wxString *arg4 = (wxString *) &arg4_defvalue ;
6139 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6140 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6141 wxSize const &arg6_defvalue = wxDefaultSize ;
6142 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6143 long arg7 = (long) wxRE_MULTILINE ;
6144 bool result;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 void *argp2 = 0 ;
6148 int res2 = 0 ;
6149 int val3 ;
6150 int ecode3 = 0 ;
6151 bool temp4 = false ;
6152 wxPoint temp5 ;
6153 wxSize temp6 ;
6154 long val7 ;
6155 int ecode7 = 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158 PyObject * obj2 = 0 ;
6159 PyObject * obj3 = 0 ;
6160 PyObject * obj4 = 0 ;
6161 PyObject * obj5 = 0 ;
6162 PyObject * obj6 = 0 ;
6163 char * kwnames[] = {
6164 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style", NULL
6165 };
6166
6167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:RichTextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
6168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6169 if (!SWIG_IsOK(res1)) {
6170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Create" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6171 }
6172 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6173 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6174 if (!SWIG_IsOK(res2)) {
6175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6176 }
6177 arg2 = reinterpret_cast< wxWindow * >(argp2);
6178 if (obj2) {
6179 ecode3 = SWIG_AsVal_int(obj2, &val3);
6180 if (!SWIG_IsOK(ecode3)) {
6181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
6182 }
6183 arg3 = static_cast< int >(val3);
6184 }
6185 if (obj3) {
6186 {
6187 arg4 = wxString_in_helper(obj3);
6188 if (arg4 == NULL) SWIG_fail;
6189 temp4 = true;
6190 }
6191 }
6192 if (obj4) {
6193 {
6194 arg5 = &temp5;
6195 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6196 }
6197 }
6198 if (obj5) {
6199 {
6200 arg6 = &temp6;
6201 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6202 }
6203 }
6204 if (obj6) {
6205 ecode7 = SWIG_AsVal_long(obj6, &val7);
6206 if (!SWIG_IsOK(ecode7)) {
6207 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RichTextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
6208 }
6209 arg7 = static_cast< long >(val7);
6210 }
6211 {
6212 PyThreadState* __tstate = wxPyBeginAllowThreads();
6213 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7);
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 {
6218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6219 }
6220 {
6221 if (temp4)
6222 delete arg4;
6223 }
6224 return resultobj;
6225 fail:
6226 {
6227 if (temp4)
6228 delete arg4;
6229 }
6230 return NULL;
6231 }
6232
6233
6234 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6235 PyObject *resultobj = 0;
6236 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6237 wxString result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 PyObject *swig_obj[1] ;
6241
6242 if (!args) SWIG_fail;
6243 swig_obj[0] = args;
6244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6247 }
6248 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = ((wxRichTextCtrl const *)arg1)->GetValue();
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 {
6256 #if wxUSE_UNICODE
6257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6258 #else
6259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6260 #endif
6261 }
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj = 0;
6270 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6271 wxString *arg2 = 0 ;
6272 void *argp1 = 0 ;
6273 int res1 = 0 ;
6274 bool temp2 = false ;
6275 PyObject * obj0 = 0 ;
6276 PyObject * obj1 = 0 ;
6277 char * kwnames[] = {
6278 (char *) "self",(char *) "value", NULL
6279 };
6280
6281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
6282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6283 if (!SWIG_IsOK(res1)) {
6284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetValue" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6285 }
6286 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6287 {
6288 arg2 = wxString_in_helper(obj1);
6289 if (arg2 == NULL) SWIG_fail;
6290 temp2 = true;
6291 }
6292 {
6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
6294 (arg1)->SetValue((wxString const &)*arg2);
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_Py_Void();
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return resultobj;
6304 fail:
6305 {
6306 if (temp2)
6307 delete arg2;
6308 }
6309 return NULL;
6310 }
6311
6312
6313 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj = 0;
6315 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6316 long arg2 ;
6317 long arg3 ;
6318 wxString result;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 long val2 ;
6322 int ecode2 = 0 ;
6323 long val3 ;
6324 int ecode3 = 0 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 PyObject * obj2 = 0 ;
6328 char * kwnames[] = {
6329 (char *) "self",(char *) "from",(char *) "to", NULL
6330 };
6331
6332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6334 if (!SWIG_IsOK(res1)) {
6335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6336 }
6337 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6338 ecode2 = SWIG_AsVal_long(obj1, &val2);
6339 if (!SWIG_IsOK(ecode2)) {
6340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
6341 }
6342 arg2 = static_cast< long >(val2);
6343 ecode3 = SWIG_AsVal_long(obj2, &val3);
6344 if (!SWIG_IsOK(ecode3)) {
6345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
6346 }
6347 arg3 = static_cast< long >(val3);
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 result = ((wxRichTextCtrl const *)arg1)->GetRange(arg2,arg3);
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 {
6355 #if wxUSE_UNICODE
6356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6357 #else
6358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6359 #endif
6360 }
6361 return resultobj;
6362 fail:
6363 return NULL;
6364 }
6365
6366
6367 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj = 0;
6369 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6370 long arg2 ;
6371 int result;
6372 void *argp1 = 0 ;
6373 int res1 = 0 ;
6374 long val2 ;
6375 int ecode2 = 0 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char * kwnames[] = {
6379 (char *) "self",(char *) "lineNo", NULL
6380 };
6381
6382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
6383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6384 if (!SWIG_IsOK(res1)) {
6385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6386 }
6387 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6388 ecode2 = SWIG_AsVal_long(obj1, &val2);
6389 if (!SWIG_IsOK(ecode2)) {
6390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
6391 }
6392 arg2 = static_cast< long >(val2);
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 result = (int)((wxRichTextCtrl const *)arg1)->GetLineLength(arg2);
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 resultobj = SWIG_From_int(static_cast< int >(result));
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6407 PyObject *resultobj = 0;
6408 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6409 long arg2 ;
6410 wxString result;
6411 void *argp1 = 0 ;
6412 int res1 = 0 ;
6413 long val2 ;
6414 int ecode2 = 0 ;
6415 PyObject * obj0 = 0 ;
6416 PyObject * obj1 = 0 ;
6417 char * kwnames[] = {
6418 (char *) "self",(char *) "lineNo", NULL
6419 };
6420
6421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
6422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6423 if (!SWIG_IsOK(res1)) {
6424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6425 }
6426 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6427 ecode2 = SWIG_AsVal_long(obj1, &val2);
6428 if (!SWIG_IsOK(ecode2)) {
6429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
6430 }
6431 arg2 = static_cast< long >(val2);
6432 {
6433 PyThreadState* __tstate = wxPyBeginAllowThreads();
6434 result = ((wxRichTextCtrl const *)arg1)->GetLineText(arg2);
6435 wxPyEndAllowThreads(__tstate);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 }
6438 {
6439 #if wxUSE_UNICODE
6440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6441 #else
6442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6443 #endif
6444 }
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6452 PyObject *resultobj = 0;
6453 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6454 int result;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 PyObject *swig_obj[1] ;
6458
6459 if (!args) SWIG_fail;
6460 swig_obj[0] = args;
6461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6462 if (!SWIG_IsOK(res1)) {
6463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6464 }
6465 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6466 {
6467 PyThreadState* __tstate = wxPyBeginAllowThreads();
6468 result = (int)((wxRichTextCtrl const *)arg1)->GetNumberOfLines();
6469 wxPyEndAllowThreads(__tstate);
6470 if (PyErr_Occurred()) SWIG_fail;
6471 }
6472 resultobj = SWIG_From_int(static_cast< int >(result));
6473 return resultobj;
6474 fail:
6475 return NULL;
6476 }
6477
6478
6479 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6480 PyObject *resultobj = 0;
6481 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6482 bool result;
6483 void *argp1 = 0 ;
6484 int res1 = 0 ;
6485 PyObject *swig_obj[1] ;
6486
6487 if (!args) SWIG_fail;
6488 swig_obj[0] = args;
6489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6490 if (!SWIG_IsOK(res1)) {
6491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsModified" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6492 }
6493 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 result = (bool)((wxRichTextCtrl const *)arg1)->IsModified();
6497 wxPyEndAllowThreads(__tstate);
6498 if (PyErr_Occurred()) SWIG_fail;
6499 }
6500 {
6501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6502 }
6503 return resultobj;
6504 fail:
6505 return NULL;
6506 }
6507
6508
6509 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6510 PyObject *resultobj = 0;
6511 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6512 bool result;
6513 void *argp1 = 0 ;
6514 int res1 = 0 ;
6515 PyObject *swig_obj[1] ;
6516
6517 if (!args) SWIG_fail;
6518 swig_obj[0] = args;
6519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6522 }
6523 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6524 {
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 result = (bool)((wxRichTextCtrl const *)arg1)->IsEditable();
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 {
6531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6532 }
6533 return resultobj;
6534 fail:
6535 return NULL;
6536 }
6537
6538
6539 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6540 PyObject *resultobj = 0;
6541 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6542 bool result;
6543 void *argp1 = 0 ;
6544 int res1 = 0 ;
6545 PyObject *swig_obj[1] ;
6546
6547 if (!args) SWIG_fail;
6548 swig_obj[0] = args;
6549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6550 if (!SWIG_IsOK(res1)) {
6551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6552 }
6553 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6554 {
6555 PyThreadState* __tstate = wxPyBeginAllowThreads();
6556 result = (bool)((wxRichTextCtrl const *)arg1)->IsSingleLine();
6557 wxPyEndAllowThreads(__tstate);
6558 if (PyErr_Occurred()) SWIG_fail;
6559 }
6560 {
6561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6562 }
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6570 PyObject *resultobj = 0;
6571 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6572 bool result;
6573 void *argp1 = 0 ;
6574 int res1 = 0 ;
6575 PyObject *swig_obj[1] ;
6576
6577 if (!args) SWIG_fail;
6578 swig_obj[0] = args;
6579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6580 if (!SWIG_IsOK(res1)) {
6581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6582 }
6583 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 result = (bool)((wxRichTextCtrl const *)arg1)->IsMultiLine();
6587 wxPyEndAllowThreads(__tstate);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 {
6591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6592 }
6593 return resultobj;
6594 fail:
6595 return NULL;
6596 }
6597
6598
6599 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6600 PyObject *resultobj = 0;
6601 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6602 long *arg2 = (long *) 0 ;
6603 long *arg3 = (long *) 0 ;
6604 void *argp1 = 0 ;
6605 int res1 = 0 ;
6606 long temp2 ;
6607 int res2 = SWIG_TMPOBJ ;
6608 long temp3 ;
6609 int res3 = SWIG_TMPOBJ ;
6610 PyObject *swig_obj[1] ;
6611
6612 arg2 = &temp2;
6613 arg3 = &temp3;
6614 if (!args) SWIG_fail;
6615 swig_obj[0] = args;
6616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6619 }
6620 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 ((wxRichTextCtrl const *)arg1)->GetSelection(arg2,arg3);
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 resultobj = SWIG_Py_Void();
6628 if (SWIG_IsTmpObj(res2)) {
6629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6630 } else {
6631 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6633 }
6634 if (SWIG_IsTmpObj(res3)) {
6635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6636 } else {
6637 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6639 }
6640 return resultobj;
6641 fail:
6642 return NULL;
6643 }
6644
6645
6646 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647 PyObject *resultobj = 0;
6648 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6649 wxString result;
6650 void *argp1 = 0 ;
6651 int res1 = 0 ;
6652 PyObject *swig_obj[1] ;
6653
6654 if (!args) SWIG_fail;
6655 swig_obj[0] = args;
6656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6657 if (!SWIG_IsOK(res1)) {
6658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6659 }
6660 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = ((wxRichTextCtrl const *)arg1)->GetStringSelection();
6664 wxPyEndAllowThreads(__tstate);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 {
6668 #if wxUSE_UNICODE
6669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6670 #else
6671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6672 #endif
6673 }
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6681 PyObject *resultobj = 0;
6682 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6683 wxString result;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 PyObject *swig_obj[1] ;
6687
6688 if (!args) SWIG_fail;
6689 swig_obj[0] = args;
6690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6691 if (!SWIG_IsOK(res1)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6693 }
6694 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6695 {
6696 PyThreadState* __tstate = wxPyBeginAllowThreads();
6697 result = ((wxRichTextCtrl const *)arg1)->GetFilename();
6698 wxPyEndAllowThreads(__tstate);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 {
6702 #if wxUSE_UNICODE
6703 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6704 #else
6705 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6706 #endif
6707 }
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = 0;
6716 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6717 wxString *arg2 = 0 ;
6718 void *argp1 = 0 ;
6719 int res1 = 0 ;
6720 bool temp2 = false ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 char * kwnames[] = {
6724 (char *) "self",(char *) "filename", NULL
6725 };
6726
6727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetFilename",kwnames,&obj0,&obj1)) SWIG_fail;
6728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetFilename" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6731 }
6732 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6733 {
6734 arg2 = wxString_in_helper(obj1);
6735 if (arg2 == NULL) SWIG_fail;
6736 temp2 = true;
6737 }
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 (arg1)->SetFilename((wxString const &)*arg2);
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 resultobj = SWIG_Py_Void();
6745 {
6746 if (temp2)
6747 delete arg2;
6748 }
6749 return resultobj;
6750 fail:
6751 {
6752 if (temp2)
6753 delete arg2;
6754 }
6755 return NULL;
6756 }
6757
6758
6759 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6760 PyObject *resultobj = 0;
6761 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6762 long arg2 ;
6763 void *argp1 = 0 ;
6764 int res1 = 0 ;
6765 long val2 ;
6766 int ecode2 = 0 ;
6767 PyObject * obj0 = 0 ;
6768 PyObject * obj1 = 0 ;
6769 char * kwnames[] = {
6770 (char *) "self",(char *) "threshold", NULL
6771 };
6772
6773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDelayedLayoutThreshold",kwnames,&obj0,&obj1)) SWIG_fail;
6774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6775 if (!SWIG_IsOK(res1)) {
6776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6777 }
6778 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6779 ecode2 = SWIG_AsVal_long(obj1, &val2);
6780 if (!SWIG_IsOK(ecode2)) {
6781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetDelayedLayoutThreshold" "', expected argument " "2"" of type '" "long""'");
6782 }
6783 arg2 = static_cast< long >(val2);
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 (arg1)->SetDelayedLayoutThreshold(arg2);
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 resultobj = SWIG_Py_Void();
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDelayedLayoutThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6798 PyObject *resultobj = 0;
6799 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6800 long result;
6801 void *argp1 = 0 ;
6802 int res1 = 0 ;
6803 PyObject *swig_obj[1] ;
6804
6805 if (!args) SWIG_fail;
6806 swig_obj[0] = args;
6807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6808 if (!SWIG_IsOK(res1)) {
6809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDelayedLayoutThreshold" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
6810 }
6811 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = (long)((wxRichTextCtrl const *)arg1)->GetDelayedLayoutThreshold();
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 resultobj = SWIG_From_long(static_cast< long >(result));
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 SWIGINTERN PyObject *_wrap_RichTextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6826 PyObject *resultobj = 0;
6827 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6828 void *argp1 = 0 ;
6829 int res1 = 0 ;
6830 PyObject *swig_obj[1] ;
6831
6832 if (!args) SWIG_fail;
6833 swig_obj[0] = args;
6834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6835 if (!SWIG_IsOK(res1)) {
6836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Clear" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6837 }
6838 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6839 {
6840 PyThreadState* __tstate = wxPyBeginAllowThreads();
6841 (arg1)->Clear();
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = SWIG_Py_Void();
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 SWIGINTERN PyObject *_wrap_RichTextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj = 0;
6854 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6855 long arg2 ;
6856 long arg3 ;
6857 wxString *arg4 = 0 ;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 long val2 ;
6861 int ecode2 = 0 ;
6862 long val3 ;
6863 int ecode3 = 0 ;
6864 bool temp4 = false ;
6865 PyObject * obj0 = 0 ;
6866 PyObject * obj1 = 0 ;
6867 PyObject * obj2 = 0 ;
6868 PyObject * obj3 = 0 ;
6869 char * kwnames[] = {
6870 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6871 };
6872
6873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6875 if (!SWIG_IsOK(res1)) {
6876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Replace" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6877 }
6878 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6879 ecode2 = SWIG_AsVal_long(obj1, &val2);
6880 if (!SWIG_IsOK(ecode2)) {
6881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
6882 }
6883 arg2 = static_cast< long >(val2);
6884 ecode3 = SWIG_AsVal_long(obj2, &val3);
6885 if (!SWIG_IsOK(ecode3)) {
6886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
6887 }
6888 arg3 = static_cast< long >(val3);
6889 {
6890 arg4 = wxString_in_helper(obj3);
6891 if (arg4 == NULL) SWIG_fail;
6892 temp4 = true;
6893 }
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6897 wxPyEndAllowThreads(__tstate);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 resultobj = SWIG_Py_Void();
6901 {
6902 if (temp4)
6903 delete arg4;
6904 }
6905 return resultobj;
6906 fail:
6907 {
6908 if (temp4)
6909 delete arg4;
6910 }
6911 return NULL;
6912 }
6913
6914
6915 SWIGINTERN PyObject *_wrap_RichTextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj = 0;
6917 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6918 long arg2 ;
6919 long arg3 ;
6920 void *argp1 = 0 ;
6921 int res1 = 0 ;
6922 long val2 ;
6923 int ecode2 = 0 ;
6924 long val3 ;
6925 int ecode3 = 0 ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 PyObject * obj2 = 0 ;
6929 char * kwnames[] = {
6930 (char *) "self",(char *) "from",(char *) "to", NULL
6931 };
6932
6933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6935 if (!SWIG_IsOK(res1)) {
6936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Remove" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6937 }
6938 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6939 ecode2 = SWIG_AsVal_long(obj1, &val2);
6940 if (!SWIG_IsOK(ecode2)) {
6941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
6942 }
6943 arg2 = static_cast< long >(val2);
6944 ecode3 = SWIG_AsVal_long(obj2, &val3);
6945 if (!SWIG_IsOK(ecode3)) {
6946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
6947 }
6948 arg3 = static_cast< long >(val3);
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 (arg1)->Remove(arg2,arg3);
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 SWIGINTERN PyObject *_wrap_RichTextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = 0;
6964 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
6965 wxString *arg2 = 0 ;
6966 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
6967 bool result;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 bool temp2 = false ;
6971 int val3 ;
6972 int ecode3 = 0 ;
6973 PyObject * obj0 = 0 ;
6974 PyObject * obj1 = 0 ;
6975 PyObject * obj2 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "file",(char *) "type", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
6984 }
6985 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
6986 {
6987 arg2 = wxString_in_helper(obj1);
6988 if (arg2 == NULL) SWIG_fail;
6989 temp2 = true;
6990 }
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 {
6999 PyThreadState* __tstate = wxPyBeginAllowThreads();
7000 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7006 }
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return resultobj;
7012 fail:
7013 {
7014 if (temp2)
7015 delete arg2;
7016 }
7017 return NULL;
7018 }
7019
7020
7021 SWIGINTERN PyObject *_wrap_RichTextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj = 0;
7023 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7024 wxString const &arg2_defvalue = wxPyEmptyString ;
7025 wxString *arg2 = (wxString *) &arg2_defvalue ;
7026 int arg3 = (int) wxRICHTEXT_TYPE_ANY ;
7027 bool result;
7028 void *argp1 = 0 ;
7029 int res1 = 0 ;
7030 bool temp2 = false ;
7031 int val3 ;
7032 int ecode3 = 0 ;
7033 PyObject * obj0 = 0 ;
7034 PyObject * obj1 = 0 ;
7035 PyObject * obj2 = 0 ;
7036 char * kwnames[] = {
7037 (char *) "self",(char *) "file",(char *) "type", NULL
7038 };
7039
7040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7044 }
7045 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7046 if (obj1) {
7047 {
7048 arg2 = wxString_in_helper(obj1);
7049 if (arg2 == NULL) SWIG_fail;
7050 temp2 = true;
7051 }
7052 }
7053 if (obj2) {
7054 ecode3 = SWIG_AsVal_int(obj2, &val3);
7055 if (!SWIG_IsOK(ecode3)) {
7056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
7057 }
7058 arg3 = static_cast< int >(val3);
7059 }
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7068 }
7069 {
7070 if (temp2)
7071 delete arg2;
7072 }
7073 return resultobj;
7074 fail:
7075 {
7076 if (temp2)
7077 delete arg2;
7078 }
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_RichTextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7084 PyObject *resultobj = 0;
7085 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7086 void *argp1 = 0 ;
7087 int res1 = 0 ;
7088 PyObject *swig_obj[1] ;
7089
7090 if (!args) SWIG_fail;
7091 swig_obj[0] = args;
7092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7095 }
7096 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 (arg1)->MarkDirty();
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_Py_Void();
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 SWIGINTERN PyObject *_wrap_RichTextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7111 PyObject *resultobj = 0;
7112 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 PyObject *swig_obj[1] ;
7116
7117 if (!args) SWIG_fail;
7118 swig_obj[0] = args;
7119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7120 if (!SWIG_IsOK(res1)) {
7121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7122 }
7123 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 (arg1)->DiscardEdits();
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 resultobj = SWIG_Py_Void();
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj = 0;
7139 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7140 unsigned long arg2 ;
7141 void *argp1 = 0 ;
7142 int res1 = 0 ;
7143 unsigned long val2 ;
7144 int ecode2 = 0 ;
7145 PyObject * obj0 = 0 ;
7146 PyObject * obj1 = 0 ;
7147 char * kwnames[] = {
7148 (char *) "self",(char *) "len", NULL
7149 };
7150
7151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
7152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7153 if (!SWIG_IsOK(res1)) {
7154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7155 }
7156 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7157 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
7158 if (!SWIG_IsOK(ecode2)) {
7159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
7160 }
7161 arg2 = static_cast< unsigned long >(val2);
7162 {
7163 PyThreadState* __tstate = wxPyBeginAllowThreads();
7164 (arg1)->SetMaxLength(arg2);
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_Py_Void();
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj = 0;
7177 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7178 wxString *arg2 = 0 ;
7179 void *argp1 = 0 ;
7180 int res1 = 0 ;
7181 bool temp2 = false ;
7182 PyObject * obj0 = 0 ;
7183 PyObject * obj1 = 0 ;
7184 char * kwnames[] = {
7185 (char *) "self",(char *) "text", NULL
7186 };
7187
7188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteText",kwnames,&obj0,&obj1)) 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_WriteText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7192 }
7193 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7194 {
7195 arg2 = wxString_in_helper(obj1);
7196 if (arg2 == NULL) SWIG_fail;
7197 temp2 = true;
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 (arg1)->WriteText((wxString const &)*arg2);
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 resultobj = SWIG_Py_Void();
7206 {
7207 if (temp2)
7208 delete arg2;
7209 }
7210 return resultobj;
7211 fail:
7212 {
7213 if (temp2)
7214 delete arg2;
7215 }
7216 return NULL;
7217 }
7218
7219
7220 SWIGINTERN PyObject *_wrap_RichTextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj = 0;
7222 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7223 wxString *arg2 = 0 ;
7224 void *argp1 = 0 ;
7225 int res1 = 0 ;
7226 bool temp2 = false ;
7227 PyObject * obj0 = 0 ;
7228 PyObject * obj1 = 0 ;
7229 char * kwnames[] = {
7230 (char *) "self",(char *) "text", NULL
7231 };
7232
7233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
7234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7235 if (!SWIG_IsOK(res1)) {
7236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AppendText" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7237 }
7238 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7239 {
7240 arg2 = wxString_in_helper(obj1);
7241 if (arg2 == NULL) SWIG_fail;
7242 temp2 = true;
7243 }
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 (arg1)->AppendText((wxString const &)*arg2);
7247 wxPyEndAllowThreads(__tstate);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 resultobj = SWIG_Py_Void();
7251 {
7252 if (temp2)
7253 delete arg2;
7254 }
7255 return resultobj;
7256 fail:
7257 {
7258 if (temp2)
7259 delete arg2;
7260 }
7261 return NULL;
7262 }
7263
7264
7265 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj = 0;
7267 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7268 wxRichTextRange *arg2 = 0 ;
7269 wxRichTextAttr *arg3 = 0 ;
7270 bool result;
7271 void *argp1 = 0 ;
7272 int res1 = 0 ;
7273 wxRichTextRange temp2 ;
7274 void *argp3 = 0 ;
7275 int res3 = 0 ;
7276 PyObject * obj0 = 0 ;
7277 PyObject * obj1 = 0 ;
7278 PyObject * obj2 = 0 ;
7279 char * kwnames[] = {
7280 (char *) "self",(char *) "range",(char *) "style", NULL
7281 };
7282
7283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7287 }
7288 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7289 {
7290 arg2 = &temp2;
7291 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7292 }
7293 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7294 if (!SWIG_IsOK(res3)) {
7295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7296 }
7297 if (!argp3) {
7298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7299 }
7300 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 result = (bool)(arg1)->SetStyle((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
7304 wxPyEndAllowThreads(__tstate);
7305 if (PyErr_Occurred()) SWIG_fail;
7306 }
7307 {
7308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7309 }
7310 return resultobj;
7311 fail:
7312 return NULL;
7313 }
7314
7315
7316 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7317 PyObject *resultobj = 0;
7318 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7319 wxRichTextRange *arg2 = 0 ;
7320 wxRichTextAttr *arg3 = 0 ;
7321 int arg4 = (int) wxRICHTEXT_SETSTYLE_WITH_UNDO ;
7322 bool result;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 wxRichTextRange temp2 ;
7326 void *argp3 = 0 ;
7327 int res3 = 0 ;
7328 int val4 ;
7329 int ecode4 = 0 ;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 PyObject * obj2 = 0 ;
7333 PyObject * obj3 = 0 ;
7334 char * kwnames[] = {
7335 (char *) "self",(char *) "range",(char *) "style",(char *) "flags", NULL
7336 };
7337
7338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:RichTextCtrl_SetStyleEx",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7342 }
7343 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7344 {
7345 arg2 = &temp2;
7346 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
7347 }
7348 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7349 if (!SWIG_IsOK(res3)) {
7350 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7351 }
7352 if (!argp3) {
7353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
7354 }
7355 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7356 if (obj3) {
7357 ecode4 = SWIG_AsVal_int(obj3, &val4);
7358 if (!SWIG_IsOK(ecode4)) {
7359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_SetStyleEx" "', expected argument " "4"" of type '" "int""'");
7360 }
7361 arg4 = static_cast< int >(val4);
7362 }
7363 {
7364 PyThreadState* __tstate = wxPyBeginAllowThreads();
7365 result = (bool)(arg1)->SetStyleEx((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3,arg4);
7366 wxPyEndAllowThreads(__tstate);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 {
7370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7371 }
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj = 0;
7380 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7381 long arg2 ;
7382 wxRichTextAttr *arg3 = 0 ;
7383 bool result;
7384 void *argp1 = 0 ;
7385 int res1 = 0 ;
7386 long val2 ;
7387 int ecode2 = 0 ;
7388 void *argp3 = 0 ;
7389 int res3 = 0 ;
7390 PyObject * obj0 = 0 ;
7391 PyObject * obj1 = 0 ;
7392 PyObject * obj2 = 0 ;
7393 char * kwnames[] = {
7394 (char *) "self",(char *) "position",(char *) "style", NULL
7395 };
7396
7397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7399 if (!SWIG_IsOK(res1)) {
7400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7401 }
7402 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7403 ecode2 = SWIG_AsVal_long(obj1, &val2);
7404 if (!SWIG_IsOK(ecode2)) {
7405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
7406 }
7407 arg2 = static_cast< long >(val2);
7408 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7409 if (!SWIG_IsOK(res3)) {
7410 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7411 }
7412 if (!argp3) {
7413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7414 }
7415 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7416 {
7417 PyThreadState* __tstate = wxPyBeginAllowThreads();
7418 result = (bool)(arg1)->GetStyle(arg2,*arg3);
7419 wxPyEndAllowThreads(__tstate);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 {
7423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7424 }
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetUncombinedStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj = 0;
7433 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7434 long arg2 ;
7435 wxRichTextAttr *arg3 = 0 ;
7436 bool result;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439 long val2 ;
7440 int ecode2 = 0 ;
7441 void *argp3 = 0 ;
7442 int res3 = 0 ;
7443 PyObject * obj0 = 0 ;
7444 PyObject * obj1 = 0 ;
7445 PyObject * obj2 = 0 ;
7446 char * kwnames[] = {
7447 (char *) "self",(char *) "position",(char *) "style", NULL
7448 };
7449
7450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_GetUncombinedStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7452 if (!SWIG_IsOK(res1)) {
7453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7454 }
7455 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7456 ecode2 = SWIG_AsVal_long(obj1, &val2);
7457 if (!SWIG_IsOK(ecode2)) {
7458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "2"" of type '" "long""'");
7459 }
7460 arg2 = static_cast< long >(val2);
7461 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 );
7462 if (!SWIG_IsOK(res3)) {
7463 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7464 }
7465 if (!argp3) {
7466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_GetUncombinedStyle" "', expected argument " "3"" of type '" "wxRichTextAttr &""'");
7467 }
7468 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 result = (bool)(arg1)->GetUncombinedStyle(arg2,*arg3);
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 {
7476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7477 }
7478 return resultobj;
7479 fail:
7480 return NULL;
7481 }
7482
7483
7484 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7485 PyObject *resultobj = 0;
7486 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7487 wxRichTextAttr *arg2 = 0 ;
7488 bool result;
7489 void *argp1 = 0 ;
7490 int res1 = 0 ;
7491 void *argp2 = 0 ;
7492 int res2 = 0 ;
7493 PyObject * obj0 = 0 ;
7494 PyObject * obj1 = 0 ;
7495 char * kwnames[] = {
7496 (char *) "self",(char *) "style", NULL
7497 };
7498
7499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
7500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7501 if (!SWIG_IsOK(res1)) {
7502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7503 }
7504 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
7506 if (!SWIG_IsOK(res2)) {
7507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7508 }
7509 if (!argp2) {
7510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
7511 }
7512 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = (bool)(arg1)->SetDefaultStyle((wxRichTextAttr const &)*arg2);
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 {
7520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7521 }
7522 return resultobj;
7523 fail:
7524 return NULL;
7525 }
7526
7527
7528 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7529 PyObject *resultobj = 0;
7530 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7531 wxRichTextAttr result;
7532 void *argp1 = 0 ;
7533 int res1 = 0 ;
7534 PyObject *swig_obj[1] ;
7535
7536 if (!args) SWIG_fail;
7537 swig_obj[0] = args;
7538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7539 if (!SWIG_IsOK(res1)) {
7540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7541 }
7542 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7543 {
7544 PyThreadState* __tstate = wxPyBeginAllowThreads();
7545 result = ((wxRichTextCtrl const *)arg1)->GetDefaultStyleEx();
7546 wxPyEndAllowThreads(__tstate);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
7549 resultobj = SWIG_NewPointerObj((new wxRichTextAttr(static_cast< const wxRichTextAttr& >(result))), SWIGTYPE_p_wxRichTextAttr, SWIG_POINTER_OWN | 0 );
7550 return resultobj;
7551 fail:
7552 return NULL;
7553 }
7554
7555
7556 SWIGINTERN PyObject *_wrap_RichTextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7557 PyObject *resultobj = 0;
7558 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7559 long arg2 ;
7560 long arg3 ;
7561 long result;
7562 void *argp1 = 0 ;
7563 int res1 = 0 ;
7564 long val2 ;
7565 int ecode2 = 0 ;
7566 long val3 ;
7567 int ecode3 = 0 ;
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj1 = 0 ;
7570 PyObject * obj2 = 0 ;
7571 char * kwnames[] = {
7572 (char *) "self",(char *) "x",(char *) "y", NULL
7573 };
7574
7575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7577 if (!SWIG_IsOK(res1)) {
7578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7579 }
7580 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7581 ecode2 = SWIG_AsVal_long(obj1, &val2);
7582 if (!SWIG_IsOK(ecode2)) {
7583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
7584 }
7585 arg2 = static_cast< long >(val2);
7586 ecode3 = SWIG_AsVal_long(obj2, &val3);
7587 if (!SWIG_IsOK(ecode3)) {
7588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
7589 }
7590 arg3 = static_cast< long >(val3);
7591 {
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (long)((wxRichTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 resultobj = SWIG_From_long(static_cast< long >(result));
7598 return resultobj;
7599 fail:
7600 return NULL;
7601 }
7602
7603
7604 SWIGINTERN PyObject *_wrap_RichTextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj = 0;
7606 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7607 long arg2 ;
7608 long *arg3 = (long *) 0 ;
7609 long *arg4 = (long *) 0 ;
7610 void *argp1 = 0 ;
7611 int res1 = 0 ;
7612 long val2 ;
7613 int ecode2 = 0 ;
7614 long temp3 ;
7615 int res3 = SWIG_TMPOBJ ;
7616 long temp4 ;
7617 int res4 = SWIG_TMPOBJ ;
7618 PyObject * obj0 = 0 ;
7619 PyObject * obj1 = 0 ;
7620 char * kwnames[] = {
7621 (char *) "self",(char *) "pos", NULL
7622 };
7623
7624 arg3 = &temp3;
7625 arg4 = &temp4;
7626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
7627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7628 if (!SWIG_IsOK(res1)) {
7629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7630 }
7631 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7632 ecode2 = SWIG_AsVal_long(obj1, &val2);
7633 if (!SWIG_IsOK(ecode2)) {
7634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
7635 }
7636 arg2 = static_cast< long >(val2);
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 ((wxRichTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_Py_Void();
7644 if (SWIG_IsTmpObj(res3)) {
7645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7646 } else {
7647 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7649 }
7650 if (SWIG_IsTmpObj(res4)) {
7651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
7652 } else {
7653 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
7655 }
7656 return resultobj;
7657 fail:
7658 return NULL;
7659 }
7660
7661
7662 SWIGINTERN PyObject *_wrap_RichTextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj = 0;
7664 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7665 long arg2 ;
7666 void *argp1 = 0 ;
7667 int res1 = 0 ;
7668 long val2 ;
7669 int ecode2 = 0 ;
7670 PyObject * obj0 = 0 ;
7671 PyObject * obj1 = 0 ;
7672 char * kwnames[] = {
7673 (char *) "self",(char *) "position", NULL
7674 };
7675
7676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
7677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7678 if (!SWIG_IsOK(res1)) {
7679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7680 }
7681 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7682 ecode2 = SWIG_AsVal_long(obj1, &val2);
7683 if (!SWIG_IsOK(ecode2)) {
7684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
7685 }
7686 arg2 = static_cast< long >(val2);
7687 {
7688 PyThreadState* __tstate = wxPyBeginAllowThreads();
7689 (arg1)->ShowPosition(arg2);
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_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7701 PyObject *resultobj = 0;
7702 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7703 wxPoint *arg2 = 0 ;
7704 long *arg3 = (long *) 0 ;
7705 wxTextCtrlHitTestResult result;
7706 void *argp1 = 0 ;
7707 int res1 = 0 ;
7708 wxPoint temp2 ;
7709 long temp3 ;
7710 int res3 = SWIG_TMPOBJ ;
7711 PyObject * obj0 = 0 ;
7712 PyObject * obj1 = 0 ;
7713 char * kwnames[] = {
7714 (char *) "self",(char *) "pt", NULL
7715 };
7716
7717 arg3 = &temp3;
7718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
7719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7720 if (!SWIG_IsOK(res1)) {
7721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTest" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7722 }
7723 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7724 {
7725 arg2 = &temp2;
7726 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7727 }
7728 {
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7735 if (SWIG_IsTmpObj(res3)) {
7736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
7737 } else {
7738 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
7739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
7740 }
7741 return resultobj;
7742 fail:
7743 return NULL;
7744 }
7745
7746
7747 SWIGINTERN PyObject *_wrap_RichTextCtrl_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj = 0;
7749 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7750 wxPoint *arg2 = 0 ;
7751 wxTextCoord *arg3 = (wxTextCoord *) 0 ;
7752 wxTextCoord *arg4 = (wxTextCoord *) 0 ;
7753 wxTextCtrlHitTestResult result;
7754 void *argp1 = 0 ;
7755 int res1 = 0 ;
7756 wxPoint temp2 ;
7757 void *argp3 = 0 ;
7758 int res3 = 0 ;
7759 void *argp4 = 0 ;
7760 int res4 = 0 ;
7761 PyObject * obj0 = 0 ;
7762 PyObject * obj1 = 0 ;
7763 PyObject * obj2 = 0 ;
7764 PyObject * obj3 = 0 ;
7765 char * kwnames[] = {
7766 (char *) "self",(char *) "pt",(char *) "OUTPUT",(char *) "OUTPUT", NULL
7767 };
7768
7769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RichTextCtrl_HitTestXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7771 if (!SWIG_IsOK(res1)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7773 }
7774 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7775 {
7776 arg2 = &temp2;
7777 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7778 }
7779 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7780 if (!SWIG_IsOK(res3)) {
7781 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "3"" of type '" "wxTextCoord *""'");
7782 }
7783 arg3 = reinterpret_cast< wxTextCoord * >(argp3);
7784 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxTextCoord, 0 | 0 );
7785 if (!SWIG_IsOK(res4)) {
7786 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "RichTextCtrl_HitTestXY" "', expected argument " "4"" of type '" "wxTextCoord *""'");
7787 }
7788 arg4 = reinterpret_cast< wxTextCoord * >(argp4);
7789 {
7790 PyThreadState* __tstate = wxPyBeginAllowThreads();
7791 result = ((wxRichTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
7792 wxPyEndAllowThreads(__tstate);
7793 if (PyErr_Occurred()) SWIG_fail;
7794 }
7795 resultobj = SWIG_NewPointerObj((new wxTextCtrlHitTestResult(static_cast< const wxTextCtrlHitTestResult& >(result))), SWIGTYPE_p_wxTextCtrlHitTestResult, SWIG_POINTER_OWN | 0 );
7796 return resultobj;
7797 fail:
7798 return NULL;
7799 }
7800
7801
7802 SWIGINTERN PyObject *_wrap_RichTextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7803 PyObject *resultobj = 0;
7804 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 PyObject *swig_obj[1] ;
7808
7809 if (!args) SWIG_fail;
7810 swig_obj[0] = args;
7811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7812 if (!SWIG_IsOK(res1)) {
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Copy" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7814 }
7815 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7816 {
7817 PyThreadState* __tstate = wxPyBeginAllowThreads();
7818 (arg1)->Copy();
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 resultobj = SWIG_Py_Void();
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 SWIGINTERN PyObject *_wrap_RichTextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7832 void *argp1 = 0 ;
7833 int res1 = 0 ;
7834 PyObject *swig_obj[1] ;
7835
7836 if (!args) SWIG_fail;
7837 swig_obj[0] = args;
7838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7839 if (!SWIG_IsOK(res1)) {
7840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Cut" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7841 }
7842 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 (arg1)->Cut();
7846 wxPyEndAllowThreads(__tstate);
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
7849 resultobj = SWIG_Py_Void();
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 SWIGINTERN PyObject *_wrap_RichTextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7857 PyObject *resultobj = 0;
7858 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7859 void *argp1 = 0 ;
7860 int res1 = 0 ;
7861 PyObject *swig_obj[1] ;
7862
7863 if (!args) SWIG_fail;
7864 swig_obj[0] = args;
7865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7866 if (!SWIG_IsOK(res1)) {
7867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Paste" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7868 }
7869 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 (arg1)->Paste();
7873 wxPyEndAllowThreads(__tstate);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_Py_Void();
7877 return resultobj;
7878 fail:
7879 return NULL;
7880 }
7881
7882
7883 SWIGINTERN PyObject *_wrap_RichTextCtrl_DeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7884 PyObject *resultobj = 0;
7885 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7886 void *argp1 = 0 ;
7887 int res1 = 0 ;
7888 PyObject *swig_obj[1] ;
7889
7890 if (!args) SWIG_fail;
7891 swig_obj[0] = args;
7892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7893 if (!SWIG_IsOK(res1)) {
7894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_DeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
7895 }
7896 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 (arg1)->DeleteSelection();
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 resultobj = SWIG_Py_Void();
7904 return resultobj;
7905 fail:
7906 return NULL;
7907 }
7908
7909
7910 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7911 PyObject *resultobj = 0;
7912 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7913 bool result;
7914 void *argp1 = 0 ;
7915 int res1 = 0 ;
7916 PyObject *swig_obj[1] ;
7917
7918 if (!args) SWIG_fail;
7919 swig_obj[0] = args;
7920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7921 if (!SWIG_IsOK(res1)) {
7922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7923 }
7924 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 result = (bool)((wxRichTextCtrl const *)arg1)->CanCopy();
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 {
7932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7933 }
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7941 PyObject *resultobj = 0;
7942 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7943 bool result;
7944 void *argp1 = 0 ;
7945 int res1 = 0 ;
7946 PyObject *swig_obj[1] ;
7947
7948 if (!args) SWIG_fail;
7949 swig_obj[0] = args;
7950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7951 if (!SWIG_IsOK(res1)) {
7952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanCut" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7953 }
7954 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (bool)((wxRichTextCtrl const *)arg1)->CanCut();
7958 wxPyEndAllowThreads(__tstate);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 {
7962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7963 }
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7971 PyObject *resultobj = 0;
7972 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
7973 bool result;
7974 void *argp1 = 0 ;
7975 int res1 = 0 ;
7976 PyObject *swig_obj[1] ;
7977
7978 if (!args) SWIG_fail;
7979 swig_obj[0] = args;
7980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
7981 if (!SWIG_IsOK(res1)) {
7982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
7983 }
7984 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (bool)((wxRichTextCtrl const *)arg1)->CanPaste();
7988 wxPyEndAllowThreads(__tstate);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 {
7992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7993 }
7994 return resultobj;
7995 fail:
7996 return NULL;
7997 }
7998
7999
8000 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanDeleteSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8001 PyObject *resultobj = 0;
8002 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8003 bool result;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 PyObject *swig_obj[1] ;
8007
8008 if (!args) SWIG_fail;
8009 swig_obj[0] = args;
8010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanDeleteSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8013 }
8014 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 result = (bool)((wxRichTextCtrl const *)arg1)->CanDeleteSelection();
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 {
8022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8023 }
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 SWIGINTERN PyObject *_wrap_RichTextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8031 PyObject *resultobj = 0;
8032 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8033 void *argp1 = 0 ;
8034 int res1 = 0 ;
8035 PyObject *swig_obj[1] ;
8036
8037 if (!args) SWIG_fail;
8038 swig_obj[0] = args;
8039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8040 if (!SWIG_IsOK(res1)) {
8041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Undo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8042 }
8043 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8044 {
8045 PyThreadState* __tstate = wxPyBeginAllowThreads();
8046 (arg1)->Undo();
8047 wxPyEndAllowThreads(__tstate);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 resultobj = SWIG_Py_Void();
8051 return resultobj;
8052 fail:
8053 return NULL;
8054 }
8055
8056
8057 SWIGINTERN PyObject *_wrap_RichTextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8058 PyObject *resultobj = 0;
8059 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8060 void *argp1 = 0 ;
8061 int res1 = 0 ;
8062 PyObject *swig_obj[1] ;
8063
8064 if (!args) SWIG_fail;
8065 swig_obj[0] = args;
8066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8067 if (!SWIG_IsOK(res1)) {
8068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Redo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8069 }
8070 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 (arg1)->Redo();
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_Py_Void();
8078 return resultobj;
8079 fail:
8080 return NULL;
8081 }
8082
8083
8084 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8085 PyObject *resultobj = 0;
8086 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8087 bool result;
8088 void *argp1 = 0 ;
8089 int res1 = 0 ;
8090 PyObject *swig_obj[1] ;
8091
8092 if (!args) SWIG_fail;
8093 swig_obj[0] = args;
8094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8097 }
8098 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8099 {
8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
8101 result = (bool)((wxRichTextCtrl const *)arg1)->CanUndo();
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 {
8106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8107 }
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 SWIGINTERN PyObject *_wrap_RichTextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8115 PyObject *resultobj = 0;
8116 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8117 bool result;
8118 void *argp1 = 0 ;
8119 int res1 = 0 ;
8120 PyObject *swig_obj[1] ;
8121
8122 if (!args) SWIG_fail;
8123 swig_obj[0] = args;
8124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8127 }
8128 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = (bool)((wxRichTextCtrl const *)arg1)->CanRedo();
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 {
8136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8137 }
8138 return resultobj;
8139 fail:
8140 return NULL;
8141 }
8142
8143
8144 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj = 0;
8146 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8147 long arg2 ;
8148 void *argp1 = 0 ;
8149 int res1 = 0 ;
8150 long val2 ;
8151 int ecode2 = 0 ;
8152 PyObject * obj0 = 0 ;
8153 PyObject * obj1 = 0 ;
8154 char * kwnames[] = {
8155 (char *) "self",(char *) "pos", NULL
8156 };
8157
8158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8160 if (!SWIG_IsOK(res1)) {
8161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8162 }
8163 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8164 ecode2 = SWIG_AsVal_long(obj1, &val2);
8165 if (!SWIG_IsOK(ecode2)) {
8166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
8167 }
8168 arg2 = static_cast< long >(val2);
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 (arg1)->SetInsertionPoint(arg2);
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_Py_Void();
8176 return resultobj;
8177 fail:
8178 return NULL;
8179 }
8180
8181
8182 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8183 PyObject *resultobj = 0;
8184 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8185 void *argp1 = 0 ;
8186 int res1 = 0 ;
8187 PyObject *swig_obj[1] ;
8188
8189 if (!args) SWIG_fail;
8190 swig_obj[0] = args;
8191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8192 if (!SWIG_IsOK(res1)) {
8193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8194 }
8195 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 (arg1)->SetInsertionPointEnd();
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 resultobj = SWIG_Py_Void();
8203 return resultobj;
8204 fail:
8205 return NULL;
8206 }
8207
8208
8209 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8210 PyObject *resultobj = 0;
8211 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8212 long result;
8213 void *argp1 = 0 ;
8214 int res1 = 0 ;
8215 PyObject *swig_obj[1] ;
8216
8217 if (!args) SWIG_fail;
8218 swig_obj[0] = args;
8219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8220 if (!SWIG_IsOK(res1)) {
8221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8222 }
8223 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 result = (long)((wxRichTextCtrl const *)arg1)->GetInsertionPoint();
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 resultobj = SWIG_From_long(static_cast< long >(result));
8231 return resultobj;
8232 fail:
8233 return NULL;
8234 }
8235
8236
8237 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8238 PyObject *resultobj = 0;
8239 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8240 long result;
8241 void *argp1 = 0 ;
8242 int res1 = 0 ;
8243 PyObject *swig_obj[1] ;
8244
8245 if (!args) SWIG_fail;
8246 swig_obj[0] = args;
8247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8248 if (!SWIG_IsOK(res1)) {
8249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8250 }
8251 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8252 {
8253 PyThreadState* __tstate = wxPyBeginAllowThreads();
8254 result = (long)((wxRichTextCtrl const *)arg1)->GetLastPosition();
8255 wxPyEndAllowThreads(__tstate);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = SWIG_From_long(static_cast< long >(result));
8259 return resultobj;
8260 fail:
8261 return NULL;
8262 }
8263
8264
8265 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8266 PyObject *resultobj = 0;
8267 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8268 long arg2 ;
8269 long arg3 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 long val2 ;
8273 int ecode2 = 0 ;
8274 long val3 ;
8275 int ecode3 = 0 ;
8276 PyObject * obj0 = 0 ;
8277 PyObject * obj1 = 0 ;
8278 PyObject * obj2 = 0 ;
8279 char * kwnames[] = {
8280 (char *) "self",(char *) "from",(char *) "to", NULL
8281 };
8282
8283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8285 if (!SWIG_IsOK(res1)) {
8286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8287 }
8288 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8289 ecode2 = SWIG_AsVal_long(obj1, &val2);
8290 if (!SWIG_IsOK(ecode2)) {
8291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
8292 }
8293 arg2 = static_cast< long >(val2);
8294 ecode3 = SWIG_AsVal_long(obj2, &val3);
8295 if (!SWIG_IsOK(ecode3)) {
8296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
8297 }
8298 arg3 = static_cast< long >(val3);
8299 {
8300 PyThreadState* __tstate = wxPyBeginAllowThreads();
8301 (arg1)->SetSelection(arg2,arg3);
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 resultobj = SWIG_Py_Void();
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8313 PyObject *resultobj = 0;
8314 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 PyObject *swig_obj[1] ;
8318
8319 if (!args) SWIG_fail;
8320 swig_obj[0] = args;
8321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8322 if (!SWIG_IsOK(res1)) {
8323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8324 }
8325 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8326 {
8327 PyThreadState* __tstate = wxPyBeginAllowThreads();
8328 (arg1)->SelectAll();
8329 wxPyEndAllowThreads(__tstate);
8330 if (PyErr_Occurred()) SWIG_fail;
8331 }
8332 resultobj = SWIG_Py_Void();
8333 return resultobj;
8334 fail:
8335 return NULL;
8336 }
8337
8338
8339 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8340 PyObject *resultobj = 0;
8341 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8342 bool arg2 ;
8343 void *argp1 = 0 ;
8344 int res1 = 0 ;
8345 bool val2 ;
8346 int ecode2 = 0 ;
8347 PyObject * obj0 = 0 ;
8348 PyObject * obj1 = 0 ;
8349 char * kwnames[] = {
8350 (char *) "self",(char *) "editable", NULL
8351 };
8352
8353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
8354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8355 if (!SWIG_IsOK(res1)) {
8356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8357 }
8358 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8359 ecode2 = SWIG_AsVal_bool(obj1, &val2);
8360 if (!SWIG_IsOK(ecode2)) {
8361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
8362 }
8363 arg2 = static_cast< bool >(val2);
8364 {
8365 PyThreadState* __tstate = wxPyBeginAllowThreads();
8366 (arg1)->SetEditable(arg2);
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 resultobj = SWIG_Py_Void();
8371 return resultobj;
8372 fail:
8373 return NULL;
8374 }
8375
8376
8377 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8378 PyObject *resultobj = 0;
8379 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8380 bool result;
8381 void *argp1 = 0 ;
8382 int res1 = 0 ;
8383 PyObject *swig_obj[1] ;
8384
8385 if (!args) SWIG_fail;
8386 swig_obj[0] = args;
8387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8388 if (!SWIG_IsOK(res1)) {
8389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
8390 }
8391 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 result = (bool)((wxRichTextCtrl const *)arg1)->HasSelection();
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 {
8399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8400 }
8401 return resultobj;
8402 fail:
8403 return NULL;
8404 }
8405
8406
8407 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj = 0;
8409 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8410 wxImage *arg2 = 0 ;
8411 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8412 bool result;
8413 void *argp1 = 0 ;
8414 int res1 = 0 ;
8415 void *argp2 = 0 ;
8416 int res2 = 0 ;
8417 int val3 ;
8418 int ecode3 = 0 ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 PyObject * obj2 = 0 ;
8422 char * kwnames[] = {
8423 (char *) "self",(char *) "image",(char *) "bitmapType", NULL
8424 };
8425
8426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8430 }
8431 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
8433 if (!SWIG_IsOK(res2)) {
8434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8435 }
8436 if (!argp2) {
8437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImage" "', expected argument " "2"" of type '" "wxImage const &""'");
8438 }
8439 arg2 = reinterpret_cast< wxImage * >(argp2);
8440 if (obj2) {
8441 ecode3 = SWIG_AsVal_int(obj2, &val3);
8442 if (!SWIG_IsOK(ecode3)) {
8443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImage" "', expected argument " "3"" of type '" "int""'");
8444 }
8445 arg3 = static_cast< int >(val3);
8446 }
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (bool)(arg1)->WriteImage((wxImage const &)*arg2,arg3);
8450 wxPyEndAllowThreads(__tstate);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 {
8454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8455 }
8456 return resultobj;
8457 fail:
8458 return NULL;
8459 }
8460
8461
8462 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj = 0;
8464 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8465 wxBitmap *arg2 = 0 ;
8466 int arg3 = (int) wxBITMAP_TYPE_PNG ;
8467 bool result;
8468 void *argp1 = 0 ;
8469 int res1 = 0 ;
8470 void *argp2 = 0 ;
8471 int res2 = 0 ;
8472 int val3 ;
8473 int ecode3 = 0 ;
8474 PyObject * obj0 = 0 ;
8475 PyObject * obj1 = 0 ;
8476 PyObject * obj2 = 0 ;
8477 char * kwnames[] = {
8478 (char *) "self",(char *) "bitmap",(char *) "bitmapType", NULL
8479 };
8480
8481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_WriteBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8483 if (!SWIG_IsOK(res1)) {
8484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8485 }
8486 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8488 if (!SWIG_IsOK(res2)) {
8489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8490 }
8491 if (!argp2) {
8492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8493 }
8494 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8495 if (obj2) {
8496 ecode3 = SWIG_AsVal_int(obj2, &val3);
8497 if (!SWIG_IsOK(ecode3)) {
8498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteBitmap" "', expected argument " "3"" of type '" "int""'");
8499 }
8500 arg3 = static_cast< int >(val3);
8501 }
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 result = (bool)(arg1)->WriteImage((wxBitmap const &)*arg2,arg3);
8505 wxPyEndAllowThreads(__tstate);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 {
8509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8510 }
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj = 0;
8519 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8520 wxString *arg2 = 0 ;
8521 int arg3 ;
8522 bool result;
8523 void *argp1 = 0 ;
8524 int res1 = 0 ;
8525 bool temp2 = false ;
8526 int val3 ;
8527 int ecode3 = 0 ;
8528 PyObject * obj0 = 0 ;
8529 PyObject * obj1 = 0 ;
8530 PyObject * obj2 = 0 ;
8531 char * kwnames[] = {
8532 (char *) "self",(char *) "filename",(char *) "bitmapType", NULL
8533 };
8534
8535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_WriteImageFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8539 }
8540 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8541 {
8542 arg2 = wxString_in_helper(obj1);
8543 if (arg2 == NULL) SWIG_fail;
8544 temp2 = true;
8545 }
8546 ecode3 = SWIG_AsVal_int(obj2, &val3);
8547 if (!SWIG_IsOK(ecode3)) {
8548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WriteImageFile" "', expected argument " "3"" of type '" "int""'");
8549 }
8550 arg3 = static_cast< int >(val3);
8551 {
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 result = (bool)(arg1)->WriteImage((wxString const &)*arg2,arg3);
8554 wxPyEndAllowThreads(__tstate);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 {
8558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8559 }
8560 {
8561 if (temp2)
8562 delete arg2;
8563 }
8564 return resultobj;
8565 fail:
8566 {
8567 if (temp2)
8568 delete arg2;
8569 }
8570 return NULL;
8571 }
8572
8573
8574 SWIGINTERN PyObject *_wrap_RichTextCtrl_WriteImageBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8575 PyObject *resultobj = 0;
8576 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8577 wxRichTextImageBlock *arg2 = 0 ;
8578 bool result;
8579 void *argp1 = 0 ;
8580 int res1 = 0 ;
8581 void *argp2 = 0 ;
8582 int res2 = 0 ;
8583 PyObject * obj0 = 0 ;
8584 PyObject * obj1 = 0 ;
8585 char * kwnames[] = {
8586 (char *) "self",(char *) "imageBlock", NULL
8587 };
8588
8589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_WriteImageBlock",kwnames,&obj0,&obj1)) SWIG_fail;
8590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8591 if (!SWIG_IsOK(res1)) {
8592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8593 }
8594 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextImageBlock, 0 | 0);
8596 if (!SWIG_IsOK(res2)) {
8597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8598 }
8599 if (!argp2) {
8600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_WriteImageBlock" "', expected argument " "2"" of type '" "wxRichTextImageBlock const &""'");
8601 }
8602 arg2 = reinterpret_cast< wxRichTextImageBlock * >(argp2);
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 result = (bool)(arg1)->WriteImage((wxRichTextImageBlock const &)*arg2);
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) SWIG_fail;
8608 }
8609 {
8610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8611 }
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 SWIGINTERN PyObject *_wrap_RichTextCtrl_Newline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8619 PyObject *resultobj = 0;
8620 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8621 bool result;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 PyObject *swig_obj[1] ;
8625
8626 if (!args) SWIG_fail;
8627 swig_obj[0] = args;
8628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8629 if (!SWIG_IsOK(res1)) {
8630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_Newline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8631 }
8632 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (bool)(arg1)->Newline();
8636 wxPyEndAllowThreads(__tstate);
8637 if (PyErr_Occurred()) SWIG_fail;
8638 }
8639 {
8640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8641 }
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetBasicStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj = 0;
8650 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8651 wxRichTextAttr *arg2 = 0 ;
8652 void *argp1 = 0 ;
8653 int res1 = 0 ;
8654 void *argp2 = 0 ;
8655 int res2 = 0 ;
8656 PyObject * obj0 = 0 ;
8657 PyObject * obj1 = 0 ;
8658 char * kwnames[] = {
8659 (char *) "self",(char *) "style", NULL
8660 };
8661
8662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetBasicStyle",kwnames,&obj0,&obj1)) SWIG_fail;
8663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8664 if (!SWIG_IsOK(res1)) {
8665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8666 }
8667 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
8669 if (!SWIG_IsOK(res2)) {
8670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8671 }
8672 if (!argp2) {
8673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_SetBasicStyle" "', expected argument " "2"" of type '" "wxRichTextAttr const &""'");
8674 }
8675 arg2 = reinterpret_cast< wxRichTextAttr * >(argp2);
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 (arg1)->SetBasicStyle((wxRichTextAttr const &)*arg2);
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 resultobj = SWIG_Py_Void();
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndStyle(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_EndStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8702 }
8703 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (bool)(arg1)->EndStyle();
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_EndAllStyles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8720 PyObject *resultobj = 0;
8721 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8722 bool result;
8723 void *argp1 = 0 ;
8724 int res1 = 0 ;
8725 PyObject *swig_obj[1] ;
8726
8727 if (!args) SWIG_fail;
8728 swig_obj[0] = args;
8729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8730 if (!SWIG_IsOK(res1)) {
8731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAllStyles" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8732 }
8733 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8734 {
8735 PyThreadState* __tstate = wxPyBeginAllowThreads();
8736 result = (bool)(arg1)->EndAllStyles();
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 {
8741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8742 }
8743 return resultobj;
8744 fail:
8745 return NULL;
8746 }
8747
8748
8749 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8750 PyObject *resultobj = 0;
8751 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8752 bool result;
8753 void *argp1 = 0 ;
8754 int res1 = 0 ;
8755 PyObject *swig_obj[1] ;
8756
8757 if (!args) SWIG_fail;
8758 swig_obj[0] = args;
8759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8760 if (!SWIG_IsOK(res1)) {
8761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8762 }
8763 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = (bool)(arg1)->BeginBold();
8767 wxPyEndAllowThreads(__tstate);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 {
8771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8772 }
8773 return resultobj;
8774 fail:
8775 return NULL;
8776 }
8777
8778
8779 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *resultobj = 0;
8781 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8782 bool result;
8783 void *argp1 = 0 ;
8784 int res1 = 0 ;
8785 PyObject *swig_obj[1] ;
8786
8787 if (!args) SWIG_fail;
8788 swig_obj[0] = args;
8789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8790 if (!SWIG_IsOK(res1)) {
8791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8792 }
8793 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (bool)(arg1)->EndBold();
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 {
8801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8802 }
8803 return resultobj;
8804 fail:
8805 return NULL;
8806 }
8807
8808
8809 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8810 PyObject *resultobj = 0;
8811 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8812 bool result;
8813 void *argp1 = 0 ;
8814 int res1 = 0 ;
8815 PyObject *swig_obj[1] ;
8816
8817 if (!args) SWIG_fail;
8818 swig_obj[0] = args;
8819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8820 if (!SWIG_IsOK(res1)) {
8821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8822 }
8823 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 result = (bool)(arg1)->BeginItalic();
8827 wxPyEndAllowThreads(__tstate);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 {
8831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8832 }
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndItalic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8840 PyObject *resultobj = 0;
8841 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8842 bool result;
8843 void *argp1 = 0 ;
8844 int res1 = 0 ;
8845 PyObject *swig_obj[1] ;
8846
8847 if (!args) SWIG_fail;
8848 swig_obj[0] = args;
8849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndItalic" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8852 }
8853 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8854 {
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = (bool)(arg1)->EndItalic();
8857 wxPyEndAllowThreads(__tstate);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 }
8860 {
8861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8862 }
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8870 PyObject *resultobj = 0;
8871 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8872 bool result;
8873 void *argp1 = 0 ;
8874 int res1 = 0 ;
8875 PyObject *swig_obj[1] ;
8876
8877 if (!args) SWIG_fail;
8878 swig_obj[0] = args;
8879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8880 if (!SWIG_IsOK(res1)) {
8881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8882 }
8883 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (bool)(arg1)->BeginUnderline();
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 {
8891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8892 }
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndUnderline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8900 PyObject *resultobj = 0;
8901 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8902 bool result;
8903 void *argp1 = 0 ;
8904 int res1 = 0 ;
8905 PyObject *swig_obj[1] ;
8906
8907 if (!args) SWIG_fail;
8908 swig_obj[0] = args;
8909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8910 if (!SWIG_IsOK(res1)) {
8911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndUnderline" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8912 }
8913 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8914 {
8915 PyThreadState* __tstate = wxPyBeginAllowThreads();
8916 result = (bool)(arg1)->EndUnderline();
8917 wxPyEndAllowThreads(__tstate);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 }
8920 {
8921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8922 }
8923 return resultobj;
8924 fail:
8925 return NULL;
8926 }
8927
8928
8929 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8930 PyObject *resultobj = 0;
8931 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8932 int arg2 ;
8933 bool result;
8934 void *argp1 = 0 ;
8935 int res1 = 0 ;
8936 int val2 ;
8937 int ecode2 = 0 ;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940 char * kwnames[] = {
8941 (char *) "self",(char *) "pointSize", NULL
8942 };
8943
8944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFontSize",kwnames,&obj0,&obj1)) SWIG_fail;
8945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8946 if (!SWIG_IsOK(res1)) {
8947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8948 }
8949 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8950 ecode2 = SWIG_AsVal_int(obj1, &val2);
8951 if (!SWIG_IsOK(ecode2)) {
8952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginFontSize" "', expected argument " "2"" of type '" "int""'");
8953 }
8954 arg2 = static_cast< int >(val2);
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 result = (bool)(arg1)->BeginFontSize(arg2);
8958 wxPyEndAllowThreads(__tstate);
8959 if (PyErr_Occurred()) SWIG_fail;
8960 }
8961 {
8962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8963 }
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 PyObject *resultobj = 0;
8972 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
8973 bool result;
8974 void *argp1 = 0 ;
8975 int res1 = 0 ;
8976 PyObject *swig_obj[1] ;
8977
8978 if (!args) SWIG_fail;
8979 swig_obj[0] = args;
8980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
8981 if (!SWIG_IsOK(res1)) {
8982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFontSize" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
8983 }
8984 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 result = (bool)(arg1)->EndFontSize();
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 {
8992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8993 }
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj = 0;
9002 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9003 wxFont *arg2 = 0 ;
9004 bool result;
9005 void *argp1 = 0 ;
9006 int res1 = 0 ;
9007 void *argp2 = 0 ;
9008 int res2 = 0 ;
9009 PyObject * obj0 = 0 ;
9010 PyObject * obj1 = 0 ;
9011 char * kwnames[] = {
9012 (char *) "self",(char *) "font", NULL
9013 };
9014
9015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginFont",kwnames,&obj0,&obj1)) SWIG_fail;
9016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9019 }
9020 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9022 if (!SWIG_IsOK(res2)) {
9023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9024 }
9025 if (!argp2) {
9026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_BeginFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9027 }
9028 arg2 = reinterpret_cast< wxFont * >(argp2);
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 result = (bool)(arg1)->BeginFont((wxFont const &)*arg2);
9032 wxPyEndAllowThreads(__tstate);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 }
9035 {
9036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9037 }
9038 return resultobj;
9039 fail:
9040 return NULL;
9041 }
9042
9043
9044 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9045 PyObject *resultobj = 0;
9046 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9047 bool result;
9048 void *argp1 = 0 ;
9049 int res1 = 0 ;
9050 PyObject *swig_obj[1] ;
9051
9052 if (!args) SWIG_fail;
9053 swig_obj[0] = args;
9054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9055 if (!SWIG_IsOK(res1)) {
9056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndFont" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9057 }
9058 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (bool)(arg1)->EndFont();
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 {
9066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9067 }
9068 return resultobj;
9069 fail:
9070 return NULL;
9071 }
9072
9073
9074 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9075 PyObject *resultobj = 0;
9076 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9077 wxColour *arg2 = 0 ;
9078 bool result;
9079 void *argp1 = 0 ;
9080 int res1 = 0 ;
9081 wxColour temp2 ;
9082 PyObject * obj0 = 0 ;
9083 PyObject * obj1 = 0 ;
9084 char * kwnames[] = {
9085 (char *) "self",(char *) "colour", NULL
9086 };
9087
9088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
9089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9090 if (!SWIG_IsOK(res1)) {
9091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9092 }
9093 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9094 {
9095 arg2 = &temp2;
9096 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9097 }
9098 {
9099 PyThreadState* __tstate = wxPyBeginAllowThreads();
9100 result = (bool)(arg1)->BeginTextColour((wxColour const &)*arg2);
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 {
9105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9106 }
9107 return resultobj;
9108 fail:
9109 return NULL;
9110 }
9111
9112
9113 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9114 PyObject *resultobj = 0;
9115 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9116 bool result;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 PyObject *swig_obj[1] ;
9120
9121 if (!args) SWIG_fail;
9122 swig_obj[0] = args;
9123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9124 if (!SWIG_IsOK(res1)) {
9125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndTextColour" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9126 }
9127 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9128 {
9129 PyThreadState* __tstate = wxPyBeginAllowThreads();
9130 result = (bool)(arg1)->EndTextColour();
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 {
9135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9136 }
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj = 0;
9145 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9146 wxTextAttrAlignment arg2 ;
9147 bool result;
9148 void *argp1 = 0 ;
9149 int res1 = 0 ;
9150 int val2 ;
9151 int ecode2 = 0 ;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 char * kwnames[] = {
9155 (char *) "self",(char *) "alignment", NULL
9156 };
9157
9158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
9159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9160 if (!SWIG_IsOK(res1)) {
9161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9162 }
9163 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9164 ecode2 = SWIG_AsVal_int(obj1, &val2);
9165 if (!SWIG_IsOK(ecode2)) {
9166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
9167 }
9168 arg2 = static_cast< wxTextAttrAlignment >(val2);
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 result = (bool)(arg1)->BeginAlignment(arg2);
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 {
9176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9177 }
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9187 bool result;
9188 void *argp1 = 0 ;
9189 int res1 = 0 ;
9190 PyObject *swig_obj[1] ;
9191
9192 if (!args) SWIG_fail;
9193 swig_obj[0] = args;
9194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndAlignment" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9197 }
9198 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (bool)(arg1)->EndAlignment();
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 {
9206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9207 }
9208 return resultobj;
9209 fail:
9210 return NULL;
9211 }
9212
9213
9214 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj = 0;
9216 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9217 int arg2 ;
9218 int arg3 = (int) 0 ;
9219 bool result;
9220 void *argp1 = 0 ;
9221 int res1 = 0 ;
9222 int val2 ;
9223 int ecode2 = 0 ;
9224 int val3 ;
9225 int ecode3 = 0 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 PyObject * obj2 = 0 ;
9229 char * kwnames[] = {
9230 (char *) "self",(char *) "leftIndent",(char *) "leftSubIndent", NULL
9231 };
9232
9233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_BeginLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9235 if (!SWIG_IsOK(res1)) {
9236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9237 }
9238 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9239 ecode2 = SWIG_AsVal_int(obj1, &val2);
9240 if (!SWIG_IsOK(ecode2)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "2"" of type '" "int""'");
9242 }
9243 arg2 = static_cast< int >(val2);
9244 if (obj2) {
9245 ecode3 = SWIG_AsVal_int(obj2, &val3);
9246 if (!SWIG_IsOK(ecode3)) {
9247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginLeftIndent" "', expected argument " "3"" of type '" "int""'");
9248 }
9249 arg3 = static_cast< int >(val3);
9250 }
9251 {
9252 PyThreadState* __tstate = wxPyBeginAllowThreads();
9253 result = (bool)(arg1)->BeginLeftIndent(arg2,arg3);
9254 wxPyEndAllowThreads(__tstate);
9255 if (PyErr_Occurred()) SWIG_fail;
9256 }
9257 {
9258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9259 }
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9267 PyObject *resultobj = 0;
9268 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9269 bool result;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 PyObject *swig_obj[1] ;
9273
9274 if (!args) SWIG_fail;
9275 swig_obj[0] = args;
9276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLeftIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9279 }
9280 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 result = (bool)(arg1)->EndLeftIndent();
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9289 }
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj = 0;
9298 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9299 int arg2 ;
9300 bool result;
9301 void *argp1 = 0 ;
9302 int res1 = 0 ;
9303 int val2 ;
9304 int ecode2 = 0 ;
9305 PyObject * obj0 = 0 ;
9306 PyObject * obj1 = 0 ;
9307 char * kwnames[] = {
9308 (char *) "self",(char *) "rightIndent", NULL
9309 };
9310
9311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
9312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9313 if (!SWIG_IsOK(res1)) {
9314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9315 }
9316 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9317 ecode2 = SWIG_AsVal_int(obj1, &val2);
9318 if (!SWIG_IsOK(ecode2)) {
9319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginRightIndent" "', expected argument " "2"" of type '" "int""'");
9320 }
9321 arg2 = static_cast< int >(val2);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 result = (bool)(arg1)->BeginRightIndent(arg2);
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 {
9329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9330 }
9331 return resultobj;
9332 fail:
9333 return NULL;
9334 }
9335
9336
9337 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9338 PyObject *resultobj = 0;
9339 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9340 bool result;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 PyObject *swig_obj[1] ;
9344
9345 if (!args) SWIG_fail;
9346 swig_obj[0] = args;
9347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndRightIndent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9350 }
9351 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 result = (bool)(arg1)->EndRightIndent();
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 {
9359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9360 }
9361 return resultobj;
9362 fail:
9363 return NULL;
9364 }
9365
9366
9367 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9368 PyObject *resultobj = 0;
9369 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9370 int arg2 ;
9371 int arg3 ;
9372 bool result;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 int val2 ;
9376 int ecode2 = 0 ;
9377 int val3 ;
9378 int ecode3 = 0 ;
9379 PyObject * obj0 = 0 ;
9380 PyObject * obj1 = 0 ;
9381 PyObject * obj2 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "self",(char *) "before",(char *) "after", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_BeginParagraphSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9388 if (!SWIG_IsOK(res1)) {
9389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9390 }
9391 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9392 ecode2 = SWIG_AsVal_int(obj1, &val2);
9393 if (!SWIG_IsOK(ecode2)) {
9394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "2"" of type '" "int""'");
9395 }
9396 arg2 = static_cast< int >(val2);
9397 ecode3 = SWIG_AsVal_int(obj2, &val3);
9398 if (!SWIG_IsOK(ecode3)) {
9399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginParagraphSpacing" "', expected argument " "3"" of type '" "int""'");
9400 }
9401 arg3 = static_cast< int >(val3);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 result = (bool)(arg1)->BeginParagraphSpacing(arg2,arg3);
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 {
9409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9410 }
9411 return resultobj;
9412 fail:
9413 return NULL;
9414 }
9415
9416
9417 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9418 PyObject *resultobj = 0;
9419 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9420 bool result;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 PyObject *swig_obj[1] ;
9424
9425 if (!args) SWIG_fail;
9426 swig_obj[0] = args;
9427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9428 if (!SWIG_IsOK(res1)) {
9429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9430 }
9431 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 result = (bool)(arg1)->EndParagraphSpacing();
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 {
9439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9440 }
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj = 0;
9449 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9450 int arg2 ;
9451 bool result;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 int val2 ;
9455 int ecode2 = 0 ;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 char * kwnames[] = {
9459 (char *) "self",(char *) "lineSpacing", NULL
9460 };
9461
9462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginLineSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
9463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9466 }
9467 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9468 ecode2 = SWIG_AsVal_int(obj1, &val2);
9469 if (!SWIG_IsOK(ecode2)) {
9470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginLineSpacing" "', expected argument " "2"" of type '" "int""'");
9471 }
9472 arg2 = static_cast< int >(val2);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 result = (bool)(arg1)->BeginLineSpacing(arg2);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 {
9480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9481 }
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndLineSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9489 PyObject *resultobj = 0;
9490 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9491 bool result;
9492 void *argp1 = 0 ;
9493 int res1 = 0 ;
9494 PyObject *swig_obj[1] ;
9495
9496 if (!args) SWIG_fail;
9497 swig_obj[0] = args;
9498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9499 if (!SWIG_IsOK(res1)) {
9500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndLineSpacing" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9501 }
9502 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 result = (bool)(arg1)->EndLineSpacing();
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 {
9510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9511 }
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj = 0;
9520 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9521 int arg2 ;
9522 int arg3 ;
9523 int arg4 ;
9524 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD ;
9525 bool result;
9526 void *argp1 = 0 ;
9527 int res1 = 0 ;
9528 int val2 ;
9529 int ecode2 = 0 ;
9530 int val3 ;
9531 int ecode3 = 0 ;
9532 int val4 ;
9533 int ecode4 = 0 ;
9534 int val5 ;
9535 int ecode5 = 0 ;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 PyObject * obj2 = 0 ;
9539 PyObject * obj3 = 0 ;
9540 PyObject * obj4 = 0 ;
9541 char * kwnames[] = {
9542 (char *) "self",(char *) "bulletNumber",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9543 };
9544
9545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginNumberedBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9549 }
9550 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9551 ecode2 = SWIG_AsVal_int(obj1, &val2);
9552 if (!SWIG_IsOK(ecode2)) {
9553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "2"" of type '" "int""'");
9554 }
9555 arg2 = static_cast< int >(val2);
9556 ecode3 = SWIG_AsVal_int(obj2, &val3);
9557 if (!SWIG_IsOK(ecode3)) {
9558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "3"" of type '" "int""'");
9559 }
9560 arg3 = static_cast< int >(val3);
9561 ecode4 = SWIG_AsVal_int(obj3, &val4);
9562 if (!SWIG_IsOK(ecode4)) {
9563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "4"" of type '" "int""'");
9564 }
9565 arg4 = static_cast< int >(val4);
9566 if (obj4) {
9567 ecode5 = SWIG_AsVal_int(obj4, &val5);
9568 if (!SWIG_IsOK(ecode5)) {
9569 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginNumberedBullet" "', expected argument " "5"" of type '" "int""'");
9570 }
9571 arg5 = static_cast< int >(val5);
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 result = (bool)(arg1)->BeginNumberedBullet(arg2,arg3,arg4,arg5);
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 {
9580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9581 }
9582 return resultobj;
9583 fail:
9584 return NULL;
9585 }
9586
9587
9588 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndNumberedBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9589 PyObject *resultobj = 0;
9590 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9591 bool result;
9592 void *argp1 = 0 ;
9593 int res1 = 0 ;
9594 PyObject *swig_obj[1] ;
9595
9596 if (!args) SWIG_fail;
9597 swig_obj[0] = args;
9598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9599 if (!SWIG_IsOK(res1)) {
9600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndNumberedBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9601 }
9602 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (bool)(arg1)->EndNumberedBullet();
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 {
9610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9611 }
9612 return resultobj;
9613 fail:
9614 return NULL;
9615 }
9616
9617
9618 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj = 0;
9620 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9621 char arg2 ;
9622 int arg3 ;
9623 int arg4 ;
9624 int arg5 = (int) wxTEXT_ATTR_BULLET_STYLE_SYMBOL ;
9625 bool result;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 char val2 ;
9629 int ecode2 = 0 ;
9630 int val3 ;
9631 int ecode3 = 0 ;
9632 int val4 ;
9633 int ecode4 = 0 ;
9634 int val5 ;
9635 int ecode5 = 0 ;
9636 PyObject * obj0 = 0 ;
9637 PyObject * obj1 = 0 ;
9638 PyObject * obj2 = 0 ;
9639 PyObject * obj3 = 0 ;
9640 PyObject * obj4 = 0 ;
9641 char * kwnames[] = {
9642 (char *) "self",(char *) "symbol",(char *) "leftIndent",(char *) "leftSubIndent",(char *) "bulletStyle", NULL
9643 };
9644
9645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RichTextCtrl_BeginSymbolBullet",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9649 }
9650 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9651 ecode2 = SWIG_AsVal_char(obj1, &val2);
9652 if (!SWIG_IsOK(ecode2)) {
9653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "2"" of type '" "char""'");
9654 }
9655 arg2 = static_cast< char >(val2);
9656 ecode3 = SWIG_AsVal_int(obj2, &val3);
9657 if (!SWIG_IsOK(ecode3)) {
9658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "3"" of type '" "int""'");
9659 }
9660 arg3 = static_cast< int >(val3);
9661 ecode4 = SWIG_AsVal_int(obj3, &val4);
9662 if (!SWIG_IsOK(ecode4)) {
9663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "4"" of type '" "int""'");
9664 }
9665 arg4 = static_cast< int >(val4);
9666 if (obj4) {
9667 ecode5 = SWIG_AsVal_int(obj4, &val5);
9668 if (!SWIG_IsOK(ecode5)) {
9669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RichTextCtrl_BeginSymbolBullet" "', expected argument " "5"" of type '" "int""'");
9670 }
9671 arg5 = static_cast< int >(val5);
9672 }
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = (bool)(arg1)->BeginSymbolBullet(arg2,arg3,arg4,arg5);
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 {
9680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9681 }
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSymbolBullet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689 PyObject *resultobj = 0;
9690 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9691 bool result;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 PyObject *swig_obj[1] ;
9695
9696 if (!args) SWIG_fail;
9697 swig_obj[0] = args;
9698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSymbolBullet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9701 }
9702 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 result = (bool)(arg1)->EndSymbolBullet();
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 {
9710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9711 }
9712 return resultobj;
9713 fail:
9714 return NULL;
9715 }
9716
9717
9718 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj = 0;
9720 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9721 wxString *arg2 = 0 ;
9722 bool result;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 bool temp2 = false ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 char * kwnames[] = {
9729 (char *) "self",(char *) "characterStyle", NULL
9730 };
9731
9732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginCharacterStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9734 if (!SWIG_IsOK(res1)) {
9735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9736 }
9737 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9738 {
9739 arg2 = wxString_in_helper(obj1);
9740 if (arg2 == NULL) SWIG_fail;
9741 temp2 = true;
9742 }
9743 {
9744 PyThreadState* __tstate = wxPyBeginAllowThreads();
9745 result = (bool)(arg1)->BeginCharacterStyle((wxString const &)*arg2);
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 {
9750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9751 }
9752 {
9753 if (temp2)
9754 delete arg2;
9755 }
9756 return resultobj;
9757 fail:
9758 {
9759 if (temp2)
9760 delete arg2;
9761 }
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndCharacterStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9767 PyObject *resultobj = 0;
9768 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9769 bool result;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 PyObject *swig_obj[1] ;
9773
9774 if (!args) SWIG_fail;
9775 swig_obj[0] = args;
9776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9777 if (!SWIG_IsOK(res1)) {
9778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndCharacterStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9779 }
9780 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (bool)(arg1)->EndCharacterStyle();
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9789 }
9790 return resultobj;
9791 fail:
9792 return NULL;
9793 }
9794
9795
9796 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj = 0;
9798 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9799 wxString *arg2 = 0 ;
9800 bool result;
9801 void *argp1 = 0 ;
9802 int res1 = 0 ;
9803 bool temp2 = false ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 char * kwnames[] = {
9807 (char *) "self",(char *) "paragraphStyle", NULL
9808 };
9809
9810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginParagraphStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9814 }
9815 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9816 {
9817 arg2 = wxString_in_helper(obj1);
9818 if (arg2 == NULL) SWIG_fail;
9819 temp2 = true;
9820 }
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 result = (bool)(arg1)->BeginParagraphStyle((wxString const &)*arg2);
9824 wxPyEndAllowThreads(__tstate);
9825 if (PyErr_Occurred()) SWIG_fail;
9826 }
9827 {
9828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9829 }
9830 {
9831 if (temp2)
9832 delete arg2;
9833 }
9834 return resultobj;
9835 fail:
9836 {
9837 if (temp2)
9838 delete arg2;
9839 }
9840 return NULL;
9841 }
9842
9843
9844 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndParagraphStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9845 PyObject *resultobj = 0;
9846 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9847 bool result;
9848 void *argp1 = 0 ;
9849 int res1 = 0 ;
9850 PyObject *swig_obj[1] ;
9851
9852 if (!args) SWIG_fail;
9853 swig_obj[0] = args;
9854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9855 if (!SWIG_IsOK(res1)) {
9856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndParagraphStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9857 }
9858 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 result = (bool)(arg1)->EndParagraphStyle();
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 {
9866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9867 }
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9875 PyObject *resultobj = 0;
9876 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9877 bool result;
9878 void *argp1 = 0 ;
9879 int res1 = 0 ;
9880 PyObject *swig_obj[1] ;
9881
9882 if (!args) SWIG_fail;
9883 swig_obj[0] = args;
9884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetDefaultStyleToCursorStyle" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9887 }
9888 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 result = (bool)(arg1)->SetDefaultStyleToCursorStyle();
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 {
9896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9897 }
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectNone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9905 PyObject *resultobj = 0;
9906 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9907 void *argp1 = 0 ;
9908 int res1 = 0 ;
9909 PyObject *swig_obj[1] ;
9910
9911 if (!args) SWIG_fail;
9912 swig_obj[0] = args;
9913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9914 if (!SWIG_IsOK(res1)) {
9915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectNone" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9916 }
9917 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 (arg1)->SelectNone();
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_Py_Void();
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 SWIGINTERN PyObject *_wrap_RichTextCtrl_SelectWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj = 0;
9933 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9934 long arg2 ;
9935 bool result;
9936 void *argp1 = 0 ;
9937 int res1 = 0 ;
9938 long val2 ;
9939 int ecode2 = 0 ;
9940 PyObject * obj0 = 0 ;
9941 PyObject * obj1 = 0 ;
9942 char * kwnames[] = {
9943 (char *) "self",(char *) "position", NULL
9944 };
9945
9946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SelectWord",kwnames,&obj0,&obj1)) SWIG_fail;
9947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9948 if (!SWIG_IsOK(res1)) {
9949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
9950 }
9951 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9952 ecode2 = SWIG_AsVal_long(obj1, &val2);
9953 if (!SWIG_IsOK(ecode2)) {
9954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_SelectWord" "', expected argument " "2"" of type '" "long""'");
9955 }
9956 arg2 = static_cast< long >(val2);
9957 {
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = (bool)(arg1)->SelectWord(arg2);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 {
9964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9965 }
9966 return resultobj;
9967 fail:
9968 return NULL;
9969 }
9970
9971
9972 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973 PyObject *resultobj = 0;
9974 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
9975 wxRichTextRange result;
9976 void *argp1 = 0 ;
9977 int res1 = 0 ;
9978 PyObject *swig_obj[1] ;
9979
9980 if (!args) SWIG_fail;
9981 swig_obj[0] = args;
9982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
9983 if (!SWIG_IsOK(res1)) {
9984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
9985 }
9986 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 result = ((wxRichTextCtrl const *)arg1)->GetSelectionRange();
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
9994 return resultobj;
9995 fail:
9996 return NULL;
9997 }
9998
9999
10000 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10003 wxRichTextRange *arg2 = 0 ;
10004 void *argp1 = 0 ;
10005 int res1 = 0 ;
10006 wxRichTextRange temp2 ;
10007 PyObject * obj0 = 0 ;
10008 PyObject * obj1 = 0 ;
10009 char * kwnames[] = {
10010 (char *) "self",(char *) "range", NULL
10011 };
10012
10013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
10014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10015 if (!SWIG_IsOK(res1)) {
10016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10017 }
10018 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10019 {
10020 arg2 = &temp2;
10021 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10022 }
10023 {
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 (arg1)->SetSelectionRange((wxRichTextRange const &)*arg2);
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 resultobj = SWIG_Py_Void();
10030 return resultobj;
10031 fail:
10032 return NULL;
10033 }
10034
10035
10036 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10037 PyObject *resultobj = 0;
10038 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10039 wxRichTextRange *result = 0 ;
10040 void *argp1 = 0 ;
10041 int res1 = 0 ;
10042 PyObject *swig_obj[1] ;
10043
10044 if (!args) SWIG_fail;
10045 swig_obj[0] = args;
10046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10047 if (!SWIG_IsOK(res1)) {
10048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10049 }
10050 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10051 {
10052 PyThreadState* __tstate = wxPyBeginAllowThreads();
10053 {
10054 wxRichTextRange const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetInternalSelectionRange();
10055 result = (wxRichTextRange *) &_result_ref;
10056 }
10057 wxPyEndAllowThreads(__tstate);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextRange, 0 | 0 );
10061 return resultobj;
10062 fail:
10063 return NULL;
10064 }
10065
10066
10067 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetInternalSelectionRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10068 PyObject *resultobj = 0;
10069 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10070 wxRichTextRange *arg2 = 0 ;
10071 void *argp1 = 0 ;
10072 int res1 = 0 ;
10073 wxRichTextRange temp2 ;
10074 PyObject * obj0 = 0 ;
10075 PyObject * obj1 = 0 ;
10076 char * kwnames[] = {
10077 (char *) "self",(char *) "range", NULL
10078 };
10079
10080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetInternalSelectionRange",kwnames,&obj0,&obj1)) SWIG_fail;
10081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10082 if (!SWIG_IsOK(res1)) {
10083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetInternalSelectionRange" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10084 }
10085 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10086 {
10087 arg2 = &temp2;
10088 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
10089 }
10090 {
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 (arg1)->SetInternalSelectionRange((wxRichTextRange const &)*arg2);
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 resultobj = SWIG_Py_Void();
10097 return resultobj;
10098 fail:
10099 return NULL;
10100 }
10101
10102
10103 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddParagraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10104 PyObject *resultobj = 0;
10105 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10106 wxString *arg2 = 0 ;
10107 wxRichTextRange result;
10108 void *argp1 = 0 ;
10109 int res1 = 0 ;
10110 bool temp2 = false ;
10111 PyObject * obj0 = 0 ;
10112 PyObject * obj1 = 0 ;
10113 char * kwnames[] = {
10114 (char *) "self",(char *) "text", NULL
10115 };
10116
10117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddParagraph",kwnames,&obj0,&obj1)) SWIG_fail;
10118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10119 if (!SWIG_IsOK(res1)) {
10120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddParagraph" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10121 }
10122 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10123 {
10124 arg2 = wxString_in_helper(obj1);
10125 if (arg2 == NULL) SWIG_fail;
10126 temp2 = true;
10127 }
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (arg1)->AddParagraph((wxString const &)*arg2);
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
10135 {
10136 if (temp2)
10137 delete arg2;
10138 }
10139 return resultobj;
10140 fail:
10141 {
10142 if (temp2)
10143 delete arg2;
10144 }
10145 return NULL;
10146 }
10147
10148
10149 SWIGINTERN PyObject *_wrap_RichTextCtrl_AddImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10150 PyObject *resultobj = 0;
10151 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10152 wxImage *arg2 = 0 ;
10153 wxRichTextRange result;
10154 void *argp1 = 0 ;
10155 int res1 = 0 ;
10156 void *argp2 = 0 ;
10157 int res2 = 0 ;
10158 PyObject * obj0 = 0 ;
10159 PyObject * obj1 = 0 ;
10160 char * kwnames[] = {
10161 (char *) "self",(char *) "image", NULL
10162 };
10163
10164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_AddImage",kwnames,&obj0,&obj1)) SWIG_fail;
10165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10166 if (!SWIG_IsOK(res1)) {
10167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_AddImage" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10168 }
10169 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
10171 if (!SWIG_IsOK(res2)) {
10172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
10173 }
10174 if (!argp2) {
10175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_AddImage" "', expected argument " "2"" of type '" "wxImage const &""'");
10176 }
10177 arg2 = reinterpret_cast< wxImage * >(argp2);
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 result = (arg1)->AddImage((wxImage const &)*arg2);
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 resultobj = SWIG_NewPointerObj((new wxRichTextRange(static_cast< const wxRichTextRange& >(result))), SWIGTYPE_p_wxRichTextRange, SWIG_POINTER_OWN | 0 );
10185 return resultobj;
10186 fail:
10187 return NULL;
10188 }
10189
10190
10191 SWIGINTERN PyObject *_wrap_RichTextCtrl_LayoutContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj = 0;
10193 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10194 bool arg2 = (bool) false ;
10195 bool result;
10196 void *argp1 = 0 ;
10197 int res1 = 0 ;
10198 bool val2 ;
10199 int ecode2 = 0 ;
10200 PyObject * obj0 = 0 ;
10201 PyObject * obj1 = 0 ;
10202 char * kwnames[] = {
10203 (char *) "self",(char *) "onlyVisibleRect", NULL
10204 };
10205
10206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_LayoutContent",kwnames,&obj0,&obj1)) SWIG_fail;
10207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10210 }
10211 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10212 if (obj1) {
10213 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10214 if (!SWIG_IsOK(ecode2)) {
10215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_LayoutContent" "', expected argument " "2"" of type '" "bool""'");
10216 }
10217 arg2 = static_cast< bool >(val2);
10218 }
10219 {
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 result = (bool)(arg1)->LayoutContent(arg2);
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 {
10226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10227 }
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj = 0;
10236 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10237 long arg2 ;
10238 bool arg3 = (bool) false ;
10239 bool result;
10240 void *argp1 = 0 ;
10241 int res1 = 0 ;
10242 long val2 ;
10243 int ecode2 = 0 ;
10244 bool val3 ;
10245 int ecode3 = 0 ;
10246 PyObject * obj0 = 0 ;
10247 PyObject * obj1 = 0 ;
10248 PyObject * obj2 = 0 ;
10249 char * kwnames[] = {
10250 (char *) "self",(char *) "pos",(char *) "showAtLineStart", NULL
10251 };
10252
10253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RichTextCtrl_MoveCaret",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10255 if (!SWIG_IsOK(res1)) {
10256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10257 }
10258 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10259 ecode2 = SWIG_AsVal_long(obj1, &val2);
10260 if (!SWIG_IsOK(ecode2)) {
10261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "2"" of type '" "long""'");
10262 }
10263 arg2 = static_cast< long >(val2);
10264 if (obj2) {
10265 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10266 if (!SWIG_IsOK(ecode3)) {
10267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveCaret" "', expected argument " "3"" of type '" "bool""'");
10268 }
10269 arg3 = static_cast< bool >(val3);
10270 }
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 result = (bool)(arg1)->MoveCaret(arg2,arg3);
10274 wxPyEndAllowThreads(__tstate);
10275 if (PyErr_Occurred()) SWIG_fail;
10276 }
10277 {
10278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10279 }
10280 return resultobj;
10281 fail:
10282 return NULL;
10283 }
10284
10285
10286 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10287 PyObject *resultobj = 0;
10288 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10289 int arg2 = (int) 1 ;
10290 int arg3 = (int) 0 ;
10291 bool result;
10292 void *argp1 = 0 ;
10293 int res1 = 0 ;
10294 int val2 ;
10295 int ecode2 = 0 ;
10296 int val3 ;
10297 int ecode3 = 0 ;
10298 PyObject * obj0 = 0 ;
10299 PyObject * obj1 = 0 ;
10300 PyObject * obj2 = 0 ;
10301 char * kwnames[] = {
10302 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10303 };
10304
10305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10307 if (!SWIG_IsOK(res1)) {
10308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10309 }
10310 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10311 if (obj1) {
10312 ecode2 = SWIG_AsVal_int(obj1, &val2);
10313 if (!SWIG_IsOK(ecode2)) {
10314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "2"" of type '" "int""'");
10315 }
10316 arg2 = static_cast< int >(val2);
10317 }
10318 if (obj2) {
10319 ecode3 = SWIG_AsVal_int(obj2, &val3);
10320 if (!SWIG_IsOK(ecode3)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveRight" "', expected argument " "3"" of type '" "int""'");
10322 }
10323 arg3 = static_cast< int >(val3);
10324 }
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (bool)(arg1)->MoveRight(arg2,arg3);
10328 wxPyEndAllowThreads(__tstate);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 {
10332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10333 }
10334 return resultobj;
10335 fail:
10336 return NULL;
10337 }
10338
10339
10340 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj = 0;
10342 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10343 int arg2 = (int) 1 ;
10344 int arg3 = (int) 0 ;
10345 bool result;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 int val2 ;
10349 int ecode2 = 0 ;
10350 int val3 ;
10351 int ecode3 = 0 ;
10352 PyObject * obj0 = 0 ;
10353 PyObject * obj1 = 0 ;
10354 PyObject * obj2 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "noPositions",(char *) "flags", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10363 }
10364 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10365 if (obj1) {
10366 ecode2 = SWIG_AsVal_int(obj1, &val2);
10367 if (!SWIG_IsOK(ecode2)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "2"" of type '" "int""'");
10369 }
10370 arg2 = static_cast< int >(val2);
10371 }
10372 if (obj2) {
10373 ecode3 = SWIG_AsVal_int(obj2, &val3);
10374 if (!SWIG_IsOK(ecode3)) {
10375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveLeft" "', expected argument " "3"" of type '" "int""'");
10376 }
10377 arg3 = static_cast< int >(val3);
10378 }
10379 {
10380 PyThreadState* __tstate = wxPyBeginAllowThreads();
10381 result = (bool)(arg1)->MoveLeft(arg2,arg3);
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10387 }
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj = 0;
10396 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10397 int arg2 = (int) 1 ;
10398 int arg3 = (int) 0 ;
10399 bool result;
10400 void *argp1 = 0 ;
10401 int res1 = 0 ;
10402 int val2 ;
10403 int ecode2 = 0 ;
10404 int val3 ;
10405 int ecode3 = 0 ;
10406 PyObject * obj0 = 0 ;
10407 PyObject * obj1 = 0 ;
10408 PyObject * obj2 = 0 ;
10409 char * kwnames[] = {
10410 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10411 };
10412
10413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10415 if (!SWIG_IsOK(res1)) {
10416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10417 }
10418 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10419 if (obj1) {
10420 ecode2 = SWIG_AsVal_int(obj1, &val2);
10421 if (!SWIG_IsOK(ecode2)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "2"" of type '" "int""'");
10423 }
10424 arg2 = static_cast< int >(val2);
10425 }
10426 if (obj2) {
10427 ecode3 = SWIG_AsVal_int(obj2, &val3);
10428 if (!SWIG_IsOK(ecode3)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveUp" "', expected argument " "3"" of type '" "int""'");
10430 }
10431 arg3 = static_cast< int >(val3);
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->MoveUp(arg2,arg3);
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 {
10440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10441 }
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10449 PyObject *resultobj = 0;
10450 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10451 int arg2 = (int) 1 ;
10452 int arg3 = (int) 0 ;
10453 bool result;
10454 void *argp1 = 0 ;
10455 int res1 = 0 ;
10456 int val2 ;
10457 int ecode2 = 0 ;
10458 int val3 ;
10459 int ecode3 = 0 ;
10460 PyObject * obj0 = 0 ;
10461 PyObject * obj1 = 0 ;
10462 PyObject * obj2 = 0 ;
10463 char * kwnames[] = {
10464 (char *) "self",(char *) "noLines",(char *) "flags", NULL
10465 };
10466
10467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_MoveDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10469 if (!SWIG_IsOK(res1)) {
10470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10471 }
10472 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10473 if (obj1) {
10474 ecode2 = SWIG_AsVal_int(obj1, &val2);
10475 if (!SWIG_IsOK(ecode2)) {
10476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "2"" of type '" "int""'");
10477 }
10478 arg2 = static_cast< int >(val2);
10479 }
10480 if (obj2) {
10481 ecode3 = SWIG_AsVal_int(obj2, &val3);
10482 if (!SWIG_IsOK(ecode3)) {
10483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_MoveDown" "', expected argument " "3"" of type '" "int""'");
10484 }
10485 arg3 = static_cast< int >(val3);
10486 }
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 result = (bool)(arg1)->MoveDown(arg2,arg3);
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 {
10494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10495 }
10496 return resultobj;
10497 fail:
10498 return NULL;
10499 }
10500
10501
10502 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10503 PyObject *resultobj = 0;
10504 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10505 int arg2 = (int) 0 ;
10506 bool result;
10507 void *argp1 = 0 ;
10508 int res1 = 0 ;
10509 int val2 ;
10510 int ecode2 = 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 char * kwnames[] = {
10514 (char *) "self",(char *) "flags", NULL
10515 };
10516
10517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10519 if (!SWIG_IsOK(res1)) {
10520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10521 }
10522 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10523 if (obj1) {
10524 ecode2 = SWIG_AsVal_int(obj1, &val2);
10525 if (!SWIG_IsOK(ecode2)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineEnd" "', expected argument " "2"" of type '" "int""'");
10527 }
10528 arg2 = static_cast< int >(val2);
10529 }
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (bool)(arg1)->MoveToLineEnd(arg2);
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 {
10537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10538 }
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToLineStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj = 0;
10547 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10548 int arg2 = (int) 0 ;
10549 bool result;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 int val2 ;
10553 int ecode2 = 0 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 char * kwnames[] = {
10557 (char *) "self",(char *) "flags", NULL
10558 };
10559
10560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToLineStart",kwnames,&obj0,&obj1)) SWIG_fail;
10561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10562 if (!SWIG_IsOK(res1)) {
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10564 }
10565 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10566 if (obj1) {
10567 ecode2 = SWIG_AsVal_int(obj1, &val2);
10568 if (!SWIG_IsOK(ecode2)) {
10569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToLineStart" "', expected argument " "2"" of type '" "int""'");
10570 }
10571 arg2 = static_cast< int >(val2);
10572 }
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (bool)(arg1)->MoveToLineStart(arg2);
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 {
10580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10581 }
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10591 int arg2 = (int) 0 ;
10592 bool result;
10593 void *argp1 = 0 ;
10594 int res1 = 0 ;
10595 int val2 ;
10596 int ecode2 = 0 ;
10597 PyObject * obj0 = 0 ;
10598 PyObject * obj1 = 0 ;
10599 char * kwnames[] = {
10600 (char *) "self",(char *) "flags", NULL
10601 };
10602
10603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10605 if (!SWIG_IsOK(res1)) {
10606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10607 }
10608 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10609 if (obj1) {
10610 ecode2 = SWIG_AsVal_int(obj1, &val2);
10611 if (!SWIG_IsOK(ecode2)) {
10612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphEnd" "', expected argument " "2"" of type '" "int""'");
10613 }
10614 arg2 = static_cast< int >(val2);
10615 }
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (bool)(arg1)->MoveToParagraphEnd(arg2);
10619 wxPyEndAllowThreads(__tstate);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 }
10622 {
10623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10624 }
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveToParagraphStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj = 0;
10633 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10634 int arg2 = (int) 0 ;
10635 bool result;
10636 void *argp1 = 0 ;
10637 int res1 = 0 ;
10638 int val2 ;
10639 int ecode2 = 0 ;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 char * kwnames[] = {
10643 (char *) "self",(char *) "flags", NULL
10644 };
10645
10646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveToParagraphStart",kwnames,&obj0,&obj1)) SWIG_fail;
10647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10648 if (!SWIG_IsOK(res1)) {
10649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10650 }
10651 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10652 if (obj1) {
10653 ecode2 = SWIG_AsVal_int(obj1, &val2);
10654 if (!SWIG_IsOK(ecode2)) {
10655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveToParagraphStart" "', expected argument " "2"" of type '" "int""'");
10656 }
10657 arg2 = static_cast< int >(val2);
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (bool)(arg1)->MoveToParagraphStart(arg2);
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10667 }
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveHome(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj = 0;
10676 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10677 int arg2 = (int) 0 ;
10678 bool result;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 int val2 ;
10682 int ecode2 = 0 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 char * kwnames[] = {
10686 (char *) "self",(char *) "flags", NULL
10687 };
10688
10689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveHome",kwnames,&obj0,&obj1)) SWIG_fail;
10690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10691 if (!SWIG_IsOK(res1)) {
10692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10693 }
10694 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10695 if (obj1) {
10696 ecode2 = SWIG_AsVal_int(obj1, &val2);
10697 if (!SWIG_IsOK(ecode2)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveHome" "', expected argument " "2"" of type '" "int""'");
10699 }
10700 arg2 = static_cast< int >(val2);
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 result = (bool)(arg1)->MoveHome(arg2);
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 {
10709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10710 }
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 SWIGINTERN PyObject *_wrap_RichTextCtrl_MoveEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj = 0;
10719 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10720 int arg2 = (int) 0 ;
10721 bool result;
10722 void *argp1 = 0 ;
10723 int res1 = 0 ;
10724 int val2 ;
10725 int ecode2 = 0 ;
10726 PyObject * obj0 = 0 ;
10727 PyObject * obj1 = 0 ;
10728 char * kwnames[] = {
10729 (char *) "self",(char *) "flags", NULL
10730 };
10731
10732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_MoveEnd",kwnames,&obj0,&obj1)) SWIG_fail;
10733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10734 if (!SWIG_IsOK(res1)) {
10735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10736 }
10737 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10738 if (obj1) {
10739 ecode2 = SWIG_AsVal_int(obj1, &val2);
10740 if (!SWIG_IsOK(ecode2)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_MoveEnd" "', expected argument " "2"" of type '" "int""'");
10742 }
10743 arg2 = static_cast< int >(val2);
10744 }
10745 {
10746 PyThreadState* __tstate = wxPyBeginAllowThreads();
10747 result = (bool)(arg1)->MoveEnd(arg2);
10748 wxPyEndAllowThreads(__tstate);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 }
10751 {
10752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10753 }
10754 return resultobj;
10755 fail:
10756 return NULL;
10757 }
10758
10759
10760 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj = 0;
10762 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10763 int arg2 = (int) 1 ;
10764 int arg3 = (int) 0 ;
10765 bool result;
10766 void *argp1 = 0 ;
10767 int res1 = 0 ;
10768 int val2 ;
10769 int ecode2 = 0 ;
10770 int val3 ;
10771 int ecode3 = 0 ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774 PyObject * obj2 = 0 ;
10775 char * kwnames[] = {
10776 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10777 };
10778
10779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageUp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageUp" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10785 if (obj1) {
10786 ecode2 = SWIG_AsVal_int(obj1, &val2);
10787 if (!SWIG_IsOK(ecode2)) {
10788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageUp" "', expected argument " "2"" of type '" "int""'");
10789 }
10790 arg2 = static_cast< int >(val2);
10791 }
10792 if (obj2) {
10793 ecode3 = SWIG_AsVal_int(obj2, &val3);
10794 if (!SWIG_IsOK(ecode3)) {
10795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageUp" "', expected argument " "3"" of type '" "int""'");
10796 }
10797 arg3 = static_cast< int >(val3);
10798 }
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 result = (bool)(arg1)->PageUp(arg2,arg3);
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 {
10806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10807 }
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_RichTextCtrl_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = 0;
10816 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10817 int arg2 = (int) 1 ;
10818 int arg3 = (int) 0 ;
10819 bool result;
10820 void *argp1 = 0 ;
10821 int res1 = 0 ;
10822 int val2 ;
10823 int ecode2 = 0 ;
10824 int val3 ;
10825 int ecode3 = 0 ;
10826 PyObject * obj0 = 0 ;
10827 PyObject * obj1 = 0 ;
10828 PyObject * obj2 = 0 ;
10829 char * kwnames[] = {
10830 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10831 };
10832
10833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_PageDown",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_PageDown" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10837 }
10838 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10839 if (obj1) {
10840 ecode2 = SWIG_AsVal_int(obj1, &val2);
10841 if (!SWIG_IsOK(ecode2)) {
10842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_PageDown" "', expected argument " "2"" of type '" "int""'");
10843 }
10844 arg2 = static_cast< int >(val2);
10845 }
10846 if (obj2) {
10847 ecode3 = SWIG_AsVal_int(obj2, &val3);
10848 if (!SWIG_IsOK(ecode3)) {
10849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_PageDown" "', expected argument " "3"" of type '" "int""'");
10850 }
10851 arg3 = static_cast< int >(val3);
10852 }
10853 {
10854 PyThreadState* __tstate = wxPyBeginAllowThreads();
10855 result = (bool)(arg1)->PageDown(arg2,arg3);
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
10859 {
10860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10861 }
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj = 0;
10870 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10871 int arg2 = (int) 1 ;
10872 int arg3 = (int) 0 ;
10873 bool result;
10874 void *argp1 = 0 ;
10875 int res1 = 0 ;
10876 int val2 ;
10877 int ecode2 = 0 ;
10878 int val3 ;
10879 int ecode3 = 0 ;
10880 PyObject * obj0 = 0 ;
10881 PyObject * obj1 = 0 ;
10882 PyObject * obj2 = 0 ;
10883 char * kwnames[] = {
10884 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10885 };
10886
10887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordLeft",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10891 }
10892 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10893 if (obj1) {
10894 ecode2 = SWIG_AsVal_int(obj1, &val2);
10895 if (!SWIG_IsOK(ecode2)) {
10896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "2"" of type '" "int""'");
10897 }
10898 arg2 = static_cast< int >(val2);
10899 }
10900 if (obj2) {
10901 ecode3 = SWIG_AsVal_int(obj2, &val3);
10902 if (!SWIG_IsOK(ecode3)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordLeft" "', expected argument " "3"" of type '" "int""'");
10904 }
10905 arg3 = static_cast< int >(val3);
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)(arg1)->WordLeft(arg2,arg3);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 return resultobj;
10917 fail:
10918 return NULL;
10919 }
10920
10921
10922 SWIGINTERN PyObject *_wrap_RichTextCtrl_WordRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10923 PyObject *resultobj = 0;
10924 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10925 int arg2 = (int) 1 ;
10926 int arg3 = (int) 0 ;
10927 bool result;
10928 void *argp1 = 0 ;
10929 int res1 = 0 ;
10930 int val2 ;
10931 int ecode2 = 0 ;
10932 int val3 ;
10933 int ecode3 = 0 ;
10934 PyObject * obj0 = 0 ;
10935 PyObject * obj1 = 0 ;
10936 PyObject * obj2 = 0 ;
10937 char * kwnames[] = {
10938 (char *) "self",(char *) "noPages",(char *) "flags", NULL
10939 };
10940
10941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:RichTextCtrl_WordRight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10943 if (!SWIG_IsOK(res1)) {
10944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_WordRight" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
10945 }
10946 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10947 if (obj1) {
10948 ecode2 = SWIG_AsVal_int(obj1, &val2);
10949 if (!SWIG_IsOK(ecode2)) {
10950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_WordRight" "', expected argument " "2"" of type '" "int""'");
10951 }
10952 arg2 = static_cast< int >(val2);
10953 }
10954 if (obj2) {
10955 ecode3 = SWIG_AsVal_int(obj2, &val3);
10956 if (!SWIG_IsOK(ecode3)) {
10957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RichTextCtrl_WordRight" "', expected argument " "3"" of type '" "int""'");
10958 }
10959 arg3 = static_cast< int >(val3);
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 result = (bool)(arg1)->WordRight(arg2,arg3);
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 {
10968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10969 }
10970 return resultobj;
10971 fail:
10972 return NULL;
10973 }
10974
10975
10976 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10977 PyObject *resultobj = 0;
10978 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
10979 wxRichTextBuffer *result = 0 ;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 PyObject *swig_obj[1] ;
10983
10984 if (!args) SWIG_fail;
10985 swig_obj[0] = args;
10986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
10987 if (!SWIG_IsOK(res1)) {
10988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetBuffer" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
10989 }
10990 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 {
10994 wxRichTextBuffer const &_result_ref = ((wxRichTextCtrl const *)arg1)->GetBuffer();
10995 result = (wxRichTextBuffer *) &_result_ref;
10996 }
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextBuffer, 0 | 0 );
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj = 0;
11009 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11010 wxString *arg2 = 0 ;
11011 bool result;
11012 void *argp1 = 0 ;
11013 int res1 = 0 ;
11014 bool temp2 = false ;
11015 PyObject * obj0 = 0 ;
11016 PyObject * obj1 = 0 ;
11017 char * kwnames[] = {
11018 (char *) "self",(char *) "cmdName", NULL
11019 };
11020
11021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_BeginBatchUndo",kwnames,&obj0,&obj1)) SWIG_fail;
11022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11023 if (!SWIG_IsOK(res1)) {
11024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11025 }
11026 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11027 {
11028 arg2 = wxString_in_helper(obj1);
11029 if (arg2 == NULL) SWIG_fail;
11030 temp2 = true;
11031 }
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (bool)(arg1)->BeginBatchUndo((wxString const &)*arg2);
11035 wxPyEndAllowThreads(__tstate);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 {
11039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11040 }
11041 {
11042 if (temp2)
11043 delete arg2;
11044 }
11045 return resultobj;
11046 fail:
11047 {
11048 if (temp2)
11049 delete arg2;
11050 }
11051 return NULL;
11052 }
11053
11054
11055 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndBatchUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11056 PyObject *resultobj = 0;
11057 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11058 bool result;
11059 void *argp1 = 0 ;
11060 int res1 = 0 ;
11061 PyObject *swig_obj[1] ;
11062
11063 if (!args) SWIG_fail;
11064 swig_obj[0] = args;
11065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11066 if (!SWIG_IsOK(res1)) {
11067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndBatchUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11068 }
11069 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = (bool)(arg1)->EndBatchUndo();
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 {
11077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11078 }
11079 return resultobj;
11080 fail:
11081 return NULL;
11082 }
11083
11084
11085 SWIGINTERN PyObject *_wrap_RichTextCtrl_BatchingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11086 PyObject *resultobj = 0;
11087 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11088 bool result;
11089 void *argp1 = 0 ;
11090 int res1 = 0 ;
11091 PyObject *swig_obj[1] ;
11092
11093 if (!args) SWIG_fail;
11094 swig_obj[0] = args;
11095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11096 if (!SWIG_IsOK(res1)) {
11097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BatchingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11098 }
11099 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)((wxRichTextCtrl const *)arg1)->BatchingUndo();
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 {
11107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11108 }
11109 return resultobj;
11110 fail:
11111 return NULL;
11112 }
11113
11114
11115 SWIGINTERN PyObject *_wrap_RichTextCtrl_BeginSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11116 PyObject *resultobj = 0;
11117 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11118 bool result;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 PyObject *swig_obj[1] ;
11122
11123 if (!args) SWIG_fail;
11124 swig_obj[0] = args;
11125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_BeginSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11128 }
11129 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 result = (bool)(arg1)->BeginSuppressUndo();
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 {
11137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11138 }
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 SWIGINTERN PyObject *_wrap_RichTextCtrl_EndSuppressUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11146 PyObject *resultobj = 0;
11147 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11148 bool result;
11149 void *argp1 = 0 ;
11150 int res1 = 0 ;
11151 PyObject *swig_obj[1] ;
11152
11153 if (!args) SWIG_fail;
11154 swig_obj[0] = args;
11155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11156 if (!SWIG_IsOK(res1)) {
11157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_EndSuppressUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11158 }
11159 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 result = (bool)(arg1)->EndSuppressUndo();
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 {
11167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11168 }
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 SWIGINTERN PyObject *_wrap_RichTextCtrl_SuppressingUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11176 PyObject *resultobj = 0;
11177 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11178 bool result;
11179 void *argp1 = 0 ;
11180 int res1 = 0 ;
11181 PyObject *swig_obj[1] ;
11182
11183 if (!args) SWIG_fail;
11184 swig_obj[0] = args;
11185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SuppressingUndo" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11188 }
11189 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 result = (bool)((wxRichTextCtrl const *)arg1)->SuppressingUndo();
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 {
11197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11198 }
11199 return resultobj;
11200 fail:
11201 return NULL;
11202 }
11203
11204
11205 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasCharacterAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11206 PyObject *resultobj = 0;
11207 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11208 wxRichTextRange *arg2 = 0 ;
11209 wxRichTextAttr *arg3 = 0 ;
11210 bool result;
11211 void *argp1 = 0 ;
11212 int res1 = 0 ;
11213 wxRichTextRange temp2 ;
11214 void *argp3 = 0 ;
11215 int res3 = 0 ;
11216 PyObject * obj0 = 0 ;
11217 PyObject * obj1 = 0 ;
11218 PyObject * obj2 = 0 ;
11219 char * kwnames[] = {
11220 (char *) "self",(char *) "range",(char *) "style", NULL
11221 };
11222
11223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasCharacterAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11225 if (!SWIG_IsOK(res1)) {
11226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11227 }
11228 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11229 {
11230 arg2 = &temp2;
11231 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
11232 }
11233 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
11234 if (!SWIG_IsOK(res3)) {
11235 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11236 }
11237 if (!argp3) {
11238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasCharacterAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11239 }
11240 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 result = (bool)((wxRichTextCtrl const *)arg1)->HasCharacterAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 {
11248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11249 }
11250 return resultobj;
11251 fail:
11252 return NULL;
11253 }
11254
11255
11256 SWIGINTERN PyObject *_wrap_RichTextCtrl_HasParagraphAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj = 0;
11258 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11259 wxRichTextRange *arg2 = 0 ;
11260 wxRichTextAttr *arg3 = 0 ;
11261 bool result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 wxRichTextRange temp2 ;
11265 void *argp3 = 0 ;
11266 int res3 = 0 ;
11267 PyObject * obj0 = 0 ;
11268 PyObject * obj1 = 0 ;
11269 PyObject * obj2 = 0 ;
11270 char * kwnames[] = {
11271 (char *) "self",(char *) "range",(char *) "style", NULL
11272 };
11273
11274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RichTextCtrl_HasParagraphAttributes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11276 if (!SWIG_IsOK(res1)) {
11277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11278 }
11279 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11280 {
11281 arg2 = &temp2;
11282 if ( ! wxRichTextRange_helper(obj1, &arg2)) SWIG_fail;
11283 }
11284 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRichTextAttr, 0 | 0);
11285 if (!SWIG_IsOK(res3)) {
11286 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11287 }
11288 if (!argp3) {
11289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RichTextCtrl_HasParagraphAttributes" "', expected argument " "3"" of type '" "wxRichTextAttr const &""'");
11290 }
11291 arg3 = reinterpret_cast< wxRichTextAttr * >(argp3);
11292 {
11293 PyThreadState* __tstate = wxPyBeginAllowThreads();
11294 result = (bool)((wxRichTextCtrl const *)arg1)->HasParagraphAttributes((wxRichTextRange const &)*arg2,(wxRichTextAttr const &)*arg3);
11295 wxPyEndAllowThreads(__tstate);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 {
11299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11300 }
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11308 PyObject *resultobj = 0;
11309 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11310 bool result;
11311 void *argp1 = 0 ;
11312 int res1 = 0 ;
11313 PyObject *swig_obj[1] ;
11314
11315 if (!args) SWIG_fail;
11316 swig_obj[0] = args;
11317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11318 if (!SWIG_IsOK(res1)) {
11319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionBold" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11320 }
11321 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (bool)(arg1)->IsSelectionBold();
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 {
11329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11330 }
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionItalics(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11338 PyObject *resultobj = 0;
11339 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11340 bool result;
11341 void *argp1 = 0 ;
11342 int res1 = 0 ;
11343 PyObject *swig_obj[1] ;
11344
11345 if (!args) SWIG_fail;
11346 swig_obj[0] = args;
11347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11348 if (!SWIG_IsOK(res1)) {
11349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionItalics" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11350 }
11351 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11352 {
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 result = (bool)(arg1)->IsSelectionItalics();
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 {
11359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11360 }
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11368 PyObject *resultobj = 0;
11369 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11370 bool result;
11371 void *argp1 = 0 ;
11372 int res1 = 0 ;
11373 PyObject *swig_obj[1] ;
11374
11375 if (!args) SWIG_fail;
11376 swig_obj[0] = args;
11377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11378 if (!SWIG_IsOK(res1)) {
11379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionUnderlined" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11380 }
11381 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 result = (bool)(arg1)->IsSelectionUnderlined();
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 {
11389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11390 }
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_RichTextCtrl_IsSelectionAligned(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11398 PyObject *resultobj = 0;
11399 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11400 wxTextAttrAlignment arg2 ;
11401 bool result;
11402 void *argp1 = 0 ;
11403 int res1 = 0 ;
11404 int val2 ;
11405 int ecode2 = 0 ;
11406 PyObject * obj0 = 0 ;
11407 PyObject * obj1 = 0 ;
11408 char * kwnames[] = {
11409 (char *) "self",(char *) "alignment", NULL
11410 };
11411
11412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_IsSelectionAligned",kwnames,&obj0,&obj1)) SWIG_fail;
11413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11414 if (!SWIG_IsOK(res1)) {
11415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11416 }
11417 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11418 ecode2 = SWIG_AsVal_int(obj1, &val2);
11419 if (!SWIG_IsOK(ecode2)) {
11420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_IsSelectionAligned" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11421 }
11422 arg2 = static_cast< wxTextAttrAlignment >(val2);
11423 {
11424 PyThreadState* __tstate = wxPyBeginAllowThreads();
11425 result = (bool)(arg1)->IsSelectionAligned(arg2);
11426 wxPyEndAllowThreads(__tstate);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 }
11429 {
11430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11431 }
11432 return resultobj;
11433 fail:
11434 return NULL;
11435 }
11436
11437
11438 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyBoldToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11439 PyObject *resultobj = 0;
11440 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11441 bool result;
11442 void *argp1 = 0 ;
11443 int res1 = 0 ;
11444 PyObject *swig_obj[1] ;
11445
11446 if (!args) SWIG_fail;
11447 swig_obj[0] = args;
11448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11449 if (!SWIG_IsOK(res1)) {
11450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyBoldToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11451 }
11452 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (bool)(arg1)->ApplyBoldToSelection();
11456 wxPyEndAllowThreads(__tstate);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 {
11460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11461 }
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyItalicToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11469 PyObject *resultobj = 0;
11470 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11471 bool result;
11472 void *argp1 = 0 ;
11473 int res1 = 0 ;
11474 PyObject *swig_obj[1] ;
11475
11476 if (!args) SWIG_fail;
11477 swig_obj[0] = args;
11478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11479 if (!SWIG_IsOK(res1)) {
11480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyItalicToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11481 }
11482 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11483 {
11484 PyThreadState* __tstate = wxPyBeginAllowThreads();
11485 result = (bool)(arg1)->ApplyItalicToSelection();
11486 wxPyEndAllowThreads(__tstate);
11487 if (PyErr_Occurred()) SWIG_fail;
11488 }
11489 {
11490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11491 }
11492 return resultobj;
11493 fail:
11494 return NULL;
11495 }
11496
11497
11498 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyUnderlineToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11499 PyObject *resultobj = 0;
11500 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11501 bool result;
11502 void *argp1 = 0 ;
11503 int res1 = 0 ;
11504 PyObject *swig_obj[1] ;
11505
11506 if (!args) SWIG_fail;
11507 swig_obj[0] = args;
11508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyUnderlineToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11511 }
11512 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (bool)(arg1)->ApplyUnderlineToSelection();
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11521 }
11522 return resultobj;
11523 fail:
11524 return NULL;
11525 }
11526
11527
11528 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyAlignmentToSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11529 PyObject *resultobj = 0;
11530 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11531 wxTextAttrAlignment arg2 ;
11532 bool result;
11533 void *argp1 = 0 ;
11534 int res1 = 0 ;
11535 int val2 ;
11536 int ecode2 = 0 ;
11537 PyObject * obj0 = 0 ;
11538 PyObject * obj1 = 0 ;
11539 char * kwnames[] = {
11540 (char *) "self",(char *) "alignment", NULL
11541 };
11542
11543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_ApplyAlignmentToSelection",kwnames,&obj0,&obj1)) SWIG_fail;
11544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11545 if (!SWIG_IsOK(res1)) {
11546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11547 }
11548 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11549 ecode2 = SWIG_AsVal_int(obj1, &val2);
11550 if (!SWIG_IsOK(ecode2)) {
11551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextCtrl_ApplyAlignmentToSelection" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
11552 }
11553 arg2 = static_cast< wxTextAttrAlignment >(val2);
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 result = (bool)(arg1)->ApplyAlignmentToSelection(arg2);
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 {
11561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11562 }
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 SWIGINTERN PyObject *_wrap_RichTextCtrl_SetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj = 0;
11571 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11572 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) 0 ;
11573 void *argp1 = 0 ;
11574 int res1 = 0 ;
11575 void *argp2 = 0 ;
11576 int res2 = 0 ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 char * kwnames[] = {
11580 (char *) "self",(char *) "styleSheet", NULL
11581 };
11582
11583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextCtrl_SetStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11585 if (!SWIG_IsOK(res1)) {
11586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11587 }
11588 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11590 if (!SWIG_IsOK(res2)) {
11591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_SetStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11592 }
11593 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 (arg1)->SetStyleSheet(arg2);
11597 wxPyEndAllowThreads(__tstate);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 resultobj = SWIG_Py_Void();
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 SWIGINTERN PyObject *_wrap_RichTextCtrl_GetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11608 PyObject *resultobj = 0;
11609 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11610 wxRichTextStyleSheet *result = 0 ;
11611 void *argp1 = 0 ;
11612 int res1 = 0 ;
11613 PyObject *swig_obj[1] ;
11614
11615 if (!args) SWIG_fail;
11616 swig_obj[0] = args;
11617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_GetStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl const *""'");
11620 }
11621 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 result = (wxRichTextStyleSheet *)((wxRichTextCtrl const *)arg1)->GetStyleSheet();
11625 wxPyEndAllowThreads(__tstate);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11629 return resultobj;
11630 fail:
11631 return NULL;
11632 }
11633
11634
11635 SWIGINTERN PyObject *_wrap_RichTextCtrl_ApplyStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11636 PyObject *resultobj = 0;
11637 wxRichTextCtrl *arg1 = (wxRichTextCtrl *) 0 ;
11638 wxRichTextStyleSheet *arg2 = (wxRichTextStyleSheet *) NULL ;
11639 bool result;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 void *argp2 = 0 ;
11643 int res2 = 0 ;
11644 PyObject * obj0 = 0 ;
11645 PyObject * obj1 = 0 ;
11646 char * kwnames[] = {
11647 (char *) "self",(char *) "styleSheet", NULL
11648 };
11649
11650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:RichTextCtrl_ApplyStyleSheet",kwnames,&obj0,&obj1)) SWIG_fail;
11651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextCtrl, 0 | 0 );
11652 if (!SWIG_IsOK(res1)) {
11653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "1"" of type '" "wxRichTextCtrl *""'");
11654 }
11655 arg1 = reinterpret_cast< wxRichTextCtrl * >(argp1);
11656 if (obj1) {
11657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRichTextStyleSheet, 0 | 0 );
11658 if (!SWIG_IsOK(res2)) {
11659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RichTextCtrl_ApplyStyleSheet" "', expected argument " "2"" of type '" "wxRichTextStyleSheet *""'");
11660 }
11661 arg2 = reinterpret_cast< wxRichTextStyleSheet * >(argp2);
11662 }
11663 {
11664 PyThreadState* __tstate = wxPyBeginAllowThreads();
11665 result = (bool)(arg1)->ApplyStyleSheet(arg2);
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 {
11670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11671 }
11672 return resultobj;
11673 fail:
11674 return NULL;
11675 }
11676
11677
11678 SWIGINTERN PyObject *RichTextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 PyObject *obj;
11680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11681 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextCtrl, SWIG_NewClientData(obj));
11682 return SWIG_Py_Void();
11683 }
11684
11685 SWIGINTERN PyObject *RichTextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11686 return SWIG_Python_InitShadowInstance(args);
11687 }
11688
11689 SWIGINTERN PyObject *_wrap_new_RichTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj = 0;
11691 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11692 int arg2 = (int) 0 ;
11693 wxRichTextEvent *result = 0 ;
11694 int val1 ;
11695 int ecode1 = 0 ;
11696 int val2 ;
11697 int ecode2 = 0 ;
11698 PyObject * obj0 = 0 ;
11699 PyObject * obj1 = 0 ;
11700 char * kwnames[] = {
11701 (char *) "commandType",(char *) "winid", NULL
11702 };
11703
11704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RichTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
11705 if (obj0) {
11706 ecode1 = SWIG_AsVal_int(obj0, &val1);
11707 if (!SWIG_IsOK(ecode1)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RichTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
11709 }
11710 arg1 = static_cast< wxEventType >(val1);
11711 }
11712 if (obj1) {
11713 ecode2 = SWIG_AsVal_int(obj1, &val2);
11714 if (!SWIG_IsOK(ecode2)) {
11715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RichTextEvent" "', expected argument " "2"" of type '" "int""'");
11716 }
11717 arg2 = static_cast< int >(val2);
11718 }
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 result = (wxRichTextEvent *)new wxRichTextEvent(arg1,arg2);
11722 wxPyEndAllowThreads(__tstate);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 }
11725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRichTextEvent, SWIG_POINTER_NEW | 0 );
11726 return resultobj;
11727 fail:
11728 return NULL;
11729 }
11730
11731
11732 SWIGINTERN PyObject *_wrap_RichTextEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11733 PyObject *resultobj = 0;
11734 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11735 int result;
11736 void *argp1 = 0 ;
11737 int res1 = 0 ;
11738 PyObject *swig_obj[1] ;
11739
11740 if (!args) SWIG_fail;
11741 swig_obj[0] = args;
11742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11743 if (!SWIG_IsOK(res1)) {
11744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11745 }
11746 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 result = (int)((wxRichTextEvent const *)arg1)->GetIndex();
11750 wxPyEndAllowThreads(__tstate);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 }
11753 resultobj = SWIG_From_int(static_cast< int >(result));
11754 return resultobj;
11755 fail:
11756 return NULL;
11757 }
11758
11759
11760 SWIGINTERN PyObject *_wrap_RichTextEvent_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11761 PyObject *resultobj = 0;
11762 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11763 int arg2 ;
11764 void *argp1 = 0 ;
11765 int res1 = 0 ;
11766 int val2 ;
11767 int ecode2 = 0 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 char * kwnames[] = {
11771 (char *) "self",(char *) "n", NULL
11772 };
11773
11774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
11775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetIndex" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11778 }
11779 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11780 ecode2 = SWIG_AsVal_int(obj1, &val2);
11781 if (!SWIG_IsOK(ecode2)) {
11782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetIndex" "', expected argument " "2"" of type '" "int""'");
11783 }
11784 arg2 = static_cast< int >(val2);
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 (arg1)->SetIndex(arg2);
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_Py_Void();
11792 return resultobj;
11793 fail:
11794 return NULL;
11795 }
11796
11797
11798 SWIGINTERN PyObject *_wrap_RichTextEvent_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11799 PyObject *resultobj = 0;
11800 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11801 int result;
11802 void *argp1 = 0 ;
11803 int res1 = 0 ;
11804 PyObject *swig_obj[1] ;
11805
11806 if (!args) SWIG_fail;
11807 swig_obj[0] = args;
11808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11809 if (!SWIG_IsOK(res1)) {
11810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_GetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent const *""'");
11811 }
11812 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 result = (int)((wxRichTextEvent const *)arg1)->GetFlags();
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 resultobj = SWIG_From_int(static_cast< int >(result));
11820 return resultobj;
11821 fail:
11822 return NULL;
11823 }
11824
11825
11826 SWIGINTERN PyObject *_wrap_RichTextEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj = 0;
11828 wxRichTextEvent *arg1 = (wxRichTextEvent *) 0 ;
11829 int arg2 ;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 int val2 ;
11833 int ecode2 = 0 ;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj1 = 0 ;
11836 char * kwnames[] = {
11837 (char *) "self",(char *) "flags", NULL
11838 };
11839
11840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RichTextEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRichTextEvent, 0 | 0 );
11842 if (!SWIG_IsOK(res1)) {
11843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RichTextEvent_SetFlags" "', expected argument " "1"" of type '" "wxRichTextEvent *""'");
11844 }
11845 arg1 = reinterpret_cast< wxRichTextEvent * >(argp1);
11846 ecode2 = SWIG_AsVal_int(obj1, &val2);
11847 if (!SWIG_IsOK(ecode2)) {
11848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RichTextEvent_SetFlags" "', expected argument " "2"" of type '" "int""'");
11849 }
11850 arg2 = static_cast< int >(val2);
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 (arg1)->SetFlags(arg2);
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_Py_Void();
11858 return resultobj;
11859 fail:
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *RichTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11865 PyObject *obj;
11866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11867 SWIG_TypeNewClientData(SWIGTYPE_p_wxRichTextEvent, SWIG_NewClientData(obj));
11868 return SWIG_Py_Void();
11869 }
11870
11871 SWIGINTERN PyObject *RichTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11872 return SWIG_Python_InitShadowInstance(args);
11873 }
11874
11875 static PyMethodDef SwigMethods[] = {
11876 { (char *)"new_RichTextRange", (PyCFunction) _wrap_new_RichTextRange, METH_VARARGS | METH_KEYWORDS, NULL},
11877 { (char *)"delete_RichTextRange", (PyCFunction)_wrap_delete_RichTextRange, METH_O, NULL},
11878 { (char *)"RichTextRange___eq__", (PyCFunction) _wrap_RichTextRange___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
11879 { (char *)"RichTextRange___sub__", (PyCFunction) _wrap_RichTextRange___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
11880 { (char *)"RichTextRange___add__", (PyCFunction) _wrap_RichTextRange___add__, METH_VARARGS | METH_KEYWORDS, NULL},
11881 { (char *)"RichTextRange_SetRange", (PyCFunction) _wrap_RichTextRange_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11882 { (char *)"RichTextRange_SetStart", (PyCFunction) _wrap_RichTextRange_SetStart, METH_VARARGS | METH_KEYWORDS, NULL},
11883 { (char *)"RichTextRange_GetStart", (PyCFunction)_wrap_RichTextRange_GetStart, METH_O, NULL},
11884 { (char *)"RichTextRange_SetEnd", (PyCFunction) _wrap_RichTextRange_SetEnd, METH_VARARGS | METH_KEYWORDS, NULL},
11885 { (char *)"RichTextRange_GetEnd", (PyCFunction)_wrap_RichTextRange_GetEnd, METH_O, NULL},
11886 { (char *)"RichTextRange_IsOutside", (PyCFunction) _wrap_RichTextRange_IsOutside, METH_VARARGS | METH_KEYWORDS, NULL},
11887 { (char *)"RichTextRange_IsWithin", (PyCFunction) _wrap_RichTextRange_IsWithin, METH_VARARGS | METH_KEYWORDS, NULL},
11888 { (char *)"RichTextRange_Contains", (PyCFunction) _wrap_RichTextRange_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
11889 { (char *)"RichTextRange_LimitTo", (PyCFunction) _wrap_RichTextRange_LimitTo, METH_VARARGS | METH_KEYWORDS, NULL},
11890 { (char *)"RichTextRange_GetLength", (PyCFunction)_wrap_RichTextRange_GetLength, METH_O, NULL},
11891 { (char *)"RichTextRange_Swap", (PyCFunction)_wrap_RichTextRange_Swap, METH_O, NULL},
11892 { (char *)"RichTextRange_Get", (PyCFunction)_wrap_RichTextRange_Get, METH_O, NULL},
11893 { (char *)"RichTextRange_swigregister", RichTextRange_swigregister, METH_VARARGS, NULL},
11894 { (char *)"RichTextRange_swiginit", RichTextRange_swiginit, METH_VARARGS, NULL},
11895 { (char *)"new_RichTextAttr", (PyCFunction) _wrap_new_RichTextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
11896 { (char *)"delete_RichTextAttr", (PyCFunction)_wrap_delete_RichTextAttr, METH_O, NULL},
11897 { (char *)"RichTextAttr_CreateFont", (PyCFunction)_wrap_RichTextAttr_CreateFont, METH_O, NULL},
11898 { (char *)"RichTextAttr_GetFontAttributes", (PyCFunction) _wrap_RichTextAttr_GetFontAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
11899 { (char *)"RichTextAttr_SetTextColour", (PyCFunction) _wrap_RichTextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
11900 { (char *)"RichTextAttr_SetBackgroundColour", (PyCFunction) _wrap_RichTextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
11901 { (char *)"RichTextAttr_SetAlignment", (PyCFunction) _wrap_RichTextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
11902 { (char *)"RichTextAttr_SetTabs", (PyCFunction) _wrap_RichTextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
11903 { (char *)"RichTextAttr_SetLeftIndent", (PyCFunction) _wrap_RichTextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11904 { (char *)"RichTextAttr_SetRightIndent", (PyCFunction) _wrap_RichTextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
11905 { (char *)"RichTextAttr_SetFontSize", (PyCFunction) _wrap_RichTextAttr_SetFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
11906 { (char *)"RichTextAttr_SetFontStyle", (PyCFunction) _wrap_RichTextAttr_SetFontStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11907 { (char *)"RichTextAttr_SetFontWeight", (PyCFunction) _wrap_RichTextAttr_SetFontWeight, METH_VARARGS | METH_KEYWORDS, NULL},
11908 { (char *)"RichTextAttr_SetFontFaceName", (PyCFunction) _wrap_RichTextAttr_SetFontFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
11909 { (char *)"RichTextAttr_SetFontUnderlined", (PyCFunction) _wrap_RichTextAttr_SetFontUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
11910 { (char *)"RichTextAttr_SetFlags", (PyCFunction) _wrap_RichTextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
11911 { (char *)"RichTextAttr_SetCharacterStyleName", (PyCFunction) _wrap_RichTextAttr_SetCharacterStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11912 { (char *)"RichTextAttr_SetParagraphStyleName", (PyCFunction) _wrap_RichTextAttr_SetParagraphStyleName, METH_VARARGS | METH_KEYWORDS, NULL},
11913 { (char *)"RichTextAttr_SetParagraphSpacingAfter", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingAfter, METH_VARARGS | METH_KEYWORDS, NULL},
11914 { (char *)"RichTextAttr_SetParagraphSpacingBefore", (PyCFunction) _wrap_RichTextAttr_SetParagraphSpacingBefore, METH_VARARGS | METH_KEYWORDS, NULL},
11915 { (char *)"RichTextAttr_SetLineSpacing", (PyCFunction) _wrap_RichTextAttr_SetLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
11916 { (char *)"RichTextAttr_SetBulletStyle", (PyCFunction) _wrap_RichTextAttr_SetBulletStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11917 { (char *)"RichTextAttr_SetBulletNumber", (PyCFunction) _wrap_RichTextAttr_SetBulletNumber, METH_VARARGS | METH_KEYWORDS, NULL},
11918 { (char *)"RichTextAttr_SetBulletSymbol", (PyCFunction) _wrap_RichTextAttr_SetBulletSymbol, METH_VARARGS | METH_KEYWORDS, NULL},
11919 { (char *)"RichTextAttr_SetBulletFont", (PyCFunction) _wrap_RichTextAttr_SetBulletFont, METH_VARARGS | METH_KEYWORDS, NULL},
11920 { (char *)"RichTextAttr_GetTextColour", (PyCFunction)_wrap_RichTextAttr_GetTextColour, METH_O, NULL},
11921 { (char *)"RichTextAttr_GetBackgroundColour", (PyCFunction)_wrap_RichTextAttr_GetBackgroundColour, METH_O, NULL},
11922 { (char *)"RichTextAttr_GetAlignment", (PyCFunction)_wrap_RichTextAttr_GetAlignment, METH_O, NULL},
11923 { (char *)"RichTextAttr_GetTabs", (PyCFunction)_wrap_RichTextAttr_GetTabs, METH_O, NULL},
11924 { (char *)"RichTextAttr_GetLeftIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftIndent, METH_O, NULL},
11925 { (char *)"RichTextAttr_GetLeftSubIndent", (PyCFunction)_wrap_RichTextAttr_GetLeftSubIndent, METH_O, NULL},
11926 { (char *)"RichTextAttr_GetRightIndent", (PyCFunction)_wrap_RichTextAttr_GetRightIndent, METH_O, NULL},
11927 { (char *)"RichTextAttr_GetFlags", (PyCFunction)_wrap_RichTextAttr_GetFlags, METH_O, NULL},
11928 { (char *)"RichTextAttr_GetFontSize", (PyCFunction)_wrap_RichTextAttr_GetFontSize, METH_O, NULL},
11929 { (char *)"RichTextAttr_GetFontStyle", (PyCFunction)_wrap_RichTextAttr_GetFontStyle, METH_O, NULL},
11930 { (char *)"RichTextAttr_GetFontWeight", (PyCFunction)_wrap_RichTextAttr_GetFontWeight, METH_O, NULL},
11931 { (char *)"RichTextAttr_GetFontUnderlined", (PyCFunction)_wrap_RichTextAttr_GetFontUnderlined, METH_O, NULL},
11932 { (char *)"RichTextAttr_GetFontFaceName", (PyCFunction)_wrap_RichTextAttr_GetFontFaceName, METH_O, NULL},
11933 { (char *)"RichTextAttr_GetCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_GetCharacterStyleName, METH_O, NULL},
11934 { (char *)"RichTextAttr_GetParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_GetParagraphStyleName, METH_O, NULL},
11935 { (char *)"RichTextAttr_GetParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingAfter, METH_O, NULL},
11936 { (char *)"RichTextAttr_GetParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_GetParagraphSpacingBefore, METH_O, NULL},
11937 { (char *)"RichTextAttr_GetLineSpacing", (PyCFunction)_wrap_RichTextAttr_GetLineSpacing, METH_O, NULL},
11938 { (char *)"RichTextAttr_GetBulletStyle", (PyCFunction)_wrap_RichTextAttr_GetBulletStyle, METH_O, NULL},
11939 { (char *)"RichTextAttr_GetBulletNumber", (PyCFunction)_wrap_RichTextAttr_GetBulletNumber, METH_O, NULL},
11940 { (char *)"RichTextAttr_GetBulletSymbol", (PyCFunction)_wrap_RichTextAttr_GetBulletSymbol, METH_O, NULL},
11941 { (char *)"RichTextAttr_GetBulletFont", (PyCFunction)_wrap_RichTextAttr_GetBulletFont, METH_O, NULL},
11942 { (char *)"RichTextAttr_HasTextColour", (PyCFunction)_wrap_RichTextAttr_HasTextColour, METH_O, NULL},
11943 { (char *)"RichTextAttr_HasBackgroundColour", (PyCFunction)_wrap_RichTextAttr_HasBackgroundColour, METH_O, NULL},
11944 { (char *)"RichTextAttr_HasAlignment", (PyCFunction)_wrap_RichTextAttr_HasAlignment, METH_O, NULL},
11945 { (char *)"RichTextAttr_HasTabs", (PyCFunction)_wrap_RichTextAttr_HasTabs, METH_O, NULL},
11946 { (char *)"RichTextAttr_HasLeftIndent", (PyCFunction)_wrap_RichTextAttr_HasLeftIndent, METH_O, NULL},
11947 { (char *)"RichTextAttr_HasRightIndent", (PyCFunction)_wrap_RichTextAttr_HasRightIndent, METH_O, NULL},
11948 { (char *)"RichTextAttr_HasWeight", (PyCFunction)_wrap_RichTextAttr_HasWeight, METH_O, NULL},
11949 { (char *)"RichTextAttr_HasSize", (PyCFunction)_wrap_RichTextAttr_HasSize, METH_O, NULL},
11950 { (char *)"RichTextAttr_HasItalic", (PyCFunction)_wrap_RichTextAttr_HasItalic, METH_O, NULL},
11951 { (char *)"RichTextAttr_HasUnderlined", (PyCFunction)_wrap_RichTextAttr_HasUnderlined, METH_O, NULL},
11952 { (char *)"RichTextAttr_HasFaceName", (PyCFunction)_wrap_RichTextAttr_HasFaceName, METH_O, NULL},
11953 { (char *)"RichTextAttr_HasFont", (PyCFunction)_wrap_RichTextAttr_HasFont, METH_O, NULL},
11954 { (char *)"RichTextAttr_HasParagraphSpacingAfter", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingAfter, METH_O, NULL},
11955 { (char *)"RichTextAttr_HasParagraphSpacingBefore", (PyCFunction)_wrap_RichTextAttr_HasParagraphSpacingBefore, METH_O, NULL},
11956 { (char *)"RichTextAttr_HasLineSpacing", (PyCFunction)_wrap_RichTextAttr_HasLineSpacing, METH_O, NULL},
11957 { (char *)"RichTextAttr_HasCharacterStyleName", (PyCFunction)_wrap_RichTextAttr_HasCharacterStyleName, METH_O, NULL},
11958 { (char *)"RichTextAttr_HasParagraphStyleName", (PyCFunction)_wrap_RichTextAttr_HasParagraphStyleName, METH_O, NULL},
11959 { (char *)"RichTextAttr_HasBulletStyle", (PyCFunction)_wrap_RichTextAttr_HasBulletStyle, METH_O, NULL},
11960 { (char *)"RichTextAttr_HasBulletNumber", (PyCFunction)_wrap_RichTextAttr_HasBulletNumber, METH_O, NULL},
11961 { (char *)"RichTextAttr_HasBulletSymbol", (PyCFunction)_wrap_RichTextAttr_HasBulletSymbol, METH_O, NULL},
11962 { (char *)"RichTextAttr_HasFlag", (PyCFunction) _wrap_RichTextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
11963 { (char *)"RichTextAttr_IsCharacterStyle", (PyCFunction)_wrap_RichTextAttr_IsCharacterStyle, METH_O, NULL},
11964 { (char *)"RichTextAttr_IsParagraphStyle", (PyCFunction)_wrap_RichTextAttr_IsParagraphStyle, METH_O, NULL},
11965 { (char *)"RichTextAttr_IsDefault", (PyCFunction)_wrap_RichTextAttr_IsDefault, METH_O, NULL},
11966 { (char *)"RichTextAttr_swigregister", RichTextAttr_swigregister, METH_VARARGS, NULL},
11967 { (char *)"RichTextAttr_swiginit", RichTextAttr_swiginit, METH_VARARGS, NULL},
11968 { (char *)"new_RichTextCtrl", (PyCFunction) _wrap_new_RichTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
11969 { (char *)"new_PreRichTextCtrl", (PyCFunction)_wrap_new_PreRichTextCtrl, METH_NOARGS, NULL},
11970 { (char *)"RichTextCtrl_Create", (PyCFunction) _wrap_RichTextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
11971 { (char *)"RichTextCtrl_GetValue", (PyCFunction)_wrap_RichTextCtrl_GetValue, METH_O, NULL},
11972 { (char *)"RichTextCtrl_SetValue", (PyCFunction) _wrap_RichTextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
11973 { (char *)"RichTextCtrl_GetRange", (PyCFunction) _wrap_RichTextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
11974 { (char *)"RichTextCtrl_GetLineLength", (PyCFunction) _wrap_RichTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
11975 { (char *)"RichTextCtrl_GetLineText", (PyCFunction) _wrap_RichTextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
11976 { (char *)"RichTextCtrl_GetNumberOfLines", (PyCFunction)_wrap_RichTextCtrl_GetNumberOfLines, METH_O, NULL},
11977 { (char *)"RichTextCtrl_IsModified", (PyCFunction)_wrap_RichTextCtrl_IsModified, METH_O, NULL},
11978 { (char *)"RichTextCtrl_IsEditable", (PyCFunction)_wrap_RichTextCtrl_IsEditable, METH_O, NULL},
11979 { (char *)"RichTextCtrl_IsSingleLine", (PyCFunction)_wrap_RichTextCtrl_IsSingleLine, METH_O, NULL},
11980 { (char *)"RichTextCtrl_IsMultiLine", (PyCFunction)_wrap_RichTextCtrl_IsMultiLine, METH_O, NULL},
11981 { (char *)"RichTextCtrl_GetSelection", (PyCFunction)_wrap_RichTextCtrl_GetSelection, METH_O, NULL},
11982 { (char *)"RichTextCtrl_GetStringSelection", (PyCFunction)_wrap_RichTextCtrl_GetStringSelection, METH_O, NULL},
11983 { (char *)"RichTextCtrl_GetFilename", (PyCFunction)_wrap_RichTextCtrl_GetFilename, METH_O, NULL},
11984 { (char *)"RichTextCtrl_SetFilename", (PyCFunction) _wrap_RichTextCtrl_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL},
11985 { (char *)"RichTextCtrl_SetDelayedLayoutThreshold", (PyCFunction) _wrap_RichTextCtrl_SetDelayedLayoutThreshold, METH_VARARGS | METH_KEYWORDS, NULL},
11986 { (char *)"RichTextCtrl_GetDelayedLayoutThreshold", (PyCFunction)_wrap_RichTextCtrl_GetDelayedLayoutThreshold, METH_O, NULL},
11987 { (char *)"RichTextCtrl_Clear", (PyCFunction)_wrap_RichTextCtrl_Clear, METH_O, NULL},
11988 { (char *)"RichTextCtrl_Replace", (PyCFunction) _wrap_RichTextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
11989 { (char *)"RichTextCtrl_Remove", (PyCFunction) _wrap_RichTextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
11990 { (char *)"RichTextCtrl_LoadFile", (PyCFunction) _wrap_RichTextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
11991 { (char *)"RichTextCtrl_SaveFile", (PyCFunction) _wrap_RichTextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
11992 { (char *)"RichTextCtrl_MarkDirty", (PyCFunction)_wrap_RichTextCtrl_MarkDirty, METH_O, NULL},
11993 { (char *)"RichTextCtrl_DiscardEdits", (PyCFunction)_wrap_RichTextCtrl_DiscardEdits, METH_O, NULL},
11994 { (char *)"RichTextCtrl_SetMaxLength", (PyCFunction) _wrap_RichTextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
11995 { (char *)"RichTextCtrl_WriteText", (PyCFunction) _wrap_RichTextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
11996 { (char *)"RichTextCtrl_AppendText", (PyCFunction) _wrap_RichTextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
11997 { (char *)"RichTextCtrl_SetStyle", (PyCFunction) _wrap_RichTextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
11998 { (char *)"RichTextCtrl_SetStyleEx", (PyCFunction) _wrap_RichTextCtrl_SetStyleEx, METH_VARARGS | METH_KEYWORDS, NULL},
11999 { (char *)"RichTextCtrl_GetStyle", (PyCFunction) _wrap_RichTextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12000 { (char *)"RichTextCtrl_GetUncombinedStyle", (PyCFunction) _wrap_RichTextCtrl_GetUncombinedStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12001 { (char *)"RichTextCtrl_SetDefaultStyle", (PyCFunction) _wrap_RichTextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12002 { (char *)"RichTextCtrl_GetDefaultStyle", (PyCFunction)_wrap_RichTextCtrl_GetDefaultStyle, METH_O, NULL},
12003 { (char *)"RichTextCtrl_XYToPosition", (PyCFunction) _wrap_RichTextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
12004 { (char *)"RichTextCtrl_PositionToXY", (PyCFunction) _wrap_RichTextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
12005 { (char *)"RichTextCtrl_ShowPosition", (PyCFunction) _wrap_RichTextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
12006 { (char *)"RichTextCtrl_HitTest", (PyCFunction) _wrap_RichTextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
12007 { (char *)"RichTextCtrl_HitTestXY", (PyCFunction) _wrap_RichTextCtrl_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
12008 { (char *)"RichTextCtrl_Copy", (PyCFunction)_wrap_RichTextCtrl_Copy, METH_O, NULL},
12009 { (char *)"RichTextCtrl_Cut", (PyCFunction)_wrap_RichTextCtrl_Cut, METH_O, NULL},
12010 { (char *)"RichTextCtrl_Paste", (PyCFunction)_wrap_RichTextCtrl_Paste, METH_O, NULL},
12011 { (char *)"RichTextCtrl_DeleteSelection", (PyCFunction)_wrap_RichTextCtrl_DeleteSelection, METH_O, NULL},
12012 { (char *)"RichTextCtrl_CanCopy", (PyCFunction)_wrap_RichTextCtrl_CanCopy, METH_O, NULL},
12013 { (char *)"RichTextCtrl_CanCut", (PyCFunction)_wrap_RichTextCtrl_CanCut, METH_O, NULL},
12014 { (char *)"RichTextCtrl_CanPaste", (PyCFunction)_wrap_RichTextCtrl_CanPaste, METH_O, NULL},
12015 { (char *)"RichTextCtrl_CanDeleteSelection", (PyCFunction)_wrap_RichTextCtrl_CanDeleteSelection, METH_O, NULL},
12016 { (char *)"RichTextCtrl_Undo", (PyCFunction)_wrap_RichTextCtrl_Undo, METH_O, NULL},
12017 { (char *)"RichTextCtrl_Redo", (PyCFunction)_wrap_RichTextCtrl_Redo, METH_O, NULL},
12018 { (char *)"RichTextCtrl_CanUndo", (PyCFunction)_wrap_RichTextCtrl_CanUndo, METH_O, NULL},
12019 { (char *)"RichTextCtrl_CanRedo", (PyCFunction)_wrap_RichTextCtrl_CanRedo, METH_O, NULL},
12020 { (char *)"RichTextCtrl_SetInsertionPoint", (PyCFunction) _wrap_RichTextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
12021 { (char *)"RichTextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_RichTextCtrl_SetInsertionPointEnd, METH_O, NULL},
12022 { (char *)"RichTextCtrl_GetInsertionPoint", (PyCFunction)_wrap_RichTextCtrl_GetInsertionPoint, METH_O, NULL},
12023 { (char *)"RichTextCtrl_GetLastPosition", (PyCFunction)_wrap_RichTextCtrl_GetLastPosition, METH_O, NULL},
12024 { (char *)"RichTextCtrl_SetSelection", (PyCFunction) _wrap_RichTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
12025 { (char *)"RichTextCtrl_SelectAll", (PyCFunction)_wrap_RichTextCtrl_SelectAll, METH_O, NULL},
12026 { (char *)"RichTextCtrl_SetEditable", (PyCFunction) _wrap_RichTextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
12027 { (char *)"RichTextCtrl_HasSelection", (PyCFunction)_wrap_RichTextCtrl_HasSelection, METH_O, NULL},
12028 { (char *)"RichTextCtrl_WriteImage", (PyCFunction) _wrap_RichTextCtrl_WriteImage, METH_VARARGS | METH_KEYWORDS, NULL},
12029 { (char *)"RichTextCtrl_WriteBitmap", (PyCFunction) _wrap_RichTextCtrl_WriteBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
12030 { (char *)"RichTextCtrl_WriteImageFile", (PyCFunction) _wrap_RichTextCtrl_WriteImageFile, METH_VARARGS | METH_KEYWORDS, NULL},
12031 { (char *)"RichTextCtrl_WriteImageBlock", (PyCFunction) _wrap_RichTextCtrl_WriteImageBlock, METH_VARARGS | METH_KEYWORDS, NULL},
12032 { (char *)"RichTextCtrl_Newline", (PyCFunction)_wrap_RichTextCtrl_Newline, METH_O, NULL},
12033 { (char *)"RichTextCtrl_SetBasicStyle", (PyCFunction) _wrap_RichTextCtrl_SetBasicStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12034 { (char *)"RichTextCtrl_EndStyle", (PyCFunction)_wrap_RichTextCtrl_EndStyle, METH_O, NULL},
12035 { (char *)"RichTextCtrl_EndAllStyles", (PyCFunction)_wrap_RichTextCtrl_EndAllStyles, METH_O, NULL},
12036 { (char *)"RichTextCtrl_BeginBold", (PyCFunction)_wrap_RichTextCtrl_BeginBold, METH_O, NULL},
12037 { (char *)"RichTextCtrl_EndBold", (PyCFunction)_wrap_RichTextCtrl_EndBold, METH_O, NULL},
12038 { (char *)"RichTextCtrl_BeginItalic", (PyCFunction)_wrap_RichTextCtrl_BeginItalic, METH_O, NULL},
12039 { (char *)"RichTextCtrl_EndItalic", (PyCFunction)_wrap_RichTextCtrl_EndItalic, METH_O, NULL},
12040 { (char *)"RichTextCtrl_BeginUnderline", (PyCFunction)_wrap_RichTextCtrl_BeginUnderline, METH_O, NULL},
12041 { (char *)"RichTextCtrl_EndUnderline", (PyCFunction)_wrap_RichTextCtrl_EndUnderline, METH_O, NULL},
12042 { (char *)"RichTextCtrl_BeginFontSize", (PyCFunction) _wrap_RichTextCtrl_BeginFontSize, METH_VARARGS | METH_KEYWORDS, NULL},
12043 { (char *)"RichTextCtrl_EndFontSize", (PyCFunction)_wrap_RichTextCtrl_EndFontSize, METH_O, NULL},
12044 { (char *)"RichTextCtrl_BeginFont", (PyCFunction) _wrap_RichTextCtrl_BeginFont, METH_VARARGS | METH_KEYWORDS, NULL},
12045 { (char *)"RichTextCtrl_EndFont", (PyCFunction)_wrap_RichTextCtrl_EndFont, METH_O, NULL},
12046 { (char *)"RichTextCtrl_BeginTextColour", (PyCFunction) _wrap_RichTextCtrl_BeginTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
12047 { (char *)"RichTextCtrl_EndTextColour", (PyCFunction)_wrap_RichTextCtrl_EndTextColour, METH_O, NULL},
12048 { (char *)"RichTextCtrl_BeginAlignment", (PyCFunction) _wrap_RichTextCtrl_BeginAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
12049 { (char *)"RichTextCtrl_EndAlignment", (PyCFunction)_wrap_RichTextCtrl_EndAlignment, METH_O, NULL},
12050 { (char *)"RichTextCtrl_BeginLeftIndent", (PyCFunction) _wrap_RichTextCtrl_BeginLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12051 { (char *)"RichTextCtrl_EndLeftIndent", (PyCFunction)_wrap_RichTextCtrl_EndLeftIndent, METH_O, NULL},
12052 { (char *)"RichTextCtrl_BeginRightIndent", (PyCFunction) _wrap_RichTextCtrl_BeginRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
12053 { (char *)"RichTextCtrl_EndRightIndent", (PyCFunction)_wrap_RichTextCtrl_EndRightIndent, METH_O, NULL},
12054 { (char *)"RichTextCtrl_BeginParagraphSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
12055 { (char *)"RichTextCtrl_EndParagraphSpacing", (PyCFunction)_wrap_RichTextCtrl_EndParagraphSpacing, METH_O, NULL},
12056 { (char *)"RichTextCtrl_BeginLineSpacing", (PyCFunction) _wrap_RichTextCtrl_BeginLineSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
12057 { (char *)"RichTextCtrl_EndLineSpacing", (PyCFunction)_wrap_RichTextCtrl_EndLineSpacing, METH_O, NULL},
12058 { (char *)"RichTextCtrl_BeginNumberedBullet", (PyCFunction) _wrap_RichTextCtrl_BeginNumberedBullet, METH_VARARGS | METH_KEYWORDS, NULL},
12059 { (char *)"RichTextCtrl_EndNumberedBullet", (PyCFunction)_wrap_RichTextCtrl_EndNumberedBullet, METH_O, NULL},
12060 { (char *)"RichTextCtrl_BeginSymbolBullet", (PyCFunction) _wrap_RichTextCtrl_BeginSymbolBullet, METH_VARARGS | METH_KEYWORDS, NULL},
12061 { (char *)"RichTextCtrl_EndSymbolBullet", (PyCFunction)_wrap_RichTextCtrl_EndSymbolBullet, METH_O, NULL},
12062 { (char *)"RichTextCtrl_BeginCharacterStyle", (PyCFunction) _wrap_RichTextCtrl_BeginCharacterStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12063 { (char *)"RichTextCtrl_EndCharacterStyle", (PyCFunction)_wrap_RichTextCtrl_EndCharacterStyle, METH_O, NULL},
12064 { (char *)"RichTextCtrl_BeginParagraphStyle", (PyCFunction) _wrap_RichTextCtrl_BeginParagraphStyle, METH_VARARGS | METH_KEYWORDS, NULL},
12065 { (char *)"RichTextCtrl_EndParagraphStyle", (PyCFunction)_wrap_RichTextCtrl_EndParagraphStyle, METH_O, NULL},
12066 { (char *)"RichTextCtrl_SetDefaultStyleToCursorStyle", (PyCFunction)_wrap_RichTextCtrl_SetDefaultStyleToCursorStyle, METH_O, NULL},
12067 { (char *)"RichTextCtrl_SelectNone", (PyCFunction)_wrap_RichTextCtrl_SelectNone, METH_O, NULL},
12068 { (char *)"RichTextCtrl_SelectWord", (PyCFunction) _wrap_RichTextCtrl_SelectWord, METH_VARARGS | METH_KEYWORDS, NULL},
12069 { (char *)"RichTextCtrl_GetSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetSelectionRange, METH_O, NULL},
12070 { (char *)"RichTextCtrl_SetSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
12071 { (char *)"RichTextCtrl_GetInternalSelectionRange", (PyCFunction)_wrap_RichTextCtrl_GetInternalSelectionRange, METH_O, NULL},
12072 { (char *)"RichTextCtrl_SetInternalSelectionRange", (PyCFunction) _wrap_RichTextCtrl_SetInternalSelectionRange, METH_VARARGS | METH_KEYWORDS, NULL},
12073 { (char *)"RichTextCtrl_AddParagraph", (PyCFunction) _wrap_RichTextCtrl_AddParagraph, METH_VARARGS | METH_KEYWORDS, NULL},
12074 { (char *)"RichTextCtrl_AddImage", (PyCFunction) _wrap_RichTextCtrl_AddImage, METH_VARARGS | METH_KEYWORDS, NULL},
12075 { (char *)"RichTextCtrl_LayoutContent", (PyCFunction) _wrap_RichTextCtrl_LayoutContent, METH_VARARGS | METH_KEYWORDS, NULL},
12076 { (char *)"RichTextCtrl_MoveCaret", (PyCFunction) _wrap_RichTextCtrl_MoveCaret, METH_VARARGS | METH_KEYWORDS, NULL},
12077 { (char *)"RichTextCtrl_MoveRight", (PyCFunction) _wrap_RichTextCtrl_MoveRight, METH_VARARGS | METH_KEYWORDS, NULL},
12078 { (char *)"RichTextCtrl_MoveLeft", (PyCFunction) _wrap_RichTextCtrl_MoveLeft, METH_VARARGS | METH_KEYWORDS, NULL},
12079 { (char *)"RichTextCtrl_MoveUp", (PyCFunction) _wrap_RichTextCtrl_MoveUp, METH_VARARGS | METH_KEYWORDS, NULL},
12080 { (char *)"RichTextCtrl_MoveDown", (PyCFunction) _wrap_RichTextCtrl_MoveDown, METH_VARARGS | METH_KEYWORDS, NULL},
12081 { (char *)"RichTextCtrl_MoveToLineEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToLineEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12082 { (char *)"RichTextCtrl_MoveToLineStart", (PyCFunction) _wrap_RichTextCtrl_MoveToLineStart, METH_VARARGS | METH_KEYWORDS, NULL},
12083 { (char *)"RichTextCtrl_MoveToParagraphEnd", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12084 { (char *)"RichTextCtrl_MoveToParagraphStart", (PyCFunction) _wrap_RichTextCtrl_MoveToParagraphStart, METH_VARARGS | METH_KEYWORDS, NULL},
12085 { (char *)"RichTextCtrl_MoveHome", (PyCFunction) _wrap_RichTextCtrl_MoveHome, METH_VARARGS | METH_KEYWORDS, NULL},
12086 { (char *)"RichTextCtrl_MoveEnd", (PyCFunction) _wrap_RichTextCtrl_MoveEnd, METH_VARARGS | METH_KEYWORDS, NULL},
12087 { (char *)"RichTextCtrl_PageUp", (PyCFunction) _wrap_RichTextCtrl_PageUp, METH_VARARGS | METH_KEYWORDS, NULL},
12088 { (char *)"RichTextCtrl_PageDown", (PyCFunction) _wrap_RichTextCtrl_PageDown, METH_VARARGS | METH_KEYWORDS, NULL},
12089 { (char *)"RichTextCtrl_WordLeft", (PyCFunction) _wrap_RichTextCtrl_WordLeft, METH_VARARGS | METH_KEYWORDS, NULL},
12090 { (char *)"RichTextCtrl_WordRight", (PyCFunction) _wrap_RichTextCtrl_WordRight, METH_VARARGS | METH_KEYWORDS, NULL},
12091 { (char *)"RichTextCtrl_GetBuffer", (PyCFunction)_wrap_RichTextCtrl_GetBuffer, METH_O, NULL},
12092 { (char *)"RichTextCtrl_BeginBatchUndo", (PyCFunction) _wrap_RichTextCtrl_BeginBatchUndo, METH_VARARGS | METH_KEYWORDS, NULL},
12093 { (char *)"RichTextCtrl_EndBatchUndo", (PyCFunction)_wrap_RichTextCtrl_EndBatchUndo, METH_O, NULL},
12094 { (char *)"RichTextCtrl_BatchingUndo", (PyCFunction)_wrap_RichTextCtrl_BatchingUndo, METH_O, NULL},
12095 { (char *)"RichTextCtrl_BeginSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_BeginSuppressUndo, METH_O, NULL},
12096 { (char *)"RichTextCtrl_EndSuppressUndo", (PyCFunction)_wrap_RichTextCtrl_EndSuppressUndo, METH_O, NULL},
12097 { (char *)"RichTextCtrl_SuppressingUndo", (PyCFunction)_wrap_RichTextCtrl_SuppressingUndo, METH_O, NULL},
12098 { (char *)"RichTextCtrl_HasCharacterAttributes", (PyCFunction) _wrap_RichTextCtrl_HasCharacterAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
12099 { (char *)"RichTextCtrl_HasParagraphAttributes", (PyCFunction) _wrap_RichTextCtrl_HasParagraphAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
12100 { (char *)"RichTextCtrl_IsSelectionBold", (PyCFunction)_wrap_RichTextCtrl_IsSelectionBold, METH_O, NULL},
12101 { (char *)"RichTextCtrl_IsSelectionItalics", (PyCFunction)_wrap_RichTextCtrl_IsSelectionItalics, METH_O, NULL},
12102 { (char *)"RichTextCtrl_IsSelectionUnderlined", (PyCFunction)_wrap_RichTextCtrl_IsSelectionUnderlined, METH_O, NULL},
12103 { (char *)"RichTextCtrl_IsSelectionAligned", (PyCFunction) _wrap_RichTextCtrl_IsSelectionAligned, METH_VARARGS | METH_KEYWORDS, NULL},
12104 { (char *)"RichTextCtrl_ApplyBoldToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyBoldToSelection, METH_O, NULL},
12105 { (char *)"RichTextCtrl_ApplyItalicToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyItalicToSelection, METH_O, NULL},
12106 { (char *)"RichTextCtrl_ApplyUnderlineToSelection", (PyCFunction)_wrap_RichTextCtrl_ApplyUnderlineToSelection, METH_O, NULL},
12107 { (char *)"RichTextCtrl_ApplyAlignmentToSelection", (PyCFunction) _wrap_RichTextCtrl_ApplyAlignmentToSelection, METH_VARARGS | METH_KEYWORDS, NULL},
12108 { (char *)"RichTextCtrl_SetStyleSheet", (PyCFunction) _wrap_RichTextCtrl_SetStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
12109 { (char *)"RichTextCtrl_GetStyleSheet", (PyCFunction)_wrap_RichTextCtrl_GetStyleSheet, METH_O, NULL},
12110 { (char *)"RichTextCtrl_ApplyStyleSheet", (PyCFunction) _wrap_RichTextCtrl_ApplyStyleSheet, METH_VARARGS | METH_KEYWORDS, NULL},
12111 { (char *)"RichTextCtrl_swigregister", RichTextCtrl_swigregister, METH_VARARGS, NULL},
12112 { (char *)"RichTextCtrl_swiginit", RichTextCtrl_swiginit, METH_VARARGS, NULL},
12113 { (char *)"new_RichTextEvent", (PyCFunction) _wrap_new_RichTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
12114 { (char *)"RichTextEvent_GetIndex", (PyCFunction)_wrap_RichTextEvent_GetIndex, METH_O, NULL},
12115 { (char *)"RichTextEvent_SetIndex", (PyCFunction) _wrap_RichTextEvent_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
12116 { (char *)"RichTextEvent_GetFlags", (PyCFunction)_wrap_RichTextEvent_GetFlags, METH_O, NULL},
12117 { (char *)"RichTextEvent_SetFlags", (PyCFunction) _wrap_RichTextEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
12118 { (char *)"RichTextEvent_swigregister", RichTextEvent_swigregister, METH_VARARGS, NULL},
12119 { (char *)"RichTextEvent_swiginit", RichTextEvent_swiginit, METH_VARARGS, NULL},
12120 { NULL, NULL, 0, NULL }
12121 };
12122
12123
12124 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
12125
12126 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
12127 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
12128 }
12129 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
12130 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
12131 }
12132 static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) {
12133 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12134 }
12135 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
12136 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12137 }
12138 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
12139 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12140 }
12141 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
12142 return (void *)((wxPanel *) ((wxPyPanel *) x));
12143 }
12144 static void *_p_wxRichTextCtrlTo_p_wxPanel(void *x) {
12145 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxRichTextCtrl *) x));
12146 }
12147 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
12148 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
12149 }
12150 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
12151 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
12152 }
12153 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
12154 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12155 }
12156 static void *_p_wxRichTextEventTo_p_wxNotifyEvent(void *x) {
12157 return (void *)((wxNotifyEvent *) ((wxRichTextEvent *) x));
12158 }
12159 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
12160 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
12161 }
12162 static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) {
12163 return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12164 }
12165 static void *_p_wxRichTextCtrlTo_p_wxScrolledWindow(void *x) {
12166 return (void *)((wxScrolledWindow *) ((wxRichTextCtrl *) x));
12167 }
12168 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
12169 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
12170 }
12171 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
12172 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12173 }
12174 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
12175 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12176 }
12177 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
12178 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
12179 }
12180 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
12181 return (void *)((wxWindow *) ((wxMenuBar *) x));
12182 }
12183 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
12184 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12185 }
12186 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
12187 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12188 }
12189 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
12190 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12191 }
12192 static void *_p_wxNumberEntryDialogTo_p_wxWindow(void *x) {
12193 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
12194 }
12195 static void *_p_wxPasswordEntryDialogTo_p_wxWindow(void *x) {
12196 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12197 }
12198 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
12199 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12200 }
12201 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
12202 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12203 }
12204 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
12205 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12206 }
12207 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
12208 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12209 }
12210 static void *_p_wxPanelTo_p_wxWindow(void *x) {
12211 return (void *)((wxWindow *) ((wxPanel *) x));
12212 }
12213 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
12214 return (void *)((wxWindow *) ((wxStatusBar *) x));
12215 }
12216 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
12217 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
12218 }
12219 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
12220 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
12221 }
12222 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
12223 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12224 }
12225 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
12226 return (void *)((wxWindow *) ((wxPopupWindow *) x));
12227 }
12228 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
12229 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
12230 }
12231 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
12232 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
12233 }
12234 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
12235 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
12236 }
12237 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
12238 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
12239 }
12240 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
12241 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
12242 }
12243 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
12244 return (void *)((wxWindow *) ((wxSashWindow *) x));
12245 }
12246 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
12247 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
12248 }
12249 static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) {
12250 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12251 }
12252 static void *_p_wxControlTo_p_wxWindow(void *x) {
12253 return (void *)((wxWindow *) ((wxControl *) x));
12254 }
12255 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
12256 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12257 }
12258 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
12259 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12260 }
12261 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
12262 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12263 }
12264 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
12265 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
12266 }
12267 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
12268 return (void *)((wxWindow *) ((wxPyWindow *) x));
12269 }
12270 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
12271 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12272 }
12273 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
12274 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12275 }
12276 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
12277 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12278 }
12279 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
12280 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
12281 }
12282 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
12283 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12284 }
12285 static void *_p_wxFrameTo_p_wxWindow(void *x) {
12286 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
12287 }
12288 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
12289 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12290 }
12291 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
12292 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12293 }
12294 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
12295 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12296 }
12297 static void *_p_wxDialogTo_p_wxWindow(void *x) {
12298 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
12299 }
12300 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
12301 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12302 }
12303 static void *_p_wxRichTextCtrlTo_p_wxWindow(void *x) {
12304 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12305 }
12306 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
12307 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
12308 }
12309 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
12310 return (void *)((wxEvent *) ((wxMenuEvent *) x));
12311 }
12312 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
12313 return (void *)((wxEvent *) ((wxCloseEvent *) x));
12314 }
12315 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
12316 return (void *)((wxEvent *) ((wxMouseEvent *) x));
12317 }
12318 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
12319 return (void *)((wxEvent *) ((wxEraseEvent *) x));
12320 }
12321 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
12322 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
12323 }
12324 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
12325 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
12326 }
12327 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
12328 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
12329 }
12330 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
12331 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
12332 }
12333 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
12334 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
12335 }
12336 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
12337 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
12338 }
12339 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
12340 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
12341 }
12342 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
12343 return (void *)((wxEvent *) ((wxPyEvent *) x));
12344 }
12345 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
12346 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
12347 }
12348 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
12349 return (void *)((wxEvent *) ((wxIdleEvent *) x));
12350 }
12351 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
12352 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
12353 }
12354 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
12355 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
12356 }
12357 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
12358 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
12359 }
12360 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
12361 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
12362 }
12363 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
12364 return (void *)((wxEvent *) ((wxActivateEvent *) x));
12365 }
12366 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
12367 return (void *)((wxEvent *) ((wxSizeEvent *) x));
12368 }
12369 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
12370 return (void *)((wxEvent *) ((wxMoveEvent *) x));
12371 }
12372 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
12373 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
12374 }
12375 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
12376 return (void *)((wxEvent *) ((wxPaintEvent *) x));
12377 }
12378 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
12379 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
12380 }
12381 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
12382 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
12383 }
12384 static void *_p_wxRichTextEventTo_p_wxEvent(void *x) {
12385 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12386 }
12387 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
12388 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
12389 }
12390 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
12391 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
12392 }
12393 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
12394 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
12395 }
12396 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
12397 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12398 }
12399 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
12400 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
12401 }
12402 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
12403 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
12404 }
12405 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
12406 return (void *)((wxEvent *) ((wxFocusEvent *) x));
12407 }
12408 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
12409 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
12410 }
12411 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
12412 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
12413 }
12414 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
12415 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12416 }
12417 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
12418 return (void *)((wxEvent *) ((wxShowEvent *) x));
12419 }
12420 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
12421 return (void *)((wxEvent *) ((wxCommandEvent *) x));
12422 }
12423 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
12424 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
12425 }
12426 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
12427 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12428 }
12429 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
12430 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
12431 }
12432 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
12433 return (void *)((wxEvent *) ((wxKeyEvent *) x));
12434 }
12435 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
12436 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
12437 }
12438 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
12439 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
12440 }
12441 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
12442 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
12443 }
12444 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
12445 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
12446 }
12447 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
12448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12449 }
12450 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
12451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12452 }
12453 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
12454 return (void *)((wxObject *) ((wxSizerItem *) x));
12455 }
12456 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
12457 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
12458 }
12459 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
12460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
12461 }
12462 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
12463 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
12464 }
12465 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
12466 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
12467 }
12468 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
12469 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
12470 }
12471 static void *_p_wxSizerTo_p_wxObject(void *x) {
12472 return (void *)((wxObject *) ((wxSizer *) x));
12473 }
12474 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
12475 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
12476 }
12477 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
12478 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
12479 }
12480 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
12481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12482 }
12483 static void *_p_wxEventTo_p_wxObject(void *x) {
12484 return (void *)((wxObject *) ((wxEvent *) x));
12485 }
12486 static void *_p_wxFontDataTo_p_wxObject(void *x) {
12487 return (void *)((wxObject *) ((wxFontData *) x));
12488 }
12489 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
12490 return (void *)((wxObject *) ((wxPrintData *) x));
12491 }
12492 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
12493 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
12494 }
12495 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
12496 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
12497 }
12498 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
12499 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
12500 }
12501 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
12502 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
12503 }
12504 static void *_p_wxPyTaskBarIconTo_p_wxObject(void *x) {
12505 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12506 }
12507 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
12508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
12509 }
12510 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
12511 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
12512 }
12513 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
12514 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
12515 }
12516 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
12517 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
12518 }
12519 static void *_p_wxRichTextEventTo_p_wxObject(void *x) {
12520 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxRichTextEvent *) x));
12521 }
12522 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
12523 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
12524 }
12525 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
12526 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
12527 }
12528 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
12529 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
12530 }
12531 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
12532 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
12533 }
12534 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
12535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12536 }
12537 static void *_p_wxControlTo_p_wxObject(void *x) {
12538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
12539 }
12540 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
12541 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
12542 }
12543 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
12544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
12545 }
12546 static void *_p_wxFSFileTo_p_wxObject(void *x) {
12547 return (void *)((wxObject *) ((wxFSFile *) x));
12548 }
12549 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
12550 return (void *)((wxObject *) ((wxFindReplaceData *) x));
12551 }
12552 static void *_p_wxPySizerTo_p_wxObject(void *x) {
12553 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
12554 }
12555 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
12556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12557 }
12558 static void *_p_wxRichTextCtrlTo_p_wxObject(void *x) {
12559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
12560 }
12561 static void *_p_wxColourDataTo_p_wxObject(void *x) {
12562 return (void *)((wxObject *) ((wxColourData *) x));
12563 }
12564 static void *_p_wxPyEventTo_p_wxObject(void *x) {
12565 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
12566 }
12567 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
12568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
12569 }
12570 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
12571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
12572 }
12573 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
12574 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12575 }
12576 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
12577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12578 }
12579 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
12580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12581 }
12582 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
12583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12584 }
12585 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
12586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12587 }
12588 static void *_p_wxPasswordEntryDialogTo_p_wxObject(void *x) {
12589 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12590 }
12591 static void *_p_wxNumberEntryDialogTo_p_wxObject(void *x) {
12592 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
12593 }
12594 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
12595 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12596 }
12597 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
12598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12599 }
12600 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
12601 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12602 }
12603 static void *_p_wxShowEventTo_p_wxObject(void *x) {
12604 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
12605 }
12606 static void *_p_wxPrinterTo_p_wxObject(void *x) {
12607 return (void *)((wxObject *) ((wxPrinter *) x));
12608 }
12609 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
12610 return (void *)((wxObject *) ((wxMenuItem *) x));
12611 }
12612 static void *_p_wxDateEventTo_p_wxObject(void *x) {
12613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
12614 }
12615 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
12616 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
12617 }
12618 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
12619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
12620 }
12621 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
12622 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
12623 }
12624 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
12625 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
12626 }
12627 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
12628 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
12629 }
12630 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
12631 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
12632 }
12633 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
12634 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
12635 }
12636 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
12637 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
12638 }
12639 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
12640 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
12641 }
12642 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
12643 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
12644 }
12645 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
12646 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
12647 }
12648 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
12649 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
12650 }
12651 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
12652 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
12653 }
12654 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
12655 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
12656 }
12657 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
12658 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
12659 }
12660 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
12661 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
12662 }
12663 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
12664 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
12665 }
12666 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
12667 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
12668 }
12669 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
12670 return (void *)((wxObject *) ((wxImageHandler *) x));
12671 }
12672 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
12673 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
12674 }
12675 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
12676 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
12677 }
12678 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
12679 return (void *)((wxObject *) ((wxEvtHandler *) x));
12680 }
12681 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
12682 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
12683 }
12684 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
12685 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
12686 }
12687 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
12688 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12689 }
12690 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
12691 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12692 }
12693 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
12694 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
12695 }
12696 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
12697 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
12698 }
12699 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
12700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12701 }
12702 static void *_p_wxImageTo_p_wxObject(void *x) {
12703 return (void *)((wxObject *) ((wxImage *) x));
12704 }
12705 static void *_p_wxFrameTo_p_wxObject(void *x) {
12706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12707 }
12708 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
12709 return (void *)((wxObject *) ((wxPyPrintout *) x));
12710 }
12711 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
12712 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
12713 }
12714 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
12715 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
12716 }
12717 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
12718 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
12719 }
12720 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
12721 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
12722 }
12723 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
12724 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
12725 }
12726 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
12727 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
12728 }
12729 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
12730 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
12731 }
12732 static void *_p_wxWindowTo_p_wxObject(void *x) {
12733 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
12734 }
12735 static void *_p_wxMenuTo_p_wxObject(void *x) {
12736 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
12737 }
12738 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
12739 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
12740 }
12741 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
12742 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12743 }
12744 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
12745 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
12746 }
12747 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
12748 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
12749 }
12750 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
12751 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
12752 }
12753 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
12754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
12755 }
12756 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
12757 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12758 }
12759 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
12760 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
12761 }
12762 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
12763 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12764 }
12765 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
12766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
12767 }
12768 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
12769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12770 }
12771 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
12772 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
12773 }
12774 static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) {
12775 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12776 }
12777 static void *_p_wxSashEventTo_p_wxObject(void *x) {
12778 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
12779 }
12780 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
12781 return (void *)((wxObject *) ((wxPrintPreview *) x));
12782 }
12783 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
12784 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
12785 }
12786 static void *_p_wxPanelTo_p_wxObject(void *x) {
12787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
12788 }
12789 static void *_p_wxDialogTo_p_wxObject(void *x) {
12790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
12791 }
12792 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
12793 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
12794 }
12795 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
12796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
12797 }
12798 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
12799 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
12800 }
12801 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
12802 return (void *)((wxObject *) ((wxPageSetupDialog *) x));
12803 }
12804 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
12805 return (void *)((wxObject *) ((wxPrintDialog *) x));
12806 }
12807 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
12808 return (void *)((wxObject *) ((wxFileSystem *) x));
12809 }
12810 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
12811 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
12812 }
12813 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
12814 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
12815 }
12816 static void *_p_wxPyAppTo_p_wxObject(void *x) {
12817 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
12818 }
12819 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
12820 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
12821 }
12822 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
12823 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
12824 }
12825 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
12826 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
12827 }
12828 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
12829 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
12830 }
12831 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
12832 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
12833 }
12834 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
12835 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12836 }
12837 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
12838 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12839 }
12840 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
12841 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
12842 }
12843 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
12844 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
12845 }
12846 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
12847 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
12848 }
12849 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
12850 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12851 }
12852 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
12853 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
12854 }
12855 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
12856 return (void *)((wxObject *) ((wxPrintDialogData *) x));
12857 }
12858 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
12859 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
12860 }
12861 static void *_p_wxValidatorTo_p_wxObject(void *x) {
12862 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
12863 }
12864 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
12865 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
12866 }
12867 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
12868 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
12869 }
12870 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
12871 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
12872 }
12873 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
12874 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
12875 }
12876 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
12877 return (void *)((wxEvtHandler *) ((wxValidator *) x));
12878 }
12879 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
12880 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
12881 }
12882 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
12883 return (void *)((wxEvtHandler *) ((wxMenu *) x));
12884 }
12885 static void *_p_wxPasswordEntryDialogTo_p_wxEvtHandler(void *x) {
12886 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *)(wxTextEntryDialog *) ((wxPasswordEntryDialog *) x));
12887 }
12888 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
12889 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
12890 }
12891 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
12892 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
12893 }
12894 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
12895 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
12896 }
12897 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
12898 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
12899 }
12900 static void *_p_wxNumberEntryDialogTo_p_wxEvtHandler(void *x) {
12901 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxNumberEntryDialog *) x));
12902 }
12903 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
12904 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
12905 }
12906 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
12907 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
12908 }
12909 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
12910 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
12911 }
12912 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
12913 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
12914 }
12915 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
12916 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
12917 }
12918 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
12919 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
12920 }
12921 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
12922 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x));
12923 }
12924 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
12925 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
12926 }
12927 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
12928 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
12929 }
12930 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
12931 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
12932 }
12933 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
12934 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
12935 }
12936 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
12937 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
12938 }
12939 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
12940 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
12941 }
12942 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
12943 return (void *)((wxEvtHandler *) ((wxWindow *) x));
12944 }
12945 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
12946 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
12947 }
12948 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
12949 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
12950 }
12951 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
12952 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
12953 }
12954 static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) {
12955 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x));
12956 }
12957 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
12958 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
12959 }
12960 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
12961 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
12962 }
12963 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
12964 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
12965 }
12966 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
12967 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
12968 }
12969 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
12970 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
12971 }
12972 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
12973 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
12974 }
12975 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
12976 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
12977 }
12978 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
12979 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
12980 }
12981 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
12982 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
12983 }
12984 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
12985 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
12986 }
12987 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
12988 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
12989 }
12990 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
12991 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
12992 }
12993 static void *_p_wxPyTaskBarIconTo_p_wxEvtHandler(void *x) {
12994 return (void *)((wxEvtHandler *) ((wxPyTaskBarIcon *) x));
12995 }
12996 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
12997 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
12998 }
12999 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
13000 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
13001 }
13002 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
13003 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
13004 }
13005 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
13006 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
13007 }
13008 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
13009 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
13010 }
13011 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
13012 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
13013 }
13014 static void *_p_wxRichTextCtrlTo_p_wxEvtHandler(void *x) {
13015 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxRichTextCtrl *) x));
13016 }
13017 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
13018 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
13019 }
13020 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
13021 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
13022 }
13023 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
13024 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
13025 }
13026 static void *_p_wxRichTextEventTo_p_wxCommandEvent(void *x) {
13027 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxRichTextEvent *) x));
13028 }
13029 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
13030 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
13031 }
13032 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
13033 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
13034 }
13035 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
13036 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
13037 }
13038 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
13039 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
13040 }
13041 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
13042 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
13043 }
13044 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
13045 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
13046 }
13047 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
13048 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
13049 }
13050 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
13051 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
13052 }
13053 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
13054 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
13055 }
13056 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
13057 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
13058 }
13059 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
13060 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};
13061 static swig_type_info _swigt__p_int = {"_p_int", "int *|wxEventType *", 0, 0, (void*)0, 0};
13062 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
13063 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
13064 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
13065 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
13066 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
13067 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
13068 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
13069 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
13070 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
13071 static swig_type_info _swigt__p_wxSashEvent = {"_p_wxSashEvent", 0, 0, 0, 0, 0};
13072 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
13073 static swig_type_info _swigt__p_wxSplitterEvent = {"_p_wxSplitterEvent", 0, 0, 0, 0, 0};
13074 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
13075 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
13076 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
13077 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
13078 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
13079 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
13080 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
13081 static swig_type_info _swigt__p_wxFindDialogEvent = {"_p_wxFindDialogEvent", 0, 0, 0, 0, 0};
13082 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
13083 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
13084 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
13085 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
13086 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
13087 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
13088 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
13089 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
13090 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
13091 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
13092 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
13093 static swig_type_info _swigt__p_wxCalculateLayoutEvent = {"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0};
13094 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
13095 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
13096 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
13097 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
13098 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
13099 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
13100 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
13101 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
13102 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
13103 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
13104 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
13105 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
13106 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
13107 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
13108 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
13109 static swig_type_info _swigt__p_wxQueryLayoutInfoEvent = {"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0};
13110 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
13111 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
13112 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
13113 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
13114 static swig_type_info _swigt__p_wxTaskBarIconEvent = {"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0};
13115 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
13116 static swig_type_info _swigt__p_wxSplashScreen = {"_p_wxSplashScreen", 0, 0, 0, 0, 0};
13117 static swig_type_info _swigt__p_wxMiniFrame = {"_p_wxMiniFrame", 0, 0, 0, 0, 0};
13118 static swig_type_info _swigt__p_wxPyPanel = {"_p_wxPyPanel", 0, 0, 0, 0, 0};
13119 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
13120 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
13121 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
13122 static swig_type_info _swigt__p_wxNumberEntryDialog = {"_p_wxNumberEntryDialog", 0, 0, 0, 0, 0};
13123 static swig_type_info _swigt__p_wxFileDialog = {"_p_wxFileDialog", 0, 0, 0, 0, 0};
13124 static swig_type_info _swigt__p_wxFindReplaceDialog = {"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0};
13125 static swig_type_info _swigt__p_wxProgressDialog = {"_p_wxProgressDialog", 0, 0, 0, 0, 0};
13126 static swig_type_info _swigt__p_wxMessageDialog = {"_p_wxMessageDialog", 0, 0, 0, 0, 0};
13127 static swig_type_info _swigt__p_wxPasswordEntryDialog = {"_p_wxPasswordEntryDialog", 0, 0, 0, 0, 0};
13128 static swig_type_info _swigt__p_wxTextEntryDialog = {"_p_wxTextEntryDialog", 0, 0, 0, 0, 0};
13129 static swig_type_info _swigt__p_wxSingleChoiceDialog = {"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0};
13130 static swig_type_info _swigt__p_wxMultiChoiceDialog = {"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0};
13131 static swig_type_info _swigt__p_wxStatusBar = {"_p_wxStatusBar", 0, 0, 0, 0, 0};
13132 static swig_type_info _swigt__p_wxSashLayoutWindow = {"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0};
13133 static swig_type_info _swigt__p_wxSplashScreenWindow = {"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0};
13134 static swig_type_info _swigt__p_wxSplitterWindow = {"_p_wxSplitterWindow", 0, 0, 0, 0, 0};
13135 static swig_type_info _swigt__p_wxSashWindow = {"_p_wxSashWindow", 0, 0, 0, 0, 0};
13136 static swig_type_info _swigt__p_wxTopLevelWindow = {"_p_wxTopLevelWindow", 0, 0, 0, 0, 0};
13137 static swig_type_info _swigt__p_wxMDIClientWindow = {"_p_wxMDIClientWindow", 0, 0, 0, 0, 0};
13138 static swig_type_info _swigt__p_wxPyVScrolledWindow = {"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0};
13139 static swig_type_info _swigt__p_wxPyScrolledWindow = {"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0};
13140 static swig_type_info _swigt__p_wxPopupWindow = {"_p_wxPopupWindow", 0, 0, 0, 0, 0};
13141 static swig_type_info _swigt__p_wxPyPopupTransientWindow = {"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0};
13142 static swig_type_info _swigt__p_wxTipWindow = {"_p_wxTipWindow", 0, 0, 0, 0, 0};
13143 static swig_type_info _swigt__p_wxPyPreviewFrame = {"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0};
13144 static swig_type_info _swigt__p_wxPreviewFrame = {"_p_wxPreviewFrame", 0, 0, 0, 0, 0};
13145 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
13146 static swig_type_info _swigt__p_wxMDIChildFrame = {"_p_wxMDIChildFrame", 0, 0, 0, 0, 0};
13147 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
13148 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
13149 static swig_type_info _swigt__p_wxPreviewCanvas = {"_p_wxPreviewCanvas", 0, 0, 0, 0, 0};
13150 static swig_type_info _swigt__p_wxPyWindow = {"_p_wxPyWindow", 0, 0, 0, 0, 0};
13151 static swig_type_info _swigt__p_wxPyHtmlListBox = {"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0};
13152 static swig_type_info _swigt__p_wxPyVListBox = {"_p_wxPyVListBox", 0, 0, 0, 0, 0};
13153 static swig_type_info _swigt__p_wxPyPreviewControlBar = {"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0};
13154 static swig_type_info _swigt__p_wxPreviewControlBar = {"_p_wxPreviewControlBar", 0, 0, 0, 0, 0};
13155 static swig_type_info _swigt__p_wxPyTaskBarIcon = {"_p_wxPyTaskBarIcon", 0, 0, 0, 0, 0};
13156 static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", 0, 0, 0, 0, 0};
13157 static swig_type_info _swigt__p_wxFontDialog = {"_p_wxFontDialog", 0, 0, 0, 0, 0};
13158 static swig_type_info _swigt__p_wxDirDialog = {"_p_wxDirDialog", 0, 0, 0, 0, 0};
13159 static swig_type_info _swigt__p_wxColourDialog = {"_p_wxColourDialog", 0, 0, 0, 0, 0};
13160 static swig_type_info _swigt__p_wxDialog = {"_p_wxDialog", 0, 0, 0, 0, 0};
13161 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
13162 static swig_type_info _swigt__p_wxMDIParentFrame = {"_p_wxMDIParentFrame", 0, 0, 0, 0, 0};
13163 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
13164 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
13165 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
13166 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
13167 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
13168 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
13169 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
13170 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
13171 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
13172 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
13173 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
13174 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
13175 static swig_type_info _swigt__p_wxFontData = {"_p_wxFontData", 0, 0, 0, 0, 0};
13176 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", 0, 0, 0, 0, 0};
13177 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
13178 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
13179 static swig_type_info _swigt__p_wxLayoutAlgorithm = {"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0};
13180 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
13181 static swig_type_info _swigt__p_wxFindReplaceData = {"_p_wxFindReplaceData", 0, 0, 0, 0, 0};
13182 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
13183 static swig_type_info _swigt__p_wxColourData = {"_p_wxColourData", 0, 0, 0, 0, 0};
13184 static swig_type_info _swigt__p_wxPrinter = {"_p_wxPrinter", 0, 0, 0, 0, 0};
13185 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
13186 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
13187 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
13188 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
13189 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
13190 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
13191 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
13192 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
13193 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
13194 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
13195 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
13196 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
13197 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
13198 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
13199 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
13200 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
13201 static swig_type_info _swigt__p_wxPyPrintout = {"_p_wxPyPrintout", 0, 0, 0, 0, 0};
13202 static swig_type_info _swigt__p_wxPrintPreview = {"_p_wxPrintPreview", 0, 0, 0, 0, 0};
13203 static swig_type_info _swigt__p_wxPyPrintPreview = {"_p_wxPyPrintPreview", 0, 0, 0, 0, 0};
13204 static swig_type_info _swigt__p_wxPageSetupDialog = {"_p_wxPageSetupDialog", 0, 0, 0, 0, 0};
13205 static swig_type_info _swigt__p_wxPrintDialog = {"_p_wxPrintDialog", 0, 0, 0, 0, 0};
13206 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
13207 static swig_type_info _swigt__p_wxPageSetupDialogData = {"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0};
13208 static swig_type_info _swigt__p_wxPrintDialogData = {"_p_wxPrintDialogData", 0, 0, 0, 0, 0};
13209 static swig_type_info _swigt__p_wxPanel = {"_p_wxPanel", "wxPanel *", 0, 0, (void*)0, 0};
13210 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
13211 static swig_type_info _swigt__p_wxRichTextAttr = {"_p_wxRichTextAttr", "wxRichTextAttr *", 0, 0, (void*)0, 0};
13212 static swig_type_info _swigt__p_wxRichTextBuffer = {"_p_wxRichTextBuffer", "wxRichTextBuffer *", 0, 0, (void*)0, 0};
13213 static swig_type_info _swigt__p_wxRichTextCtrl = {"_p_wxRichTextCtrl", "wxRichTextCtrl *", 0, 0, (void*)0, 0};
13214 static swig_type_info _swigt__p_wxRichTextEvent = {"_p_wxRichTextEvent", "wxRichTextEvent *", 0, 0, (void*)0, 0};
13215 static swig_type_info _swigt__p_wxRichTextImageBlock = {"_p_wxRichTextImageBlock", "wxRichTextImageBlock *", 0, 0, (void*)0, 0};
13216 static swig_type_info _swigt__p_wxRichTextRange = {"_p_wxRichTextRange", "wxRichTextRange *", 0, 0, (void*)0, 0};
13217 static swig_type_info _swigt__p_wxRichTextStyleSheet = {"_p_wxRichTextStyleSheet", "wxRichTextStyleSheet *", 0, 0, (void*)0, 0};
13218 static swig_type_info _swigt__p_wxScrolledWindow = {"_p_wxScrolledWindow", "wxScrolledWindow *", 0, 0, (void*)0, 0};
13219 static swig_type_info _swigt__p_wxTextCoord = {"_p_wxTextCoord", "wxTextCoord *", 0, 0, (void*)0, 0};
13220 static swig_type_info _swigt__p_wxTextCtrlHitTestResult = {"_p_wxTextCtrlHitTestResult", "wxTextCtrlHitTestResult *", 0, 0, (void*)0, 0};
13221 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
13222
13223 static swig_type_info *swig_type_initial[] = {
13224 &_swigt__p_char,
13225 &_swigt__p_form_ops_t,
13226 &_swigt__p_int,
13227 &_swigt__p_long,
13228 &_swigt__p_unsigned_char,
13229 &_swigt__p_unsigned_int,
13230 &_swigt__p_unsigned_long,
13231 &_swigt__p_wxANIHandler,
13232 &_swigt__p_wxAcceleratorTable,
13233 &_swigt__p_wxActivateEvent,
13234 &_swigt__p_wxArrayInt,
13235 &_swigt__p_wxBMPHandler,
13236 &_swigt__p_wxBitmap,
13237 &_swigt__p_wxBoxSizer,
13238 &_swigt__p_wxCURHandler,
13239 &_swigt__p_wxCalculateLayoutEvent,
13240 &_swigt__p_wxChar,
13241 &_swigt__p_wxChildFocusEvent,
13242 &_swigt__p_wxClipboardTextEvent,
13243 &_swigt__p_wxCloseEvent,
13244 &_swigt__p_wxColour,
13245 &_swigt__p_wxColourData,
13246 &_swigt__p_wxColourDialog,
13247 &_swigt__p_wxCommandEvent,
13248 &_swigt__p_wxContextMenuEvent,
13249 &_swigt__p_wxControl,
13250 &_swigt__p_wxControlWithItems,
13251 &_swigt__p_wxDateEvent,
13252 &_swigt__p_wxDialog,
13253 &_swigt__p_wxDirDialog,
13254 &_swigt__p_wxDisplayChangedEvent,
13255 &_swigt__p_wxDropFilesEvent,
13256 &_swigt__p_wxDuplexMode,
13257 &_swigt__p_wxEraseEvent,
13258 &_swigt__p_wxEvent,
13259 &_swigt__p_wxEvtHandler,
13260 &_swigt__p_wxFSFile,
13261 &_swigt__p_wxFileDialog,
13262 &_swigt__p_wxFileSystem,
13263 &_swigt__p_wxFindDialogEvent,
13264 &_swigt__p_wxFindReplaceData,
13265 &_swigt__p_wxFindReplaceDialog,
13266 &_swigt__p_wxFlexGridSizer,
13267 &_swigt__p_wxFocusEvent,
13268 &_swigt__p_wxFont,
13269 &_swigt__p_wxFontData,
13270 &_swigt__p_wxFontDialog,
13271 &_swigt__p_wxFrame,
13272 &_swigt__p_wxGBSizerItem,
13273 &_swigt__p_wxGIFHandler,
13274 &_swigt__p_wxGridBagSizer,
13275 &_swigt__p_wxGridSizer,
13276 &_swigt__p_wxICOHandler,
13277 &_swigt__p_wxIconizeEvent,
13278 &_swigt__p_wxIdleEvent,
13279 &_swigt__p_wxImage,
13280 &_swigt__p_wxImageHandler,
13281 &_swigt__p_wxIndividualLayoutConstraint,
13282 &_swigt__p_wxInitDialogEvent,
13283 &_swigt__p_wxJPEGHandler,
13284 &_swigt__p_wxKeyEvent,
13285 &_swigt__p_wxLayoutAlgorithm,
13286 &_swigt__p_wxLayoutConstraints,
13287 &_swigt__p_wxMDIChildFrame,
13288 &_swigt__p_wxMDIClientWindow,
13289 &_swigt__p_wxMDIParentFrame,
13290 &_swigt__p_wxMaximizeEvent,
13291 &_swigt__p_wxMenu,
13292 &_swigt__p_wxMenuBar,
13293 &_swigt__p_wxMenuEvent,
13294 &_swigt__p_wxMenuItem,
13295 &_swigt__p_wxMessageDialog,
13296 &_swigt__p_wxMiniFrame,
13297 &_swigt__p_wxMouseCaptureChangedEvent,
13298 &_swigt__p_wxMouseCaptureLostEvent,
13299 &_swigt__p_wxMouseEvent,
13300 &_swigt__p_wxMoveEvent,
13301 &_swigt__p_wxMultiChoiceDialog,
13302 &_swigt__p_wxNavigationKeyEvent,
13303 &_swigt__p_wxNcPaintEvent,
13304 &_swigt__p_wxNotifyEvent,
13305 &_swigt__p_wxNumberEntryDialog,
13306 &_swigt__p_wxObject,
13307 &_swigt__p_wxPCXHandler,
13308 &_swigt__p_wxPNGHandler,
13309 &_swigt__p_wxPNMHandler,
13310 &_swigt__p_wxPageSetupDialog,
13311 &_swigt__p_wxPageSetupDialogData,
13312 &_swigt__p_wxPaintEvent,
13313 &_swigt__p_wxPaletteChangedEvent,
13314 &_swigt__p_wxPanel,
13315 &_swigt__p_wxPaperSize,
13316 &_swigt__p_wxPasswordEntryDialog,
13317 &_swigt__p_wxPopupWindow,
13318 &_swigt__p_wxPreviewCanvas,
13319 &_swigt__p_wxPreviewControlBar,
13320 &_swigt__p_wxPreviewFrame,
13321 &_swigt__p_wxPrintData,
13322 &_swigt__p_wxPrintDialog,
13323 &_swigt__p_wxPrintDialogData,
13324 &_swigt__p_wxPrintPreview,
13325 &_swigt__p_wxPrinter,
13326 &_swigt__p_wxProgressDialog,
13327 &_swigt__p_wxPyApp,
13328 &_swigt__p_wxPyCommandEvent,
13329 &_swigt__p_wxPyEvent,
13330 &_swigt__p_wxPyHtmlListBox,
13331 &_swigt__p_wxPyImageHandler,
13332 &_swigt__p_wxPyPanel,
13333 &_swigt__p_wxPyPopupTransientWindow,
13334 &_swigt__p_wxPyPreviewControlBar,
13335 &_swigt__p_wxPyPreviewFrame,
13336 &_swigt__p_wxPyPrintPreview,
13337 &_swigt__p_wxPyPrintout,
13338 &_swigt__p_wxPyScrolledWindow,
13339 &_swigt__p_wxPySizer,
13340 &_swigt__p_wxPyTaskBarIcon,
13341 &_swigt__p_wxPyVListBox,
13342 &_swigt__p_wxPyVScrolledWindow,
13343 &_swigt__p_wxPyValidator,
13344 &_swigt__p_wxPyWindow,
13345 &_swigt__p_wxQueryLayoutInfoEvent,
13346 &_swigt__p_wxQueryNewPaletteEvent,
13347 &_swigt__p_wxRichTextAttr,
13348 &_swigt__p_wxRichTextBuffer,
13349 &_swigt__p_wxRichTextCtrl,
13350 &_swigt__p_wxRichTextEvent,
13351 &_swigt__p_wxRichTextImageBlock,
13352 &_swigt__p_wxRichTextRange,
13353 &_swigt__p_wxRichTextStyleSheet,
13354 &_swigt__p_wxSashEvent,
13355 &_swigt__p_wxSashLayoutWindow,
13356 &_swigt__p_wxSashWindow,
13357 &_swigt__p_wxScrollEvent,
13358 &_swigt__p_wxScrollWinEvent,
13359 &_swigt__p_wxScrolledWindow,
13360 &_swigt__p_wxSetCursorEvent,
13361 &_swigt__p_wxShowEvent,
13362 &_swigt__p_wxSingleChoiceDialog,
13363 &_swigt__p_wxSizeEvent,
13364 &_swigt__p_wxSizer,
13365 &_swigt__p_wxSizerItem,
13366 &_swigt__p_wxSplashScreen,
13367 &_swigt__p_wxSplashScreenWindow,
13368 &_swigt__p_wxSplitterEvent,
13369 &_swigt__p_wxSplitterWindow,
13370 &_swigt__p_wxStaticBoxSizer,
13371 &_swigt__p_wxStatusBar,
13372 &_swigt__p_wxStdDialogButtonSizer,
13373 &_swigt__p_wxSysColourChangedEvent,
13374 &_swigt__p_wxTIFFHandler,
13375 &_swigt__p_wxTaskBarIconEvent,
13376 &_swigt__p_wxTextCoord,
13377 &_swigt__p_wxTextCtrlHitTestResult,
13378 &_swigt__p_wxTextEntryDialog,
13379 &_swigt__p_wxTipWindow,
13380 &_swigt__p_wxTopLevelWindow,
13381 &_swigt__p_wxUpdateUIEvent,
13382 &_swigt__p_wxValidator,
13383 &_swigt__p_wxWindow,
13384 &_swigt__p_wxWindowCreateEvent,
13385 &_swigt__p_wxWindowDestroyEvent,
13386 &_swigt__p_wxXPMHandler,
13387 };
13388
13389 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
13390 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
13391 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
13392 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
13393 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
13394 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
13395 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
13396 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
13397 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
13398 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
13399 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
13400 static swig_cast_info _swigc__p_wxSashEvent[] = {{&_swigt__p_wxSashEvent, 0, 0, 0},{0, 0, 0, 0}};
13401 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
13402 static swig_cast_info _swigc__p_wxSplitterEvent[] = {{&_swigt__p_wxSplitterEvent, 0, 0, 0},{0, 0, 0, 0}};
13403 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13404 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
13405 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
13406 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13407 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13408 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
13409 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
13410 static swig_cast_info _swigc__p_wxFindDialogEvent[] = {{&_swigt__p_wxFindDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13411 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
13412 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}};
13413 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
13414 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
13415 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
13416 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
13417 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
13418 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
13419 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
13420 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
13421 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
13422 static swig_cast_info _swigc__p_wxCalculateLayoutEvent[] = {{&_swigt__p_wxCalculateLayoutEvent, 0, 0, 0},{0, 0, 0, 0}};
13423 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
13424 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
13425 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13426 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13427 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
13428 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
13429 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
13430 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13431 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
13432 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13433 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13434 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13435 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
13436 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
13437 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
13438 static swig_cast_info _swigc__p_wxQueryLayoutInfoEvent[] = {{&_swigt__p_wxQueryLayoutInfoEvent, 0, 0, 0},{0, 0, 0, 0}};
13439 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
13440 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13441 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
13442 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
13443 static swig_cast_info _swigc__p_wxTaskBarIconEvent[] = {{&_swigt__p_wxTaskBarIconEvent, 0, 0, 0},{0, 0, 0, 0}};
13444 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
13445 static swig_cast_info _swigc__p_wxSplashScreen[] = {{&_swigt__p_wxSplashScreen, 0, 0, 0},{0, 0, 0, 0}};
13446 static swig_cast_info _swigc__p_wxMiniFrame[] = {{&_swigt__p_wxMiniFrame, 0, 0, 0},{0, 0, 0, 0}};
13447 static swig_cast_info _swigc__p_wxPyPanel[] = {{&_swigt__p_wxPyPanel, 0, 0, 0},{0, 0, 0, 0}};
13448 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
13449 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
13450 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
13451 static swig_cast_info _swigc__p_wxNumberEntryDialog[] = {{&_swigt__p_wxNumberEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13452 static swig_cast_info _swigc__p_wxFileDialog[] = {{&_swigt__p_wxFileDialog, 0, 0, 0},{0, 0, 0, 0}};
13453 static swig_cast_info _swigc__p_wxFindReplaceDialog[] = {{&_swigt__p_wxFindReplaceDialog, 0, 0, 0},{0, 0, 0, 0}};
13454 static swig_cast_info _swigc__p_wxProgressDialog[] = {{&_swigt__p_wxProgressDialog, 0, 0, 0},{0, 0, 0, 0}};
13455 static swig_cast_info _swigc__p_wxMessageDialog[] = {{&_swigt__p_wxMessageDialog, 0, 0, 0},{0, 0, 0, 0}};
13456 static swig_cast_info _swigc__p_wxPasswordEntryDialog[] = {{&_swigt__p_wxPasswordEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13457 static swig_cast_info _swigc__p_wxTextEntryDialog[] = {{&_swigt__p_wxTextEntryDialog, 0, 0, 0},{0, 0, 0, 0}};
13458 static swig_cast_info _swigc__p_wxSingleChoiceDialog[] = {{&_swigt__p_wxSingleChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13459 static swig_cast_info _swigc__p_wxMultiChoiceDialog[] = {{&_swigt__p_wxMultiChoiceDialog, 0, 0, 0},{0, 0, 0, 0}};
13460 static swig_cast_info _swigc__p_wxStatusBar[] = {{&_swigt__p_wxStatusBar, 0, 0, 0},{0, 0, 0, 0}};
13461 static swig_cast_info _swigc__p_wxSashLayoutWindow[] = {{&_swigt__p_wxSashLayoutWindow, 0, 0, 0},{0, 0, 0, 0}};
13462 static swig_cast_info _swigc__p_wxSplashScreenWindow[] = {{&_swigt__p_wxSplashScreenWindow, 0, 0, 0},{0, 0, 0, 0}};
13463 static swig_cast_info _swigc__p_wxSplitterWindow[] = {{&_swigt__p_wxSplitterWindow, 0, 0, 0},{0, 0, 0, 0}};
13464 static swig_cast_info _swigc__p_wxSashWindow[] = {{&_swigt__p_wxSashWindow, 0, 0, 0},{0, 0, 0, 0}};
13465 static swig_cast_info _swigc__p_wxTopLevelWindow[] = {{&_swigt__p_wxTopLevelWindow, 0, 0, 0},{0, 0, 0, 0}};
13466 static swig_cast_info _swigc__p_wxMDIClientWindow[] = {{&_swigt__p_wxMDIClientWindow, 0, 0, 0},{0, 0, 0, 0}};
13467 static swig_cast_info _swigc__p_wxPyVScrolledWindow[] = {{&_swigt__p_wxPyVScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13468 static swig_cast_info _swigc__p_wxPyScrolledWindow[] = {{&_swigt__p_wxPyScrolledWindow, 0, 0, 0},{0, 0, 0, 0}};
13469 static swig_cast_info _swigc__p_wxPopupWindow[] = {{&_swigt__p_wxPopupWindow, 0, 0, 0},{0, 0, 0, 0}};
13470 static swig_cast_info _swigc__p_wxPyPopupTransientWindow[] = {{&_swigt__p_wxPyPopupTransientWindow, 0, 0, 0},{0, 0, 0, 0}};
13471 static swig_cast_info _swigc__p_wxTipWindow[] = {{&_swigt__p_wxTipWindow, 0, 0, 0},{0, 0, 0, 0}};
13472 static swig_cast_info _swigc__p_wxPyPreviewFrame[] = {{&_swigt__p_wxPyPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13473 static swig_cast_info _swigc__p_wxPreviewFrame[] = {{&_swigt__p_wxPreviewFrame, 0, 0, 0},{0, 0, 0, 0}};
13474 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
13475 static swig_cast_info _swigc__p_wxMDIChildFrame[] = {{&_swigt__p_wxMDIChildFrame, 0, 0, 0},{0, 0, 0, 0}};
13476 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
13477 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
13478 static swig_cast_info _swigc__p_wxPreviewCanvas[] = {{&_swigt__p_wxPreviewCanvas, 0, 0, 0},{0, 0, 0, 0}};
13479 static swig_cast_info _swigc__p_wxPyWindow[] = {{&_swigt__p_wxPyWindow, 0, 0, 0},{0, 0, 0, 0}};
13480 static swig_cast_info _swigc__p_wxPyHtmlListBox[] = {{&_swigt__p_wxPyHtmlListBox, 0, 0, 0},{0, 0, 0, 0}};
13481 static swig_cast_info _swigc__p_wxPyVListBox[] = {{&_swigt__p_wxPyVListBox, 0, 0, 0},{0, 0, 0, 0}};
13482 static swig_cast_info _swigc__p_wxPyPreviewControlBar[] = {{&_swigt__p_wxPyPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13483 static swig_cast_info _swigc__p_wxPreviewControlBar[] = {{&_swigt__p_wxPreviewControlBar, 0, 0, 0},{0, 0, 0, 0}};
13484 static swig_cast_info _swigc__p_wxPyTaskBarIcon[] = {{&_swigt__p_wxPyTaskBarIcon, 0, 0, 0},{0, 0, 0, 0}};
13485 static swig_cast_info _swigc__p_wxFrame[] = {{&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
13486 static swig_cast_info _swigc__p_wxFontDialog[] = {{&_swigt__p_wxFontDialog, 0, 0, 0},{0, 0, 0, 0}};
13487 static swig_cast_info _swigc__p_wxDirDialog[] = {{&_swigt__p_wxDirDialog, 0, 0, 0},{0, 0, 0, 0}};
13488 static swig_cast_info _swigc__p_wxColourDialog[] = {{&_swigt__p_wxColourDialog, 0, 0, 0},{0, 0, 0, 0}};
13489 static swig_cast_info _swigc__p_wxDialog[] = {{&_swigt__p_wxDialog, 0, 0, 0},{0, 0, 0, 0}};
13490 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
13491 static swig_cast_info _swigc__p_wxMDIParentFrame[] = {{&_swigt__p_wxMDIParentFrame, 0, 0, 0},{0, 0, 0, 0}};
13492 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
13493 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
13494 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
13495 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}};
13496 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
13497 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13498 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
13499 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
13500 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13501 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
13502 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
13503 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
13504 static swig_cast_info _swigc__p_wxFontData[] = {{&_swigt__p_wxFontData, 0, 0, 0},{0, 0, 0, 0}};
13505 static swig_cast_info _swigc__p_wxPrintData[] = {{&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
13506 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13507 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
13508 static swig_cast_info _swigc__p_wxLayoutAlgorithm[] = {{&_swigt__p_wxLayoutAlgorithm, 0, 0, 0},{0, 0, 0, 0}};
13509 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
13510 static swig_cast_info _swigc__p_wxFindReplaceData[] = {{&_swigt__p_wxFindReplaceData, 0, 0, 0},{0, 0, 0, 0}};
13511 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
13512 static swig_cast_info _swigc__p_wxColourData[] = {{&_swigt__p_wxColourData, 0, 0, 0},{0, 0, 0, 0}};
13513 static swig_cast_info _swigc__p_wxPrinter[] = {{&_swigt__p_wxPrinter, 0, 0, 0},{0, 0, 0, 0}};
13514 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
13515 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
13516 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
13517 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
13518 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
13519 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
13520 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
13521 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
13522 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
13523 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
13524 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13525 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
13526 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
13527 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
13528 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
13529 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
13530 static swig_cast_info _swigc__p_wxPyPrintout[] = {{&_swigt__p_wxPyPrintout, 0, 0, 0},{0, 0, 0, 0}};
13531 static swig_cast_info _swigc__p_wxPrintPreview[] = {{&_swigt__p_wxPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13532 static swig_cast_info _swigc__p_wxPyPrintPreview[] = {{&_swigt__p_wxPyPrintPreview, 0, 0, 0},{0, 0, 0, 0}};
13533 static swig_cast_info _swigc__p_wxPageSetupDialog[] = {{&_swigt__p_wxPageSetupDialog, 0, 0, 0},{0, 0, 0, 0}};
13534 static swig_cast_info _swigc__p_wxPrintDialog[] = {{&_swigt__p_wxPrintDialog, 0, 0, 0},{0, 0, 0, 0}};
13535 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
13536 static swig_cast_info _swigc__p_wxPageSetupDialogData[] = {{&_swigt__p_wxPageSetupDialogData, 0, 0, 0},{0, 0, 0, 0}};
13537 static swig_cast_info _swigc__p_wxPrintDialogData[] = {{&_swigt__p_wxPrintDialogData, 0, 0, 0},{0, 0, 0, 0}};
13538 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxQueryLayoutInfoEvent, _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontData, _p_wxFontDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintData, _p_wxPrintDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTaskBarIcon, _p_wxPyTaskBarIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxLayoutAlgorithm, _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindDialogEvent, _p_wxFindDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextEvent, _p_wxRichTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterEvent, _p_wxSplitterEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceData, _p_wxFindReplaceDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourData, _p_wxColourDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinter, _p_wxPrinterTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxCalculateLayoutEvent, _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintout, _p_wxPyPrintoutTo_p_wxObject, 0, 0}, {&_swigt__p_wxTaskBarIconEvent, _p_wxTaskBarIconEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxSashEvent, _p_wxSashEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintPreview, _p_wxPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPrintPreview, _p_wxPyPrintPreviewTo_p_wxObject, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialog, _p_wxPageSetupDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialog, _p_wxPrintDialogTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPageSetupDialogData, _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrintDialogData, _p_wxPrintDialogDataTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
13539 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}};
13540 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
13541 static swig_cast_info _swigc__p_wxRichTextAttr[] = { {&_swigt__p_wxRichTextAttr, 0, 0, 0},{0, 0, 0, 0}};
13542 static swig_cast_info _swigc__p_wxRichTextBuffer[] = { {&_swigt__p_wxRichTextBuffer, 0, 0, 0},{0, 0, 0, 0}};
13543 static swig_cast_info _swigc__p_wxRichTextCtrl[] = { {&_swigt__p_wxRichTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
13544 static swig_cast_info _swigc__p_wxRichTextEvent[] = { {&_swigt__p_wxRichTextEvent, 0, 0, 0},{0, 0, 0, 0}};
13545 static swig_cast_info _swigc__p_wxRichTextImageBlock[] = { {&_swigt__p_wxRichTextImageBlock, 0, 0, 0},{0, 0, 0, 0}};
13546 static swig_cast_info _swigc__p_wxRichTextRange[] = { {&_swigt__p_wxRichTextRange, 0, 0, 0},{0, 0, 0, 0}};
13547 static swig_cast_info _swigc__p_wxRichTextStyleSheet[] = { {&_swigt__p_wxRichTextStyleSheet, 0, 0, 0},{0, 0, 0, 0}};
13548 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}};
13549 static swig_cast_info _swigc__p_wxTextCoord[] = { {&_swigt__p_wxTextCoord, 0, 0, 0},{0, 0, 0, 0}};
13550 static swig_cast_info _swigc__p_wxTextCtrlHitTestResult[] = { {&_swigt__p_wxTextCtrlHitTestResult, 0, 0, 0},{0, 0, 0, 0}};
13551 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxSplashScreen, _p_wxSplashScreenTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMiniFrame, _p_wxMiniFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPanel, _p_wxPyPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFindReplaceDialog, _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxProgressDialog, _p_wxProgressDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMessageDialog, _p_wxMessageDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNumberEntryDialog, _p_wxNumberEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPasswordEntryDialog, _p_wxPasswordEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextEntryDialog, _p_wxTextEntryDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSingleChoiceDialog, _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMultiChoiceDialog, _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFileDialog, _p_wxFileDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPanel, _p_wxPanelTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStatusBar, _p_wxStatusBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTipWindow, _p_wxTipWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPopupTransientWindow, _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPopupWindow, _p_wxPopupWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashLayoutWindow, _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTopLevelWindow, _p_wxTopLevelWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplashScreenWindow, _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSplitterWindow, _p_wxSplitterWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSashWindow, _p_wxSashWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIClientWindow, _p_wxMDIClientWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVScrolledWindow, _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyScrolledWindow, _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrolledWindow, _p_wxScrolledWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyPreviewFrame, _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewFrame, _p_wxPreviewFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIChildFrame, _p_wxMDIChildFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewCanvas, _p_wxPreviewCanvasTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyWindow, _p_wxPyWindowTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyHtmlListBox, _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyVListBox, _p_wxPyVListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyPreviewControlBar, _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPreviewControlBar, _p_wxPreviewControlBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFrame, _p_wxFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontDialog, _p_wxFontDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirDialog, _p_wxDirDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourDialog, _p_wxColourDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDialog, _p_wxDialogTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMDIParentFrame, _p_wxMDIParentFrameTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRichTextCtrl, _p_wxRichTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
13552
13553 static swig_cast_info *swig_cast_initial[] = {
13554 _swigc__p_char,
13555 _swigc__p_form_ops_t,
13556 _swigc__p_int,
13557 _swigc__p_long,
13558 _swigc__p_unsigned_char,
13559 _swigc__p_unsigned_int,
13560 _swigc__p_unsigned_long,
13561 _swigc__p_wxANIHandler,
13562 _swigc__p_wxAcceleratorTable,
13563 _swigc__p_wxActivateEvent,
13564 _swigc__p_wxArrayInt,
13565 _swigc__p_wxBMPHandler,
13566 _swigc__p_wxBitmap,
13567 _swigc__p_wxBoxSizer,
13568 _swigc__p_wxCURHandler,
13569 _swigc__p_wxCalculateLayoutEvent,
13570 _swigc__p_wxChar,
13571 _swigc__p_wxChildFocusEvent,
13572 _swigc__p_wxClipboardTextEvent,
13573 _swigc__p_wxCloseEvent,
13574 _swigc__p_wxColour,
13575 _swigc__p_wxColourData,
13576 _swigc__p_wxColourDialog,
13577 _swigc__p_wxCommandEvent,
13578 _swigc__p_wxContextMenuEvent,
13579 _swigc__p_wxControl,
13580 _swigc__p_wxControlWithItems,
13581 _swigc__p_wxDateEvent,
13582 _swigc__p_wxDialog,
13583 _swigc__p_wxDirDialog,
13584 _swigc__p_wxDisplayChangedEvent,
13585 _swigc__p_wxDropFilesEvent,
13586 _swigc__p_wxDuplexMode,
13587 _swigc__p_wxEraseEvent,
13588 _swigc__p_wxEvent,
13589 _swigc__p_wxEvtHandler,
13590 _swigc__p_wxFSFile,
13591 _swigc__p_wxFileDialog,
13592 _swigc__p_wxFileSystem,
13593 _swigc__p_wxFindDialogEvent,
13594 _swigc__p_wxFindReplaceData,
13595 _swigc__p_wxFindReplaceDialog,
13596 _swigc__p_wxFlexGridSizer,
13597 _swigc__p_wxFocusEvent,
13598 _swigc__p_wxFont,
13599 _swigc__p_wxFontData,
13600 _swigc__p_wxFontDialog,
13601 _swigc__p_wxFrame,
13602 _swigc__p_wxGBSizerItem,
13603 _swigc__p_wxGIFHandler,
13604 _swigc__p_wxGridBagSizer,
13605 _swigc__p_wxGridSizer,
13606 _swigc__p_wxICOHandler,
13607 _swigc__p_wxIconizeEvent,
13608 _swigc__p_wxIdleEvent,
13609 _swigc__p_wxImage,
13610 _swigc__p_wxImageHandler,
13611 _swigc__p_wxIndividualLayoutConstraint,
13612 _swigc__p_wxInitDialogEvent,
13613 _swigc__p_wxJPEGHandler,
13614 _swigc__p_wxKeyEvent,
13615 _swigc__p_wxLayoutAlgorithm,
13616 _swigc__p_wxLayoutConstraints,
13617 _swigc__p_wxMDIChildFrame,
13618 _swigc__p_wxMDIClientWindow,
13619 _swigc__p_wxMDIParentFrame,
13620 _swigc__p_wxMaximizeEvent,
13621 _swigc__p_wxMenu,
13622 _swigc__p_wxMenuBar,
13623 _swigc__p_wxMenuEvent,
13624 _swigc__p_wxMenuItem,
13625 _swigc__p_wxMessageDialog,
13626 _swigc__p_wxMiniFrame,
13627 _swigc__p_wxMouseCaptureChangedEvent,
13628 _swigc__p_wxMouseCaptureLostEvent,
13629 _swigc__p_wxMouseEvent,
13630 _swigc__p_wxMoveEvent,
13631 _swigc__p_wxMultiChoiceDialog,
13632 _swigc__p_wxNavigationKeyEvent,
13633 _swigc__p_wxNcPaintEvent,
13634 _swigc__p_wxNotifyEvent,
13635 _swigc__p_wxNumberEntryDialog,
13636 _swigc__p_wxObject,
13637 _swigc__p_wxPCXHandler,
13638 _swigc__p_wxPNGHandler,
13639 _swigc__p_wxPNMHandler,
13640 _swigc__p_wxPageSetupDialog,
13641 _swigc__p_wxPageSetupDialogData,
13642 _swigc__p_wxPaintEvent,
13643 _swigc__p_wxPaletteChangedEvent,
13644 _swigc__p_wxPanel,
13645 _swigc__p_wxPaperSize,
13646 _swigc__p_wxPasswordEntryDialog,
13647 _swigc__p_wxPopupWindow,
13648 _swigc__p_wxPreviewCanvas,
13649 _swigc__p_wxPreviewControlBar,
13650 _swigc__p_wxPreviewFrame,
13651 _swigc__p_wxPrintData,
13652 _swigc__p_wxPrintDialog,
13653 _swigc__p_wxPrintDialogData,
13654 _swigc__p_wxPrintPreview,
13655 _swigc__p_wxPrinter,
13656 _swigc__p_wxProgressDialog,
13657 _swigc__p_wxPyApp,
13658 _swigc__p_wxPyCommandEvent,
13659 _swigc__p_wxPyEvent,
13660 _swigc__p_wxPyHtmlListBox,
13661 _swigc__p_wxPyImageHandler,
13662 _swigc__p_wxPyPanel,
13663 _swigc__p_wxPyPopupTransientWindow,
13664 _swigc__p_wxPyPreviewControlBar,
13665 _swigc__p_wxPyPreviewFrame,
13666 _swigc__p_wxPyPrintPreview,
13667 _swigc__p_wxPyPrintout,
13668 _swigc__p_wxPyScrolledWindow,
13669 _swigc__p_wxPySizer,
13670 _swigc__p_wxPyTaskBarIcon,
13671 _swigc__p_wxPyVListBox,
13672 _swigc__p_wxPyVScrolledWindow,
13673 _swigc__p_wxPyValidator,
13674 _swigc__p_wxPyWindow,
13675 _swigc__p_wxQueryLayoutInfoEvent,
13676 _swigc__p_wxQueryNewPaletteEvent,
13677 _swigc__p_wxRichTextAttr,
13678 _swigc__p_wxRichTextBuffer,
13679 _swigc__p_wxRichTextCtrl,
13680 _swigc__p_wxRichTextEvent,
13681 _swigc__p_wxRichTextImageBlock,
13682 _swigc__p_wxRichTextRange,
13683 _swigc__p_wxRichTextStyleSheet,
13684 _swigc__p_wxSashEvent,
13685 _swigc__p_wxSashLayoutWindow,
13686 _swigc__p_wxSashWindow,
13687 _swigc__p_wxScrollEvent,
13688 _swigc__p_wxScrollWinEvent,
13689 _swigc__p_wxScrolledWindow,
13690 _swigc__p_wxSetCursorEvent,
13691 _swigc__p_wxShowEvent,
13692 _swigc__p_wxSingleChoiceDialog,
13693 _swigc__p_wxSizeEvent,
13694 _swigc__p_wxSizer,
13695 _swigc__p_wxSizerItem,
13696 _swigc__p_wxSplashScreen,
13697 _swigc__p_wxSplashScreenWindow,
13698 _swigc__p_wxSplitterEvent,
13699 _swigc__p_wxSplitterWindow,
13700 _swigc__p_wxStaticBoxSizer,
13701 _swigc__p_wxStatusBar,
13702 _swigc__p_wxStdDialogButtonSizer,
13703 _swigc__p_wxSysColourChangedEvent,
13704 _swigc__p_wxTIFFHandler,
13705 _swigc__p_wxTaskBarIconEvent,
13706 _swigc__p_wxTextCoord,
13707 _swigc__p_wxTextCtrlHitTestResult,
13708 _swigc__p_wxTextEntryDialog,
13709 _swigc__p_wxTipWindow,
13710 _swigc__p_wxTopLevelWindow,
13711 _swigc__p_wxUpdateUIEvent,
13712 _swigc__p_wxValidator,
13713 _swigc__p_wxWindow,
13714 _swigc__p_wxWindowCreateEvent,
13715 _swigc__p_wxWindowDestroyEvent,
13716 _swigc__p_wxXPMHandler,
13717 };
13718
13719
13720 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
13721
13722 static swig_const_info swig_const_table[] = {
13723 {0, 0, 0, 0.0, 0, 0}};
13724
13725 #ifdef __cplusplus
13726 }
13727 #endif
13728 /* -----------------------------------------------------------------------------
13729 * Type initialization:
13730 * This problem is tough by the requirement that no dynamic
13731 * memory is used. Also, since swig_type_info structures store pointers to
13732 * swig_cast_info structures and swig_cast_info structures store pointers back
13733 * to swig_type_info structures, we need some lookup code at initialization.
13734 * The idea is that swig generates all the structures that are needed.
13735 * The runtime then collects these partially filled structures.
13736 * The SWIG_InitializeModule function takes these initial arrays out of
13737 * swig_module, and does all the lookup, filling in the swig_module.types
13738 * array with the correct data and linking the correct swig_cast_info
13739 * structures together.
13740 *
13741 * The generated swig_type_info structures are assigned staticly to an initial
13742 * array. We just loop though that array, and handle each type individually.
13743 * First we lookup if this type has been already loaded, and if so, use the
13744 * loaded structure instead of the generated one. Then we have to fill in the
13745 * cast linked list. The cast data is initially stored in something like a
13746 * two-dimensional array. Each row corresponds to a type (there are the same
13747 * number of rows as there are in the swig_type_initial array). Each entry in
13748 * a column is one of the swig_cast_info structures for that type.
13749 * The cast_initial array is actually an array of arrays, because each row has
13750 * a variable number of columns. So to actually build the cast linked list,
13751 * we find the array of casts associated with the type, and loop through it
13752 * adding the casts to the list. The one last trick we need to do is making
13753 * sure the type pointer in the swig_cast_info struct is correct.
13754 *
13755 * First off, we lookup the cast->type name to see if it is already loaded.
13756 * There are three cases to handle:
13757 * 1) If the cast->type has already been loaded AND the type we are adding
13758 * casting info to has not been loaded (it is in this module), THEN we
13759 * replace the cast->type pointer with the type pointer that has already
13760 * been loaded.
13761 * 2) If BOTH types (the one we are adding casting info to, and the
13762 * cast->type) are loaded, THEN the cast info has already been loaded by
13763 * the previous module so we just ignore it.
13764 * 3) Finally, if cast->type has not already been loaded, then we add that
13765 * swig_cast_info to the linked list (because the cast->type) pointer will
13766 * be correct.
13767 * ----------------------------------------------------------------------------- */
13768
13769 #ifdef __cplusplus
13770 extern "C" {
13771 #if 0
13772 } /* c-mode */
13773 #endif
13774 #endif
13775
13776 #if 0
13777 #define SWIGRUNTIME_DEBUG
13778 #endif
13779
13780 SWIGRUNTIME void
13781 SWIG_InitializeModule(void *clientdata) {
13782 size_t i;
13783 swig_module_info *module_head;
13784 static int init_run = 0;
13785
13786 clientdata = clientdata;
13787
13788 if (init_run) return;
13789 init_run = 1;
13790
13791 /* Initialize the swig_module */
13792 swig_module.type_initial = swig_type_initial;
13793 swig_module.cast_initial = swig_cast_initial;
13794
13795 /* Try and load any already created modules */
13796 module_head = SWIG_GetModule(clientdata);
13797 if (module_head) {
13798 swig_module.next = module_head->next;
13799 module_head->next = &swig_module;
13800 } else {
13801 /* This is the first module loaded */
13802 swig_module.next = &swig_module;
13803 SWIG_SetModule(clientdata, &swig_module);
13804 }
13805
13806 /* Now work on filling in swig_module.types */
13807 #ifdef SWIGRUNTIME_DEBUG
13808 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
13809 #endif
13810 for (i = 0; i < swig_module.size; ++i) {
13811 swig_type_info *type = 0;
13812 swig_type_info *ret;
13813 swig_cast_info *cast;
13814
13815 #ifdef SWIGRUNTIME_DEBUG
13816 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13817 #endif
13818
13819 /* if there is another module already loaded */
13820 if (swig_module.next != &swig_module) {
13821 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
13822 }
13823 if (type) {
13824 /* Overwrite clientdata field */
13825 #ifdef SWIGRUNTIME_DEBUG
13826 printf("SWIG_InitializeModule: found type %s\n", type->name);
13827 #endif
13828 if (swig_module.type_initial[i]->clientdata) {
13829 type->clientdata = swig_module.type_initial[i]->clientdata;
13830 #ifdef SWIGRUNTIME_DEBUG
13831 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13832 #endif
13833 }
13834 } else {
13835 type = swig_module.type_initial[i];
13836 }
13837
13838 /* Insert casting types */
13839 cast = swig_module.cast_initial[i];
13840 while (cast->type) {
13841 /* Don't need to add information already in the list */
13842 ret = 0;
13843 #ifdef SWIGRUNTIME_DEBUG
13844 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
13845 #endif
13846 if (swig_module.next != &swig_module) {
13847 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
13848 #ifdef SWIGRUNTIME_DEBUG
13849 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
13850 #endif
13851 }
13852 if (ret) {
13853 if (type == swig_module.type_initial[i]) {
13854 #ifdef SWIGRUNTIME_DEBUG
13855 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
13856 #endif
13857 cast->type = ret;
13858 ret = 0;
13859 } else {
13860 /* Check for casting already in the list */
13861 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
13862 #ifdef SWIGRUNTIME_DEBUG
13863 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
13864 #endif
13865 if (!ocast) ret = 0;
13866 }
13867 }
13868
13869 if (!ret) {
13870 #ifdef SWIGRUNTIME_DEBUG
13871 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
13872 #endif
13873 if (type->cast) {
13874 type->cast->prev = cast;
13875 cast->next = type->cast;
13876 }
13877 type->cast = cast;
13878 }
13879 cast++;
13880 }
13881 /* Set entry in modules->types array equal to the type */
13882 swig_module.types[i] = type;
13883 }
13884 swig_module.types[i] = 0;
13885
13886 #ifdef SWIGRUNTIME_DEBUG
13887 printf("**** SWIG_InitializeModule: Cast List ******\n");
13888 for (i = 0; i < swig_module.size; ++i) {
13889 int j = 0;
13890 swig_cast_info *cast = swig_module.cast_initial[i];
13891 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
13892 while (cast->type) {
13893 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
13894 cast++;
13895 ++j;
13896 }
13897 printf("---- Total casts: %d\n",j);
13898 }
13899 printf("**** SWIG_InitializeModule: Cast List ******\n");
13900 #endif
13901 }
13902
13903 /* This function will propagate the clientdata field of type to
13904 * any new swig_type_info structures that have been added into the list
13905 * of equivalent types. It is like calling
13906 * SWIG_TypeClientData(type, clientdata) a second time.
13907 */
13908 SWIGRUNTIME void
13909 SWIG_PropagateClientData(void) {
13910 size_t i;
13911 swig_cast_info *equiv;
13912 static int init_run = 0;
13913
13914 if (init_run) return;
13915 init_run = 1;
13916
13917 for (i = 0; i < swig_module.size; i++) {
13918 if (swig_module.types[i]->clientdata) {
13919 equiv = swig_module.types[i]->cast;
13920 while (equiv) {
13921 if (!equiv->converter) {
13922 if (equiv->type && !equiv->type->clientdata)
13923 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
13924 }
13925 equiv = equiv->next;
13926 }
13927 }
13928 }
13929 }
13930
13931 #ifdef __cplusplus
13932 #if 0
13933 {
13934 /* c-mode */
13935 #endif
13936 }
13937 #endif
13938
13939
13940
13941 #ifdef __cplusplus
13942 extern "C" {
13943 #endif
13944
13945 /* Python-specific SWIG API */
13946 #define SWIG_newvarlink() SWIG_Python_newvarlink()
13947 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
13948 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
13949
13950 /* -----------------------------------------------------------------------------
13951 * global variable support code.
13952 * ----------------------------------------------------------------------------- */
13953
13954 typedef struct swig_globalvar {
13955 char *name; /* Name of global variable */
13956 PyObject *(*get_attr)(void); /* Return the current value */
13957 int (*set_attr)(PyObject *); /* Set the value */
13958 struct swig_globalvar *next;
13959 } swig_globalvar;
13960
13961 typedef struct swig_varlinkobject {
13962 PyObject_HEAD
13963 swig_globalvar *vars;
13964 } swig_varlinkobject;
13965
13966 SWIGINTERN PyObject *
13967 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
13968 return PyString_FromString("<Swig global variables>");
13969 }
13970
13971 SWIGINTERN PyObject *
13972 swig_varlink_str(swig_varlinkobject *v) {
13973 PyObject *str = PyString_FromString("(");
13974 swig_globalvar *var;
13975 for (var = v->vars; var; var=var->next) {
13976 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
13977 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
13978 }
13979 PyString_ConcatAndDel(&str,PyString_FromString(")"));
13980 return str;
13981 }
13982
13983 SWIGINTERN int
13984 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
13985 PyObject *str = swig_varlink_str(v);
13986 fprintf(fp,"Swig global variables ");
13987 fprintf(fp,"%s\n", PyString_AsString(str));
13988 Py_DECREF(str);
13989 return 0;
13990 }
13991
13992 SWIGINTERN void
13993 swig_varlink_dealloc(swig_varlinkobject *v) {
13994 swig_globalvar *var = v->vars;
13995 while (var) {
13996 swig_globalvar *n = var->next;
13997 free(var->name);
13998 free(var);
13999 var = n;
14000 }
14001 }
14002
14003 SWIGINTERN PyObject *
14004 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
14005 PyObject *res = NULL;
14006 swig_globalvar *var = v->vars;
14007 while (var) {
14008 if (strcmp(var->name,n) == 0) {
14009 res = (*var->get_attr)();
14010 break;
14011 }
14012 var = var->next;
14013 }
14014 if (res == NULL && !PyErr_Occurred()) {
14015 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
14016 }
14017 return res;
14018 }
14019
14020 SWIGINTERN int
14021 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
14022 int res = 1;
14023 swig_globalvar *var = v->vars;
14024 while (var) {
14025 if (strcmp(var->name,n) == 0) {
14026 res = (*var->set_attr)(p);
14027 break;
14028 }
14029 var = var->next;
14030 }
14031 if (res == 1 && !PyErr_Occurred()) {
14032 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
14033 }
14034 return res;
14035 }
14036
14037 SWIGINTERN PyTypeObject*
14038 swig_varlink_type(void) {
14039 static char varlink__doc__[] = "Swig var link object";
14040 static PyTypeObject varlink_type;
14041 static int type_init = 0;
14042 if (!type_init) {
14043 const PyTypeObject tmp
14044 = {
14045 PyObject_HEAD_INIT(NULL)
14046 0, /* Number of items in variable part (ob_size) */
14047 (char *)"swigvarlink", /* Type name (tp_name) */
14048 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
14049 0, /* Itemsize (tp_itemsize) */
14050 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
14051 (printfunc) swig_varlink_print, /* Print (tp_print) */
14052 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
14053 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
14054 0, /* tp_compare */
14055 (reprfunc) swig_varlink_repr, /* tp_repr */
14056 0, /* tp_as_number */
14057 0, /* tp_as_sequence */
14058 0, /* tp_as_mapping */
14059 0, /* tp_hash */
14060 0, /* tp_call */
14061 (reprfunc)swig_varlink_str, /* tp_str */
14062 0, /* tp_getattro */
14063 0, /* tp_setattro */
14064 0, /* tp_as_buffer */
14065 0, /* tp_flags */
14066 varlink__doc__, /* tp_doc */
14067 0, /* tp_traverse */
14068 0, /* tp_clear */
14069 0, /* tp_richcompare */
14070 0, /* tp_weaklistoffset */
14071 #if PY_VERSION_HEX >= 0x02020000
14072 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
14073 #endif
14074 #if PY_VERSION_HEX >= 0x02030000
14075 0, /* tp_del */
14076 #endif
14077 #ifdef COUNT_ALLOCS
14078 0,0,0,0 /* tp_alloc -> tp_next */
14079 #endif
14080 };
14081 varlink_type = tmp;
14082 varlink_type.ob_type = &PyType_Type;
14083 type_init = 1;
14084 }
14085 return &varlink_type;
14086 }
14087
14088 /* Create a variable linking object for use later */
14089 SWIGINTERN PyObject *
14090 SWIG_Python_newvarlink(void) {
14091 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
14092 if (result) {
14093 result->vars = 0;
14094 }
14095 return ((PyObject*) result);
14096 }
14097
14098 SWIGINTERN void
14099 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
14100 swig_varlinkobject *v = (swig_varlinkobject *) p;
14101 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
14102 if (gv) {
14103 size_t size = strlen(name)+1;
14104 gv->name = (char *)malloc(size);
14105 if (gv->name) {
14106 strncpy(gv->name,name,size);
14107 gv->get_attr = get_attr;
14108 gv->set_attr = set_attr;
14109 gv->next = v->vars;
14110 }
14111 }
14112 v->vars = gv;
14113 }
14114
14115 SWIGINTERN PyObject *
14116 SWIG_globals() {
14117 static PyObject *_SWIG_globals = 0;
14118 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
14119 return _SWIG_globals;
14120 }
14121
14122 /* -----------------------------------------------------------------------------
14123 * constants/methods manipulation
14124 * ----------------------------------------------------------------------------- */
14125
14126 /* Install Constants */
14127 SWIGINTERN void
14128 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
14129 PyObject *obj = 0;
14130 size_t i;
14131 for (i = 0; constants[i].type; ++i) {
14132 switch(constants[i].type) {
14133 case SWIG_PY_POINTER:
14134 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
14135 break;
14136 case SWIG_PY_BINARY:
14137 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
14138 break;
14139 default:
14140 obj = 0;
14141 break;
14142 }
14143 if (obj) {
14144 PyDict_SetItemString(d, constants[i].name, obj);
14145 Py_DECREF(obj);
14146 }
14147 }
14148 }
14149
14150 /* -----------------------------------------------------------------------------*/
14151 /* Fix SwigMethods to carry the callback ptrs when needed */
14152 /* -----------------------------------------------------------------------------*/
14153
14154 SWIGINTERN void
14155 SWIG_Python_FixMethods(PyMethodDef *methods,
14156 swig_const_info *const_table,
14157 swig_type_info **types,
14158 swig_type_info **types_initial) {
14159 size_t i;
14160 for (i = 0; methods[i].ml_name; ++i) {
14161 const char *c = methods[i].ml_doc;
14162 if (c && (c = strstr(c, "swig_ptr: "))) {
14163 int j;
14164 swig_const_info *ci = 0;
14165 const char *name = c + 10;
14166 for (j = 0; const_table[j].type; ++j) {
14167 if (strncmp(const_table[j].name, name,
14168 strlen(const_table[j].name)) == 0) {
14169 ci = &(const_table[j]);
14170 break;
14171 }
14172 }
14173 if (ci) {
14174 size_t shift = (ci->ptype) - types;
14175 swig_type_info *ty = types_initial[shift];
14176 size_t ldoc = (c - methods[i].ml_doc);
14177 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
14178 char *ndoc = (char*)malloc(ldoc + lptr + 10);
14179 if (ndoc) {
14180 char *buff = ndoc;
14181 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
14182 if (ptr) {
14183 strncpy(buff, methods[i].ml_doc, ldoc);
14184 buff += ldoc;
14185 strncpy(buff, "swig_ptr: ", 10);
14186 buff += 10;
14187 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
14188 methods[i].ml_doc = ndoc;
14189 }
14190 }
14191 }
14192 }
14193 }
14194 }
14195
14196 #ifdef __cplusplus
14197 }
14198 #endif
14199
14200 /* -----------------------------------------------------------------------------*
14201 * Partial Init method
14202 * -----------------------------------------------------------------------------*/
14203
14204 #ifdef __cplusplus
14205 extern "C"
14206 #endif
14207 SWIGEXPORT void SWIG_init(void) {
14208 PyObject *m, *d;
14209
14210 /* Fix SwigMethods to carry the callback ptrs when needed */
14211 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
14212
14213 m = Py_InitModule((char *) SWIG_name, SwigMethods);
14214 d = PyModule_GetDict(m);
14215
14216 SWIG_InitializeModule(0);
14217 SWIG_InstallConstants(d,swig_const_table);
14218
14219
14220 SWIG_Python_SetConstant(d, "USE_TEXTATTREX",SWIG_From_int(static_cast< int >(0)));
14221 SWIG_Python_SetConstant(d, "RE_READONLY",SWIG_From_int(static_cast< int >(wxRE_READONLY)));
14222 SWIG_Python_SetConstant(d, "RE_MULTILINE",SWIG_From_int(static_cast< int >(wxRE_MULTILINE)));
14223 SWIG_Python_SetConstant(d, "RICHTEXT_SHIFT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_SHIFT_DOWN)));
14224 SWIG_Python_SetConstant(d, "RICHTEXT_CTRL_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_CTRL_DOWN)));
14225 SWIG_Python_SetConstant(d, "RICHTEXT_ALT_DOWN",SWIG_From_int(static_cast< int >(wxRICHTEXT_ALT_DOWN)));
14226 SWIG_Python_SetConstant(d, "RICHTEXT_SELECTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_SELECTED)));
14227 SWIG_Python_SetConstant(d, "RICHTEXT_TAGGED",SWIG_From_int(static_cast< int >(wxRICHTEXT_TAGGED)));
14228 SWIG_Python_SetConstant(d, "RICHTEXT_FOCUSSED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FOCUSSED)));
14229 SWIG_Python_SetConstant(d, "RICHTEXT_IS_FOCUS",SWIG_From_int(static_cast< int >(wxRICHTEXT_IS_FOCUS)));
14230 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_ANY)));
14231 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_TEXT",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_TEXT)));
14232 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_XML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_XML)));
14233 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_HTML",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_HTML)));
14234 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_RTF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_RTF)));
14235 SWIG_Python_SetConstant(d, "RICHTEXT_TYPE_PDF",SWIG_From_int(static_cast< int >(wxRICHTEXT_TYPE_PDF)));
14236 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_WIDTH)));
14237 SWIG_Python_SetConstant(d, "RICHTEXT_FIXED_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_FIXED_HEIGHT)));
14238 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_WIDTH",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_WIDTH)));
14239 SWIG_Python_SetConstant(d, "RICHTEXT_VARIABLE_HEIGHT",SWIG_From_int(static_cast< int >(wxRICHTEXT_VARIABLE_HEIGHT)));
14240 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_NONE)));
14241 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_BEFORE",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_BEFORE)));
14242 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_AFTER",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_AFTER)));
14243 SWIG_Python_SetConstant(d, "RICHTEXT_HITTEST_ON",SWIG_From_int(static_cast< int >(wxRICHTEXT_HITTEST_ON)));
14244 SWIG_Python_SetConstant(d, "RICHTEXT_FORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_FORMATTED)));
14245 SWIG_Python_SetConstant(d, "RICHTEXT_UNFORMATTED",SWIG_From_int(static_cast< int >(wxRICHTEXT_UNFORMATTED)));
14246 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_NONE)));
14247 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_WITH_UNDO",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_WITH_UNDO)));
14248 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_OPTIMIZE",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_OPTIMIZE)));
14249 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY)));
14250 SWIG_Python_SetConstant(d, "RICHTEXT_SETSTYLE_CHARACTERS_ONLY",SWIG_From_int(static_cast< int >(wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY)));
14251 SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_NONE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_NONE)));
14252 SWIG_Python_SetConstant(d, "RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE",SWIG_From_int(static_cast< int >(wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE)));
14253 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
14254 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
14255 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
14256 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
14257 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
14258 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
14259 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
14260 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
14261 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
14262 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
14263 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
14264 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
14265 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_AFTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_AFTER)));
14266 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARA_SPACING_BEFORE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARA_SPACING_BEFORE)));
14267 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING)));
14268 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER_STYLE_NAME)));
14269 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH_STYLE_NAME",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH_STYLE_NAME)));
14270 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE)));
14271 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_NUMBER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_NUMBER)));
14272 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_SYMBOL)));
14273 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_NONE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_NONE)));
14274 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ARABIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ARABIC)));
14275 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER)));
14276 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER)));
14277 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER)));
14278 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER)));
14279 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_SYMBOL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_SYMBOL)));
14280 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_BITMAP",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_BITMAP)));
14281 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PARENTHESES",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PARENTHESES)));
14282 SWIG_Python_SetConstant(d, "TEXT_ATTR_BULLET_STYLE_PERIOD",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BULLET_STYLE_PERIOD)));
14283 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_NORMAL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_NORMAL)));
14284 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_HALF",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_HALF)));
14285 SWIG_Python_SetConstant(d, "TEXT_ATTR_LINE_SPACING_TWICE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LINE_SPACING_TWICE)));
14286 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
14287 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
14288 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
14289 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
14290 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
14291 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
14292 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
14293 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_ALL",RICHTEXT_ALL_get, RICHTEXT_ALL_set);
14294 SWIG_addvarlink(SWIG_globals(),(char*)"RICHTEXT_NONE",RICHTEXT_NONE_get, RICHTEXT_NONE_set);
14295 SWIG_Python_SetConstant(d, "TEXT_ATTR_CHARACTER",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_CHARACTER)));
14296 SWIG_Python_SetConstant(d, "TEXT_ATTR_PARAGRAPH",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_PARAGRAPH)));
14297 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALL",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALL)));
14298 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_SELECTED));
14299 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_ITEM_DESELECTED));
14300 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_CLICK));
14301 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK));
14302 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK));
14303 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK));
14304 PyDict_SetItemString(d, "wxEVT_COMMAND_RICHTEXT_RETURN", PyInt_FromLong(wxEVT_COMMAND_RICHTEXT_RETURN));
14305
14306 wxRichTextModuleInit();
14307
14308 }
14309